| Problem | justright |
|---|---|
| User | Taken |
| Submission Time | 2026-11-06 14:14:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
justright.cpp: In function ‘int main()’:
justright.cpp:14:19: error: wrong number of template arguments (1, should be 2)
14 | std::array<int> a;
| ^
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from justright.cpp:1:
/usr/include/c++/9/array:94:12: note: provided for ‘template<class _Tp, long unsigned int _Nm> struct std::array’
94 | struct array
| ^~~~~
justright.cpp:16:7: error: expected primary-expression before ‘]’ token
16 | a[]=[w,X,Y,Z]
| ^
justright.cpp:16:10: error: ‘w’ was not declared in this scope
16 | a[]=[w,X,Y,Z]
| ^
justright.cpp: I