Borderou de evaluare (job #1093440)

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

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:135: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:135:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:135:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:135:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=] main.cpp:137:33: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld\n",(dparc)/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:118: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:119: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:135: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
158ms24641kbOK!8
268ms25034kbOK!10
3124ms26476kbOK!10
4219ms28573kbOK!10
5452ms33554kbTime limit exceeded0
6452ms33423kbTime limit exceeded0
7451ms33292kbTime limit exceeded0
8453ms33292kbTime limit exceeded0
9453ms34471kbTime limit exceeded0
10451ms33423kbTime limit exceeded0
1156ms24379kbOK!1
1256ms24379kbOK!1
Punctaj total40

Ceva nu functioneaza?