Borderou de evaluare (job #303489)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&n,&t);
^
user.cpp:9:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:10:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
for (i=1; i<=n; ++i) scanf("%ld",&a[i]);
^
user.cpp:13:31: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&x);
^
user.cpp:47:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld\n",max);
^
user.cpp:7:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("panouri.in","r",stdin);
^
user.cpp:8:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("panouri.out","w",stdout);
^
user.cpp:9:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&n,&t);
^
user.cpp:10:51: 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",&a[i]);
^
user.cpp:13:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 292kb | OK | 10 |
3 | 0ms | 308kb | OK | 10 |
4 | 4ms | 328kb | OK | 10 |
5 | 4ms | 324kb | OK | 10 |
6 | 44ms | 964kb | OK | 10 |
7 | 52ms | 1096kb | OK | 10 |
8 | 60ms | 1188kb | OK | 10 |
9 | 48ms | 1116kb | OK | 10 |
10 | 60ms | 1188kb | OK | 10 |
Punctaj total | 100 |