QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#825614#9768. A + B = C Problemucup-team4579#Compile Error//C++141.8kb2024-12-21 20:52:432024-12-21 20:52:51

Details

answer.code: In function ‘void solve1(ll, ll, ll, ll, ll, ll)’:
answer.code:10:16: error: ‘gcd’ was not declared in this scope
   10 |     int len1 = gcd(n1, n3);
      |                ^~~
answer.code: In function ‘void solve()’:
answer.code:32:24: error: ‘gcd’ was not declared in this scope
   32 |     if ((n[0] * n[1] / gcd(n[0], n[1])) % n[2] != 0)
      |                        ^~~