Compiler output
prog.cpp: In function 'int atoii(std::string)':
prog.cpp:20:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( ; ind < a.size(); nr = nr * 10 + (a[ind] - '0'), ++ind);
^
prog.cpp: In function 'int main()':
prog.cpp:37:13: warning: unused variable 'ind' [-Wunused-variable]
int ind = 0, len = s.size() - 1;
^
prog.cpp:37:22: warning: unused variable 'len' [-Wunused-variable]
int ind = 0, len = s.size() - 1;
^
prog.cpp:45:14: warning: unused variable 'ok1' [-Wunused-variable]
bool ok1 = false , ok2 = false;
^
prog.cpp:45:28: warning: unused variable 'ok2' [-Wunused-variable]
bool ok1 = false , ok2 = false;
^