Problem | knapsack |
---|---|
User | snorky |
Submission Time | 2024-01-24 21:10:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knapsack.cpp:50:5: error: redefinition of ‘int main()’
50 | int main() {
| ^~~~
knapsack.cpp:14:5: note: ‘int main()’ previously defined here
14 | int main() {
| ^~~~
knapsack.cpp:69:5: error: redefinition of ‘int helper(std::vector<int>&, std::vector<int>&, std::vector<int>&, int, int)’
69 | int helper(vector<int>& v, vector<int>& w, vector<int>& k, int S, int index) {
| ^~~~~~
knapsack.cpp:33:5: note: ‘int helper(std::vector<int>&, std::vector<int>&, std::vector<int>&, int, int)’ previously defined here
33 | int helper(vector<int>& v, vector<int>& w, vector<int>& k, int S, int index) {
| ^~~~~~