0_0_37925583_26386.cpp:6:1: error: 'uint' does not name a type
uint n, a, b, s[maxn] = { 1 };
^
0_0_37925583_26386.cpp:8:8: error: 'uint' does not name a type
inline uint qmul(long long a, long long b, long long c) { return a * b % c; }
^
0_0_37925583_26386.cpp:9:1: error: 'uint' does not name a type
uint qmul0(uint a, uint b, const uint &mod) {
^
0_0_37925583_26386.cpp: In function 'int main()':
0_0_37925583_26386.cpp:22:17: error: 'n' was not declared in this scope
while (cin >> n >> a >> b) {
^
0_0_37925583_26386.cpp:22:22: error: 'a' was not declared in this scope
while (cin >> n >> a >> b) {
^
0_0_37925583_26386.cpp:22:27: error: 'b' was not declared in this scope
while (cin >> n >> a >> b) {
^
0_0_37925583_26386.cpp:23:10: error: 'uint' was not declared in this scope
for (uint i = 1; i <= n; ++i) {
^
0_0_37925583_26386.cpp:23:22: error: 'i' was not declared in this scope
for (uint i = 1; i <= n; ++i) {
^
0_0_37925583_26386.cpp:24:7: error: 's' was not declared in this scope
s[i] = qmul(s[i-1], a, b);
^
0_0_37925583_26386.cpp:24:31: error: 'qmul' was not declared in this scope
s[i] = qmul(s[i-1], a, b);
^
0_0_37925583_26386.cpp:26:9: error: 'uint' was not declared in this scope
map<uint, uint> mp;
^
0_0_37925583_26386.cpp:26:15: error: the value of 'uint' is not usable in a constant expression
map<uint, uint> mp;
^
0_0_37925583_26386.cpp:26:9: note: 'uint' was not declared 'constexpr'
map<uint, uint> mp;
^
0_0_37925583_26386.cpp:26:19: error: template argument 1 is invalid
map<uint, uint> mp;
^
0_0_37925583_26386.cpp:26:19: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
0_0_37925583_26386.cpp:26:19: error: expected a type, got 'uint'
0_0_37925583_26386.cpp:26:19: error: template argument 3 is invalid
0_0_37925583_26386.cpp:26:19: error: template argument 4 is invalid
0_0_37925583_26386.cpp:26:23: error: invalid type in declaration before ';' token
map<uint, uint> mp;
^
0_0_37925583_26386.cpp:27:10: error: expected ';' before 'ans'
uint ans = 1;
^
0_0_37925583_26386.cpp:28:15: error: expected ';' before 'i'
for (uint i = 1, t = min(a, n); i <= t; ++i) {
^
0_0_37925583_26386.cpp:28:37: error: 'i' was not declared in this scope
for (uint i = 1, t = min(a, n); i <= t; ++i) {
^
0_0_37925583_26386.cpp:28:42: error: 't' was not declared in this scope
for (uint i = 1, t = min(a, n); i <= t; ++i) {
^
0_0_37925583_26386.cpp:29:12: error: 's' was not declared in this scope
++mp[s[i]];
^
0_0_37925583_26386.cpp:30:7: error: 'ans' was not declared in this scope
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:30:26: error: request for member 'begin' in 'mp', which is of non-class type 'int'
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:30:45: error: 'qmul' was not declared in this scope
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:32:10: error: 's' was not declared in this scope
++mp[s[0]];
^
0_0_37925583_26386.cpp:33:15: error: expected ';' before 'i'
for (uint i = a; i < n; ++i) {
^
0_0_37925583_26386.cpp:33:22: error: 'i' was not declared in this scope
for (uint i = a; i < n; ++i) {
^
0_0_37925583_26386.cpp:35:35: error: request for member 'erase' in 'mp', which is of non-class type 'int'
if (0 == (--mp[s[i-a]])) mp.erase(s[i-a]);
^
0_0_37925583_26386.cpp:36:7: error: 'ans' was not declared in this scope
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:36:26: error: request for member 'begin' in 'mp', which is of non-class type 'int'
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:36:45: error: 'qmul' was not declared in this scope
ans = qmul(ans, mp.begin() -> first, b);
^
0_0_37925583_26386.cpp:38:13: error: 'ans' was not declared in this scope
cout << ans << "\n";
^
|