QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#685722 | #7744. Elevator | ucup-team5131# | Compile Error | / | / | C++20 | 1.6kb | 2024-10-28 20:58:43 | 2024-10-28 20:58:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~