QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#143467#3263. 期末考试legenc6yCompile Error//C++141.6kb2023-08-21 13:28:442023-08-21 13:28:47

Details

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