Borderou de evaluare (job #2129804)

Utilizator ana.pintiliciucAna Maria Pintiliciuc ana.pintiliciuc Data 13 februarie 2018 09:39:32
Problema Casa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:94:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%d ", &mat[i][j]); ^ user.cpp:78:24: warning: unused variable ‘d’ [-Wunused-variable] int n,m, nr=0, d=0,inc; ^ user.cpp:78:28: warning: unused variable ‘inc’ [-Wunused-variable] int n,m, nr=0, d=0,inc; ^ user.cpp:20: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:21: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); ^ user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); ^ user.cpp:27:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:32:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %c", &c, &b); ^ user.cpp:79:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:94:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &mat[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms868kbIncorect0
20ms816kbOK10
34ms800kbIncorect0
444ms1604kbIncorect0
536ms1588kbOK10
640ms1472kbIncorect0
78ms932kbIncorect0
816ms808kbOK10
928ms1340kbIncorect0
1036ms1412kbOK10
Punctaj total40

Ceva nu functioneaza?