#include <bits/stdc++.h>using namespace std; int main() { string s="241"; int x = (int)(s[4]-'0'); cout<<x<<endl;}
Standard input is empty
-104
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!