为什么不能运行啊?求助!!

P1150 Peter 的烟

dongtian @ 2023-02-25 20:15:33

#include<stdio.h>
int mian()
{
    int n,k,a;
    scanf("%d%d",&n,&k);
    a=n;
    while(a>=k)
    {
        a-=k;
        n++;
        a++;
    }
    printf("%d",n);
    return 0;
}

by ljlawa @ 2023-02-25 20:16:19

《mian》


by Sun_Email @ 2023-02-25 20:16:38

int main()

不是

int mian()

by Yun_Mengxi @ 2023-02-25 20:20:48

小mian包来喽[滑稽]


by DreamLand_zcb @ 2023-02-25 20:21:55

好像没有

using namespace std;

by Yun_Mengxi @ 2023-02-25 20:23:31

@DreamLand_zcb 有没有可能,他的是C语言(


by DreamLand_zcb @ 2023-02-25 20:25:44

@Yun_Mengxi c艹用多了,都没看他代码(


by RenSiYu6 @ 2023-02-25 21:15:01

《mian》


by LiuTaifu @ 2023-04-11 12:37:19

原来mian也可以,受教了.


|