Problem molecules
User eulerleonhardfan
Submission Time 2024-09-03 18:13:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

molecules.cpp: In function ‘std::vector<int> find_subset(int, int, std::vector<int>)’:
molecules.cpp:76:26: error: ‘r’ was not declared in this scope
76 | if (l <= sum and sum <= r) {
| ^
molecules.cpp:77:13: error: expected ‘;’ before numeric constant
77 | for (int i 0; i < n; i++) res.pb(i);
| ^~
| ;
molecules.cpp:77:22: error: expected ‘)’ before ‘;’ token
77 | for (int i 0; i < n; i++) res.pb(i);
| ~ ^
| )
molecules.cpp:77:24: error: ‘i’ was not declared in this scope
77 | for (int i 0; i < n; i++) res.pb(i);
| ^