Problem | mugger |
---|---|
User | helloworld |
Submission Time | 2024-02-27 07:41:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mugger.cpp: In function ‘int main()’:
mugger.cpp:28:21: error: expected ‘;’ before ‘<’ token
28 | for(int i = cur, i < n; i++) {
| ^~
| ;
mugger.cpp:28:22: error: expected primary-expression before ‘<’ token
28 | for(int i = cur, i < n; i++) {
| ^
mugger.cpp:30:66: error: expected ‘)’ before ‘;’ token
30 | ans = max(ans, ans + a[i] - (d[i] - d[cur]) * (d[i] - d[cur]);
| ~ ^
| )