Borderou de evaluare (job #2472026)
Utilizator | Data | 11 octombrie 2019 22:08:32 | |
---|---|---|---|
Problema | Muzeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:13: error: array bound is not an integer constant before ']' token
int n,n[DMAX][DMAX],i,j,i1,j1;
^
main.cpp:8:19: error: array bound is not an integer constant before ']' token
int n,n[DMAX][DMAX],i,j,i1,j1;
^
main.cpp:9:18: error: scalar object 'dx' requires one element in initializer
int dx= {1,-1,0,0};
^
main.cpp:10:18: error: scalar object 'dy' requires one element in initializer
int dy= {0,0,-1,1};
^
main.cpp: In function 'int main()':
main.cpp:18:14: error: 'x' was not declared in this scope
fin>>x;
^
main.cpp:19:20: error: 'm' was not declared in this scope
if (x=='#')m[i][j]=-2;
^
main.cpp:20:25: error: 'm' was not declared in this scope
else if (x=='.')m[i][j]=-1;
^
main.cpp:21:26: error: 'last' was not declared in this scope
else if (x=='P') last.push(make_pair(i,j));
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !