Borderou de evaluare (job #1094342)

Utilizator lianaliana tucar liana Data 29 ianuarie 2014 12:06:12
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 2

Raport evaluator

Compilare: main.cpp: In function 'void citire()': main.cpp:22: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:22:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:22: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:155: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:155:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:155:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:155:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=] main.cpp:157: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:22: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:25:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ca); ^ main.cpp:28: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:138: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:139: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:155: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
1451ms43028kbTime limit exceeded0
2453ms30281kbTime limit exceeded0
3450ms29757kbTime limit exceeded0
4453ms32514kbTime limit exceeded0
5452ms26615kbTime limit exceeded0
6453ms27140kbTime limit exceeded0
7453ms28446kbTime limit exceeded0
8459ms26218kbTime limit exceeded0
9452ms26222kbTime limit exceeded0
10452ms28450kbTime limit exceeded0
1133ms12320kbOK!1
1228ms12320kbOK!1
Punctaj total2

Ceva nu functioneaza?