Problem adjmatrix
User weccs
Submission Time 2025-06-16 19:16:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:13:48: error: ‘flags’ was not declared in this scope
13 | fill(&matrix[0][0], &matrix[0][0] + sizeof(flags), 0);
| ^~~~~
adjmatrix.cpp:24:22: error: ‘begin’ was not declared in this scope
24 | for (auto j: i) {
| ^
adjmatrix.cpp:24:22: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from adjmatrix.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from adjmatrix.cpp:1:
/usr/include/c++/9/bits/fs_dir.h:516:3: note: ‘std::filesystem::__cxx11::begin’
516 | begin(recursive_directory