啊?

P5705 【深基2.例7】数字反转

sch13798684048 @ 2024-09-08 16:58:40

#include<bits/stdc++.h>
using namespace std;
int main(){
    float n,g=0,m,l,k,j;
    int a,s,d,f;
    m=n*10%10;
    a=m;
    l=n%10;
    s=l;
    k=n/10%10;
    d=k;
    j=n/100%10;
    f=j; c
    g=(a*100+s*10+d*1+f/10)/100;
    cout<<g;
    return 0;
}

by SpringQinHao @ 2024-09-08 17:39:35

@sch13798684048

13行c未定义

double无法进行取模运算


by sch13798684048 @ 2024-09-08 17:49:13

@SpringQinHao 蟹蟹大佬(那个c是不小心打的


|