Borderou de evaluare (job #581310)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Arme (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 feb. 2021 18:45:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(i=1; i<=n; i++)
| ^~~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for(j=1; j<=m; j++)
| ^~~
main.cpp:28:17: error: 'maxim1' was not declared in this scope; did you mean 'maxim2'?
28 | maxim1=b[0];
| ^~~~~~
| maxim2
main.cpp:27:14: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
27 | for(j=m-1; j>0; j--)
| ^~~
main.cpp:29:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
29 | p=0;
| ^
main.cpp:29:17: error: 'p' was not declared in this scope
main.cpp:30:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
30 | for(i=1; i<=j; i++)
| ^~~
main.cpp:35:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
35 | b[p]=b[u]
| ^
main.cpp:35:28: error: 'u' was not declared in this scope
35 | b[p]=b[u]
| ^
main.cpp:8:30: warning: unused variable 's' [-Wunused-variable]
8 | int n, i, j, m, maxim=0, s=0, maxim2=0;
| ^