Borderou de evaluare (job #754504)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Gondola (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 ian. 2024 09:33:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream fin (gondola.in);
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream fout (gondola.out);
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'fin' was not declared in this scope
12 | fin>>n;
| ^~~
main.cpp:21:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | if(b=1)
| ~^~
main.cpp:25:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
25 | if(b=2)
| ~^~
main.cpp:29:5: error: 'fout' was not declared in this scope
29 | fout<<a;
| ^~~~