0_0_37099599_19835.cpp: In function 'long long int calc()': 0_0_37099599_19835.cpp:22:9: error: 's' was not declared in this scope while(s[p]!=']'){ ^ 0_0_37099599_19835.cpp:23:5: error: 'ret' was not declared in this scope ret=ret*10+s[p]-'0'; ^