Problem usefft1
User bribritt
Submission Time 2023-03-18 08:56:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

usefft1.cpp: In function ‘std::vector<long long int> multiply(std::vector<long long int>&, std::vector<long long int>&)’:
usefft1.cpp:50:6: error: invalid initialization of reference of type ‘std::vector<std::complex<double> >&’ from expression of type ‘long long int’
50 | fft(n, fa, false); fft(n, fb, false);
| ^
usefft1.cpp:15:23: note: in passing argument 1 of ‘void fft(std::vector<std::complex<double> >&, bool)’
15 | void fft(vector<cd> & a, bool invert) {
| ~~~~~~~~~~~~~^
usefft1.cpp:50:25: error: invalid initialization of reference of type ‘std::vector<std::complex<double> >&’ from expression of type ‘long long int’
50 | fft(n, fa, false); fft(n, fb, false);
| ^
usefft1.cpp:15:23: note: in passing argument 1 of ‘void fft(std::vector<std::complex<double> >&, bool)’
15 | void fft(vector<cd> & a, bool inv