Borderou de evaluare (job #790617)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Compus (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 oct. 2024 14:31:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: expected ',' or ';' before 'int'
6 | int v[100];
| ^~~
main.cpp: In function 'int main()':
main.cpp:15:13: error: 'v' was not declared in this scope
15 | in>>v[i];
| ^
main.cpp:19:10: error: 'v' was not declared in this scope
19 | { if(v[i]==e) {
| ^
main.cpp:29:11: error: 'v' was not declared in this scope
29 | v[j] = v[j-1];
| ^
main.cpp:28:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
28 | for(int j=n-1; j>=p+1; j--)
| ^~~
main.cpp:30:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
30 | v[p]=e;
| ^
main.cpp:30:11: error: 'v' was not declared in this scope