QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#317906 | #7760. 化学实验 | locsey | Compile Error | / | / | C++14 | 2.4kb | 2024-01-29 21:56:13 | 2024-01-29 21:56:14 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void Solver::access(int)’: answer.code:45:142: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 45 | inline void access(int x) {int y = 0; for(; x; y = x, x = f[x]) Splay(x), vsz[x] += sz[y] - sz[c[x][1]], c[x][1] = y, pus(y); return y;} | ^ answer.code: In function ‘void Solver::link(int, int)’: answer.code:66:34: error: void value not ignored as it ought to be 66 | access(x); int u = access(y); | ~~~~~~^~~ answer.code: In function ‘void Solver::mian()’: answer.code:81:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] 81 | fprintf(stderr, "floor memery : %d\n", (&_st - &_ed) >> 20); | ~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %ld