Problem snack
User SB
Submission Time 2023-03-01 10:07:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp:4:14: error: expected unqualified-id before ‘long’
4 | #define int (long long)
| ^~~~
snack.cpp:6:1: note: in expansion of macro ‘int’
6 | int N;
| ^~~
snack.cpp:4:14: error: expected ‘)’ before ‘long’
4 | #define int (long long)
| ~^~~~
snack.cpp:6:1: note: in expansion of macro ‘int’
6 | int N;
| ^~~
snack.cpp:4:14: error: expected unqualified-id before ‘long’
4 | #define int (long long)
| ^~~~
snack.cpp:9:1: note: in expansion of macro ‘int’
9 | int k[1000010];
| ^~~
snack.cpp:4:14: error: expected ‘)’ before ‘long’
4 | #define int (long long)
| ~^~~~
snack.cpp:9:1: note: in expansion of macro ‘int’
9 | int k[1000010];
| ^~~
snack.cpp: In function ‘int32_t main()’:
snack.cpp:12:12: error: ‘N’ was not declared in this scope
12 | cin >> N;
|