QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#481872 | #6458. Programming Team | lmq26052003 | Compile Error | / | / | C++23 | 1.4kb | 2024-07-17 15:30:31 | 2024-07-17 15:30:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void dfs(int, double)’: answer.code:16:27: error: reference to ‘expected’ is ambiguous 16 | if(u) dyn[u][1] = 1.0 * expected[u] - x * salary[u]; | ^~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:96, from answer.code:1: /usr/include/c++/13/expected:60:11: note: candidates are: ‘template<class _Tp, class _Er> class std::expected’ 60 | class expected; | ^~~~~~~~ answer.code:11:12: note: ‘std::vector<int> expected’ 11 | vector<int>expected, salary, tree_sz; | ^~~~~~~~ answer.code: In function ‘int main()’: answer.code:46:3: error: reference to ‘expected’ is ambiguous 46 | expected.resize(N + 1); | ^~~~~~~~ /usr/include/c++/13/expected:60:11: note: candidates are: ‘template<class _Tp, class _Er> class std::expected’ 60 | class expected; | ^~~~~~~~ answer.code:11:12: note: ‘std::vector<int> expected’ 11 | vector<int>expected, salary, tree_sz; | ^~~~~~~~ answer.code:50:25: error: reference to ‘expected’ is ambiguous 50 | cin >> salary[i] >> expected[i] >> voter; | ^~~~~~~~ /usr/include/c++/13/expected:60:11: note: candidates are: ‘template<class _Tp, class _Er> class std::expected’ 60 | class expected; | ^~~~~~~~ answer.code:11:12: note: ‘std::vector<int> expected’ 11 | vector<int>expected, salary, tree_sz; | ^~~~~~~~