Borderou de evaluare (job #757319)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cifre1 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 ian. 2024 17:54:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:13: error: variable 'std::ifstream fin' has initializer but incomplete type
5 | ifstream fin("cifre1.in");
| ^
main.cpp:6:14: error: variable 'std::ofstream fout' has initializer but incomplete type
6 | ofstream fout("cifre1.out");
| ^
main.cpp: In function 'int main()':
main.cpp:11:8: error: expected ';' before 'a'
11 | fin a,b;
| ^~
| ;
main.cpp:12:9: error: 'i' was not declared in this scope; did you mean 'i2'?
12 | for(i=1; i)
| ^
| i2
main.cpp:12:15: error: expected ';' before ')' token
12 | for(i=1; i)
| ^
| ;
main.cpp:17:10: warning: statement has no effect [-Wunused-value]
17 | a/10;
| ~^~~
main.cpp:22:13: error: expected ';' before '}' token
22 | b/10
| ^
| ;
23 | }
| ~
main.cpp:22:10: warning: statement has no effect [-Wunused-value]
22 | b/10
| ~^~~
main.cpp:10:20: warning: unused variable 'comune' [-Wunused-variable]
10 | int a,b,i1,i2, comune = 0;
| ^~~~~~