编译错误求条

P1307 [NOIP2011 普及组] 数字反转

lihongxing @ 2024-09-16 17:41:46

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a;
    cin>>a;
    bool f=1;
    for(int i=a.size()-1;i>=0;i--)
    {
        if(f==true&a[i]==false)
        {

        }else
        f==false;
       if(f!=true)
       cout<<a[i];
    }
    }
}

by GavinCQTD @ 2024-09-16 17:44:00

您是不是凭空多了一个右括号


by lihongxing @ 2024-09-16 17:44:46

@GavinCQTD 哦


by lihongxing @ 2024-09-16 17:45:12

已关


|