Problem xmas
User Uoelpc
Submission Time 2023-11-15 09:43:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int32_t main()’:
xmas.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
xmas.cpp:7:1: note: in expansion of macro ‘int’
7 | int n; cin >> n;
| ^~~
xmas.cpp:7:5: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int n; cin >> n;
| ^
| yn
xmas.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
xmas.cpp:8:1: note: in expansion of macro ‘int’
8 | int k;
| ^~~
xmas.cpp:8:5: error: ‘k’ was not declared in this scope
8 | int k;
| ^
xmas.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
xmas.cpp:9:1: note: in expansion of macro ‘int’
9 | int gift[n];
| ^~~
xmas.c