0_0_21637132_23197.cpp: In function 'int main()':
0_0_21637132_23197.cpp:30:3: error: 'lowcost' was not declared in this scope
lowcost[0]=-1
^
0_0_21637132_23197.cpp:45:5: error: 'flag' was not declared in this scope
flag=1;
^
0_0_21637132_23197.cpp:48:4: error: 'ans' was not declared in this scope
ans+=maxx;
^
0_0_21637132_23197.cpp:55:6: error: 'flag' was not declared in this scope
if(flag==1)
^
0_0_21637132_23197.cpp:58:21: error: 'ans' was not declared in this scope
printf("%d\n\n",ans);
^
|