QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#73536#4812. Counting SequenceZhaoZiLongCompile Error//C++141.5kb2023-01-25 16:57:022023-01-25 16:57:03

详细

answer.code: In function ‘void solve1()’:
answer.code:35:43: error: too few arguments to function ‘int get_sum(int, int)’
   35 |    for (j = 1; j <= BB; ++j) ans = get_sum(ans + f[m % (BB + 1)][j]);
      |                                    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:20:5: note: declared here
   20 | int get_sum(int x, int y) {
      |     ^~~~~~~
answer.code: In function ‘void solve2()’:
answer.code:43:63: error: too few arguments to function ‘int get_sum(int, int)’
   43 |                  if (m - A1 * (i + 1) >= -2 * m) ans = get_sum(ans + g[i & 1][m - A1 * (i + 1) + 2 * m]);
      |                                                        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:20:5: note: declared here
   20 | int get_sum(int x, int y) {
      |     ^~~~~~~
answer.code:47:79: error: too few arguments to function ‘int get_sum(int, int)’
   47 |                  if (j + i + 1 <= m) g[i + 1 & 1][j + i + 1 + 2 * m] = get_sum(g[i + 1 & 1][j + i + 1 + 2 * m] + g[i & 1][j + 2 * m]);
      |                                                                        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:20:5: note: declared here
   20 | int get_sum(int x, int y) {
      |     ^~~~~~~
answer.code:48:84: error: too few arguments to function ‘int get_sum(int, int)’
   48 |                  if (j - i - 1 >= -2 * m) g[i + 1 & 1][j - i - 1 + 2 * m] = get_sum(g[i + 1 & 1][j - i - 1 + 2 * m] + 1ll * c * g[i & 1][j + 2 * m] % Mod);
      |                                                                             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:20:5: note: declared here
   20 | int get_sum(int x, int y) {
      |     ^~~~~~~
answer.code: In function ‘int main()’:
answer.code:55:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   55 |    scanf("%d %d", &m, &c);
      |    ~~~~~^~~~~~~~~~~~~~~~~