Problem | lightningrod |
---|---|
User | Rolo |
Submission Time | 2024-08-17 01:27:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:20:15: error: expected ‘;’ before ‘vector’
20 | n = readInt()
| ^
| ;
21 |
22 | vector<long long> pf(n+1);
| ~~~~~~
lightningrod.cpp:28:10: error: ‘pf’ was not declared in this scope; did you mean ‘sf’?
28 | if(i>1)pf[i] = max(x + y,pf[i-1]);
| ^~
| sf
lightningrod.cpp:33:21: error: ‘pf’ was not declared in this scope; did you mean ‘sf’?
33 | if(((i== 1) || pf[i]> pf[i-1])&& ((i == n ) || sf[i]> sf[i+1]))
| ^~
| sf