Problem universe
User CKCodeBreaker55
Submission Time 2025-05-19 13:43:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

universe.cpp: In function ‘int main()’:
universe.cpp:46:3: error: ‘adjl’ was not declared in this scope
46 | adjl[X - 1].push_back(Y - 1);
| ^~~~
universe.cpp:48:14: error: ‘adjl’ was not declared in this scope
48 | count_paths(adjl, cats, 0, 0, K, 0);
| ^~~~
universe.cpp:48:2: error: ‘count_paths’ was not declared in this scope; did you mean ‘count_path’?
48 | count_paths(adjl, cats, 0, 0, K, 0);
| ^~~~~~~~~~~
| count_path
universe.cpp:49:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
49 | cout << count << endl;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,