QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#189318 | #7505. Billiard | ucup-team1209# | Compile Error | / | / | C++14 | 309b | 2023-09-27 10:37:03 | 2023-09-27 10:37:04 |
Judging History
answer
#include<bits/stdc++.h>
using ll = long long;
using std::cin;
using std::cout;
const int N = 200005;
int a[N], b[N];
int main() {
std::ios::sync_with_stdio(false), cin.tie(0);
int t; cin >> t;
for(int i = 0;i < t;++i) {
ll n, m;
cin >> n >> m;
cout << std::lcm(n, m) * 2 << '\n';
}
}
Details
answer.code: In function ‘int main()’: answer.code:13:30: error: ‘lcm’ is not a member of ‘std’ 13 | cout << std::lcm(n, m) * 2 << '\n'; | ^~~