Pagini recente » Borderou de evaluare (job #2148881) | Cod sursa (job #41533) | Cod sursa (job #4579) | Diferente pentru suffix-array-liniar intre reviziile 60 si 61 | Borderou de evaluare (job #2578881)
Borderou de evaluare (job #2578881)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:35:33: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
dp[i & 1][j] = dp[1 - i & 1][j];
~~^~~
main.cpp:36:36: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
if(dp[i & 1][j] < dp[1 - i & 1][r] + v[i])
~~^~~
main.cpp:37:37: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
dp[i & 1][j] = dp[1 - i & 1][r] + v[i];
~~^~~
main.cpp: In function 'void read()':
main.cpp:13:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &P);
^
main.cpp:15:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp: In function 'int main()':
main.cpp:23:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("conserve.in", "r", stdin);
^
main.cpp:24:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("conserve.out", "w", stdout);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | Format solutie gresit | 0 |
| 2 | 2ms | 131kb | Format solutie gresit | 0 |
| 3 | 3ms | 131kb | Format solutie gresit | 0 |
| 4 | 2ms | 131kb | Format solutie gresit | 0 |
| 5 | 2ms | 131kb | Format solutie gresit | 0 |
| 6 | 2ms | 131kb | Format solutie gresit | 0 |
| 7 | 3ms | 131kb | Format solutie gresit | 0 |
| 8 | 2ms | 131kb | Format solutie gresit | 0 |
| 9 | 3ms | 131kb | Format solutie gresit | 0 |
| 10 | 2ms | 131kb | Format solutie gresit | 0 |
| 11 | 16ms | 131kb | Format solutie gresit | 0 |
| 12 | 4ms | 131kb | Format solutie gresit | 0 |
| 13 | 33ms | 131kb | Format solutie gresit | 0 |
| 14 | 8ms | 131kb | Format solutie gresit | 0 |
| 15 | 44ms | 131kb | Format solutie gresit | 0 |
| 16 | 87ms | 131kb | Format solutie gresit | 0 |
| 17 | 44ms | 131kb | Format solutie gresit | 0 |
| 18 | 3ms | 131kb | Format solutie gresit | 0 |
| 19 | 73ms | 131kb | Format solutie gresit | 0 |
| 20 | 17ms | 131kb | Format solutie gresit | 0 |
| Punctaj total | 0 |