Problem waterbottles3
User brat
Submission Time 2025-09-25 21:24:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles3.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
waterbottles3.cpp:5:1: note: in expansion of macro ‘int’
5 | int n, q, x;
| ^~~
waterbottles3.cpp:5:5: error: ‘n’ does not name a type; did you mean ‘yn’?
5 | int n, q, x;
| ^
| yn
waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
waterbottles3.cpp:9:2: note: in expansion of macro ‘int’
9 | int bottles[n], index, value, ans=0;
| ^~~
waterbottles3.cpp:9:6: error: ‘bottles’ was not declared in this scope
9 | int bottles[n], index, value, ans=0;
| ^~~~~~~
waterbottles3.cpp:9:14: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | int bottles[n], index, value, ans=0;