Borderou de evaluare (job #1548682)

Utilizator geniucosOncescu Costin geniucos Data 11 decembrie 2015 13:25:46
Problema Politia Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void Test()’: user.cpp:73:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &net.N, &M), net.S = 1, net.D = net.N; ^ user.cpp:77:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d", &x, &y, &c); ^ user.cpp: In function ‘int main()’: user.cpp:94:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("politia.in", "r", stdin); ^ user.cpp:95:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("politia.out", "w", stdout); ^ user.cpp:97:112: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d %d %d", &N2, &N4, &N1, &N3, &N5), net.N = N1 + N2 + N3 + N4 + N5 + 2, net.S = 1, net.D = net.N; ^ user.cpp:106:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &l); ^ user.cpp:108:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x), net.add_edge (code (1, x), code (2, i), 1); ^ user.cpp:109:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &l); ^ user.cpp:111:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x), net.add_edge (code (2, i), code (3, x), 1); ^ user.cpp:117:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &l); ^ user.cpp:119:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x), net.add_edge (code (3, x), code (4, i), 1); ^ user.cpp:120:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &l); ^ user.cpp:122:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x), net.add_edge (code (4, i), code (5, x), 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms424kbOK10
20ms472kbOK10
30ms472kbIncorect0
44ms548kbOK10
54ms512kbIncorect0
64ms548kbIncorect0
74ms652kbKilled by signal 11(SIGSEGV).0
84ms656kbKilled by signal 11(SIGSEGV).0
94ms652kbKilled by signal 11(SIGSEGV).0
104ms656kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?