Borderou de evaluare (job #1764292)

Utilizator cristi_leontCristian Leont cristi_leont Data 25 septembrie 2016 13:15:06
Problema Graf Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:18: error: expected ‘]’ before ‘;’ token #define nmax 7501; ^ user.cpp:4:17: note: in expansion of macro ‘nmax’ typedef int sir[nmax]; ^ user.cpp:4:21: error: expected unqualified-id before ‘]’ token typedef int sir[nmax]; ^ user.cpp:2:18: error: expected ‘]’ before ‘;’ token #define nmax 7501; ^ user.cpp:6:7: note: in expansion of macro ‘nmax’ nod v[nmax]; ^ user.cpp:6:11: error: expected unqualified-id before ‘]’ token nod v[nmax]; ^ user.cpp:2:18: error: expected ‘]’ before ‘;’ token #define nmax 7501; ^ user.cpp:7:37: note: in expansion of macro ‘nmax’ int *dx, *dy, *num, *vertex, *at, l[nmax]; ^ user.cpp:7:41: error: expected unqualified-id before ‘]’ token int *dx, *dy, *num, *vertex, *at, l[nmax]; ^ user.cpp:10:1: error: ‘ifstream’ does not name a type ifstream fi("graf.in"); ^ user.cpp: In function ‘void bfs(int, int*)’: user.cpp:14:31: error: ‘setmem’ was not declared in this scope setmem(d,(n+1)*sizeof(int),0); ^ user.cpp:16:3: error: ‘l’ was not declared in this scope l[1]=x; d[x]=1; ^ user.cpp:20:10: error: ‘v’ was not declared in this scope p = v[l[i]]; ^ user.cpp:13:9: warning: unused variable ‘q’ [-Wunused-variable] nod p,q; ^ user.cpp: In function ‘int main()’: user.cpp:38:2: error: ‘fi’ was not declared in this scope fi>>n>>m>>x>>y; ^ user.cpp:43:16: error: ‘v’ was not declared in this scope p->next = v[xx]; ^

Ceva nu functioneaza?