Problem toblerone
User PlayVoltz
Submission Time 2025-01-29 15:50:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toblerone.cpp: In function ‘int32_t main()’:
toblerone.cpp:38:40: error: ‘ans’ was not declared in this scope; did you mean ‘ans2’?
38 | for (int i=1; i<=n; ++i)cin>>vect[i], ans+=vect[i], vect[i]*=-1;
| ^~~
| ans2