QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#754498#7906. Almost Convexucup-team3502#Compile Error//C++234.4kb2024-11-16 15:11:492024-11-16 15:11:50

詳細信息

answer.code:14:1: error: ‘vector’ does not name a type
   14 | vector<Point<long long>> arg_sort(vector<Point<long long>> v, long long xv, long long yv) {
      | ^~~~~~
answer.code:27:1: error: ‘vector’ does not name a type
   27 | vector<Point<long long>> arg_sort_2(vector<Point<long long>> v, long long xv, long long yv) {
      | ^~~~~~
answer.code:42:6: error: variable or field ‘show’ declared void
   42 | void show(vector<Point<long long>> &p){
      |      ^~~~
answer.code:42:11: error: ‘vector’ was not declared in this scope
   42 | void show(vector<Point<long long>> &p){
      |           ^~~~~~
answer.code:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
  +++ |+#include <vector>
    1 | //#include<bits/stdc++.h>
answer.code:42:33: error: expected primary-expression before ‘>’ token
   42 | void show(vector<Point<long long>> &p){
      |                                 ^~
answer.code:42:37: error: ‘p’ was not declared in this scope
   42 | void show(vector<Point<long long>> &p){
      |                                     ^
answer.code: In function ‘int main()’:
answer.code:53:5: error: ‘cin’ was not declared in this scope
   53 |     cin >> N;
      |     ^~~
answer.code:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
  +++ |+#include <iostream>
    1 | //#include<bits/stdc++.h>
answer.code:54:5: error: ‘vector’ was not declared in this scope
   54 |     vector<Point<long long>> vp(N);
      |     ^~~~~~
answer.code:54:5: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
answer.code:54:27: error: expected primary-expression before ‘>’ token
   54 |     vector<Point<long long>> vp(N);
      |                           ^~
answer.code:54:30: error: ‘vp’ was not declared in this scope
   54 |     vector<Point<long long>> vp(N);
      |                              ^~
answer.code:55:12: error: expected primary-expression before ‘long’
   55 |     vector<long long> X(N), Y(N);
      |            ^~~~
answer.code:67:12: error: expected primary-expression before ‘int’
   67 |     vector<int> boundray;
      |            ^~~
answer.code:68:5: error: ‘unordered_set’ was not declared in this scope
   68 |     unordered_set<int> exist;
      |     ^~~~~~~~~~~~~
answer.code:1:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
  +++ |+#include <unordered_set>
    1 | //#include<bits/stdc++.h>
answer.code:68:19: error: expected primary-expression before ‘int’
   68 |     unordered_set<int> exist;
      |                   ^~~
answer.code:72:27: error: expected primary-expression before ‘>’ token
   72 |     vector<Point<long long>> ord;
      |                           ^~
answer.code:72:30: error: ‘ord’ was not declared in this scope
   72 |     vector<Point<long long>> ord;
      |                              ^~~
answer.code:73:11: error: ‘boundray’ was not declared in this scope
   73 |     while(boundray.size() <= 3 || *boundray.begin() != *boundray.rbegin()){
      |           ^~~~~~~~
answer.code:74:9: error: ‘cout’ was not declared in this scope
   74 |         cout << cur << ' ' << nxt << endl;
      |         ^~~~
answer.code:74:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
answer.code:74:38: error: ‘endl’ was not declared in this scope
   74 |         cout << cur << ' ' << nxt << endl;
      |                                      ^~~~
answer.code:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
  +++ |+#include <ostream>
    1 | //#include<bits/stdc++.h>
answer.code:75:9: error: ‘exist’ was not declared in this scope
   75 |         exist.insert(cur);
      |         ^~~~~
answer.code:77:19: error: ‘arg_sort’ was not declared in this scope
   77 |             ord = arg_sort(vp, vp[cur].x, vp[cur].y);
      |                   ^~~~~~~~
answer.code:78:13: error: ‘show’ was not declared in this scope
   78 |             show(ord);
      |             ^~~~
answer.code:83:23: error: ‘arg_sort’ was not declared in this scope
   83 |                 ord = arg_sort(vp, vp[cur].x, vp[cur].y);
      |                       ^~~~~~~~
answer.code:86:23: error: ‘arg_sort_2’ was not declared in this scope
   86 |                 ord = arg_sort_2(vp, vp[cur].x, vp[cur].y);
      |                       ^~~~~~~~~~
answer.code:94:27: error: expected primary-expression before ‘>’ token
   94 |     vector<Point<long long>> points_in;
      |                           ^~
answer.code:94:30: error: ‘points_in’ was not declared in this scope
   94 |     vector<Point<long long>> points_in;
      |                              ^~~~~~~~~
answer.code:96:12: error: ‘exist’ was not declared in this scope
   96 |         if(exist.count(i) == 0){
      |            ^~~~~
answer.code:97:36: error: ‘X’ was not declared in this scope
   ...