Problem justright
User Taken
Submission Time 2026-11-06 14:14:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

justright.cpp: In function ‘int main()’:
justright.cpp:14:23: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Tp, long unsigned int _Nm> struct std::array’
14 | std::array<int,int> a;
| ^
justright.cpp:14:23: note: expected a constant of type ‘long unsigned int’, got ‘int’
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: In lambda function:
justright.cpp:19:5: error: expected ‘{’ before ‘return’
19 | return 0;
| ^~~~~~