Borderou de evaluare (job #828229)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Prime1 (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 17 iun. 2025 09:02:17 | 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>>nr;
| ^~~
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:37:44: error: 'k' was not declared in this scope
37 | if(k==cerintai[m])cnt++;
| ^
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>'
main.cpp:44:1: error: 'else' without a previous 'if'
44 | else if(c==3){
| ^~~~