Borderou de evaluare (job #734688)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Oz (clasa a 9-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 oct. 2023 13:11:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:15: error: expected initializer before numeric constant
6 | const int val 2000000000;
| ^~~~~~~~~~
main.cpp:8:18: error: expected unqualified-id before 'int'
8 | struct poz{int i,int j;
| ^~~
main.cpp: In function 'int main()':
main.cpp:26:8: error: invalid types 'int[int]' for array subscript
26 | a[k].i=i;
| ^
main.cpp:27:8: error: invalid types 'int[int]' for array subscript
27 | a[k].j=j;
| ^
main.cpp:28:8: error: invalid types 'int[int]' for array subscript
28 | a[k].d=d;
| ^
main.cpp:29:15: error: 'val' was not declared in this scope
29 | if(v[i]>val){ok=1;break;}
| ^~~