Saldainių maišelis

Taškai: 0

Compile: FAIL

saldainiu_maiselis.cpp: In function ‘int main()’: saldainiu_maiselis.cpp:29:9: error: ‘sum’ was not declared in this scope sum=sum+v[n-1]; ^ saldainiu_maiselis.cpp:34:14: error: ‘sum’ was not declared in this scope cout <<sum <<endl; ^

nr.resulttimemessage