Problem duckhunt8
User ansel
Submission Time 2024-12-30 16:50:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt8.cpp: In function ‘int main()’:
duckhunt8.cpp:8:5: error: ‘ll’ was not declared in this scope
8 | ll sum=0;
| ^~
duckhunt8.cpp:12:9: error: ‘sum’ was not declared in this scope
12 | sum+=x;
| ^~~
duckhunt8.cpp:14:7: error: expected ‘;’ before ‘ans’
14 | ll ans=0;
| ^~~~
| ;
duckhunt8.cpp:17:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
17 | ans+=A[i]*counter;
| ^~~
| abs
duckhunt8.cpp:20:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | cout<<ans<<"\n";
| ^~~
| abs
duckhunt8.cpp:22:7: error: expected ‘;’ before ‘size’
22 | ll size=N;
| ^~~~~
| ;
duckhunt8.cpp:26:18: error: ‘sum’ was not declared in this scope
26 | ans-=sum;
| ^~~