Borderou de evaluare (job #2292286)
Utilizator | Data | 29 noiembrie 2018 12:17:28 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:15: warning: missing terminating " character
std::ifstream("barbari.in);
^
main.cpp:4:15: error: missing terminating " character
std::ifstream("barbari.in);
^~~~~~~~~~~~~
main.cpp:5:15: warning: missing terminating " character
std::ofstream("barbari.out);
^
main.cpp:5:15: error: missing terminating " character
std::ofstream("barbari.out);
^~~~~~~~~~~~~~
main.cpp:6:21: error: expected ')' before ';' token
char mat[1001][1001];
^
main.cpp:6:21: error: expected ')' before ';' token
main.cpp:6:21: error: expected constructor, destructor, or type conversion before ';' token
main.cpp: In function 'int bs()':
main.cpp:16:1: error: expected initializer before '}' token
}
^
main.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
main.cpp: In function 'int main()':
main.cpp:19:2: error: 'in' was not declared in this scope
in>>n>>m>>std::ws;
^~
main.cpp:22:11: error: 'mat' was not declared in this scope
in>>mat[i][j];
^~~
main.cpp:31:13: error: 'class std::queue<poz>' has no member named 'top'; did you mean 'pop'?
poz aux=q.top();
^~~
main.cpp:34:30: error: 'du' was not declared in this scope
poz a2={aux.x+dx[i],aux.y+du[i],aux.cost+1};
^~
main.cpp:35:23: error: 'cost' was not declared in this scope
if(viz[a2.x][a2.y]<cost && a2.x>=1 && a2.y>=1 && a2.x<=n && a2.y<=m && mat[a2.x][a2.y]!='*' && mat[a2.x][a2.y]!='D')
^~~~
main.cpp:35:75: error: 'mat' was not declared in this scope
if(viz[a2.x][a2.y]<cost && a2.x>=1 && a2.y>=1 && a2.x<=n && a2.y<=m && mat[a2.x][a2.y]!='*' && mat[a2.x][a2.y]!='D')
^~~
main.cpp:39:2: error: 'out' was not declared in this scope
out<<bs();
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !