Problem snack
User AltheaZ
Submission Time 2023-11-10 10:56:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
snack.cpp:12:33: note: in expansion of macro ‘int’
12 | if (x != 'M') row.push_back(int(x - '0'));
| ^~~
snack.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
snack.cpp:16:55: note: in expansion of macro ‘int’
16 | if (x != 'M' && row[i - 1] > 0) row[i - 1] += int(x - '0');
| ^~~
snack.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
snack.cpp:19:28: note: in expansion of macro ‘int’
19 | else row.push_back(int(x - '0'));
| ^~~
snack.cpp:29:38: error: no matching function for call to ‘ma