QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#881134#9880. Origami WarpHuluoboCompile Error//C++145.2kb2025-02-04 12:20:432025-02-04 12:20:52

Details

answer.code: In function ‘std::vector<bool> solve(std::vector<std::array<long long int, 4> >, std::vector<std::array<long long int, 4> >)’:
answer.code:50:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   50 |     for (auto [x1, y1, x2, y2] : a) {
      |               ^
answer.code:64:18: error: ‘gcd’ was not declared in this scope
   64 |             gx = gcd(gx, vx);
      |                  ^~~
answer.code:70:18: error: ‘gcd’ was not declared in this scope
   70 |             gy = gcd(gy, vy);
      |                  ^~~
answer.code:94:17: error: ‘gcd’ was not declared in this scope
   94 |             g = gcd(g, vx);
      |                 ^~~
answer.code:108:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  108 |         for (auto [vx, vy] : v) {
      |                   ^
answer.code:122:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  122 |         for (auto [x1, y1, x2, y2] : a) {
      |                   ^
answer.code: In lambda function:
answer.code:148:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  148 |         auto [x1, y1, x2, y2] = arr;
      |              ^