Borderou de evaluare (job #1486463)
Utilizator | Data | 14 septembrie 2015 21:36:35 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void sift(int)’:
user.cpp:49:9: error: expected primary-expression before ‘}’ token
}
^
user.cpp:49:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
user.cpp:49:9: error: expected ‘;’ before ‘}’ token
user.cpp:50:18: error: expected primary-expression before ‘return’
else i = return;
^
user.cpp:50:18: error: expected ‘;’ before ‘return’
user.cpp: In function ‘int main()’:
user.cpp:56:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in", "r", stdin);
^
user.cpp:57:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !