Borderou de evaluare (job #727257)

Utilizator avatar adyy Butucea Adelina adyy IP ascuns
Problemă Imprimanta (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 iul. 2023 10:27:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int solve(int)': main.cpp:26:13: error: 'max_element' was not declared in this scope 26 | return *max_element(p.begin(), p.end()); | ^~~~~~~~~~~ main.cpp:18:41: warning: unused variable 'mx' [-Wunused-variable] 18 | int n = N, mn = 13, tmp=0, pmx = 0, mx = 0; | ^~ main.cpp: In function 'int d(int)': main.cpp:34:31: error: 'pow' was not declared in this scope 34 | while(K) K-=5, sol += pow(10, i), i++; | ^~~ main.cpp:38:36: error: 'pow' was not declared in this scope 38 | while(K - 5 > mx) K-=5, sol += pow(10, i), i++; | ^~~ main.cpp:32:34: warning: unused variable 'n' [-Wunused-variable] 32 | int mx = 13, sol = 0, i = 0, n = 8, tmp, psol = 0; | ^ main.cpp:32:41: warning: unused variable 'tmp' [-Wunused-variable] 32 | int mx = 13, sol = 0, i = 0, n = 8, tmp, psol = 0; | ^~~ main.cpp:32:46: warning: unused variable 'psol' [-Wunused-variable] 32 | int mx = 13, sol = 0, i = 0, n = 8, tmp, psol = 0; | ^~~~