Borderou de evaluare (job #1327975)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 27 ianuarie 2015 18:30:47
Problema Zoo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void compute()’: user.cpp:56:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&nd); ^ user.cpp:58:48: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] { scanf("%ld %ld %ld %ld",&xa,&ya,&xb,&yb); ^ user.cpp:58:48: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:58:48: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:58:48: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:83:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",np); ^ user.cpp: In function ‘int main()’: user.cpp:90:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:91:58: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] for(int i=1;i<=n;i++) scanf("%ld %ld",&a[i].x,&a[i].y); ^ user.cpp:91:58: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp: In function ‘void compute()’: user.cpp:55:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zoo.out","w",stdout); ^ user.cpp:56:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&nd); ^ user.cpp:58:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%ld %ld %ld %ld",&xa,&ya,&xb,&yb); ^ user.cpp: In function ‘int main()’: user.cpp:89:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] { freopen("zoo.in","r",stdin); ^ user.cpp:90:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:91:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=1;i<=n;i++) scanf("%ld %ld",&a[i].x,&a[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms392kbOK10
20ms388kbOK10
30ms456kbOK10
444ms1388kbOK10
5100ms1384kbOK10
6236ms1388kbOK10
7272ms1384kbOK10
8144ms1396kbOK10
9228ms1392kbOK10
10184ms1384kbOK10
Punctaj total100

Ceva nu functioneaza?