QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#102019#6312. 城市建造alch07#Compile Error//C++141.7kb2023-05-02 10:19:012024-05-26 02:49:42

详细

answer.code:8:1: error: ‘vector’ does not name a type
    8 | vector <pair<int,int>> v;
      | ^~~~~~
answer.code: In function ‘int main()’:
answer.code:45:9: error: ‘v’ was not declared in this scope
   45 |         v.push_back(make_pair(a, b));
      |         ^
answer.code:47:5: error: ‘ll’ was not declared in this scope
   47 |     ll tot = 0;
      |     ^~
answer.code:64:21: error: ‘v’ was not declared in this scope
   64 |             if(part[v[j].first] || part[v[j].second]){
      |                     ^
answer.code:75:73: error: expected ‘)’ before ‘{’ token
   75 |         if((cnt >= 2) && (cnt == compCnt) && ((lowComp + k) >= highComp){
      |           ~                                                             ^
      |                                                                         )
answer.code:78:5: error: expected primary-expression before ‘}’ token
   78 |     }
      |     ^
answer.code:79:13: error: ‘tot’ was not declared in this scope
   79 |     cout << tot << endl;
      |             ^~~