Problem rank
User dzuizz
Submission Time 2025-09-06 11:30:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rank.cpp: In function ‘int main()’:
rank.cpp:10:14: error: ‘memset’ was not declared in this scope
10 | int deg[k]; memset(deg,0,sizeof deg);
| ^~~~~~
rank.cpp:4:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
3 | #include<queue>
+++ |+#include <cstring>
4 | using namespace std;