| Problem | duckhunt6 |
|---|---|
| User | chenweilian |
| Submission Time | 2026-08-30 19:20:21 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt6.cpp: In function ‘int main()’:
duckhunt6.cpp:58:33: error: expected primary-expression before ‘==’ token
58 | if (2*(s[i]-s[centr[i]](==s[i]){
| ^~
duckhunt6.cpp:58:39: error: expression cannot be used as a function
58 | if (2*(s[i]-s[centr[i]](==s[i]){
| ^
duckhunt6.cpp:58:40: error: expected ‘)’ before ‘{’ token
58 | if (2*(s[i]-s[centr[i]](==s[i]){
| ~ ^
| )
duckhunt6.cpp:61:10: error: expected ‘)’ before ‘cout’
61 | }
| ^
| )
62 | cout << (extra==-1 ? "1\n" : "2\n")<<centr[i];
| ~~~~
duckhunt6.cpp:58:12: note: to match this ‘(’
58 | if (2*(s[i]-s[centr[i]](==s[i]){
| ^