F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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&&'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 02:46:58, Gzip enabled