QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#712932 | #5. 在线 O(1) 逆元 | liuenci | Compile Error | / | / | C++14 | 176b | 2024-11-05 17:31:38 | 2024-11-05 22:08:02 |
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 ‘void init(int)’: answer.code:6:29: warning: iteration 10000008 invokes undefined behavior [-Waggressive-loop-optimizations] 6 | for(int i=2;i<=n;i++) inv[i]=1LL*(P-P/i)*inv[P%i]%P; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ answer.code:6:14: note: within this loop 6 | for(int i=2;i<=n;i++) inv[i]=1LL*(P-P/i)*inv[P%i]%P; | ~^~~ /usr/bin/ld: /tmp/ccKLFse4.o: in function `main': implementer.cpp:(.text.startup+0x1d0): undefined reference to `inv(int)' collect2: error: ld returned 1 exit status