Borderou de evaluare (job #601169)

Utilizator avatar carinabrebenaru Carina Brebenaru carinabrebenaru IP ascuns
Problemă Pădure (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 30 iun. 2021 14:15:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:5: error: expected ',' or ';' before 'int' 9 | int i, n, a, b, r, lung=0, maxlung=0; | ^~~ main.cpp:10:12: error: 'n' was not declared in this scope 10 | cin >> n >> a; | ^ main.cpp:10:17: error: 'a' was not declared in this scope 10 | cin >> n >> a; | ^ main.cpp:11:10: error: 'i' was not declared in this scope 11 | for( i=1; i<n; i++ ) | ^ main.cpp:13:16: error: 'b' was not declared in this scope 13 | cin >> b; | ^ main.cpp:14:9: error: 'cb' was not declared in this scope 14 | cb=b; | ^~ main.cpp:17:9: error: 'r' was not declared in this scope 17 | r = a % b; | ^ main.cpp:23:9: error: 'lung' was not declared in this scope; did you mean 'long'? 23 | lung++; | ^~~~ | long main.cpp:27:10: error: 'lung' was not declared in this scope; did you mean 'long'? 27 | lung=1; | ^~~~ | long main.cpp:29:12: error: 'lung' was not declared in this scope; did you mean 'long'? 29 | if(lung>maxlung) | ^~~~ | long main.cpp:29:17: error: 'maxlung' was not declared in this scope 29 | if(lung>maxlung) | ^~~~~~~ main.cpp:36:13: error: 'maxlung' was not declared in this scope 36 | cout << maxlung; | ^~~~~~~