| Problem | scalars |
|---|---|
| User | DaPeter |
| Submission Time | 2025-12-05 10:09:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
scalars.cpp: In function ‘int main()’:
scalars.cpp:15:6: error: redeclaration of ‘long long int n’
15 | int n;
| ^
scalars.cpp:7:9: note: ‘long long int n’ previously declared here
7 | int n;cin>>n;
| ^
scalars.cpp:17:7: error: ‘v1’ was not declared in this scope; did you mean ‘__pstl::execution::v1’?
17 | n+= v1[i]*v2[i];
| ^~
| __pstl::execution::v1
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 scalars.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:19:18: note: ‘__pstl::execution::v1’ declared here
19 | inline namespace v1
| ^~
scalars.cpp:17:13: error: ‘v2’ was not declared in this scope
17 | n+= v1[i]*v2[i];
| ^~