Submission #80020


ソースコード

ステータス

項目 データ
問題 1815 - ボールの塗り分け
ユーザー名 seekworser
投稿日時 2024-07-18 19:44:28
言語 C++
状態 Compile Error
得点 0
ソースコード長 12626 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

In file included from ./Main.cpp:3:
./Main.cpp:58:7: error: expected nested-name-specifier before ‘ll’
 using ll = long long;
       ^~
./Main.cpp:59:7: error: expected nested-name-specifier before ‘pii’
 using pii = pair<int, int>; using pll = pair<ll, ll>;
       ^~~
./Main.cpp:59:35: error: expected nested-name-specifier before ‘pll’
 using pii = pair<int, int>; using pll = pair<ll, ll>;
                                   ^~~
./Main.cpp:60:7: error: expected nested-name-specifier before ‘vi’
 using vi = vector<int>;  using vvi = vector<vi>; using vvvi = vector<vvi>;
       ^~
./Main.cpp:60:32: error: expected nested-name-specifier before ‘vvi’
 using vi = vector<int>;  using vvi = vector<vi>; using vvvi = vector<vvi>;
                                ^~~
./Main.cpp:60:56: error: expected nested-name-specifier before ‘vvvi’
 using vi = vector<int>;  using vvi = vector<vi>; using vvvi = vector<vvi>;
                                                        ^~~~
./Main.cpp:61:7: error: expected nested-name-specifier before ‘vl’
 using vl = vector<ll>;  using vvl = vector<vl>; using vvvl = vector<vvl>;
       ^~
./Main.cpp:61:31: error: expected nested-name-specifier before ‘vvl’
 using vl = vector<ll>;  using vvl = vector<vl>; using vvvl = vector<vvl>;
                               ^~~
./Main.cpp:61:55: error: expected nested-name-specifier before ‘vvvl’
 using vl = vector<ll>;  using vvl = vector<vl>; using vvvl = vector<vvl>;
                                                       ^~~~
./Main.cpp:62:7: error: expected nested-name-specifier before ‘vb’
 using vb = vector<bool>; using vvb = vector<vb>; using vvvb = vector<vvb>;
       ^~
./Main.cpp:62:32: error: expected nested-name-specifier before ‘vvb’
 using vb = vector<bool>; using vvb = vector<vb>; using vvvb = vector<vvb>;
                                ^~~
./Main.cpp:62:56: error: expected nested-name-specifier before ‘vvvb’
 using vb = vector<bool>; using vvb = vector<vb>; using vvvb = vector<vvb>;
                                                        ^~~~
./Main.cpp:63:7: error: expected nested-name-specifier before ‘vc’
 using vc = vector<char>; using vvc = vector<vc>; using vvvc = vector<vvc>;
       ^~
./Main.cpp:63:32: error: expected nested-name-specifier before ‘vvc’
 using vc = vector<char>; using vvc = vector<vc>; using vvvc = vector<vvc>;
                                ^~~
./Main.cpp:63:56: error: expected nested-name-specifier before ‘vvvc’
 using vc = vector<char>; using vvc = vector<vc>; using vvvc = vector<vvc>;
                                                        ^~~~
./Main.cpp:64:7: error: expected nested-name-specifier before ‘vd’
 using vd = vector<double>; using vvd = vector<vd>; using vvvd = vector<vvd>;
       ^~
./Main.cpp:64:34: error: expected nested-name-specifier before ‘vvd’
 using vd = vector<double>; using vvd = vector<vd>; using vvvd = vector<vvd>;
                                  ^~~
./Main.cpp:64:58: error: expected nested-name-specifier before ‘vvvd’
 using vd = vector<double>; using vvd = vector<vd>; using vvvd = vector<vvd>;
                                                          ^~~~
./Main.cpp:65:7: error: expected nested-name-specifier before ‘vs’
 using vs = vector<string>; using vvs = vector<vector<string>>; using vvvs = vector<vector<vector<string>>>;
       ^~
./Main.cpp:65:34: error: expected nested-name-specifier before ‘vvs’
 using vs = vector<string>; using vvs = vector<vector<string>>; using vvvs = vector<vector<vector<string>>>;
                                  ^~~
