Borderou de evaluare (job #1397160)

Utilizator atatomirTatomir Alex atatomir Data 23 martie 2015 12:10:52
Problema Tri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:53: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(i=1;i<=n;i++) scanf("%ld%ld",&p[i].x,&p[i].y); ^ user.cpp:26:53: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tri2.in","r",stdin); ^ user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tri2.out","w",stdout); ^ user.cpp:25:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:26:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;i++) scanf("%ld%ld",&p[i].x,&p[i].y); ^ user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&q); ^ user.cpp:30:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld",&p1,&p2,&p3); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbOK10
20ms440kbOK10
344ms432kbOK10
4Depăşit428kbTime limit exceeded.0
5Depăşit424kbTime limit exceeded.0
6Depăşit416kbTime limit exceeded.0
7Depăşit428kbTime limit exceeded.0
8Depăşit424kbTime limit exceeded.0
9Depăşit420kbTime limit exceeded.0
10Depăşit428kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?