#3057
Se dă un număr natural n. Să se afișeze DA dacă numărul este prim altfel se afișează NU.
| Problema | Rabin-Miller | Operații I/O |
rabin-miller.in/rabin-miller.out
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 128 MB
/
Stivă 128 MB
|
| Id soluție | #62033199 | Utilizator | |
| Fișier | rabin-miller.cpp | Dimensiune | 341 B |
| Data încărcării | 02 Ianuarie 2026, 21:37 | Scor/rezultat | Eroare de compilare |
rabin-miller.cpp:3:15: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin (rabin-miller.in); ^ rabin-miller.cpp:3:15: error: 'rabin' was not declared in this scope rabin-miller.cpp:3:21: error: 'miller' was not declared in this scope ifstream fin (rabin-miller.in); ^ rabin-miller.cpp:4:16: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout (rabin-miller.out); ^ rabin-miller.cpp:4:16: error: 'rabin' was not declared in this scope rabin-miller.cpp:4:22: error: 'miller' was not declared in this scope ofstream fout (rabin-miller.out); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Rabin-Miller face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.