Borderou de evaluare (job #1720112)

Utilizator geniucosOncescu Costin geniucos Data 21 iunie 2016 14:32:43
Problema Magnet Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void do_move(int, int)’: user.cpp:20:9: error: ‘else’ without a previous ‘if’ else aux[i] = S; ^ user.cpp:20:18: error: ‘i’ was not declared in this scope else aux[i] = S; ^ user.cpp: In function ‘int main()’: user.cpp:107:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("magnet.in", "r", stdin); ^ user.cpp:108:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("magnet.out", "w", stdout); ^ user.cpp:110:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &T); ^ user.cpp:113:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &N), se_poate = 1, moves.clear (); ^ user.cpp:115:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &a[i]); ^ user.cpp:117:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &b[i]); ^

Ceva nu functioneaza?