Advertisement
Guest User

Untitled

a guest
Mar 24th, 2023
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. Errors while compiling:
  2. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp: In function 'vl convMod(const vl&, const vl&)':
  3. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:43: error: no match for 'operator/' (operand types are 'std::complex<double>' and '__complex__ int')
  4. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
  6. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ccomplex:39:0,
  7. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:52,
  8. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  9. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:416:5: note: candidate: template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const std::complex<_Tp>&)
  10. operator/(const complex<_Tp>& __x, const complex<_Tp>& __y)
  11. ^~~~~~~~
  12. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:416:5: note: template argument deduction/substitution failed:
  13. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: mismatched types 'const std::complex<_Tp>' and '__complex__ int'
  14. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  15. ^~
  16. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ccomplex:39:0,
  17. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:52,
  18. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  19. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:425:5: note: candidate: template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const _Tp&)
  20. operator/(const complex<_Tp>& __x, const _Tp& __y)
  21. ^~~~~~~~
  22. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:425:5: note: template argument deduction/substitution failed:
  23. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: deduced conflicting types for parameter 'const _Tp' ('double' and '__complex__ int')
  24. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  25. ^~
  26. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ccomplex:39:0,
  27. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:52,
  28. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  29. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:434:5: note: candidate: template<class _Tp> std::complex<_Tp> std::operator/(const _Tp&, const std::complex<_Tp>&)
  30. operator/(const _Tp& __x, const complex<_Tp>& __y)
  31. ^~~~~~~~
  32. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\complex:434:5: note: template argument deduction/substitution failed:
  33. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: mismatched types 'const std::complex<_Tp>' and '__complex__ int'
  34. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  35. ^~
  36. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:587:0,
  37. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95,
  38. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  39. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: candidate: template<class _Dom1, class _Dom2> std::_Expr<std::_BinClos<std::__divides, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)
  40. _DEFINE_EXPR_BINARY_OPERATOR(/, __divides)
  41. ^
  42. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: template argument deduction/substitution failed:
  43. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: 'std::complex<double>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  44. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  45. ^~
  46. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:587:0,
  47. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95,
  48. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  49. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: candidate: template<class _Dom> std::_Expr<std::_BinClos<std::__divides, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)
  50. _DEFINE_EXPR_BINARY_OPERATOR(/, __divides)
  51. ^
  52. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: template argument deduction/substitution failed:
  53. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: 'std::complex<double>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  54. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  55. ^~
  56. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:587:0,
  57. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95,
  58. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  59. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: candidate: template<class _Dom> std::_Expr<std::_BinClos<std::__divides, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
  60. _DEFINE_EXPR_BINARY_OPERATOR(/, __divides)
  61. ^
  62. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: template argument deduction/substitution failed:
  63. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__complex__ int'
  64. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  65. ^~
  66. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:587:0,
  67. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95,
  68. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  69. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: candidate: template<class _Dom> std::_Expr<std::_BinClos<std::__divides, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)
  70. _DEFINE_EXPR_BINARY_OPERATOR(/, __divides)
  71. ^
  72. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: template argument deduction/substitution failed:
  73. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: 'std::complex<double>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  74. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  75. ^~
  76. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:587:0,
  77. from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95,
  78. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  79. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: candidate: template<class _Dom> std::_Expr<std::_BinClos<std::__divides, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
  80. _DEFINE_EXPR_BINARY_OPERATOR(/, __divides)
  81. ^
  82. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\valarray_after.h:405:5: note: template argument deduction/substitution failed:
  83. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__complex__ int'
  84. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  85. ^~
  86. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95:0,
  87. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  88. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::__divides, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const std::valarray<_Tp>&, const std::valarray<_Tp>&)
  89. _DEFINE_BINARY_OPERATOR(/, __divides)
  90. ^
  91. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: template argument deduction/substitution failed:
  92. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: 'std::complex<double>' is not derived from 'const std::valarray<_Tp>'
  93. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  94. ^~
  95. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95:0,
  96. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  97. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::__divides, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const std::valarray<_Tp>&, const _Tp&)
  98. _DEFINE_BINARY_OPERATOR(/, __divides)
  99. ^
  100. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: template argument deduction/substitution failed:
  101. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: 'std::complex<double>' is not derived from 'const std::valarray<_Tp>'
  102. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  103. ^~
  104. In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\stdc++.h:95:0,
  105. from c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:1:
  106. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::__divides, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const _Tp&, const std::valarray<_Tp>&)
  107. _DEFINE_BINARY_OPERATOR(/, __divides)
  108. ^
  109. c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\valarray:1170:1: note: template argument deduction/substitution failed:
  110. c:\Users\Shubham\Desktop\CP_VS_Code\B_Coin_Game.cpp:108:44: note: mismatched types 'const std::valarray<_Tp>' and '__complex__ int'
  111. outs[j]=(L[i]-conj(L[j]))*R[i]/(2.0 * n)/1i;
  112. ^~
  113.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement