0_0_36626425_26009.cpp: In member function 'Complex Complex::operator+(const Complex&) const':
0_0_36626425_26009.cpp:22:33: error: could not convert '{(((double)((const Complex*)this)->Complex::x) + ((double)t.Complex::x)), (((double)((const Complex*)this)->Complex::y) + ((double)t.Complex::y))}' from '<brace-enclosed initializer list>' to 'Complex'
return {x + t.x, y + t.y};
^
0_0_36626425_26009.cpp: In member function 'Complex Complex::operator-(const Complex&) const':
0_0_36626425_26009.cpp:26:33: error: could not convert '{(((double)((const Complex*)this)->Complex::x) - ((double)t.Complex::x)), (((double)((const Complex*)this)->Complex::y) - ((double)t.Complex::y))}' from '<brace-enclosed initializer list>' to 'Complex'
return {x - t.x, y - t.y};
^
0_0_36626425_26009.cpp: In member function 'Complex Complex::operator*(const Complex&) const':
0_0_36626425_26009.cpp:30:53: error: could not convert '{((((double)((const Complex*)this)->Complex::x) * ((double)t.Complex::x)) - (((double)((const Complex*)this)->Complex::y) * ((double)t.Complex::y))), ((((double)((const Complex*)this)->Complex::x) * ((double)t.Complex::y)) + (((double)((const Complex*)this)->Complex::y) * ((double)t.Complex::x)))}' from '<brace-enclosed initializer list>' to 'Complex'
return {x * t.x - y * t.y, x * t.y + y * t.x};
^
0_0_36626425_26009.cpp: In function 'void FFT(Complex*, int)':
0_0_36626425_26009.cpp:42:66: error: no matching function for call to 'Complex::Complex(<brace-enclosed initializer list>)'
Complex w1 = Complex({cos(PI / mid), inv * sin(PI / mid)});
^
0_0_36626425_26009.cpp:42:66: note: candidates are:
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex()
struct Complex
^
0_0_36626425_26009.cpp:17:8: note: candidate expects 0 arguments, 1 provided
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex(const Complex&)
0_0_36626425_26009.cpp:17:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const Complex&'
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex(Complex&&)
0_0_36626425_26009.cpp:17:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Complex&&'
0_0_36626425_26009.cpp:45:40: error: no matching function for call to 'Complex::Complex(<brace-enclosed initializer list>)'
Complex wk = Complex({1, 0});
^
0_0_36626425_26009.cpp:45:40: note: candidates are:
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex()
struct Complex
^
0_0_36626425_26009.cpp:17:8: note: candidate expects 0 arguments, 1 provided
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex(const Complex&)
0_0_36626425_26009.cpp:17:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const Complex&'
0_0_36626425_26009.cpp:17:8: note: constexpr Complex::Complex(Complex&&)
0_0_36626425_26009.cpp:17:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Complex&&'
|