Problem molecules
User eulerleonhardfan
Submission Time 2024-09-03 18:13:30
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:96:12: error: expected ‘}’ at end of input
96 | return res;
| ^
molecules.cpp:68:54: note: to match this ‘{’
68 | vector<int> find_subset(int l, int u, vector<int> w) {
| ^