Borderou de evaluare (job #589267)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Peridia (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 mar. 2021 15:23:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:8: error: expected identifier before numeric constant
7 | int v=[6];
| ^
main.cpp: In lambda function:
main.cpp:7:10: error: expected '{' before ';' token
7 | int v=[6];
| ^
main.cpp: At global scope:
main.cpp:7:10: error: invalid user-defined conversion from '<lambda()>' to 'int' [-fpermissive]
main.cpp:7:7: note: candidate is: '<lambda()>::operator void (*)()() const' (near match)
7 | int v=[6];
| ^
main.cpp:7:7: note: no known conversion from 'void (*)()' to 'int'
main.cpp: In function 'int main()':
main.cpp:15:6: error: invalid types 'int[int]' for array subscript
15 | v[0]=v[1]=x;
| ^
main.cpp:15:11: error: invalid types 'int[int]' for array subscript
15 | v[0]=v[1]=x;
| ^
main.cpp:16:6: error: invalid types 'int[int]' for array subscript
16 | v[2]=v[3]=y;
| ^
main.cpp:16:11: error: invalid types 'int[int]' for array subscript
16 | v[2]=v[3]=y;
| ^
main.cpp:17:6: error: invalid types 'int[int]' for array subscript
17 | v[4]=v[5]=z;
| ^
main.cpp:17:11: error: invalid types 'int[int]' for array subscript
17 | v[4]=v[5]=z;
| ^
main.cpp:20:14: error: 'ch' was not declared in this scope
20 | cin>>ch;
| ^~
main.cpp:25:22: error: invalid types 'int[int]' for array subscript
25 | aux=v[0];
| ^
main.cpp:26:18: error: invalid types 'int[int]' for array subscript
26 | v[0]=v[2];
| ^
main.cpp:26:23: error: invalid types 'int[int]' for array subscript
26 | v[0]=v[2];
| ^
main.cpp:27:18: error: invalid types 'int[int]' for array subscript
27 | v[2]=v[1];
| ^
main.cpp:27:23: error: invalid types 'int[int]' for array subscript
27 | v[2]=v[1];
| ^