Problem barbecue
User haroldpyh
Submission Time 2025-12-29 15:04:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

barbecue.cpp: In function ‘int main()’:
barbecue.cpp:9:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | if (n == 1) {
| ^
| yn
barbecue.cpp:12:11: error: ‘d’ was not declared in this scope
12 | if (x > d) {
| ^
barbecue.cpp:18:7: error: redeclaration of ‘long long int n’
18 | int n, m, k, d; cin >> n >> m >> k >> d;
| ^
barbecue.cpp:9:6: note: ‘<typeprefixerror>n’ previously declared here
9 | if (n == 1) {
| ^