为什么全RE了!?

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

Dino_tang @ 2023-04-08 16:26:31

#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
    cin>>s;
    int n=s.length();
    for(int i=n-1;i>=0;i++){
        cout<<s[i];
    }
    cout<<endl;
    return 0;
}

by jiangjiangQwQ @ 2023-04-08 16:30:08

看看你的《i++》


by Aakkosetsumussa @ 2023-04-08 16:45:12

i++?确定不是i--?


by Dino_tang @ 2023-04-12 21:18:41

谢谢大佬提醒


|