Problem snack
User Ash
Submission Time 2024-04-18 20:49:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp:15:21: error: missing terminating " character
15 | a[i] = (s[i-1] == "M' ? -2 : s[i-1]-'0');
| ^~~~~~~~~~~~~~~~~~~~~~~
snack.cpp: In function ‘void solve()’:
snack.cpp:16:5: error: expected primary-expression before ‘}’ token
16 | }
| ^
snack.cpp:15:20: error: expected ‘)’ before ‘}’ token
15 | a[i] = (s[i-1] == "M' ? -2 : s[i-1]-'0');
| ~ ^
| )
16 | }
| ~