QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#321798 | #5018. nth | daoquanglinh2007 | Compile Error | / | / | C++20 | 1.5kb | 2024-02-05 16:41:00 | 2024-02-05 16:41:01 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
implementer.cpp: In function ‘int main()’: implementer.cpp:59:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 59 | read(A),read(B),scanf("%u",&c); | ~~~~~^~~~~~~~~ implementer.cpp: In function ‘void {anonymous}::read(std::bitset<2097152>&)’: implementer.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%s",str); | ~~~~~^~~~~~~~~~ answer.code:7:23: error: ‘M’ was not declared in this scope 7 | int S, c, cnt[M], cur = 20; | ^ answer.code:9:27: error: ‘M’ was not declared in this scope 9 | void initA(bitset<M> _A, unsigned _S, unsigned _c){ | ^ answer.code:9:28: error: template argument 1 is invalid 9 | void initA(bitset<M> _A, unsigned _S, unsigned _c){ | ^ answer.code: In function ‘void Alice::initA(int, unsigned int, unsigned int)’: answer.code:11:37: error: ‘M’ was not declared in this scope 11 | for (int i = 0; i < M; i++) cnt[i] = _A[i]; | ^ answer.code:11:45: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 11 | for (int i = 0; i < M; i++) cnt[i] = _A[i]; | ^~~ | int answer.code:11:56: error: invalid types ‘int[int]’ for array subscript 11 | for (int i = 0; i < M; i++) cnt[i] = _A[i]; | ^ answer.code:12:37: error: ‘M’ was not declared in this scope 12 | for (int i = 1; i < M; i++) cnt[i] += cnt[i-1]; | ^ answer.code:12:45: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 12 | for (int i = 1; i < M; i++) cnt[i] += cnt[i-1]; | ^~~ | int answer.code:13:21: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 13 | if (cnt[(1<<20)-1] >= c){ | ^~~ | int answer.code:16:33: error: ‘sendA’ was not declared in this scope 16 | sendA(1); | ^~~~~ answer.code:23:33: error: ‘sendA’ was not declared in this scope 23 | sendA(getbit(cnt[(1<<20)-1], i)); | ^~~~~ answer.code: In function ‘void Alice::receiveA(bool)’: answer.code:32:27: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 32 | int num = cnt[ans+(1<<cur)-1]; | ^~~ | int answer.code:36:33: error: ‘sendA’ was not declared in this scope 36 | sendA(1); | ^~~~~ answer.code:43:33: error: ‘sendA’ was not declared in this scope 43 | sendA(getbit(num, i)); | ^~~~~ answer.code: At global scope: answer.code:48:23: error: ‘M’ was not declared in this scope 48 | int S, c, cnt[M], cur = 20, k = 20, num = 0, tmp = 0; | ^ answer.code:50:32: error: ‘M’ was not declared in this scope 50 | void initB(std::bitset<M> _B, unsigned _S, unsigned _c){ | ^ answer.code:50:33: error: template argument 1 is invalid 50 | void initB(std::bitset<M> _B, unsigned _S, unsigned _c){ | ^ answer.code: In function ‘void Bob::initB(int, unsigned int, unsigned int)’: answer.code:52:37: error: ‘M’ was not declared in this scope 52 | for (int i = 0; i < M; i++) cnt[i] = _B[i]; | ^ answer.code:52:45: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 52 | for (int i = 0; i < M; i++) cnt[i] = _B[i]; | ^~~ | int answer.code:52:56: error: invalid types ‘int[int]’ for array subscript 52 | for (int i = 0; i < M; i++) cnt[i] = _B[i]; | ^ answer.code:53:37: error: ‘M’ was not declared in this scope 53 | for (int i = 1; i < M; i++) cnt[i] += cnt[i-1]; | ^ answer.code:53:45: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 53 | for (int i = 1; i < M; i++) cnt[i] += cnt[i-1]; | ...