Just have a quick question. I\'ve looked around the internet quite a bit and I\'ve found a few solutions but none of them have worked yet. Looking at converting a string to
ll toll(string a){ ll ret=0; bool minus=false; for(auto i:a){ if(i=='-'){ minus=true; continue; } ret*=10; ret+=(i-'0'); } if(minus) ret*=-1; return ret; # ll is defined as, #define ll long long int # usage: ll a = toll(string("-1234")); }