QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#593891 | #5. 在线 O(1) 逆元 | Capps | Compile Error | / | / | C++20 | 483b | 2024-09-27 16:42:28 | 2024-11-05 22:04:17 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 22:04:17]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-09-27 16:42:28]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-09-27 16:42:28]
- 提交
answer
#include <bits/stdc++.h>
using i64 = long long;
using u64 = unsigned long long;
std::mt19937_64 rng(u64(new char));
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int x, y;
std::cin >> x >> y;
constexpr int n = 10'000'000;
std::vector<int> a(n);
for (int i = 0; i < n; i++) {
a[i] = rng();
}
std::sort(begin(a), end(a));
std::cout << ((x + y) ^ a[0] ^ a[0]);
return 0;
}
Details
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); | ~~~~~^~~~~~~~~~ /usr/bin/ld: /tmp/ccjtaE4i.o: in function `main': answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/cc64r1Lh.o:implementer.cpp:(.text.startup+0x0): first defined here /usr/bin/ld: /tmp/cc64r1Lh.o: in function `main': implementer.cpp:(.text.startup+0x12b): undefined reference to `init(int)' /usr/bin/ld: implementer.cpp:(.text.startup+0x1d0): undefined reference to `inv(int)' collect2: error: ld returned 1 exit status