Problem | lightningrod |
---|---|
User | TheInvadr |
Submission Time | 2023-12-13 19:02:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp:9:1: error: expected unqualified-id before numeric constant
9 | 8
| ^
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:15:1: error: ‘pref’ was not declared in this scope
15 | pref[i]=x+y;
| ^~~~
lightningrod.cpp:16:1: error: ‘suff’ was not declared in this scope
16 | suff[i]=y-x;
| ^~~~
lightningrod.cpp:21:15: error: ‘pref’ was not declared in this scope
21 | ans+=((i==0)||pref[i]>pref[i-1])&&((i==n-1)||suff[i]>suff[i+1]);
| ^~~~
lightningrod.cpp:21:46: error: ‘suff’ was not declared in this scope
21 | ans+=((i==0)||pref[i]>pref[i-1])&&((i==n-1)||suff[i]>suff[i+1]);
| ^~~~