0_0_28859497_23741.cpp: In function 'int main()': 0_0_28859497_23741.cpp:33:5: error: 'res' was not declared in this scope res+=sp(i); ^