Borderou de evaluare (job #1935593)
Utilizator | Data | 22 martie 2017 15:36:00 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:17: error: expected ‘]’ before numeric constant
#define MAX_M 0 1000000
^
user.cpp:9:15: note: in expansion of macro ‘MAX_M’
vector<int> v[MAX_M];
^
user.cpp:5:17: error: expected ‘]’ before numeric constant
#define MAX_N 0 100000
^
user.cpp:11:7: note: in expansion of macro ‘MAX_N’
int d[MAX_N],x,y,s,n,m;
^
user.cpp: In function ‘int main()’:
user.cpp:18:30: error: ‘n’ was not declared in this scope
fscanf(intrare,"%d%d%d",&n,&m,&s);
^
user.cpp:18:33: error: ‘m’ was not declared in this scope
fscanf(intrare,"%d%d%d",&n,&m,&s);
^
user.cpp:18:36: error: ‘s’ was not declared in this scope
fscanf(intrare,"%d%d%d",&n,&m,&s);
^
user.cpp:21:32: error: ‘x’ was not declared in this scope
fscanf(intrare,"%d%d",&x,&y);
^
user.cpp:21:35: error: ‘y’ was not declared in this scope
fscanf(intrare,"%d%d",&x,&y);
^
user.cpp:22:9: error: ‘v’ was not declared in this scope
v[x].push_back(y);
^
user.cpp:27:9: error: ‘d’ was not declared in this scope
d[i]=-1;
^
user.cpp:31:5: error: ‘d’ was not declared in this scope
d[s]=0;
^
user.cpp:36:21: error: ‘v’ was not declared in this scope
for (i=0; i<v[curent].size(); ++i)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !