QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#190527#4037. Absolute Pairwise Distancealch07Compile Error//C++142.4kb2023-09-29 02:45:402023-09-29 02:45:40

Details

answer.code:31:9: error: ‘Move’ was not declared in this scope; did you mean ‘remove’?
   31 | vector <Move> moves [N+1];
      |         ^~~~
      |         remove
answer.code:31:13: error: template argument 1 is invalid
   31 | vector <Move> moves [N+1];
      |             ^
answer.code:31:13: error: template argument 2 is invalid
answer.code: In function ‘int main()’:
answer.code:103:18: error: request for member ‘push_back’ in ‘moves[y]’, which is of non-class type ‘int’
  103 |         moves[y].push_back({y, x, v[i].x, i});
      |                  ^~~~~~~~~
answer.code:104:18: error: request for member ‘push_back’ in ‘moves[x]’, which is of non-class type ‘int’
  104 |         moves[x].push_back({x, y, v[i].y, i});
      |                  ^~~~~~~~~