molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:19:5: error: 'dp' was not declared in this scope; did you mean 'p'?
19 | dp[0] = -1;
| ^~
| p
molecules.cpp:31:15: error: 'j' was not declared in this scope
31 | if (p[j] != 0){
| ^
molecules.cpp:33:13: error: 'x' was not declared in this scope
33 | x = j;
| ^
molecules.cpp:42:12: error: could not convert '0' from 'int' to 'std::vector<int>'
42 | return 0;
| ^
| |
| int
molecules.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~