Borderou de evaluare (job #809970)

Utilizator avatar Crimz0n25 Stefan Tanas Crimz0n25 IP ascuns
Problemă Sume Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2025 14:54:59 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:41:37: error: 'min' is not a member of 'std' 41 | int terms_to_add = std::min(count, k - total_terms_at_least_k); | ^~~ main.cpp:55:37: error: 'min' is not a member of 'std' 55 | int terms_to_add = std::min(count, k - total_terms_at_most_k); | ^~~ main.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | scanf("%d %d", &n, &k); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:20:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | scanf("%d", &num); | ~~~~~^~~~~~~~~~~~