Pagini recente » Borderou de evaluare (job #726584) | Borderou de evaluare (job #1913841) | Borderou de evaluare (job #2612068) | Borderou de evaluare (job #336645) | Borderou de evaluare (job #1327975)
Borderou de evaluare (job #1327975)
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 |
1 | 0ms | 392kb | OK | 10 |
2 | 0ms | 388kb | OK | 10 |
3 | 0ms | 456kb | OK | 10 |
4 | 44ms | 1388kb | OK | 10 |
5 | 100ms | 1384kb | OK | 10 |
6 | 236ms | 1388kb | OK | 10 |
7 | 272ms | 1384kb | OK | 10 |
8 | 144ms | 1396kb | OK | 10 |
9 | 228ms | 1392kb | OK | 10 |
10 | 184ms | 1384kb | OK | 10 |
Punctaj total | 100 |