Problem binaryspells
User ayeohkay
Submission Time 2023-11-17 11:30:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
binaryspells.cpp: In function ‘int main()’:
binaryspells.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
binaryspells.cpp:5:2: note: in expansion of macro ‘int’
5 | int n, x; cin >> n >> x;
| ^~~
binaryspells.cpp:5:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int n, x; cin >> n >> x;
| ^
| yn
binaryspells.cpp:5:9: error: ‘x’ was not declared in this scope
5 | int n, x; cin >> n >> x;
| ^
binaryspells.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
binaryspells.cpp:6:2: note: in expansion of macro ‘int’
6 | int d[n], c[n];
| ^~~
binaryspells.cpp:6:6: error: ‘d’ was not declared in this scope<