./Main.cpp:65:70: error: expected nested-name-specifier before ‘vvvs’
 using vs = vector<string>; using vvs = vector<vector<string>>; using vvvs = vector<vector<vector<string>>>;
                                                                      ^~~~
./Main.cpp:66:37: error: ‘>>’ should be ‘> >’ within a nested template argument list
 template<typename T> vector<vector<T>> vv(int h, int w, T val = T()) { return vector(h, vector<T>(w, val)); }
                                     ^~
                                     > >
./Main.cpp: In function ‘std::vector<std::vector<_Tp> > vv(int, int, T)’:
./Main.cpp:66:85: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<T>> vv(int h, int w, T val = T()) { return vector(h, vector<T>(w, val)); }
                                                                                     ^
./Main.cpp: At global scope:
./Main.cpp:67:44: error: ‘>>’ should be ‘> >’ within a nested template argument list
 template<typename T> vector<vector<vector<T>>> vvv(int h1, int h2, int h3, T val = T()) { return vector(h1, vector(h2, vector<T>(h3, val))); }
                                            ^~
                                            > >
./Main.cpp: In function ‘std::vector<std::vector<std::vector<_Tp> > > vvv(int, int, int, T)’:
./Main.cpp:67:104: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<vector<T>>> vvv(int h1, int h2, int h3, T val = T()) { return vector(h1, vector(h2, vector<T>(h3, val))); }
                                                                                                        ^
./Main.cpp:67:115: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<vector<T>>> vvv(int h1, int h2, int h3, T val = T()) { return vector(h1, vector(h2, vector<T>(h3, val))); }
                                                                                                                   ^
In file included from ./Main.cpp:3:
./Main.cpp: At global scope:
./Main.cpp:68:51: error: ‘>>’ should be ‘> >’ within a nested template argument list
 template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
                                                   ^~
                                                   > >
./Main.cpp:68:53: error: ‘>>’ should be ‘> >’ within a nested template argument list
 template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
                                                     ^~
                                                     > >
./Main.cpp: In function ‘std::vector<std::vector<std::vector<std::vector<_Tp> > > > vvvv(int, int, int, int, T)’:
./Main.cpp:68:121: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
                                                                                                                         ^
./Main.cpp:68:132: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
                                                                                                                                    ^
./Main.cpp:68:143: error: missing template arguments before ‘(’ token
 template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
                                                                                                                                               ^
./Main.cpp: At global scope:
./Main.cpp:69:20: error: expected unqualified-id before ‘using’
 template <class T> using priority_queue_min = priority_queue<T, vector<T>, greater<T>>;
                    ^~~~~
./Main.cpp:71:1: error: ‘constexpr’ does not name a type; did you mean ‘ucontext’?
 constexpr double PI = 3.14159265358979323;
 ^~~~~~~~~
 ucontext
./Main.cpp:71:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
./Main.cpp:72:1: error: ‘constexpr’ does not name a type; did you mean ‘ucontext’?
 constexpr int INF = 100100111; constexpr ll INFL = 3300300300300300491LL;
 ^~~~~~~~~
 ucontext
./Main.cpp:72:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
./Main.cpp:72:32: error: ‘constexpr’ does not name a type; did you mean ‘ucontext’?
 constexpr int INF = 100100111; constexpr ll INFL = 3300300300300300491LL;
                                ^~~~~~~~~
                                ucontext
./Main.cpp:72:32: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
./Main.cpp:82:1: error: ‘constexpr’ does not name a type; did you mean ‘ucontext’?
 constexpr int MODINT998244353 = 998244353;
 ^~~~~~~~~
 ucontext
./Main.cpp:82:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
./Main.cpp:83:1: error: ‘constexpr’ does not name a type; did you mean ‘ucontext’?
 constexpr int MODINT1000000007 = 1000000007;
 ^~~~~~~~~
 ucontext
./Main.cpp:83:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
./Main.cpp: In constructor ‘Nyan::Nyan()’:
./Main.cpp:85:32: error: ‘nullptr’ was not declared in this scope
 struct Nyan { Nyan() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(18); } } nyan;
                                ^~~~~~~
