cluedo.cpp:8:1: error: 'mt19937_64' does not name a type
8 | mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
| ^~~~~~~~~~
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:11:4: error: 'vector' was not declared in this scope
11 | vector<int> loc, weap, who;
| ^~~~~~
cluedo.cpp:11:4: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cluedo.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cluedo.cpp:1:
/usr/include/c++/10/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
cluedo.cpp:11:11: error: expected primary-expression before 'int'
11 | vector<int> loc, weap, who;
| ^~~
cluedo.cpp:13:25: error: 'loc' was not declared in this scope; did you mean 'log'?
13 | for(int i=1;i<=6;i++) loc.pb(i), who.pb(i);
| ^~~
| log
cluedo.cpp:13:36: error: 'who' was not declared in this scope
13 | for(int i=1;i<=6;i++) loc.pb(i), who.pb(i);
| ^~~
cluedo.cpp:14:26: error: 'weap' was not declared in this scope
14 | for(int i=1;i<=10;i++) weap.pb(i);
| ^~~~
cluedo.cpp:16:15: error: 'loc' was not declared in this scope; did you mean 'log'?
16 | shuffle(all(loc), rng);
| ^~~
cluedo.cpp:6:16: note: in definition of macro 'all'
6 | #define all(x) x.begin(), x.end()
| ^
cluedo.cpp:16:21: error: 'rng' was not declared in this scope
16 | shuffle(all(loc), rng);
| ^~~
cluedo.cpp:16:3: error: 'shuffle' was not declared in this scope; did you mean 'std::shuffle'?
16 | shuffle(all(loc), rng);
| ^~~~~~~
| std::shuffle
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cluedo.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3748:5: note: 'std::shuffle' declared here
3748 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~~~~
cluedo.cpp:17:15: error: 'weap' was not declared in this scope
17 | shuffle(all(weap), rng);
| ^~~~
cluedo.cpp:6:16: note: in definition of macro 'all'
6 | #define all(x) x.begin(), x.end()
| ^
cluedo.cpp:18:15: error: 'who' was not declared in this scope
18 | shuffle(all(who), rng);
| ^~~
cluedo.cpp:6:16: note: in definition of macro 'all'
6 | #define all(x) x.begin(), x.end()
| ^
cluedo.cpp:20:3: error: 'array' was not declared in this scope; did you mean 'std::array'?
20 | array<int, 3> id={0, 0, 0};
| ^~~~~
| std::array
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cluedo.cpp:1:
/usr/include/c++/10/array:94:12: note: 'std::array' declared here
94 | struct array
| ^~~~~
cluedo.cpp:20:9: error: expected primary-expression before 'int'
20 | array<int, 3> id={0, 0, 0};
| ^~~
cluedo.cpp:22:21: error: 'id' was not declared in this scope
22 | int curr=Theory(id[0], id[1], id[2]);
| ^~