QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#326458#4829. Mark on a Graphucup-team1626Compile Error//C++141.9kb2024-02-13 04:26:082024-02-13 04:26:09

Details

answer.code:5:1: error: ‘vector’ does not name a type
    5 | vector <int> v [1000];
      | ^~~~~~
answer.code: In function ‘int main()’:
answer.code:19:9: error: ‘v’ was not declared in this scope
   19 |         v[a].push_back(b);
      |         ^
answer.code:23:5: error: ‘vector’ was not declared in this scope
   23 |     vector <int> bestNods;
      |     ^~~~~~
answer.code:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
answer.code:23:13: error: expected primary-expression before ‘int’
   23 |     vector <int> bestNods;
      |             ^~~
answer.code:26:30: error: ‘v’ was not declared in this scope
   26 |         for(int a1 = 0; a1 < v[i].size(); a1++){
      |                              ^
answer.code:30:33: error: expected primary-expression before ‘int’
   30 |                         vector <int> nods = {i, v[i][a1], v[i][a2], v[i][a3], v[i][a4]};
      |                                 ^~~
answer.code:34:42: error: ‘nodes’ was not declared in this scope
   34 |                                 if(graph[nodes[j]][nodes[k]]){
      |                                          ^~~~~
answer.code:41:29: error: ‘bestNods’ was not declared in this scope
   41 |                             bestNods = nods;
      |                             ^~~~~~~~
answer.code:41:40: error: ‘nods’ was not declared in this scope
   41 |                             bestNods = nods;
      |                                        ^~~~
answer.code:53:29: error: expected primary-expression before ‘>’ token
   53 |         vector <pair<int,int>> mark;
      |                             ^~
answer.code:53:32: error: ‘mark’ was not declared in this scope
   53 |         vector <pair<int,int>> mark;
      |                                ^~~~
answer.code:56:27: error: ‘bestNods’ was not declared in this scope
   56 |                 if(!graph[bestNods[j]][bestNods[k]]){
      |                           ^~~~~~~~