Pagini recente » Borderou de evaluare (job #2219942) | Borderou de evaluare (job #1092424) | Borderou de evaluare (job #1104337) | Borderou de evaluare (job #494483) | Borderou de evaluare (job #2568560)
Borderou de evaluare (job #2568560)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:28:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (i-j<=powerup1[j])
^
main.cpp:40:58: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if (dp[i]==dp[j]+1 && cost[i]>cost[j]+(i-j+1)>>1)
~~~~~~~^~~~~~~~
main.cpp:41:40: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
cost[i]=cost[j]+(i-j+1)>>1;
~~~~~~~^~~~~~~~
main.cpp:35:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (i-j<=powerup2[j]<<1)
^
main.cpp:8:38: 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);
^
main.cpp:9:40: 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);
^
main.cpp:13:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
main.cpp:14:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (scanf ("%d", &i); i; i--) {
^
main.cpp:15:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &a, &b);
^
main.cpp:18:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (scanf ("%d", &i); i; i--) {
^
main.cpp:19:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | OK | 5 |
3 | 2ms | 131kb | OK | 5 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | OK | 5 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | OK | 5 |
11 | 2ms | 131kb | Incorect | 0 |
12 | 2ms | 131kb | Incorect | 0 |
13 | 3ms | 131kb | Killed by Signal 11 | 0 |
14 | 2ms | 131kb | Wall time limit exceeded | 0 |
15 | 2ms | 131kb | Wall time limit exceeded | 0 |
16 | 4ms | 131kb | Killed by Signal 11 | 0 |
17 | 4ms | 131kb | Killed by Signal 11 | 0 |
18 | 2ms | 131kb | Wall time limit exceeded | 0 |
19 | 7ms | 131kb | Incorect | 0 |
20 | 7ms | 131kb | Wall time limit exceeded | 0 |
Punctaj total | 20 |