QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#712936 | #5. 在线 O(1) 逆元 | liuenci | Compile Error | / | / | C++14 | 189b | 2024-11-05 17:33:20 | 2024-11-05 22:08:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
implementer.cpp: In function ‘int main()’: implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ answer.code: In function ‘int inv(int)’: answer.code:11:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] 11 | return inv[x]; | ^ answer.code:11:13: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive] 11 | return inv[x]; | ^ | | | int (*)(int)