QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#483148#7111. Press the ButtonZhangYiDeCompile Error//C++11957b2024-07-18 11:50:442024-07-18 11:50:44

详细

answer.code: In function ‘void solve()’:
answer.code:29:29: error: ‘gcd’ was not declared in this scope
   29 |     long long l = 1LL * a / gcd(a, c) * c;
      |                             ^~~
answer.code:28:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   28 |     scanf("%d%d%d%d%lld%lld", &a, &b, &c, &d, &v, &t);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:39:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |     int tcase; scanf("%d", &tcase);
      |                ~~~~~^~~~~~~~~~~~~~