QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#156007 | #7112. XOR Clique | ucup-team452# | Compile Error | / | / | C++14 | 841b | 2023-09-02 13:10:50 | 2023-09-02 14:42:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:7:17: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’ 7 | auto&operator<<(auto&o,pair<auto,auto>p){return o<<"("<<p.first<<", "<<p.second<<")";} | ^~~~ answer.code:7:29: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’ 7 | auto&operator<<(auto&o,pair<auto,auto>p){return o<<"("<<p.first<<", "<<p.second<<")";} | ^~~~ answer.code:7:34: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’ 7 | auto&operator<<(auto&o,pair<auto,auto>p){return o<<"("<<p.first<<", "<<p.second<<")";} | ^~~~ answer.code:8:17: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’ 8 | auto operator<<(auto&o,auto x)->decltype(x.end(),o){o<<"{";int i=0;for(auto e:x)o<<","+!i++<<e;return o<<"}";} | ^~~~ answer.code:8:24: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’ 8 | auto operator<<(auto&o,auto x)->decltype(x.end(),o){o<<"{";int i=0;for(auto e:x)o<<","+!i++<<e;return o<<"}";} | ^~~~ answer.code: In function ‘int main()’: answer.code:25:24: error: missing template arguments before ‘tab’ 25 | vector tab(40, 0); | ^~~ answer.code:30:27: error: ‘tab’ was not declared in this scope; did you mean ‘tan’? 30 | ++tab[__lg(x)]; | ^~~ | tan answer.code:33:38: error: ‘tab’ was not declared in this scope; did you mean ‘tan’? 33 | cout << *max_element(tab.begin(), tab.end()) << '\n'; | ^~~ | tan