0_0_24290437_23449.cpp: In function 'int main()': 0_0_24290437_23449.cpp:25:4: error: 'last' was not declared in this scope last=max(last,ans[i]); ^ 0_0_24290437_23449.cpp:26:9: error: 'last' was not declared in this scope cout<<last<<endl; ^