Pagini recente » Borderou de evaluare (job #1545948) | Borderou de evaluare (job #48825) | Borderou de evaluare (job #528983) | Borderou de evaluare (job #3207466) | Borderou de evaluare (job #1272490)
Borderou de evaluare (job #1272490)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for(long long int i=1; i<=n; i++)scanf("%d",&v[i]);
^
user.cpp:61:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d",val+1);
^
user.cpp:62:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%d",val);
^
user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("patrate6.in","r",stdin);
^
user.cpp:36:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("patrate6.out","w",stdout);
^
user.cpp:37:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:38:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(n==1){ int x; scanf("%d",&x); printf("%d",x); }
^
user.cpp:41:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(long long int i=1; i<=n; i++)scanf("%d",&v[i]);
^
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
✓ | 1 | 0ms | 428kb | OK | 10 |
✓ | 2 | 0ms | 424kb | Incorect | 0 |
✓ | 3 | 4ms | 588kb | OK | 10 |
✓ | 4 | 56ms | 1992kb | Incorect | 0 |
✓ | 5 | 0ms | 420kb | OK | 10 |
✓ | 6 | 4ms | 584kb | OK | 10 |
✓ | 7 | 48ms | 1992kb | OK | 10 |
✓ | 8 | 8ms | 740kb | Incorect | 0 |
✓ | 9 | 64ms | 1848kb | OK | 10 |
✓ | 10 | 60ms | 1848kb | OK | 10 |
Punctaj total | 70 |