| Problem | knapsack |
|---|---|
| User | undefinedcritter |
| Submission Time | 2026-10-28 00:16:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin.tie(0); // Fast IO, DO NOT FORGET!!
| ^~~
knapsack.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <vector>
+++ |+#include <iostream>
3 | using namespace std;
knapsack.cpp:8:2: error: ‘cout’ was not declared in this scope
8 | cout.sync_with_stdio(false);
| ^~~~
knapsack.cpp:8:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?