Borderou de evaluare (job #1690283)

Utilizator akaprosAna Kapros akapros Data 14 aprilie 2016 22:33:26
Problema Casa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void task2()’: user.cpp:87:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%d", &a[(i - 1) * m + j]); ^ user.cpp:82:15: warning: unused variable ‘r’ [-Wunused-variable] int i, j, r, d; ^ user.cpp:82:18: warning: unused variable ‘d’ [-Wunused-variable] int i, j, r, d; ^ user.cpp: In function ‘void write()’: user.cpp:141:13: warning: unused variable ‘ak’ [-Wunused-variable] int ak = 47; ^ user.cpp: In function ‘void read()’: user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("casa.in", "r", stdin); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); ^ user.cpp: In function ‘void task1()’: user.cpp:25:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &nr); ^ user.cpp:30:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %c\n", &r, &d); ^ user.cpp: In function ‘void task2()’: user.cpp:83:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:87:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[(i - 1) * m + j]); ^ user.cpp: In function ‘void write()’: user.cpp:104:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("casa.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbOK10
20ms452kbOK10
34ms536kbOK10
448ms1088kbOK10
540ms1012kbOK10
644ms1000kbOK10
716ms536kbOK10
816ms544kbOK10
936ms960kbOK10
1036ms964kbOK10
Punctaj total100

Ceva nu functioneaza?