0_0_27250060_21703.cpp: In function 'int getsum(std::string)':
0_0_27250060_21703.cpp:24:24: error: 'n' was not declared in this scope
for(int i = 1; i < n - 1; i++)
^
0_0_27250060_21703.cpp:33:10: error: 'n' was not declared in this scope
if(s[n - 1] == '0' && s[n - 2] == '0')
^
0_0_27250060_21703.cpp:35:10: error: 'n' was not declared in this scope
if(s[n - 1] == '1' && s[n - 2] == '1')
^
|