Borderou de evaluare (job #1788300)

Utilizator giotoPopescu Ioan gioto Data 25 octombrie 2016 21:26:14
Problema Grozavesti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:23: error: ISO C++ forbids declaration of ‘Swap_line’ with no type [-fpermissive] inline Swap_line(int i){ ^ user.cpp: In function ‘int Swap_line(int)’: user.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: At global scope: user.cpp:14:25: error: ISO C++ forbids declaration of ‘Swap_column’ with no type [-fpermissive] inline Swap_column(int i){ ^ user.cpp: In function ‘int Swap_column(int)’: user.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:48:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < v.size() ; ++i){ ^ user.cpp:23:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("grozavesti.in", "r", stdin); ^ user.cpp:24:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("grozavesti.out", "w", stdout); ^ user.cpp:25:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:28:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i][j]); ^

Ceva nu functioneaza?