Problem graphcraft
User jeongwonho64
Submission Time 2023-06-04 09:59:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:34:5: error: ‘memset’ was not declared in this scope
34 | memset(dp,-1,sizeof dp);
| ^~~~~~
graphcraft.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include "graphcraft.h"
+++ |+#include <cstring>
2 | #include <vector>
graphcraft.cpp:35:20: error: expected ‘;’ before ‘<’ token
35 | for(int i = 1,i < n;i++){
| ^~
| ;
graphcraft.cpp:35:21: error: expected primary-expression before ‘<’ token
35 | for(int i = 1,i < n;i++){
| ^
graphcraft.cpp:35:23: error: ‘n’ was not declared in this scope
35 | for(int i = 1,i < n;i++){
| ^