Borderou de evaluare (job #1817947)
Utilizator | Data | 28 noiembrie 2016 18:17:33 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:7: error: ‘nmax’ does not name a type
const nmax = 7501;
^
user.cpp:4:17: error: ‘nmax’ was not declared in this scope
typedef int sir[nmax];
^
user.cpp:6:7: error: ‘nmax’ was not declared in this scope
nod v[nmax];
^
user.cpp:7:37: error: ‘nmax’ was not declared in this scope
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: At global scope:
user.cpp:36:11: error: ‘::main’ must return ‘int’
void main()
^
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];
^
user.cpp:75:2: error: ‘ofstream’ was not declared in this scope
ofstream fo("graf.out");
^
user.cpp:75:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !