Borderou de evaluare (job #1310000)

Utilizator mikeKiLL3rLupea Mihai Ionut mikeKiLL3r Data 6 ianuarie 2015 12:15:17
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 ‘void copiere()’: user.cpp:17:23: error: invalid conversion from ‘short int (*)[1000]’ to ‘short int’ [-fpermissive] rez[i][j] = mat; ^ user.cpp: In function ‘int main()’: user.cpp:30:19: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘BYTE* {aka char*}’ [-Wformat=] scanf("%i", &n); ^ user.cpp:35:35: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%i", &mat[i][j]); ^ user.cpp:44:20: error: expected primary-expression before ‘)’ token if() ^ user.cpp:45:13: error: expected primary-expression before ‘}’ token } ^ user.cpp:45:13: error: expected ‘;’ before ‘}’ token user.cpp:28:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("Floyd-Warshall.in", "r", stdin); ^ user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ user.cpp:35:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &mat[i][j]); ^

Ceva nu functioneaza?