Borderou de evaluare (job #1845531)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 11 ianuarie 2017 17:10:50
Problema Ferma3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:61:21: error: expected primary-expression before ‘}’ token } ^ user.cpp:61:21: error: expected ‘;’ before ‘}’ token user.cpp:57:26: warning: unused variable ‘x’ [-Wunused-variable] char x = a[i][j]; ^ user.cpp:58:29: warning: unused variable ‘yy’ [-Wunused-variable] int xx, yy; ^ user.cpp:65:1: error: expected ‘}’ at end of input } ^ user.cpp:25:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ferma3.in", "r", stdin); ^ user.cpp:26:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ferma3.out", "w", stdout); ^ user.cpp:28:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n%d %d\n", &type, &n, &m); ^ user.cpp:32:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &a[i][j]); ^ user.cpp:33:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^

Ceva nu functioneaza?