Borderou de evaluare (job #2011033)
Utilizator | Data | 14 august 2017 22:58:45 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:12: error: ‘nmax’ was not declared in this scope
int n,cost[nmax],a,b,start,mx,dm[nmax];
^
user.cpp:9:34: error: ‘nmax’ was not declared in this scope
int n,cost[nmax],a,b,start,mx,dm[nmax];
^
user.cpp:10:20: error: ‘nmax’ was not declared in this scope
vector<int> vecini[nmax];
^
user.cpp: In function ‘int bfs(int, int*)’:
user.cpp:23:23: error: ‘vecini’ was not declared in this scope
for(int i=0;i<vecini[start].size();i++)
^
user.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:35:5: error: expected initializer before ‘in’
in>>n;
^
user.cpp:39:9: error: ‘vecini’ was not declared in this scope
vecini[a].push(b);
^
user.cpp:42:11: error: ‘cost’ was not declared in this scope
bfs(1,cost);
^
user.cpp:43:12: error: ‘dm’ was not declared in this scope
bfs(mx,dm);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !