QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#455554 | #7276. A Light Inconvenience | yoy68 | Compile Error | / | / | C++14 | 933b | 2024-06-26 16:18:31 | 2024-06-26 16:18:33 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
implementer.cpp:17:22: error: ‘optional’ does not name a type 17 | template<typename T> optional<T> read() { | ^~~~~~~~ implementer.cpp: In function ‘int main()’: implementer.cpp:36:17: error: ‘optional’ was not declared in this scope 36 | optional<long long> d = read<long long>(); | ^~~~~~~~ implementer.cpp:36:17: note: ‘std::optional’ is only available from C++17 onwards implementer.cpp:36:26: error: expected primary-expression before ‘long’ 36 | optional<long long> d = read<long long>(); | ^~~~ implementer.cpp:37:24: error: ‘d’ was not declared in this scope 37 | if(not d or *d == 0) | ^ answer.code: In function ‘std::vector<int> Rev(std::vector<int>)’: answer.code:22:21: error: cannot bind non-const lvalue reference of type ‘long long int&’ to a value of type ‘int’ 22 | for(LL& x : a) x = n + 1 - x; | ^ answer.code: In function ‘std::pair<long long int, std::vector<int> > join(int)’: answer.code:37:33: error: could not convert ‘f’ from ‘vector<long long int>’ to ‘vector<int>’ 37 | return make_pair(p, Rev(f)); | ^ | | | vector<long long int> answer.code: At global scope: answer.code:40:14: error: ambiguating new declaration of ‘std::pair<long long int, std::vector<int> > leave(long long int)’ 40 | pair<LL, vi> leave(LL p) | ^~~~~ In file included from answer.code:2: light.h:6:46: note: old declaration ‘std::pair<long long int, std::vector<long long int> > leave(long long int)’ 6 | std::pair<long long, std::vector<long long>> leave(long long); | ^~~~~ answer.code: In function ‘std::pair<long long int, std::vector<int> > leave(long long int)’: answer.code:59:33: error: could not convert ‘g’ from ‘vector<long long int>’ to ‘vector<int>’ 59 | return make_pair(p, Rev(g)); | ^ | | | vector<long long int>