QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#95544 | #5474. Incredibly Cute Penguin Chicks | GuanYunchang | Compile Error | / | / | C++14 | 2.3kb | 2023-04-10 12:14:38 | 2023-04-10 12:14:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:42:10: error: ‘vector’ is not a member of ‘std’ 42 | std::vector< std::pair<int, int> > vI, vC, vP; | ^~~~~~ answer.code:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 2 | #include <algorithm> +++ |+#include <vector> 3 | answer.code:42:38: error: expected primary-expression before ‘>’ token 42 | std::vector< std::pair<int, int> > vI, vC, vP; | ^ answer.code:42:40: error: ‘vI’ was not declared in this scope; did you mean ‘I’? 42 | std::vector< std::pair<int, int> > vI, vC, vP; | ^~ | I answer.code:42:44: error: ‘vC’ was not declared in this scope; did you mean ‘C’? 42 | std::vector< std::pair<int, int> > vI, vC, vP; | ^~ | C answer.code:42:48: error: ‘vP’ was not declared in this scope; did you mean ‘P’? 42 | std::vector< std::pair<int, int> > vI, vC, vP; | ^~ | P answer.code:61:35: error: ‘vector’ in namespace ‘std’ does not name a template type 61 | auto idx_of = [&] (const std::vector< std::pair<int, int> > &v, int a, int b) { | ^~~~~~ answer.code:61:30: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 61 | auto idx_of = [&] (const std::vector< std::pair<int, int> > &v, int a, int b) { | ^~~ answer.code:63:6: error: expected ‘)’ before ‘;’ token 63 | }; | ^ | ) answer.code:61:23: note: to match this ‘(’ 61 | auto idx_of = [&] (const std::vector< std::pair<int, int> > &v, int a, int b) { | ^ answer.code: In lambda function: answer.code:63:6: error: expected ‘{’ before ‘;’ token 63 | }; | ^ answer.code: In function ‘int main()’: answer.code:75:29: error: ‘edI’ was not declared in this scope 75 | val += trI.sum(bgI, edI); | ^~~ answer.code:77:29: error: ‘edC’ was not declared in this scope 77 | val += trC.sum(bgC, edC); | ^~~ answer.code:79:29: error: ‘edP’ was not declared in this scope 79 | val += trP.sum(bgP, edP); | ^~~