Problem gather
User user123
Submission Time 2026-05-29 19:41:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gather.cpp: In function ‘int car_gathering(int, std::vector<int>, std::vector<int>)’:
gather.cpp:18:22: error: ‘memset’ was not declared in this scope
18 | int counts[101]; memset(counts,0,sizeof(counts));
| ^~~~~~
gather.cpp:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
2 | #include <algorithm>
+++ |+#include <cstring>
3 | using namespace std;