QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#143467#3263. 期末考试legenc6yCompile Error//C++141.6kb2023-08-21 13:28:442023-08-21 13:28:47

詳細信息

answer.code: In function ‘int main()’:
answer.code:57:25: error: ‘i64’ was not declared in this scope
   57 |                         i64 resb = std::max(tb[i] - ta[i], 0ll), ua = std::min(ta[i], tb[i]);
      |                         ^~~
answer.code:58:73: error: ‘ua’ was not declared in this scope; did you mean ‘xa’?
   58 |                         ans = std::min(ans, (i128)i * b[i] + c[i] + A * ua + B * resb);
      |                                                                         ^~
      |                                                                         xa
answer.code:58:82: error: ‘resb’ was not declared in this scope
   58 |                         ans = std::min(ans, (i128)i * b[i] + c[i] + A * ua + B * resb);
      |                                                                                  ^~~~
answer.code:29:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   29 |         scanf("%d %d", &n, &m); w = 0;
      |         ~~~~~^~~~~~~~~~~~~~~~~
answer.code:31:29: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   31 |                 int x; scanf("%d", &x); w = std::max(w, x); xa[i] = x;
      |                        ~~~~~^~~~~~~~~~
answer.code:35:29: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   35 |                 int x; scanf("%d", &x); w = std::max(w, x);
      |                        ~~~~~^~~~~~~~~~