Borderou de evaluare (job #1331227)

Utilizator gapdanPopescu George gapdan Data 31 ianuarie 2015 14:00:38
Problema Cerc3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 12

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:32:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].r); ^ user.cpp:32:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:32:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp: In function ‘bool cmp(punct, punct)’: user.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:27:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cerc3.in","r",stdin); ^ user.cpp:28:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cerc3.out","w",stdout); ^ user.cpp:29:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:32:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].r); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbKilled by signal 11(SIGSEGV).0
20ms276kbUltimele doua valori gresite!2
30ms252kbKilled by signal 11(SIGSEGV).0
40ms256kbKilled by signal 11(SIGSEGV).0
54ms256kbKilled by signal 11(SIGSEGV).0
68ms264kbKilled by signal 11(SIGSEGV).0
720ms268kbKilled by signal 11(SIGSEGV).0
824ms276kbKilled by signal 11(SIGSEGV).0
944ms280kbKilled by signal 11(SIGSEGV).0
100ms280kbOK!10
Punctaj total12

Ceva nu functioneaza?