Problem lunchbox
User Maggie
Submission Time 2023-11-09 10:21:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
lunchbox.cpp:6:2: note: in expansion of macro ‘int’
6 | int N; cin >> N;
| ^~~
lunchbox.cpp:6:6: error: ‘N’ was not declared in this scope
6 | int N; cin >> N;
| ^
lunchbox.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
lunchbox.cpp:7:1: note: in expansion of macro ‘int’
7 | int m; cin >> m
| ^~~
lunchbox.cpp:7:5: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
7 | int m; cin >> m
| ^
| tm
lunchbox.cpp:8:6: error: ‘A’ was not declared in this scope
8 | int A [m];
| ^
lunchbox.cpp:3:18: error: declaration does not declare anything [-fpermissi