QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#155658#6524. Final Defense LinetangjzCompile Error//C++143.5kb2023-09-01 23:25:592023-09-01 23:25:59

Details

In file included from /usr/include/c++/11/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:1:
answer.code: In function ‘int lcm(int, int)’:
answer.code:17:20: error: ‘gcd’ was not declared in this scope
   17 |     assert((LL)x / gcd(x, y) * y < INT_MAX);
      |                    ^~~
answer.code: In function ‘int main()’:
answer.code:21:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 |         scanf("%d", &t);
      |         ~~~~~^~~~~~~~~~
answer.code:24:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |                         scanf("%d%d%d", x + i, y + i, r + i);
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~