Borderou de evaluare (job #1398384)

Utilizator smaraldaSmaranda Dinu smaralda Data 24 martie 2015 10:24:35
Problema Curent Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 5

Raport evaluator

Compilare: user.cpp: In member function ‘void EVENT::read()’: user.cpp:20:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘bool*’ [-Wformat=] scanf("%d%d%d", &day, &node, &val); ^ user.cpp: In function ‘int main()’: user.cpp:108:21: warning: unused variable ‘m’ [-Wunused-variable] int n, i, papi, m, nQueries, nEvents, day, ev; ^ user.cpp:106:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("curent.in", "r", stdin); ^ user.cpp:107:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("curent.out", "w", stdout); ^ user.cpp:110:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:112:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &papi); ^ user.cpp:115:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nEvents); ^ user.cpp:123:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nQueries); ^ user.cpp:127:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &day); ^ user.cpp: In member function ‘void EVENT::read()’: user.cpp:20:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &day, &node, &val); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1472kbRaspuns gresit0
20ms1472kbRaspuns gresit0
30ms1472kbOK5
40ms1472kbRaspuns gresit0
50ms1472kbRaspuns gresit0
620ms1952kbRaspuns gresit0
724ms2588kbRaspuns gresit0
856ms2720kbRaspuns gresit0
968ms3416kbRaspuns gresit0
10108ms4320kbRaspuns gresit0
11192ms5540kbRaspuns gresit0
1284ms5940kbKilled by signal 11(SIGSEGV).0
13104ms6008kbKilled by signal 11(SIGSEGV).0
14112ms6924kbKilled by signal 11(SIGSEGV).0
Punctaj total5

Ceva nu functioneaza?