Borderou de evaluare (job #828228)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Prime1 (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 17 iun. 2025 08:58:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:31:4: error: 'cer' was not declared in this scope
31 | if(cer==1) {
| ^~~
main.cpp:34:25: error: 'cin' was not declared in this scope
34 | cin>>k;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <fstream>
+++ |+#include <iostream>
2 | #define MAXJ 9999998
main.cpp:34:30: error: 'k' was not declared in this scope
34 | cin>>k;
| ^
main.cpp:41:17: error: 'cout' was not declared in this scope
41 | cout<<cnt;
| ^~~~
main.cpp:41:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'