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

Compile Error

justright.cpp: In function ‘int main()’:
justright.cpp:15:23: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Tp, long unsigned int _Nm> struct std::array’
15 | std::array<int,int> a;
| ^
justright.cpp:15:23: note: expected a constant of type ‘long unsigned int’, got ‘long long int’
justright.cpp:17:7: error: expected primary-expression before ‘]’ token
17 | a[]=[w,X,Y,Z]
| ^
justright.cpp:17:10: error: ‘w’ was not declared in this scope
17 | a[]=[w,X,Y,Z]
| ^
justright.cpp: In lambda function:
justright.cpp:20:5: error: expected ‘{’ before ‘return’
20 | return 0;
| ^~~~~~