Pagini recente » Borderou de evaluare (job #1811183) | Borderou de evaluare (job #3192761) | Borderou de evaluare (job #3269604) | Borderou de evaluare (job #1727849) | Borderou de evaluare (job #1320110)
Borderou de evaluare (job #1320110)
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 | 432kb | OK | 10 |
2 | 0ms | 428kb | Incorect | 0 |
3 | 4ms | 588kb | OK | 10 |
4 | 56ms | 1988kb | Incorect | 0 |
5 | 0ms | 424kb | OK | 10 |
6 | 4ms | 588kb | OK | 10 |
7 | 52ms | 1984kb | OK | 10 |
8 | 8ms | 748kb | Incorect | 0 |
9 | 64ms | 1848kb | OK | 10 |
10 | 60ms | 1852kb | OK | 10 |
Punctaj total | 70 |