Problem | adjmatrix |
---|---|
User | shenshiqi |
Submission Time | 2025-02-12 16:33:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:8:2: error: ‘memset’ was not declared in this scope
8 | memset(matrix, 0, sizeof(matrix));
| ^~~~~~
adjmatrix.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include <iostream>
+++ |+#include <cstring>
2 | using namespace std;