Problem urarareader
User key678
Submission Time 2026-06-23 10:09:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

urarareader.cpp: In function ‘int main()’:
urarareader.cpp:7:9: error: redeclaration of ‘long long int K’
7 | int K = 3;
| ^
urarareader.cpp:6:9: note: ‘long long int K’ previously declared here
6 | int K, N, Y, i;
| ^
urarareader.cpp:8:9: error: redeclaration of ‘long long int N’
8 | int N = 2;
| ^
urarareader.cpp:6:12: note: ‘long long int N’ previously declared here
6 | int K, N, Y, i;
| ^
urarareader.cpp:9:19: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘<unresolved overloaded function type>’)
9 | cin >> N >> K >> endl >> Y;
| ~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c