In file included from ./Main.cpp:3:
./Main.cpp: At global scope:
./Main.cpp:103:38: error: ‘array’ was not declared in this scope
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                      ^~~~~
./Main.cpp:103:38: note: ‘std::array’ is only available from C++11 onwards
./Main.cpp:103:45: error: expected primary-expression before ‘,’ token
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                             ^
./Main.cpp:103:51: error: ‘a’ was not declared in this scope
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                                   ^
./Main.cpp:103:34: warning: variable templates only available with -std=c++14 or -std=gnu++14
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                  ^~~
./Main.cpp:103:53: error: expected ‘;’ before ‘{’ token
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                                     ^~
                                                     ;
./Main.cpp:104:38: error: ‘array’ was not declared in this scope
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                      ^~~~~
./Main.cpp:104:38: note: ‘std::array’ is only available from C++11 onwards
./Main.cpp:104:45: error: expected primary-expression before ‘,’ token
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                             ^
./Main.cpp:104:51: error: ‘a’ was not declared in this scope
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                                   ^
./Main.cpp:104:34: warning: variable templates only available with -std=c++14 or -std=gnu++14
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                  ^~~
./Main.cpp:104:53: error: expected ‘;’ before ‘{’ token
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                                     ^~
                                                     ;
./Main.cpp:105:40: error: ‘template<class T> T max(std::vector<_Tp>&)’ conflicts with a previous declaration
 template<typename T> T max(vector<T>& a) { return *max_element(all(a)); };
                                        ^
./Main.cpp:103:38: note: previous declaration ‘template<class T, long unsigned int N> T max<T, N>’
 template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
                                      ^~~~~
./Main.cpp:106:40: error: ‘template<class T> T min(std::vector<_Tp>&)’ conflicts with a previous declaration
 template<typename T> T min(vector<T>& a) { return *min_element(all(a)); };
                                        ^
./Main.cpp:104:38: note: previous declaration ‘template<class T, long unsigned int N> T min<T, N>’
 template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
                                      ^~~~~
In file included from ./Main.cpp:3:
./Main.cpp: In function ‘std::vector<_Tp> vec_slice(const std::vector<_Tp>&, int, int)’:
./Main.cpp:91:27: error: ‘ll’ was not declared in this scope
 #define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // i=s,s+1,...,t-1
                           ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep3’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:107:93: note: in expansion of macro ‘rep’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                             ^~~
./Main.cpp:91:27: note: suggested alternative: ‘l’
 #define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // i=s,s+1,...,t-1
                           ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep3’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:107:93: note: in expansion of macro ‘rep’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                             ^~~
./Main.cpp:107:97: error: ‘i_counter’ was not declared in this scope
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                                 ^
./Main.cpp:91:62: note: in definition of macro ‘rep3’
 #define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // i=s,s+1,...,t-1
                                                              ^
./Main.cpp:107:93: note: in expansion of macro ‘rep’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                             ^~~
./Main.cpp:107:97: note: suggested alternative: ‘_toupper’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                                 ^
./Main.cpp:91:62: note: in definition of macro ‘rep3’
 #define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // i=s,s+1,...,t-1
                                                              ^
./Main.cpp:107:93: note: in expansion of macro ‘rep’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                             ^~~
./Main.cpp:107:97: error: ‘i’ was not declared in this scope
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                                 ^
./Main.cpp:91:101: note: in definition of macro ‘rep3’
 #define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // i=s,s+1,...,t-1
                                                                                                     ^
./Main.cpp:107:93: note: in expansion of macro ‘rep’
 template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
                                                                                             ^~~
./Main.cpp: In function ‘T sum(std::vector<_Tp>&, T)’:
./Main.cpp:90:24: error: ‘ll’ was not declared in this scope
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                        ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep2’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:108:73: note: in expansion of macro ‘rep’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                         ^~~
./Main.cpp:90:24: note: suggested alternative: ‘lt’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                        ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep2’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:108:73: note: in expansion of macro ‘rep’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                         ^~~
./Main.cpp:108:77: error: ‘i_counter’ was not declared in this scope
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                             ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:108:73: note: in expansion of macro ‘rep’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                         ^~~
./Main.cpp:108:77: note: suggested alternative: ‘_toupper’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                             ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:108:73: note: in expansion of macro ‘rep’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                         ^~~
./Main.cpp:108:77: error: ‘i’ was not declared in this scope
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                             ^
./Main.cpp:90:94: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                                                              ^
./Main.cpp:108:73: note: in expansion of macro ‘rep’
 template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
                                                                         ^~~
In file included from ./Main.cpp:3:
./Main.cpp: In function ‘std::vector<_Tp>& operator--(std::vector<_Tp>&)’:
./Main.cpp:111:70: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
 template <class T> inline vector<T>& operator--(vector<T>& v) { repe(x, v) --x; return v; }
                                                                      ^
./Main.cpp:95:30: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                              ^
./Main.cpp:95:34: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                  ^
./Main.cpp:111:65: note: in expansion of macro ‘repe’
 template <class T> inline vector<T>& operator--(vector<T>& v) { repe(x, v) --x; return v; }
                                                                 ^~~~
./Main.cpp: In function ‘std::vector<_Tp>& operator++(std::vector<_Tp>&)’:
./Main.cpp:112:70: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
 template <class T> inline vector<T>& operator++(vector<T>& v) { repe(x, v) ++x; return v; }
                                                                      ^
./Main.cpp:95:30: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                              ^
./Main.cpp:95:34: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                  ^
./Main.cpp:112:65: note: in expansion of macro ‘repe’
 template <class T> inline vector<T>& operator++(vector<T>& v) { repe(x, v) ++x; return v; }
                                                                 ^~~~
./Main.cpp: At global scope:
./Main.cpp:114:1: error: ‘ll’ does not name a type; did you mean ‘lt’?
 ll powm(ll a, ll n, ll mod=INFL) {
 ^~
 lt
./Main.cpp:123:1: error: ‘ll’ does not name a type; did you mean ‘lt’?
 ll sqrtll(ll x) {
 ^~
 lt
./Main.cpp:132:11: error: ‘ll’ was not declared in this scope
 int digit(ll x, int d=10) { int rev=0; while (x > 0) { rev++; x /= d;}; return rev; }
           ^~
./Main.cpp:132:11: note: suggested alternative: ‘lt’
 int digit(ll x, int d=10) { int rev=0; while (x > 0) { rev++; x /= d;}; return rev; }
           ^~
           lt
./Main.cpp:132:17: error: expected primary-expression before ‘int’
 int digit(ll x, int d=10) { int rev=0; while (x > 0) { rev++; x /= d;}; return rev; }
                 ^~~
./Main.cpp:132:25: error: expression list treated as compound expression in initializer [-fpermissive]
 int digit(ll x, int d=10) { int rev=0; while (x > 0) { rev++; x /= d;}; return rev; }
                         ^
./Main.cpp:139:13: error: ‘ll’ was not declared in this scope
     bool lb(ll x) { return (x & 1); }
             ^~
./Main.cpp:139:13: note: suggested alternative: ‘lb’
     bool lb(ll x) { return (x & 1); }
             ^~
             lb
./Main.cpp:140:14: error: ‘ll’ was not declared in this scope
     bool get(ll x, int n) { return ((x >> n) & 1); }
              ^~
./Main.cpp:140:14: note: suggested alternative: ‘lb’
     bool get(ll x, int n) { return ((x >> n) & 1); }
              ^~
              lb
./Main.cpp:140:20: error: expected primary-expression before ‘int’
     bool get(ll x, int n) { return ((x >> n) & 1); }
                    ^~~
./Main.cpp:140:25: error: expression list treated as compound expression in initializer [-fpermissive]
     bool get(ll x, int n) { return ((x >> n) & 1); }
                         ^
./Main.cpp:141:5: error: ‘ll’ does not name a type; did you mean ‘lb’?
     ll update(ll x, int n, bool b) { return (x & ~(1LL << n)) + (b << n); }
     ^~
     lb
./Main.cpp:142:5: error: ‘ll’ does not name a type; did you mean ‘lb’?
     ll lsb(ll x) { return -x & x; }
     ^~
     lb
./Main.cpp:143:15: error: ‘ll’ was not declared in this scope
     int digit(ll x) { int rev=0; while(x) { rev++; x >>= 1; } return rev; }
               ^~
./Main.cpp:143:15: note: suggested alternative: ‘lb’
     int digit(ll x) { int rev=0; while(x) { rev++; x >>= 1; } return rev; }
               ^~
               lb
./Main.cpp:144:5: error: ‘ll’ does not name a type; did you mean ‘lb’?
     ll msb(ll x) { if (x==0) return 0; return 1LL << (digit(x) - 1); }
     ^~
     lb
./Main.cpp:145:14: error: ‘ll’ was not declared in this scope
     int lsbd(ll x) {return digit(lsb(x)); }
              ^~
./Main.cpp:145:14: note: suggested alternative: ‘lb’
     int lsbd(ll x) {return digit(lsb(x)); }
              ^~
              lb
./Main.cpp:146:15: error: ‘ll’ was not declared in this scope
     int count(ll x) { return __builtin_popcountll(x); }
               ^~
./Main.cpp:146:15: note: suggested alternative: ‘lb’
     int count(ll x) { return __builtin_popcountll(x); }
               ^~
               lb
./Main.cpp:147:22: error: ‘ll’ was not declared in this scope
     string to_string(ll x, bool rev=true) { stringstream ss; while (x) { ss << lb(x); x >>= 1;} string s(ss.str()); if (rev) reverse(all(s)); return s; }
                      ^~
./Main.cpp:147:22: note: suggested alternative: ‘lb’
     string to_string(ll x, bool rev=true) { stringstream ss; while (x) { ss << lb(x); x >>= 1;} string s(ss.str()); if (rev) reverse(all(s)); return s; }
                      ^~
                      lb
./Main.cpp:147:28: error: expected primary-expression before ‘bool’
     string to_string(ll x, bool rev=true) { stringstream ss; while (x) { ss << lb(x); x >>= 1;} string s(ss.str()); if (rev) reverse(all(s)); return s; }
                            ^~~~
./Main.cpp:147:43: error: expected ‘,’ or ‘;’ before ‘{’ token
     string to_string(ll x, bool rev=true) { stringstream ss; while (x) { ss << lb(x); x >>= 1;} string s(ss.str()); if (rev) reverse(all(s)); return s; }
                                           ^
./Main.cpp:162:62: error: ‘unordered_set’ does not name a type
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st);
                                                              ^~~~~~~~~~~~~
./Main.cpp:162:75: error: expected ‘,’ or ‘...’ before ‘<’ token
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st);
                                                                           ^
./Main.cpp: In function ‘std::istream& operator>>(std::istream&, std::vector<_Tp>&)’:
./Main.cpp:170:81: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
 template <class T> inline istream& operator>>(istream& is, vector<T>& v) { repe(x, v) is >> x; return is; }
                                                                                 ^
./Main.cpp:95:30: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                              ^
./Main.cpp:95:34: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                  ^
./Main.cpp:170:76: note: in expansion of macro ‘repe’
 template <class T> inline istream& operator>>(istream& is, vector<T>& v) { repe(x, v) is >> x; return is; }
                                                                            ^~~~
In file included from ./Main.cpp:3:
./Main.cpp: In function ‘std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)’:
./Main.cpp:90:24: error: ‘ll’ was not declared in this scope
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                        ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep2’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:172:82: note: in expansion of macro ‘rep’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                  ^~~
./Main.cpp:90:24: note: suggested alternative: ‘lt’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                        ^~
./Main.cpp:93:39: note: in expansion of macro ‘rep2’
 #define overload4(a, b, c, d, e, ...) e
                                       ^
./Main.cpp:94:18: note: in expansion of macro ‘overload4’
 #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
                  ^~~~~~~~~
./Main.cpp:172:82: note: in expansion of macro ‘rep’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                  ^~~
./Main.cpp:172:86: error: ‘i_counter’ was not declared in this scope
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                      ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:172:82: note: in expansion of macro ‘rep’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                  ^~~
./Main.cpp:172:86: note: suggested alternative: ‘_toupper’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                      ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:172:82: note: in expansion of macro ‘rep’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                  ^~~
./Main.cpp:172:86: error: ‘i’ was not declared in this scope
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                      ^
./Main.cpp:90:94: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                                                              ^
./Main.cpp:172:82: note: in expansion of macro ‘rep’
 template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
                                                                                  ^~~
In file included from ./Main.cpp:3:
./Main.cpp: In function ‘std::ostream& operator<<(std::ostream&, const std::map<T, S>&)’:
./Main.cpp:173:101: error: expected ‘[’ before ‘&’ token
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                     ^
                                                                                                     [
./Main.cpp:173:101: error: expected identifier before ‘&’ token
./Main.cpp:173:100: error: expected ‘]’ before ‘&’ token
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                    ^~
                                                                                                    ]
./Main.cpp:173:154: error: expected ‘;’ before ‘return’
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                                                                          ^~~~~~~
                                                                                                                                                          ;
./Main.cpp:173:155: error: expected primary-expression before ‘return’
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                                                                           ^~~~~~
./Main.cpp:173:154: error: expected ‘;’ before ‘return’
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                                                                          ^~~~~~~
                                                                                                                                                          ;
./Main.cpp:173:155: error: expected primary-expression before ‘return’
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                                                                                           ^~~~~~
./Main.cpp:173:154: error: expected ‘)’ before ‘return’
 template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
                                                                                               ~                                                          ^~~~~~~
                                                                                                                                                          )
