Problem | eatingparallelograms |
---|---|
User | Dolphy |
Submission Time | 2025-07-13 22:31:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eatingparallelograms.cpp: In function ‘int32_t main()’:
eatingparallelograms.cpp:21:16: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator==’
21 | else if (s[i]==max) {sm2+=p[i]; pow=max(pow, p[i]);
| ~~~~^~~~~
eatingparallelograms.cpp:22:3: error: expected ‘}’ before ‘else’
22 | else sm+=p[i];
| ^~~~
eatingparallelograms.cpp:21:23: note: to match this ‘{’
21 | else if (s[i]==max) {sm2+=p[i]; pow=max(pow, p[i]);
| ^