fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s= "09";
  6. s[1] += int(s[1]-'0')+1;
  7. cout<<s<<endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 4548KB
stdin
Standard input is empty
stdout
0C