Problem coinjourney
User PlayVoltz
Submission Time 2023-08-15 19:14:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinjourney.cpp: In function ‘int main()’:
coinjourney.cpp:11:22: error: expected ‘)’ before ‘;’ token
11 | msum = max(msum, sum;)
| ~ ^
| )
coinjourney.cpp:11:23: error: expected primary-expression before ‘)’ token
11 | msum = max(msum, sum;)
| ^
coinjourney.cpp:12:16: error: ‘i’ was not declared in this scope
12 | for (int i=1; i<n; ++i){
| ^