Problem globalwarming
User dzuizz
Submission Time 2023-07-02 14:02:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:17:20: error: ‘memset’ was not declared in this scope
17 | bool vis[n+2]; memset(vis, 0, sizeof(vis));
| ^~~~~~
globalwarming.cpp:5:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
4 | #include<set>
+++ |+#include <cstring>
5 | using namespace std;