Pagini recente » Borderou de evaluare (job #1767795) | Borderou de evaluare (job #2601310) | Borderou de evaluare (job #1398401) | Borderou de evaluare (job #700919) | Borderou de evaluare (job #1223672)
Borderou de evaluare (job #1223672)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for (int i=1;i<=n;++i) scanf("%d",S+i);
^
user.cpp:17:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (S[i]<S[j])
^
user.cpp:29:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d %d\n",Max,T);
^
user.cpp:29:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("decrease.in","r",stdin);
^
user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("decrease.out","w",stdout);
^
user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:12:43: 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("%d",S+i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 436kb | Incorect | 0 |
2 | 0ms | 432kb | Incorect | 0 |
3 | 0ms | 436kb | Incorect | 0 |
4 | 0ms | 436kb | Incorect | 0 |
5 | 0ms | 432kb | Incorect | 0 |
6 | 4ms | 460kb | Incorect | 0 |
7 | 0ms | 436kb | Incorect | 0 |
8 | 60ms | 540kb | Incorect | 0 |
9 | 96ms | 552kb | Incorect | 0 |
10 | 84ms | 540kb | Incorect | 0 |
Punctaj total | 0 |