QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#98176#2920. Ultimate Binary WatchZhaoZiLongCompile Error//C++981.8kb2023-04-19 05:48:082023-04-19 05:48:10

詳細信息

answer.code:4:7: error: expected nested-name-specifier before ‘lll’
    4 | using lll = __int128;
      |       ^~~
answer.code:5:7: error: expected nested-name-specifier before ‘ll’
    5 | using ll  = long long;
      |       ^~
answer.code:6:7: error: expected nested-name-specifier before ‘ld’
    6 | using ld  = long double;
      |       ^~
answer.code:7:7: error: expected nested-name-specifier before ‘pii’
    7 | using pii = pair<long long , long long>;
      |       ^~~
answer.code:16:81: error: default template arguments may not be used in function templates without ‘-std=c++11’ or ‘-std=gnu++11’
   16 | template < typename T = int > istream& operator >> (istream &in, vector < T > &v) {for (auto &x : v) in >> x; return in;}
      |                                                                                 ^
answer.code: In function ‘std::istream& operator>>(std::istream&, std::vector<_Tp>&)’:
answer.code:16:95: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
   16 | template < typename T = int > istream& operator >> (istream &in, vector < T > &v) {for (auto &x : v) in >> x; return in;}
      |                                                                                               ^
answer.code:16:99: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   16 | template < typename T = int > istream& operator >> (istream &in, vector < T > &v) {for (auto &x : v) in >> x; return in;}
      |                                                                                                   ^
answer.code: At global scope:
answer.code:17:88: error: default template arguments may not be used in function templates without ‘-std=c++11’ or ‘-std=gnu++11’
   17 | template < typename T = int > ostream& operator << (ostream &out, const vector < T > &v) {for (const T &x : v) out << x << '\n'; return out;}
      |                                                                                        ^
answer.code: In function ‘std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)’:
answer.code:17:109: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   17 | template < typename T = int > ostream& operator << (ostream &out, const vector < T > &v) {for (const T &x : v) out << x << '\n'; return out;}
      |                                                                                                             ^
answer.code: In function ‘void Solve()’:
answer.code:37:16: error: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
   37 |     for(auto & i : v){
      |                ^
answer.code:37:20: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   37 |     for(auto & i : v){
      |                    ^
answer.code:37:20: error: forming reference to reference type ‘std::vector<int>&’
answer.code:43:16: error: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
   43 |     for(auto & i : v){
      |                ^
answer.code:43:20: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   43 |     for(auto & i : v){
      |                    ^
answer.code:43:20: error: forming reference to reference type ‘std::vector<int>&’
answer.code:49:16: error: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
   49 |     for(auto & i : v){
      |                ^
answer.code:49:20: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   49 |     for(auto & i : v){
      |                    ^
answer.code:49:20: error: forming reference to reference type ‘std::vector<int>&’
answer.code:56:16: error: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
   56 |     for(auto & i : v){
      |                ^
answer.code:56:20: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   56 |     for(auto & i : v){
      |                    ^
answer.code:56:20: error: forming reference to reference type ‘std::vector<int>&’