Borderou de evaluare (job #2158397)

Utilizator rangal3Tudor Anastasiei rangal3 Data 10 martie 2018 12:39:45
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:21:101: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(v[i][k] != 0 && v[k][j] !=0 && (v[i][j] > v[i][k] + v[k][j] || !v[i][j])) && i !=j) ^ user.cpp:21:102: error: expected ‘;’ before ‘)’ token if(v[i][k] != 0 && v[k][j] !=0 && (v[i][j] > v[i][k] + v[k][j] || !v[i][j])) && i !=j) ^ user.cpp:21:99: warning: statement has no effect [-Wunused-value] if(v[i][k] != 0 && v[k][j] !=0 && (v[i][j] > v[i][k] + v[k][j] || !v[i][j])) && i !=j) ^ user.cpp:21:97: error: label ‘i’ used but not defined if(v[i][k] != 0 && v[k][j] !=0 && (v[i][j] > v[i][k] + v[k][j] || !v[i][j])) && i !=j) ^ user.cpp:11: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); ^ user.cpp:12:39: 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); ^ user.cpp:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd",&n); ^ user.cpp:16:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i][j]); ^

Ceva nu functioneaza?