Borderou de evaluare (job #2722641)
Utilizator | Data | 13 martie 2021 09:17:28 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:27:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(a[i][j] > a[i][k] + a[k][j] || a[i][j] == 0) && i != j && i != k && j != k && a[i][k] && a[k][j]) {
^
main.cpp:27:104: error: expected ';' before ')' token
if(a[i][j] > a[i][k] + a[k][j] || a[i][j] == 0) && i != j && i != k && j != k && a[i][k] && a[k][j]) {
^
main.cpp:27:94: warning: statement has no effect [-Wunused-value]
if(a[i][j] > a[i][k] + a[k][j] || a[i][j] == 0) && i != j && i != k && j != k && a[i][k] && a[k][j]) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp:27:56: error: label 'i' used but not defined
if(a[i][j] > a[i][k] + a[k][j] || a[i][j] == 0) && i != j && i != k && j != k && a[i][k] && a[k][j]) {
^
main.cpp: In function 'void fisier()':
main.cpp:43:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("royfloyd.in" , "r", stdin);
^
main.cpp:44:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("royfloyd.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !