Borderou de evaluare (job #3042227)
Utilizator | Data | 4 aprilie 2023 20:28:39 | |
---|---|---|---|
Problema | Bacterii2 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void fft(cmplx*, int)':
main.cpp:26:19: error: no matching function for call to 'polar(double, ftype)'
26 | w = std::polar( 1.0, PI * inv / half );
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from main.cpp:4:
/usr/include/c++/12.2.1/complex:701:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::polar(const _Tp&, const _Tp&)'
701 | polar(const _Tp& __rho, const _Tp& __theta)
| ^~~~~
/usr/include/c++/12.2.1/complex:701:5: note: template argument deduction/substitution failed:
main.cpp:26:19: note: deduced conflicting types for parameter 'const _Tp' ('double' and 'ftype' {aka 'float'})
26 | w = std::polar( 1.0, PI * inv / half );
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !