Borderou de evaluare (job #728518)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Leo (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 11 aug. 2023 13:43:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: error: expected ',' or ';' before 'int'
9 | int cer, n, i, s1, maxim, j;
| ^~~
main.cpp:10:12: error: 'cer' was not declared in this scope
10 | cin >> cer >> n;
| ^~~
main.cpp:10:19: error: 'n' was not declared in this scope
10 | cin >> cer >> n;
| ^
main.cpp:12:29: error: 'i' was not declared in this scope
12 | for(i = 1; i <= n;i++){
| ^
main.cpp:13:33: error: 's1' was not declared in this scope
13 | s1 = 0;
| ^~
main.cpp:14:33: error: 'j' was not declared in this scope
14 | j = i;
| ^
main.cpp:21:41: error: 'maxim' was not declared in this scope
21 | maxim = i;
| ^~~~~
main.cpp:23:33: error: 'maxim' was not declared in this scope
23 | cout << maxim;
| ^~~~~