| Problem | magiccarps |
|---|---|
| User | AaravRastogi |
| Submission Time | 2026-01-27 23:35:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
magiccarps.cpp: In function ‘int main()’:
magiccarps.cpp:13:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
13 | ans = max(ans,J[i-2]*(E[i]+E[i-1])+J[i-1]*(E[i]+E[i-2])+J[i]*(E[i-2]+E[i-1]);}
| ^~~
| abs
magiccarps.cpp:13:79: error: expected ‘)’ before ‘;’ token
13 | ans = max(ans,J[i-2]*(E[i]+E[i-1])+J[i-1]*(E[i]+E[i-2])+J[i]*(E[i-2]+E[i-1]);}
| ~ ^
| )
magiccarps.cpp:15:8: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | cout<<ans;
| ^~~
| abs