为什么编译不出来 C语言!!!

P5707 【深基2.例12】上学迟到

LXRsep @ 2023-10-31 22:19:26

include <stdio.h>

include <math.h>

int main(int argc, char *argv[]) {

int s,v,time,a,b1;
scanf("%d%d",&s,&v);
time=8*60-(ceil(s*1.0/v)+10);
a=time/60;
b=time%60;
printf("0%d:%d",a,b);
return 0;

}


by W_s_W @ 2023-10-31 22:20:07

@LXRsep O.o


by _ChongYun_ @ 2023-10-31 22:24:04

@LXRsep b打成b1


by Hatsunatsu @ 2023-10-31 22:30:41

@LXRsep 你没有定义变量 b,但你定义了 b1,改个名就行了(


by LXRsep @ 2023-11-01 15:10:30

@HAM_qwq 改了但是只有50分


|