Pagini recente » Borderou de evaluare (job #671293) | Borderou de evaluare (job #2809220) | Borderou de evaluare (job #1599684) | Borderou de evaluare (job #594959) | Borderou de evaluare (job #1397597)
Borderou de evaluare (job #1397597)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:13:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
{scanf("%d",&a[i]);if(a[i]<0)a[i]=0;}
^
user.cpp:21:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",best);
^
user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma2.in","r",stdin);
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma2.out","w",stdout);
^
user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:13:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{scanf("%d",&a[i]);if(a[i]<0)a[i]=0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | OK | 10 |
2 | 0ms | 248kb | OK | 10 |
3 | 0ms | 264kb | OK | 10 |
4 | 0ms | 276kb | OK | 10 |
5 | 4ms | 284kb | OK | 10 |
6 | 4ms | 300kb | OK | 10 |
7 | 8ms | 344kb | OK | 10 |
8 | 20ms | 440kb | OK | 10 |
9 | 40ms | 540kb | OK | 10 |
10 | 48ms | 632kb | OK | 10 |
Punctaj total | 100 |