| Problem | lightningrod |
|---|---|
| User | tuongphat2505 |
| Submission Time | 2025-03-10 17:43:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:57:33: error: ‘pref’ was not declared in this scope
57 | ans += ((i == 0) || pref[i] > pref[i - 1]) && ((i == n - 1) || suff[i] > suff[i + 1]);
| ^~~~
lightningrod.cpp:57:76: error: ‘suff’ was not declared in this scope
57 | ans += ((i == 0) || pref[i] > pref[i - 1]) && ((i == n - 1) || suff[i] > suff[i + 1]);
| ^~~~