Borderou de evaluare (job #2739581)

Utilizator bubblegumixUdrea Robert bubblegumix Data 8 aprilie 2021 20:47:33
Problema Fractal Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int fractal(int, std::pair<int, int>&)': main.cpp:16:37: error: 'sqrt' was not declared in this scope if (p.x >= 1 && p.x <= sqrt(dim / 4) && p.y >= 1 && p.y <= sqrt(dim / 4)) ^ main.cpp:21:24: error: 'sqrt' was not declared in this scope if (p.x > sqrt(dim / 4) && p.x <= 2* sqrt(dim / 4) && p.y >= 1 && p.y <= sqrt(dim / 4)) ^ main.cpp:30:24: error: 'sqrt' was not declared in this scope if (p.x > sqrt(dim / 4) && p.x <= 2* sqrt(dim / 4) && p.y > sqrt(dim / 4) && p.y <= 2* sqrt(dim / 4)) ^ main.cpp:43:37: error: 'sqrt' was not declared in this scope if (p.x >= 1 && p.x <= sqrt(dim / 4) && p.y > sqrt(dim / 4) && p.y <= 2* sqrt(dim / 4)) ^ main.cpp: In function 'int main()': main.cpp:60:16: error: 'pow' was not declared in this scope dim = pow(2, n); ^ main.cpp: In function 'int fractal(int, std::pair<int, int>&)': main.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?