answer.code: In function ‘void solve()’:
answer.code:8:5: error: ‘ll’ was not declared in this scope
8 | ll sum=0;
| ^~
answer.code:11:19: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
11 | scanf("%lld",&u);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
answer.code:12:9: error: ‘sum’ was not declared in this scope
12 | sum+=u;
| ^~~
answer.code:15:24: error: ‘sum’ was not declared in this scope
15 | double ans=(double)sum/(n+1);
| ^~~
answer.code:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
answer.code:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%lld",&u);
| ~~~~~^~~~~~~~~~~