0_0_25209418_1162.cpp: In function 'int solve()': 0_0_25209418_1162.cpp:13:3: error: 'ret' was not declared in this scope ret += (c[i] + 10) * p[i]; ^ 0_0_25209418_1162.cpp:29:9: error: 'ret' was not declared in this scope return ret; ^