Problem | 01knapsack |
---|---|
User | personjs |
Submission Time | 2025-02-04 20:45:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp:1:2: error: invalid preprocessing directive #inlucde; did you mean #include?
1 | #inlucde <cstdio>
| ^~~~~~~
| include
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:20:2: error: ‘scanf’ was not declared in this scope
20 | scanf("%d%d", &n, &w);
| ^~~~~
01knapsack.cpp:26:2: error: ‘printf’ was not declared in this scope
26 | printf("%d", knapSack(w, val, wt));
| ^~~~~~
01knapsack.cpp:3:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
2 | #include <vector>
+++ |+#include <cstdio>
3 |