Borderou de evaluare (job #2304227)
Utilizator | Data | 17 decembrie 2018 19:08:08 | |
---|---|---|---|
Problema | Gheizere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:12: error: 'PMAX' was not declared in this scope
gaysir g [ PMAX + 1 ] ;
^~~~
main.cpp: In function 'void init(int, int, int)':
main.cpp:24:10: error: 'r' was not declared in this scope
for (r = g[k].r ; r > 0 ; r-- ) {
^
main.cpp:24:14: error: 'g' was not declared in this scope
for (r = g[k].r ; r > 0 ; r-- ) {
^
main.cpp: In function 'int bfs(int, int, int, int, int)':
main.cpp:31:7: warning: unused variable 'x' [-Wunused-variable]
int x, y ;
^
main.cpp:31:10: warning: unused variable 'y' [-Wunused-variable]
int x, y ;
^
main.cpp:34:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:41:8: error: 'i' was not declared in this scope
for (i = 1 ; i <= p ; i++ )
^
main.cpp:42:32: error: 'g' was not declared in this scope
fscanf (fin, "%d%d%d%d%d", g[i].x, g[i].y, g[i].r, g[i].t, g[i].d ) ;
^
main.cpp:39:16: warning: unused variable 'x' [-Wunused-variable]
int n, m, p, x, y, r, t, d, v, e ;
^
main.cpp:39:19: warning: unused variable 'y' [-Wunused-variable]
int n, m, p, x, y, r, t, d, v, e ;
^
main.cpp:39:22: warning: unused variable 'r' [-Wunused-variable]
int n, m, p, x, y, r, t, d, v, e ;
^
main.cpp:39:25: warning: unused variable 't' [-Wunused-variable]
int n, m, p, x, y, r, t, d, v, e ;
^
main.cpp:39:28: warning: unused variable 'd' [-Wunused-variable]
int n, m, p, x, y, r, t, d, v, e ;
^
main.cpp:40:51: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf (fin, "%d%d%d%d%d", &n, &m, &p, &v, &e ) ;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !