Borderou de evaluare (job #1093436)

Utilizator lianaliana tucar liana Data 27 ianuarie 2014 23:33:14
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'void citire()': main.cpp:18:33: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld %ld %ld",&n,&m,&q); ^ main.cpp:18:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:18:33: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp: In function 'int main()': main.cpp:136:48: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld %ld %ld %ld",&l1,&c1,&l2,&c2); ^ main.cpp:136:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:136:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:136:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=] main.cpp:138:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld\n",(dparc+1)/2); ^ main.cpp: In function 'void citire()': main.cpp:18:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld",&n,&m,&q); ^ main.cpp:21:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ca); ^ main.cpp:24:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ca); ^ main.cpp: In function 'int main()': main.cpp:119:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pirati.in","r",stdin); ^ main.cpp:120:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pirati.out","w",stdout); ^ main.cpp:136:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld %ld",&l1,&c1,&l2,&c2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
125ms12713kbOK!8
235ms13893kbOK!10
368ms20316kbRaspuns gresit!0
4452ms32243kbTime limit exceeded0
5216ms37355kbKilled by Signal 110
6254ms37224kbKilled by Signal 110
7259ms36962kbKilled by Signal 110
8275ms37093kbKilled by Signal 110
9271ms37879kbKilled by Signal 110
10265ms37261kbKilled by Signal 110
1124ms12320kbOK!1
1227ms12320kbOK!1
Punctaj total20

Ceva nu functioneaza?