Borderou de evaluare (job #964183)
Utilizator | Data | 20 iunie 2013 12:33:53 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main(int, char**)’:
user.cpp:50:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < g[node].size(); ++i) {
^
user.cpp:53:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (newdist < dist[target]) {
^
user.cpp:76:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ofs << (dist[i] == -1 ? 0 : dist[]) << " ";
^
user.cpp:76:36: error: expected primary-expression before ‘]’ token
ofs << (dist[i] == -1 ? 0 : dist[]) << " ";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !