QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#488150 | #8726. Magic Show | Adorable | Compile Error | / | / | C++23 | 1.3kb | 2024-07-23 17:09:36 | 2024-07-23 17:09:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Bob.code: In function ‘long long int Bob(std::vector<std::pair<int, int> >)’: Bob.code:8:5: error: ‘vector’ was not declared in this scope 8 | vector<int> can; | ^~~~~~ Bob.code:8:5: note: suggested alternatives: In file included from /usr/include/c++/13/vector:66, from /usr/include/c++/13/functional:64, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53, from Bob.code:1: /usr/include/c++/13/bits/stl_vector.h:425:11: note: ‘std::vector’ 425 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/13/vector:86:13: note: ‘std::pmr::vector’ 86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ Bob.code:8:12: error: expected primary-expression before ‘int’ 8 | vector<int> can; | ^~~ Bob.code:9:53: error: ‘can’ was not declared in this scope; did you mean ‘tan’? 9 | for (int i = 1; i <= 5000; ++i) if (deg[i] > 1) can.emplace_back(i); | ^~~ | tan Bob.code:10:9: error: ‘can’ was not declared in this scope; did you mean ‘tan’? 10 | if (can.size() == 1) return can[0] * can[0]; | ^~~ | tan