Problem | torturingaccountant |
---|---|
User | RandomPerson |
Submission Time | 2024-01-19 15:24:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
torturingaccountant.cpp: In function ‘int main()’:
torturingaccountant.cpp:15:16: error: ‘maxv’ was not declared in this scope
15 | if(maxv != -5) v.push_back(maxv);
| ^~~~
torturingaccountant.cpp:17:13: error: ‘maxv’ was not declared in this scope
17 | maxv = -5;
| ^~~~
torturingaccountant.cpp:19:13: error: ‘maxv’ was not declared in this scope
19 | maxv = max(maxv, a);
| ^~~~
torturingaccountant.cpp:23:36: error: redeclaration of ‘long long int tot’
23 | int maxv = 0; int ans = 0; int tot = 0; int undie = 0;
| ^~~
torturingaccountant.cpp:9:9: note: ‘long long int tot’ previously declared here
9 | int tot = 0, die = 0;
| ^~~