Borderou de evaluare (job #2334954)
Utilizator | Data | 3 februarie 2019 13:33:14 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:12: warning: ISO C++11 requires whitespace after the macro name
#define inf=INT_MAX-10
^
main.cpp: In function 'void Dijkstra()':
main.cpp:27:6: error: expected ';' before 'for'
for(k=0;k<L[Start].size();k++)
^~~
main.cpp:25:41: warning: statement has no effect [-Wunused-value]
if(i!=Start) {D[i]=INT_MAX-10;S[i]
~~~^
main.cpp:27:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0;k<L[Start].size();k++)
~^~~~~~~~~~~~~~~~
main.cpp:27:15: warning: value computed is not used [-Wunused-value]
main.cpp:27:35: error: expected ';' before ')' token
for(k=0;k<L[Start].size();k++)
^
main.cpp:39:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0;k<L[poz].size();k++)
~^~~~~~~~~~~~~~
main.cpp:50:1: error: a function-definition is not allowed here before '{' token
{ int i;
^
main.cpp:60:1: error: expected '}' at end of input
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !