Borderou de evaluare (job #1791219)
Utilizator | Data | 29 octombrie 2016 10:55:56 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:33:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<q.size(); i++)
^
user.cpp:35:25: error: ‘a’ was not declared in this scope
for (int j=0; j<a[q[i]].size(); j++)
^
user.cpp:38:17: error: ‘d’ was not declared in this scope
if (d[x]==-1 || d[q[i]]+1<d[x])
^
user.cpp: At global scope:
user.cpp:47:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:51:10: error: ‘d’ was not declared in this scope
copy(d.begin()+1,d.end(),ostream_iterator <int> (cout, " "));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !