Problem | sequence_apio |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-16 01:16:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sequence_apio.cpp: In function ‘int32_t main()’:
sequence_apio.cpp:44:2: error: expected initializer before ‘for’
44 | for (int i=1; i<=n; ++i)cin>>a, psum[i]=a+psum[i-1];
| ^~~
sequence_apio.cpp:44:16: error: ‘i’ was not declared in this scope
44 | for (int i=1; i<=n; ++i)cin>>a, psum[i]=a+psum[i-1];
| ^
sequence_apio.cpp:53:4: error: ‘par’ was not declared in this scope; did you mean ‘__pstl::execution::v1::par’?
53 | par[i][l] = res.second;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from sequence_apio.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: ‘__pstl::execution::v1::par’ declared here
114 | constexpr parallel_policy par{};