Problem childsetter4
User Nayaa2403
Submission Time 2025-06-17 09:51:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

childsetter4.cpp: In function ‘int main()’:
childsetter4.cpp:8:1: error: ‘arr’ was not declared in this scope
8 | arr[N];
| ^~~
childsetter4.cpp:11:14: error: expected primary-expression before ‘<’ token
11 | cout << Y <<< ' ' << X;
| ^
childsetter4.cpp:11:20: error: no match for ‘operator<<’ (operand types are ‘char’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
11 | cout << Y <<< ' ' << X;
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,