QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#685752#6308. MagicHuangHanShengCompile Error//C++142.1kb2024-10-28 21:07:562024-10-28 21:07:57

Details

answer.code:13:44: warning: overflow in conversion from ‘long long int’ to ‘short int’ changes value from ‘2147483647’ to ‘-1’ [-Woverflow]
   13 | constexpr int N = 1e4 + 5, M = (1ll << 31) - 1, P = 1e9 + 7;
      |                                ~~~~~~~~~~~~^~~
answer.code:13:57: warning: overflow in conversion from ‘double’ to ‘short int’ changes value from ‘1.000000007e+9’ to ‘32767’ [-Woverflow]
   13 | constexpr int N = 1e4 + 5, M = (1ll << 31) - 1, P = 1e9 + 7;
      |                                                     ~~~~^~~
answer.code:13:59: error: overflow in constant expression [-fpermissive]
   13 | constexpr int N = 1e4 + 5, M = (1ll << 31) - 1, P = 1e9 + 7;
      |                                                           ^
answer.code:13:59: error: overflow in constant expression [-fpermissive]
answer.code: In function ‘short int dfs(short int, short int)’:
answer.code:60:27: error: no matching function for call to ‘min(int, short int&)’
   60 |     int tmp = dfs (v, min (1, f));
      |                       ~~~~^~~~~~
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:2:
/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:60:27: note:   deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short int’)
   60 |     int tmp = dfs (v, min (1, f));
      |                       ~~~~^~~~~~
/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:60:27: note:   deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short int’)
   60 |     int tmp = dfs (v, min (1, f));
      |                       ~~~~^~~~~~
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:60:27: note:   mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
   60 |     int tmp = dfs (v, min (1, f));
      |                       ~~~~^~~~~~
/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:60:27: note:   mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
   60 |     int tmp = dfs (v, min (1, f));
      |                       ~~~~^~~~~~
answer.code: In function ‘int main()’:
answer.code:8:13: warning: overflow in conversion from ‘int’ to ‘short int’ changes value from ‘1000000000’ to ‘-13824’ [-Woverflow]
    8 | #define inf 1000000000
      |             ^~~~~~~~~~
answer.code:87:33: note: in expansion of macro ‘inf’
   87 |   while (bfs ()) ret += dfs (0, inf);
      |                                 ^~~