QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#141997 | #6668. Trokuti | hyforces# | Compile Error | / | / | C++14 | 2.3kb | 2023-08-18 10:05:35 | 2024-04-28 07:21:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void init(long long int)’: answer.code:18:9: error: ‘ch’ was not declared in this scope; did you mean ‘h’? 18 | ch.clear(); | ^~ | h answer.code:24:25: error: ‘msk’ was not declared in this scope 24 | if((msk>>kek)&1)ch.push_back({mat[b][c] + mat[c][d] + mat[d][b]}); | ^~~ answer.code: In function ‘void extract_set(std::vector<long long int>)’: answer.code:38:23: error: ‘n’ was not declared in this scope 38 | if(a==n-3&&b==n-2&&c==n-1)continue; | ^ answer.code:46:19: error: ‘n’ was not declared in this scope 46 | for(int a=0;a<n;++a){ | ^ answer.code:48:13: error: ‘mk’ was not declared in this scope 48 | mk[tv[a]][tv[b]]=mk[tv[b]][tv[a]]=true; | ^~ answer.code:49:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 49 | ans[tv[a]][tv[b]]=ans[tv[b]][tv[a]]=((tmsk>>h)&1); | ^~~ | abs answer.code: In function ‘int main()’: answer.code:67:38: error: no matching function for call to ‘min(long long int, int)’ 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ In file included from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’ 233 | min(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed: answer.code:67:38: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ /usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’ 281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed: answer.code:67:38: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ In file included from /usr/include/c++/13/algorithm:61: /usr/include/c++/13/bits/stl_algo.h:5775:5: note: candidate: ‘template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)’ 5775 | min(initializer_list<_Tp> __l) | ^~~ /usr/include/c++/13/bits/stl_algo.h:5775:5: note: template argument deduction/substitution failed: answer.code:67:38: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’ 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:5785:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)’ 5785 | min(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /usr/include/c++/13/bits/stl_algo.h:5785:5: note: template argument deduction/substitution failed: answer.code:67:38: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’ 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ answer.code:67:52: error: no matching function for call to ‘min(long long int, int)’ 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ /usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’ 233 | min(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed: answer.code:67:52: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) 67 | extract_set(vector<int>{0,min(a+3,99)-3,min(a+3,99)-2,min(a+3,99)-1,min(a+3,99)}); | ~~~^~~~~~~~ /usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’ 281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/13/bits/stl_algoba...