Bruno.code:7:5: error: ‘map’ does not name a type
7 | map<string, int> M;
| ^~~
Bruno.code: In function ‘void Bruno::init(int, int)’:
Bruno.code:11:9: error: ‘mt19937’ was not declared in this scope; did you mean ‘std::mt19937’?
11 | mt19937 rnd;
| ^~~~~~~
| std::mt19937
In file included from /usr/include/c++/11/random:49,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:108,
from Bruno.code:1:
/usr/include/c++/11/bits/random.h:1578:37: note: ‘std::mt19937’ declared here
1578 | 0xefc60000UL, 18, 1812433253UL> mt19937;
| ^~~~~~~
Bruno.code:12:44: error: ‘rnd’ was not declared in this scope; did you mean ‘rand’?
12 | for (int i = 0; i < n; ++i) v[i] = rnd() % 3;
| ^~~
| rand
Bruno.code:14:13: error: ‘string’ was not declared in this scope
14 | string o;
| ^~~~~~
Bruno.code:14:13: note: suggested alternatives:
In file included from /usr/include/c++/11/iosfwd:39,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Bruno.code:1:
/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Bruno.code:1:
/usr/include/c++/11/string:67:11: note: ‘std::pmr::string’
67 | using string = basic_string<char>;
| ^~~~~~
Bruno.code:16:17: error: ‘o’ was not declared in this scope
16 | o += "012"[v[i + j * 2]];
| ^
Bruno.code:17:41: error: ‘M’ was not declared in this scope
17 | if (j == 12 || j == 13) M[o] = i + 1;
| ^
Bruno.code: At global scope:
Bruno.code:26:15: error: ‘string’ was not declared in this scope
26 | int bruno(string s) {
| ^~~~~~
Bruno.code:26:15: note: suggested alternatives:
In file included from /usr/include/c++/11/iosfwd:39,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Bruno.code:1:
/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Bruno.code:1:
/usr/include/c++/11/string:67:11: note: ‘std::pmr::string’
67 | using string = basic_string<char>;
| ^~~~~~
Bruno.code:43:11: error: ‘int bruno’ redeclared as different kind of entity
43 | int bruno(string s) {
| ^~~~~~
In file included from Bruno.code:2:
Bruno.h:6:5: note: previous declaration ‘int bruno(std::string)’
6 | int bruno(std::string u);
| ^~~~~
Bruno.code:43:11: error: ‘string’ was not declared in this scope
43 | int bruno(string s) {
| ^~~~~~
Bruno.code:43:11: note: suggested alternatives:
In file included from /usr/include/c++/11/iosfwd:39,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Bruno.code:1:
/usr/include/c++...