Borderou de evaluare (job #2192745)

Utilizator alex_HarryBabalau Alexandru alex_Harry Data 7 aprilie 2018 01:14:53
Problema Strada Cramei Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:42: error: ‘acos’ was not declared in this scope const double eps = 0.000001, PI = acos(-1); ^ user.cpp: In function ‘void FFT(std::vector<Complex>&, int, double)’: user.cpp:60:44: error: ‘cos’ was not declared in this scope Complex root = {cos(sign * PI / len), sin(sign * PI / len)}; ^ user.cpp:60:66: error: ‘sin’ was not declared in this scope Complex root = {cos(sign * PI / len), sin(sign * PI / len)}; ^ user.cpp: In function ‘std::vector<Complex> multiply(std::vector<Complex>, std::vector<Complex>)’: user.cpp:83:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(A.size() < dim) ~~~~~~~~~^~~~~ user.cpp:85:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(B.size() < dim) ~~~~~~~~~^~~~~ user.cpp:89:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < A.size(); i++) ~~^~~~~~~~~~ user.cpp:92:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < C.size(); i++) ~~^~~~~~~~~~ user.cpp: In function ‘void Solve()’: user.cpp:120:37: error: ‘cos’ was not declared in this scope X[i] = {cos(PI * val / P), sin(PI * val / P)}; ^ user.cpp:120:56: error: ‘sin’ was not declared in this scope X[i] = {cos(PI * val / P), sin(PI * val / P)}; ^ user.cpp:120:57: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Complex> >::value_type {aka Complex}’ and ‘<brace-enclosed initializer list>’) X[i] = {cos(PI * val / P), sin(PI * val / P)}; ^ user.cpp:18:8: note: candidate: Complex& Complex::operator=(const Complex&) struct Complex ^~~~~~~ user.cpp:18:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Complex&’ user.cpp:18:8: note: candidate: Complex& Complex::operator=(Complex&&) user.cpp:18:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Complex&&’ user.cpp:126:37: error: ‘cos’ was not declared in this scope Y[i] = {cos(PI * val / P), sin(-PI * val / P)}; ^ user.cpp:126:57: error: ‘sin’ was not declared in this scope Y[i] = {cos(PI * val / P), sin(-PI * val / P)}; ^ user.cpp:126:58: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Complex> >::value_type {aka Complex}’ and ‘<brace-enclosed initializer list>’) Y[i] = {cos(PI * val / P), sin(-PI * val / P)}; ^ user.cpp:18:8: note: candidate: Complex& Complex::operator=(const Complex&) struct Complex

Ceva nu functioneaza?