QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#367197#7516. Robot Experimentucup-team981Compile Error//C++171.5kb2024-03-25 20:11:432024-03-25 20:11:45

Details

answer.code: In function ‘int main()’:
answer.code:14:7: error: ‘vector’ was not declared in this scope
   14 |       vector<vector<int>>vis(100,vector<int>(100,0));
      |       ^~~~~~
answer.code:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    2 | #include<map>
  +++ |+#include <vector>
    3 | using namespace std;
answer.code:14:21: error: expected primary-expression before ‘int’
   14 |       vector<vector<int>>vis(100,vector<int>(100,0));
      |                     ^~~
answer.code: In lambda function:
answer.code:31:17: error: ‘vis’ was not declared in this scope
   31 |             if (vis[x + dx + 30][y + dy + 30] == 0) {
      |                 ^~~
answer.code: In function ‘int main()’:
answer.code:47:7: error: ‘vis’ was not declared in this scope
   47 |       vis[30][30] = 1;
      |       ^~~