QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#377286 | #4071. Galactic Collegiate Programming Contest | ZhangYiDe | Compile Error | / | / | C++17 | 860b | 2024-04-05 11:36:31 | 2024-04-05 11:36:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In member function ‘bool team::operator()(const team&, const team&) const’: answer.code:9:14: error: ‘retrun’ was not declared in this scope 9 | else retrun lhs.num1<rhs.num2; | ^~~~~~ answer.code: At global scope: answer.code:12:23: error: ‘less_equal’ was not declared in this scope; did you mean ‘std::less_equal’? 12 | tree<team, null_type, less_equal<team>, rb_tree_tag, tree_order_statistics_node_update> pb; | ^~~~~~~~~~ | std::less_equal In file included from /usr/include/c++/13/string:49, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/extc++.h:32, from answer.code:1: /usr/include/c++/13/bits/stl_function.h:365:12: note: ‘std::less_equal’ declared here 365 | struct less_equal; | ^~~~~~~~~~ answer.code:12:38: error: template argument 3 is invalid 12 | tree<team, null_type, less_equal<team>, rb_tree_tag, tree_order_statistics_node_update> pb; | ^ answer.code:12:39: error: expected unqualified-id before ‘,’ token 12 | tree<team, null_type, less_equal<team>, rb_tree_tag, tree_order_statistics_node_update> pb; | ^ answer.code:12:87: error: expected initializer before ‘>’ token 12 | tree<team, null_type, less_equal<team>, rb_tree_tag, tree_order_statistics_node_update> pb; | ^ answer.code: In function ‘int main()’: answer.code:18:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 18 | cin>>T>>P; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146: /usr/include/c++/13/iostream:62:18: note: ‘std::cin’ declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ answer.code:19:12: error: ‘pb’ was not declared in this scope 19 | if(pb.size()<=0 || pb.find(t[T])==pb.end()){ | ^~ answer.code:28:17: error: ‘pb’ was not declared in this scope 28 | auto it=pb.find(t[1]); | ^~ answer.code:29:26: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 29 | if(it!=pb.end()) cout<<pb.order_of_key(t[1])+1<<endl; | ^~~~ | std::cout /usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ answer.code:29:57: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 29 | if(it!=pb.end()) cout<<pb.order_of_key(t[1])+1<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/13/istream:41, from /usr/include/c++/13/sstream:40, from /usr/include/c++/13/complex:45, from /usr/include/c++/13/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127: /usr/include/c++/13/ostream:735:5: note: ‘std::endl’ declared here 735 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ answer.code:30:14: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 30 | else cout<<pb.size()+1<<endl; | ^~~~ | std::cout /usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ answer.code:30:33: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 30 | else cout<<pb.size()+1<<endl; | ^~~~ | std::endl /usr/include/c++/13/ostream:735:5: note: ‘std::endl’ declared here 735 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~