Borderou de evaluare (job #3157497)

Utilizator cavamaxGeorge Buhnici cavamax Data 15 octombrie 2023 17:00:19
Problema Butoaie Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'can_do': main.c:10:25: warning: implicit declaration of function 'max'; did you mean 'fmax'? [-Wimplicit-function-declaration] 10 | int cock_left = max(rooms[i] - days * bad_spray, 0); | ^~~ | fmax main.c: In function 'find_min_days': main.c:31:30: warning: passing argument 2 of 'can_do' makes pointer from integer without a cast [-Wint-conversion] 31 | if (can_do(mid, rooms[1000], N, bad_cnt, good_cnt, bad_spray, good_spray)) { | ~~~~~^~~~~~ | | | int main.c:6:26: note: expected 'int *' but argument is of type 'int' 6 | int can_do(int days, int rooms[1000], int N, int bad_cnt, int good_cnt, | ~~~~^~~~~~~~~~~ main.c: In function 'main': main.c:71:90: error: expected ';' before '}' token 71 | fprintf(out, "%d", find_min_days(rooms, N, bad_cnt, good_cnt, bad_spray, good_spray)) | ^ | ; ...... 75 | } | ~ Non zero exit status: 1

Ceva nu functioneaza?