Pagini recente » Borderou de evaluare (job #949820) | Borderou de evaluare (job #2552060) | Borderou de evaluare (job #2122754) | Borderou de evaluare (job #2383559) | Borderou de evaluare (job #2301177)
Borderou de evaluare (job #2301177)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:15:29: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&a[i],&b[i]);
^
main.cpp:15:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
main.cpp:16:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&K,&P);
^
main.cpp:16:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
main.cpp:36:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=0; i<n; i++)
^~~
main.cpp:46:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
sum=0;
^~~
main.cpp:54:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld",TMin);
^
main.cpp:10:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("checkin.in","r",stdin);
^
main.cpp:11:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("checkin.out","w",stdout);
^
main.cpp:13:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:15:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&a[i],&b[i]);
^
main.cpp:16:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&K,&P);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 6ms | 131kb | OK | 10 |
6 | 12ms | 131kb | OK | 10 |
7 | 5ms | 131kb | OK | 10 |
8 | 2ms | 131kb | OK | 10 |
9 | 33ms | 131kb | OK | 10 |
10 | 18ms | 131kb | OK | 10 |
Punctaj total | 100 |