Problem | snowball |
---|---|
User | Celest |
Submission Time | 2023-01-18 17:06:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snowball.cpp: In function ‘int main()’:
snowball.cpp:8:3: error: expected initializer before ‘unsigned’
8 | unsigned ll ans=0;
| ^~~~~~~~
snowball.cpp:10:10: error: ‘snow’ was not declared in this scope
10 | cin>>snow[x];
| ^~~~
snowball.cpp:16:8: error: ‘snow’ was not declared in this scope
16 | if(snow[x]==max){
| ^~~~
snowball.cpp:18:7: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
18 | ans+=snow[x]^2;
| ^~~
| abs
snowball.cpp:21:7: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
21 | ans+=snow[x]^2;
| ^~~
| abs
snowball.cpp:24:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
24 | cout<<ans;
| ^~~
| abs