QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#92989#6177. 外星飞碟问题NaitoahCompile Error//C++145.3kb2023-03-31 09:36:302023-03-31 09:36:33

Details

answer.code: In function ‘void NTT_init(const int&)’:
answer.code:60:22: error: ‘i’ was not declared in this scope
   60 |     IMP(1 << m, w[m][i] = complex(std::cos(i * Pi / (1 << m)), std::sin(i * Pi / (1 << m))));
      |                      ^
answer.code:60:5: error: ‘IMP’ was not declared in this scope
   60 |     IMP(1 << m, w[m][i] = complex(std::cos(i * Pi / (1 << m)), std::sin(i * Pi / (1 << m))));
      |     ^~~
answer.code: In function ‘void DFT(complex*, const int&)’:
answer.code:71:13: error: ‘IMP’ was not declared in this scope
   71 |             IMP(len, (x = *L, y = *R)), *L++ = (x + y), *R++ = *W++*(x - y);
      |             ^~~
answer.code: In function ‘void IDFT(complex*, const int&)’:
answer.code:80:13: error: ‘IMP’ was not declared in this scope
   80 |             IMP(len, (x = *L, y = *W++ **R)), *L++ = (x + y), *R++ = (x - y);
      |             ^~~
answer.code:83:15: error: ‘i’ was not declared in this scope
   83 |     IMP(n, (f[i].x /= n, f[i].y /= n));
      |               ^
answer.code:83:5: error: ‘IMP’ was not declared in this scope
   83 |     IMP(n, (f[i].x /= n, f[i].y /= n));
      |     ^~~
answer.code: In function ‘void MTT(int*, int*, int*, const int&, const int&, const int&, const int&)’:
answer.code:91:15: error: ‘i’ was not declared in this scope
   91 |     IMP(n, (Q[i].x = f[i] & 32767, P[i].x = f[i] >> 15));
      |               ^
answer.code:91:5: error: ‘IMP’ was not declared in this scope
   91 |     IMP(n, (Q[i].x = f[i] & 32767, P[i].x = f[i] >> 15));
      |     ^~~
answer.code: In function ‘void PT(int*, int*, const int&, const int&)’:
answer.code:119:37: error: ‘i’ was not declared in this scope
  119 |     IMP(n, H[0] = 1ll * H[0] * (m - i) % mod);
      |                                     ^
answer.code:119:5: error: ‘IMP’ was not declared in this scope
  119 |     IMP(n, H[0] = 1ll * H[0] * (m - i) % mod);
      |     ^~~
answer.code: In function ‘int Getfac(const int&, const int&)’:
answer.code:155:9: error: ‘IMP’ was not declared in this scope
  155 |         IMP(q, F[i + q + 1] = G[i]), G[i] = 0;
      |         ^~~
answer.code:168:32: error: ‘i’ was not declared in this scope
  168 |     IMP(B, ans = 1ll * ans * F[i] % mod), F[i] = 0;
      |                                ^
answer.code:168:5: error: ‘IMP’ was not declared in this scope
  168 |     IMP(B, ans = 1ll * ans * F[i] % mod), F[i] = 0;
      |     ^~~