Borderou de evaluare (job #858409)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cifre 3 (clasa a 5-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 22 mar. 2026 13:14:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:10: error: '#include' expects '"FILENAME"' or '<FILENAME>'
1 | #include fstream>
| ^~~~~~~
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream fin ("cifre3.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream fout ("cifre3.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:9: error: 'fin' was not declared in this scope
8 | fin >> a >> b;
| ^~~
main.cpp:30:21: error: 'fout' was not declared in this scope
30 | fout << i;
| ^~~~
main.cpp:36:13: error: 'fout' was not declared in this scope
36 | fout << -1;
| ^~~~
main.cpp:38:9: error: 'fout' was not declared in this scope
38 | fout << '\n';
| ^~~~
main.cpp: At global scope:
main.cpp:69:1: error: expected unqualified-id before 'return'
69 | return 0;
| ^~~~~~
main.cpp:70:1: error: expected declaration before '}' token
70 | }
| ^