Pagini recente » Cod sursa (job #3181078) | Borderou de evaluare (job #2207676) | Cod sursa (job #2505316) | Borderou de evaluare (job #2327984) | Borderou de evaluare (job #1635401)
Borderou de evaluare (job #1635401)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(water[j]>=i-j)
^
user.cpp:38:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(energizer[j]>=(i-j)/2+(i-j)%2)
^
user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scara3.in","r",stdin);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scara3.out","w",stdout);
^
user.cpp:14:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:15:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:17:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:18:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&water[x]);
^
user.cpp:20:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&l);
^
user.cpp:22:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:23:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&energizer[x]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 284kb | OK | 5 |
2 | 0ms | 280kb | OK | 5 |
3 | 0ms | 280kb | OK | 5 |
4 | 0ms | 284kb | OK | 5 |
5 | 0ms | 284kb | OK | 5 |
6 | 0ms | 284kb | OK | 5 |
7 | 0ms | 284kb | OK | 5 |
8 | 0ms | 288kb | OK | 5 |
9 | 0ms | 288kb | OK | 5 |
10 | 0ms | 284kb | OK | 5 |
11 | 0ms | 284kb | OK | 5 |
12 | 0ms | 288kb | OK | 5 |
13 | 0ms | 288kb | OK | 5 |
14 | 8ms | 288kb | OK | 5 |
15 | 8ms | 288kb | OK | 5 |
16 | 0ms | 288kb | OK | 5 |
17 | 0ms | 292kb | OK | 5 |
18 | 0ms | 288kb | OK | 5 |
19 | 4ms | 288kb | OK | 5 |
20 | 8ms | 288kb | OK | 5 |
Punctaj total | 100 |