Problem justright
User dinginandy
Submission Time 2026-11-06 14:04:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

justright.cpp: In function ‘int main()’:
justright.cpp:2:18: error: declaration does not declare anything [-fpermissive]
2 | #define int long long;
| ^~~~
justright.cpp:5:5: note: in expansion of macro ‘int’
5 | int n; cin>>n;
| ^~~
justright.cpp:5:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int n; cin>>n;
| ^
| yn
justright.cpp:2:18: error: declaration does not declare anything [-fpermissive]
2 | #define int long long;
| ^~~~
justright.cpp:6:5: note: in expansion of macro ‘int’
6 | int k; cin>>k;
| ^~~
justright.cpp:6:9: error: ‘k’ was not declared in this scope
6 | int k; cin>>k;
| ^
justright.cpp:2:18: error: template argument 1 is invalid
2 | #define int long long;
| ^~~~
justright.cpp:7:12: no