QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#98064#2920. Ultimate Binary WatchGuanYunChangCompile Error//C++982.3kb2023-04-19 05:18:062023-04-19 05:18:08

Details

answer.code: In function ‘void print(std::vector<long long int>&)’:
answer.code:27:14: error: ‘x’ does not name a type
   27 |     for(auto x : v)
      |              ^
answer.code:28:26: error: expected ‘;’ before ‘cout’
   28 |         cout << x << ' ';
      |                          ^
      |                          ;
   29 |     cout << endl;
      |     ~~~~                  
answer.code:30:1: error: expected primary-expression before ‘}’ token
   30 | }
      | ^
answer.code:29:18: error: expected ‘)’ before ‘}’ token
   29 |     cout << endl;
      |                  ^
      |                  )
   30 | }
      | ~                 
answer.code:27:8: note: to match this ‘(’
   27 |     for(auto x : v)
      |        ^
answer.code:30:1: error: expected primary-expression before ‘}’ token
   30 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:46:21: error: ‘>>’ should be ‘> >’ within a nested template argument list
   46 |   vector<vector<char>>h(4,vector<char>(2 , '.')),m(4,vector<char>(2,'.'));
      |                     ^~
      |                     > >