Pagini recente » Borderou de evaluare (job #1335348) | Borderou de evaluare (job #2626089) | Borderou de evaluare (job #2350980) | Borderou de evaluare (job #470862) | Borderou de evaluare (job #2039024)
Borderou de evaluare (job #2039024)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:29:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",s[poz]+(n-poz)*(h-1));
^
user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inundatie.in","r",stdin);
^
user.cpp:9:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inundatie.out","w",stdout);
^
user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:17:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
^
user.cpp:19:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&h);
^
user.cpp:29:32: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d\n",s[poz]+(n-poz)*(h-1));
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | Incorect | 0 |
2 | 0ms | 312kb | OK | 10 |
3 | 8ms | 404kb | Incorect | 0 |
4 | 20ms | 540kb | Incorect | 0 |
5 | 32ms | 636kb | OK | 10 |
6 | 44ms | 748kb | Incorect | 0 |
7 | 64ms | 1012kb | OK | 10 |
8 | 84ms | 1172kb | Incorect | 0 |
9 | 112ms | 1328kb | Incorect | 0 |
10 | 0ms | 280kb | OK | 10 |
Punctaj total | 40 |