QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#685722#7744. Elevatorucup-team5131#Compile Error//C++201.6kb2024-10-28 20:58:432024-10-28 20:58:45

Details

answer.code:13:1: error: ‘vector’ does not name a type
   13 | vector<PII> temp, a;
      | ^~~~~~
answer.code: In function ‘int main()’:
answer.code:27:9: error: ‘temp’ was not declared in this scope; did you mean ‘tm’?
   27 |         temp.clear(), a.clear();
      |         ^~~~
      |         tm
answer.code:27:23: error: ‘a’ was not declared in this scope
   27 |         temp.clear(), a.clear();
      |                       ^
answer.code:45:44: error: ‘f’ was not declared in this scope
   45 |                 a.push_back({num + 1 >> 1, f});
      |                                            ^
answer.code:64:44: error: ‘f’ was not declared in this scope
   64 |             ans += (LL)(num + k - 1) / k * f;
      |                                            ^
answer.code:23:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |     scanf("%d", &T);
      |     ~~~~~^~~~~~~~~~
answer.code:26:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |         scanf("%d%lld", &n, &k);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
answer.code:31:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   31 |             scanf("%d%d%d", &num, &w, &f);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~