QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189318#7505. Billiarducup-team1209#Compile Error//C++14309b2023-09-27 10:37:032023-09-27 10:37:04

Judging History

你现在查看的是最新测评结果

  • [2023-09-27 10:37:04]
  • 评测
  • [2023-09-27 10:37:03]
  • 提交

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';
      |                              ^~~