QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#795469#9804. Guess the Polygonucup-team121#Compile Error//C++207.8kb2024-11-30 20:45:072024-11-30 20:45:08

Details

answer.code:37:9: error: ‘__float128_t’ does not name a type; did you mean ‘__float128’?
   37 | typedef __float128_t ld;
      |         ^~~~~~~~~~~~
      |         __float128
answer.code:47:11: error: ‘ld’ does not name a type; did you mean ‘ll’?
   47 | constexpr ld eps = 1e-12;
      |           ^~
      |           ll
answer.code:48:11: error: ‘ld’ does not name a type; did you mean ‘ll’?
   48 | constexpr ld pi = 3.141592653589793238;
      |           ^~
      |           ll
answer.code: In function ‘int main()’:
answer.code:190:47: error: ‘ld’ does not name a type; did you mean ‘ll’?
  190 |                 auto ask = [&](ll t, ll s) -> ld {
      |                                               ^~
      |                                               ll
answer.code:212:24: error: ‘ld’ was not declared in this scope; did you mean ‘ll’?
  212 |                 vector<ld> xv(n);
      |                        ^~
      |                        ll
answer.code:212:26: error: template argument 1 is invalid
  212 |                 vector<ld> xv(n);
      |                          ^
answer.code:212:26: error: template argument 2 is invalid
answer.code:213:29: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  213 |                 rep(i, n) xv[i] = p[i].first;
      |                             ^
answer.code:215:45: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  215 |                         if (mode[i] == 1) xv[i] -= 0.5;
      |                                             ^
answer.code:216:50: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  216 |                         else if (mode[i] == 2) xv[i] += 0.5;
      |                                                  ^
answer.code:219:26: error: template argument 2 is invalid
  219 |                 vector<ld> vec(n);
      |                          ^
answer.code:221:46: error: invalid types ‘int[int]’ for array subscript
  221 |                         if (mode[i] == 0) vec[i] = ask(p[i].first, 1);
      |                                              ^
answer.code:222:51: error: invalid types ‘int[int]’ for array subscript
  222 |                         else if (mode[i] == 1) vec[i] = ask(2 * p[i].first - 1, 2);
      |                                                   ^
answer.code:223:33: error: invalid types ‘int[int]’ for array subscript
  223 |                         else vec[i] = ask(2 * p[i].first + 1, 2);
      |                                 ^
answer.code:228:35: error: expected ‘;’ before ‘xh’
  228 |                                 ld xh = xv[i] - xv[i - 1];
      |                                   ^~~
      |                                   ;
answer.code:229:35: error: expected ‘;’ before ‘yh’
  229 |                                 ld yh = vec[i] - vec[i - 1];
      |                                   ^~~
      |                                   ;
answer.code:230:33: error: ‘yh’ was not declared in this scope; did you mean ‘yn’?
  230 |                                 yh /= xh;
      |                                 ^~
      |                                 yn
answer.code:230:39: error: ‘xh’ was not declared in this scope; did you mean ‘xv’?
  230 |                                 yh /= xh;
      |                                       ^~
      |                                       xv
answer.code:232:36: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  232 |                                 vec[i] = vec[i - 1] + yh;
      |                                    ^
answer.code:232:45: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  232 |                                 vec[i] = vec[i - 1] + yh;
      |                                             ^
answer.code:233:35: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  233 |                                 xv[i] += 0.5;
      |                                   ^
answer.code:236:35: error: expected ‘;’ before ‘xh’
  236 |                                 ld xh = xv[i + 1] - xv[i];
      |                                   ^~~
      |                                   ;
answer.code:237:35: error: expected ‘;’ before ‘yh’
  237 |                                 ld yh = vec[i] - vec[i + 1];
      |                                   ^~~
      |                                   ;
answer.code:239:33: error: ‘yh’ was not declared in this scope; did you mean ‘yn’?
  239 |                                 yh /= xh;
      |                                 ^~
      |                                 yn
answer.code:239:39: error: ‘xh’ was not declared in this scope; did you mean ‘xv’?
  239 |                                 yh /= xh;
      |                                       ^~
      |                                       xv
answer.code:241:36: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
  241 |                                 vec...