Borderou de evaluare (job #2141241)

Utilizator razvanradulescuRadulescu Razvan razvanradulescu Data 24 februarie 2018 11:22:34
Problema Civilizatie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void p1()’: user.cpp:24:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n%d", &n, &m, &t); ^ user.cpp: In function ‘void p2()’: user.cpp:31:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n%d\n%d", &n, &m, &t, &v); ^ user.cpp:34:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d\n", ma[i].x, ma[i].y); ^ user.cpp:34:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp: In function ‘void p1()’: user.cpp:24:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n%d", &n, &m, &t); ^ user.cpp: In function ‘void p2()’: user.cpp:31:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n%d\n%d", &n, &m, &t, &v); ^ user.cpp:34:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", ma[i].x, ma[i].y); ^ user.cpp: In function ‘int main()’: user.cpp:124:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("civilizatie.in", "r", stdin); ^ user.cpp:125:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("civilizatie.out", "w", stdout); ^ user.cpp:126:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms32748kbOK5
216ms32752kbOK5
316ms32752kbOK5
416ms32748kbOK5
516ms32684kbKilled by signal 11(SIGSEGV).0
616ms32684kbKilled by signal 11(SIGSEGV).0
716ms32688kbKilled by signal 11(SIGSEGV).0
816ms32680kbKilled by signal 11(SIGSEGV).0
916ms32684kbKilled by signal 11(SIGSEGV).0
1016ms32688kbKilled by signal 11(SIGSEGV).0
1116ms32688kbKilled by signal 11(SIGSEGV).0
1216ms32684kbKilled by signal 11(SIGSEGV).0
1316ms32688kbKilled by signal 11(SIGSEGV).0
1416ms32684kbKilled by signal 11(SIGSEGV).0
1516ms32684kbKilled by signal 11(SIGSEGV).0
1616ms32688kbKilled by signal 11(SIGSEGV).0
1716ms32680kbKilled by signal 11(SIGSEGV).0
1816ms32688kbKilled by signal 11(SIGSEGV).0
1916ms32688kbKilled by signal 11(SIGSEGV).0
2016ms32684kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?