Problem buygifts
User Henries
Submission Time 2024-10-12 23:37:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buygifts.cpp:7:2: error: expected initializer before ‘long’
7 | long long ans = INT_MAX;
| ^~~~
buygifts.cpp:8:2: error: expected unqualified-id before ‘for’
8 | for(int i = 0;i<m-1;i++){
| ^~~
buygifts.cpp:8:16: error: ‘i’ does not name a type
8 | for(int i = 0;i<m-1;i++){
| ^
buygifts.cpp:8:22: error: ‘i’ does not name a type
8 | for(int i = 0;i<m-1;i++){
| ^
buygifts.cpp:12:2: error: ‘cout’ does not name a type
12 | cout << ans;
| ^~~~
buygifts.cpp:13:1: error: expected declaration before ‘}’ token
13 | }
| ^
buygifts.cpp: In function ‘int main()’:
buygifts.cpp:26:2: error: ‘solve’ was not declared in this scope
26 | solve(pq,m);
| ^~~~~