QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#73536 | #4812. Counting Sequence | ZhaoZiLong | Compile Error | / | / | C++14 | 1.5kb | 2023-01-25 16:57:02 | 2023-01-25 16:57:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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); | ~~~~~^~~~~~~~~~~~~~~~~