Bruno.code:9:5: error: ‘map’ does not name a type
9 | map<string, int> M;
| ^~~
Bruno.code: In function ‘void Bruno::init(int, int)’:
Bruno.code:13:9: error: ‘mt19937’ was not declared in this scope; did you mean ‘std::mt19937’?
13 | 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:14:44: error: ‘rnd’ was not declared in this scope; did you mean ‘rand’?
14 | for (int i = 0; i < n; ++i) v[i] = rnd() % 3;
| ^~~
| rand
Bruno.code:16:13: error: ‘string’ was not declared in this scope
16 | string o;
| ^~~~~~
Bruno.code:16: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:18:17: error: ‘o’ was not declared in this scope
18 | o += "012"[v[i + j * 2]];
| ^
Bruno.code:19:55: error: ‘M’ was not declared in this scope
19 | if (j == 2 * L - 2 || j == 2 * L - 1) M[o] = i + 1;
| ^
Bruno.code: At global scope:
Bruno.code:28:15: error: ‘string’ was not declared in this scope
28 | int bruno(string s) {
| ^~~~~~
Bruno.code:28: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>;
| ^~~~~~