QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#462907#8547. Whose Land?egypt_ioi2024_12Compile Error//C++148.7kb2024-07-04 09:35:212024-07-04 09:35:21

Details

answer.code: In function ‘int main()’:
answer.code:262:31: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
  262 |             vector<vector<int,3>>A,B;
      |                               ^
answer.code:262:31: note:   expected a type, got ‘3’
answer.code:262:32: error: template argument 1 is invalid
  262 |             vector<vector<int,3>>A,B;
      |                                ^~
answer.code:262:32: error: template argument 2 is invalid
answer.code:265:19: error: request for member ‘push_back’ in ‘A’, which is of non-class type ‘int’
  265 |                 A.push_back({l,r,i});
      |                   ^~~~~~~~~
answer.code:273:35: error: request for member ‘push_back’ in ‘B’, which is of non-class type ‘int’
  273 |                                 B.push_back(*finish);
      |                                   ^~~~~~~~~
answer.code:276:35: error: request for member ‘push_back’ in ‘B’, which is of non-class type ‘int’
  276 |                                 B.push_back(*finish);
      |                                   ^~~~~~~~~
answer.code:277:35: error: request for member ‘push_back’ in ‘A’, which is of non-class type ‘int’
  277 |                                 A.push_back({r+1,y,z});
      |                                   ^~~~~~~~~
answer.code:280:35: error: request for member ‘push_back’ in ‘B’, which is of non-class type ‘int’
  280 |                                 B.push_back(*finish);
      |                                   ^~~~~~~~~
answer.code:281:35: error: request for member ‘push_back’ in ‘A’, which is of non-class type ‘int’
  281 |                                 A.push_back({x,l-1,z});
      |                                   ^~~~~~~~~
answer.code:292:24: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
  292 |             for(auto j:A){
      |                        ^
      |                        std::begin
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166,
                 from answer.code:5:
/usr/include/c++/13/valarray:1232:5: note: ‘std::begin’ declared here
 1232 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
answer.code:292:24: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
  292 |             for(auto j:A){
      |                        ^
      |                        std::end
/usr/include/c++/13/valarray:1259:5: note: ‘std::end’ declared here
 1259 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
answer.code:296:24: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
  296 |             for(auto j:B){
      |                        ^
      |                        std::begin
/usr/include/c++/13/valarray:1232:5: note: ‘std::begin’ declared here
 1232 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
answer.code:296:24: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
  296 |             for(auto j:B){
      |                        ^
      |                        std::end
/usr/include/c++/13/valarray:1259:5: note: ‘std::end’ declared here
 1259 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~