Borderou de evaluare (job #799754)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Peridia (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 dec. 2024 12:38:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:9: error: 'poz1' was not declared in this scope; did you mean 'poz2'?
19 | mat[poz1][poz2]=v[1];
| ^~~~
| poz2
main.cpp:36:17: error: 'po2' was not declared in this scope; did you mean 'poz2'?
36 | po2--;
| ^~~
| poz2
main.cpp:51:29: error: lvalue required as left operand of assignment
51 | aux=v[0]; v[0=v[5]; v[5]=v[1]; v[1]=v[4]; v[4]=aux;
| ^
main.cpp:51:35: error: expected ']' before ';' token
51 | aux=v[0]; v[0=v[5]; v[5]=v[1]; v[1]=v[4]; v[4]=aux;
| ^
| ]
main.cpp:57:9: error: redeclaration of 'int poz'
57 | int poz=0;
| ^~~
main.cpp:10:19: note: 'int poz' previously declared here
10 | int n,x,y,z,k,poz=1,poz2=1,aux;
| ^~~
main.cpp:60:13: error: 'j' was not declared in this scope
60 | for(j=1; j<=n; j++)
| ^
main.cpp:68:9: error: 'out' was not declared in this scope; did you mean 'cout'?
68 | out<<rez[i]<<" ";
| ^~~
| cout