QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#760004 | #982. Robot | GuanYunChang | Compile Error | / | / | C++23 | 2.8kb | 2024-11-18 13:59:41 | 2024-11-18 13:59:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:28:5: error: ‘vector’ was not declared in this scope 28 | vector<pair<int, int>> path = {{0, 0}}; | ^~~~~~ answer.code:5:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 4 | #include <cmath> +++ |+#include <vector> 5 | using namespace std; answer.code:28:25: error: expected primary-expression before ‘>’ token 28 | vector<pair<int, int>> path = {{0, 0}}; | ^~ answer.code:28:28: error: ‘path’ was not declared in this scope 28 | vector<pair<int, int>> path = {{0, 0}}; | ^~~~ answer.code:51:12: error: expected primary-expression before ‘long’ 51 | vector<long long> results; | ^~~~ answer.code:52:5: error: ‘results’ was not declared in this scope 52 | results.reserve(n); | ^~~~~~~