QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#785839#6660. 택시 여행HuluoboCompile Error//C++143.6kb2024-11-26 19:25:192024-11-26 19:25:19

Details

answer.code:70:9: error: ‘vector’ does not name a type
   70 |         vector<Pii>s;
      |         ^~~~~~
answer.code: In constructor ‘ERoRain::Convex::Convex()’:
answer.code:72:17: error: ‘s’ was not declared in this scope
   72 |                 s.clear();
      |                 ^
answer.code: In member function ‘void ERoRain::Convex::add(std::pair<long long int, long long int>)’:
answer.code:79:21: error: ‘s’ was not declared in this scope
   79 |                 if (s.size() && s.back().fir == x.fir)
      |                     ^
answer.code:81:24: error: ‘s’ was not declared in this scope
   81 |                 while (s.size() > 1 && cmpl(s[s.size() - 2], s[s.size() - 1], x))
      |                        ^
answer.code:82:39: error: ‘s’ was not declared in this scope
   82 |                         s.pop_back(); s.emplace_back(x);
      |                                       ^
answer.code: In member function ‘long long int ERoRain::Convex::Calc(long long int, long long int)’:
answer.code:84:48: error: ‘s’ was not declared in this scope
   84 |         inline int Calc(int i, int k) { return s[i].sec - k * s[i].fir;  }
      |                                                ^
answer.code: In member function ‘long long int ERoRain::Convex::query(long long int)’:
answer.code:86:32: error: ‘s’ was not declared in this scope
   86 |                 int l = 0, r = s.size() - 1;
      |                                ^
answer.code: In function ‘void ERoRain::Solve()’:
answer.code:16:12: error: ‘vector’ was not declared in this scope
   16 | #define vi vector<int>
      |            ^~~~~~
answer.code:97:9: note: in expansion of macro ‘vi’
   97 |         vi id;
      |         ^~
answer.code:8:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    7 | #include<algorithm>
  +++ |+#include <vector>
    8 | using namespace std;
answer.code:15:13: error: expected primary-expression before ‘long’
   15 | #define int long long
      |             ^~~~
answer.code:16:19: note: in expansion of macro ‘int’
   16 | #define vi vector<int>
      |                   ^~~
answer.code:97:9: note: in expansion of macro ‘vi’
   97 |         vi id;
      |         ^~
answer.code:98:22: error: ‘id’ was not declared in this scope; did you mean ‘i’?
   98 |         rep(i, 1, n) id.emplace_back(i);
      |                      ^~
      |                      i
answer.code:99:14: error: ‘id’ was not declared in this scope; did you mean ‘idx’?
   99 |         sort(id.begin(), id.end(), [](const int& x, const int& y) {
      |              ^~
      |              idx
answer.code: At global scope:
answer.code:16:12: error: ‘vector’ does not name a type
   16 | #define vi vector<int>
      |            ^~~~~~
answer.code:123:1: note: in expansion of macro ‘vi’
  123 | vi main(vi A, vi B, vi U, vi V, vi W) {
      | ^~
answer.code:136:1: error: ‘vector’ does not name a type
  136 | vector<long long> travel(vector<long long> A, vector<int> B, vector<int> U, vector<int> V, vector<int> W) {
      | ^~~~~~