Borderou de evaluare (job #1568522)
Utilizator | Data | 14 ianuarie 2016 13:16:51 | |
---|---|---|---|
Problema | Base3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bfs()’:
user.cpp:13:17: error: ‘k’ was not declared in this scope
for(k=1;k<=3;k++){
^
user.cpp:14:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(d[q[p]+c[k]]<d[q[p]]+c[k]){
^
user.cpp:15:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[q[p]+c[k]]=d[q[p]]+c[k];
^
user.cpp:18:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(d[q[p]-c[k]]<d[q[p]]+c[k]){
^
user.cpp:19:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[q[p]-c[k]]=d[q[p]]+c[k];
^
user.cpp:27:1: error: a function-definition is not allowed here before ‘{’ token
{
^
user.cpp:45:1: error: expected ‘}’ at end of input
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !