Problem graphcraft
User nguyendinhanh1508
Submission Time 2026-09-10 16:44:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp:10:1: error: ‘mt19937’ does not name a type
10 | mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
| ^~~~~~~
graphcraft.cpp: In function ‘int rnd(int, int)’:
graphcraft.cpp:13:9: error: ‘rng’ was not declared in this scope; did you mean ‘rnd’?
13 | return rng() % (y - x + 1) + x;
| ^~~
| rnd
graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:21:13: error: ‘graphin’ was not declared in this scope
21 | graphin[v].push_back(mp(i, w));
| ^~~~~~~
graphcraft.cpp:22:13: error: ‘graphout’ was not declared in this scope; did you mean ‘graphcraft’?
22 | graphout[i].push_back(mp(v, w));
| ^~~~~~~~
| graphcraft
graphcraft.cpp:26:14: error: ‘visited’ was not declared in this scope
26 | if (!visited[i]) {
|