./Main.cpp: In function ‘std::ostream& operator<<(std::ostream&, const std::set<T>&)’:
./Main.cpp:174:81: error: ‘itr’ does not name a type
 template <typename T> ostream &operator<<(ostream &os, const set<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
                                                                                 ^~~
./Main.cpp:174:149: error: ‘itr’ was not declared in this scope
 template <typename T> ostream &operator<<(ostream &os, const set<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
                                                                                                                                                     ^~~
./Main.cpp: In function ‘std::ostream& operator<<(std::ostream&, const std::multiset<T>&)’:
./Main.cpp:175:86: error: ‘itr’ does not name a type
 template <typename T> ostream &operator<<(ostream &os, const multiset<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
                                                                                      ^~~
./Main.cpp:175:154: error: ‘itr’ was not declared in this scope
 template <typename T> ostream &operator<<(ostream &os, const multiset<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
                                                                                                                                                          ^~~
./Main.cpp: At global scope:
./Main.cpp:176:62: error: ‘unordered_set’ does not name a type
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                              ^~~~~~~~~~~~~
./Main.cpp:176:75: error: expected ‘,’ or ‘...’ before ‘<’ token
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                           ^
./Main.cpp: In function ‘std::ostream& operator<<(std::ostream&, int)’:
./Main.cpp:176:86: error: ‘ll’ was not declared in this scope
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                      ^~
./Main.cpp:176:86: note: suggested alternative: ‘lt’
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                      ^~
                                                                                      lt
./Main.cpp:176:109: error: ISO C++ forbids declaration of ‘e’ with no type [-fpermissive]
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                                             ^
./Main.cpp:176:113: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                                                 ^~
./Main.cpp:176:113: error: ‘st’ was not declared in this scope
./Main.cpp:176:113: note: suggested alternative: ‘lt’
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                                                 ^~
                                                                                                                 lt
./Main.cpp:176:133: error: ‘cnt’ was not declared in this scope
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                                                                     ^~~
./Main.cpp:176:133: note: suggested alternative: ‘int’
 template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
                                                                                                                                     ^~~
                                                                                                                                     int
./Main.cpp: At global scope:
./Main.cpp:183:32: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename T1, typename... T2> int print_sep_end(string sep, string end, const T1 &val, const T2 &...remain) {
                                ^~~
./Main.cpp:183:110: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename T1, typename... T2> int print_sep_end(string sep, string end, const T1 &val, const T2 &...remain) {
                                                                                                              ^~~~~~
./Main.cpp:188:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T> int print(const T &...args) { print_sep_end(" ", "\n", args...); return 0; };
                   ^~~
./Main.cpp:188:48: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T> int print(const T &...args) { print_sep_end(" ", "\n", args...); return 0; };
                                                ^~~~
./Main.cpp:189:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T> void flush() { cout << flush; };
                   ^~~
./Main.cpp:190:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T> int print_and_flush(const T &...args) { print(args...); flush(); return 0; };
                   ^~~
./Main.cpp:190:58: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T> int print_and_flush(const T &...args) { print(args...); flush(); return 0; };
                                                          ^~~~
./Main.cpp:193:32: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename T1, typename... T2> void input(T1&a, T2 &...b) { cin >> a; input(b...); };
                                ^~~
./Main.cpp:193:64: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename T1, typename... T2> void input(T1&a, T2 &...b) { cin >> a; input(b...); };
                                                                ^
./Main.cpp:218:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T>
                   ^~~
./Main.cpp:219:20: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 void debug_func(T &...) {}
                    ^~~
./Main.cpp:220:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... T>
                   ^~~
./Main.cpp:221:26: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 void debug_func(const T &...) {}
                          ^~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:5: error: ‘ll’ was not declared in this scope
     ll n; input(n);
     ^~
./Main.cpp:5:5: note: suggested alternative: ‘lt’
     ll n; input(n);
     ^~
     lt
./Main.cpp:5:17: error: ‘n’ was not declared in this scope
     ll n; input(n);
                 ^
./Main.cpp:5:17: note: suggested alternative: ‘yn’
     ll n; input(n);
                 ^
                 yn
./Main.cpp:6:5: error: ‘vl’ was not declared in this scope
     vl a(n); input(a);
     ^~
./Main.cpp:6:5: note: suggested alternative: ‘vv’
     vl a(n); input(a);
     ^~
     vv
./Main.cpp:6:20: error: ‘a’ was not declared in this scope
     vl a(n); input(a);
                    ^
./Main.cpp:7:7: error: expected ‘;’ before ‘m’
     ll m = n / 2;
       ^~
       ;
./Main.cpp:8:10: error: ‘calc_lower’ does not name a type; did you mean ‘towlower’?
     auto calc_lower = [&] () -> vector<set<ll>> {
          ^~~~~~~~~~
          towlower
./Main.cpp:22:10: error: ‘calc_upper’ does not name a type; did you mean ‘towupper’?
     auto calc_upper = [&] () -> vector<set<ll>> {
          ^~~~~~~~~~
          towupper
./Main.cpp:36:10: error: ‘lower’ does not name a type; did you mean ‘tolower’?
     auto lower = calc_lower();
          ^~~~~
          tolower
./Main.cpp:38:10: error: ‘upper’ does not name a type; did you mean ‘toupper’?
     auto upper = calc_upper();
          ^~~~~
          toupper
In file included from ./Main.cpp:3:
./Main.cpp:39:9: error: expected ‘;’ before ‘i’
     rep(i, m) {
         ^
./Main.cpp:90:27: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                           ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
./Main.cpp:39:9: error: ‘i_counter’ was not declared in this scope
     rep(i, m) {
         ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
./Main.cpp:39:9: note: suggested alternative: ‘_toupper’
     rep(i, m) {
         ^
./Main.cpp:90:55: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                       ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
./Main.cpp:39:12: error: ‘m’ was not declared in this scope
     rep(i, m) {
            ^
./Main.cpp:90:72: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                                        ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
./Main.cpp:39:12: note: suggested alternative: ‘tm’
     rep(i, m) {
            ^
./Main.cpp:90:72: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                                        ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
./Main.cpp:39:9: error: ‘i’ was not declared in this scope
     rep(i, m) {
         ^
./Main.cpp:90:94: note: in definition of macro ‘rep2’
 #define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // i=0,1,...,n-1
                                                                                              ^
./Main.cpp:39:5: note: in expansion of macro ‘rep’
     rep(i, m) {
     ^~~
In file included from ./Main.cpp:3:
./Main.cpp:40:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
         repe(x, lower[i]) {
              ^
./Main.cpp:95:30: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                              ^
./Main.cpp:95:34: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                  ^
./Main.cpp:40:9: note: in expansion of macro ‘repe’
         repe(x, lower[i]) {
         ^~~~
./Main.cpp:40:17: error: ‘lower’ was not declared in this scope
         repe(x, lower[i]) {
                 ^~~~~
./Main.cpp:95:35: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                   ^
./Main.cpp:40:17: note: suggested alternative: ‘tolower’
         repe(x, lower[i]) {
                 ^~~~~
./Main.cpp:95:35: note: in definition of macro ‘repe’
 #define repe(a, v) for(auto& a : (v)) // iterate over all elements in v
                                   ^
./Main.cpp:41:17: error: ‘upper’ was not declared in this scope
             if (upper[m-i].count(-x)) return Yes();
                 ^~~~~
./Main.cpp:41:17: note: suggested alternative: ‘toupper’
             if (upper[m-i].count(-x)) return Yes();
                 ^~~~~
                 toupper

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #