QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#481872#6458. Programming Teamlmq26052003Compile Error//C++231.4kb2024-07-17 15:30:312024-07-17 15:30:31

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;
      |            ^~~~~~~~