Problem urarareader
User Devthethala
Submission Time 2026-06-23 10:14:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

urarareader.cpp: In function ‘int main()’:
urarareader.cpp:6:18: error: expected ‘]’ before ‘:’ token
6 | int k, n, Y[1:k], i;
| ^
| ]
urarareader.cpp:8:10: error: ‘i’ was not declared in this scope
8 | for (i = 1; i <= n; i++) {
| ^
urarareader.cpp:9:10: error: ‘Y’ was not declared in this scope
9 | if ( Y[i] < k ) {
| ^
urarareader.cpp:14:13: error: ‘no’ was not declared in this scope; did you mean ‘n’?
14 | cout << no;
| ^~
| n
urarareader.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
urarareader.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^