Pagini recente » Borderou de evaluare (job #1847424) | Borderou de evaluare (job #2673731) | Borderou de evaluare (job #525825) | Borderou de evaluare (job #849241) | Borderou de evaluare (job #2669205)
Borderou de evaluare (job #2669205)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:25: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&n,&k);
^
main.cpp:25:25: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
main.cpp:26:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld",&a[1]);
^
main.cpp:32:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld",&a[i]);
^
main.cpp:65:22: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld",rasp);
^
main.cpp:23:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("transport.in","r",stdin);
^
main.cpp:24:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("transport.out","w",stdout);
^
main.cpp:25:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&n,&k);
^
main.cpp:26:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&a[1]);
^
main.cpp:32:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 3ms | 131kb | OK | 10 |
5 | 5ms | 131kb | Incorect | 0 |
6 | 6ms | 262kb | Incorect | 0 |
7 | 8ms | 262kb | OK | 10 |
8 | 9ms | 262kb | Incorect | 0 |
9 | 9ms | 262kb | Incorect | 0 |
10 | 9ms | 262kb | Incorect | 0 |
Punctaj total | 50 |