Problem cpicsort
User lengzt
Submission Time 2026-06-23 15:03:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:15:22: error: expected ‘;’ before ‘}’ token
15 | cout << A[i] << " "
| ^
| ;
16 | }
| ~
cpicsort.cpp:21:15: error: no match for ‘operator<<’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘const char [2]’)
21 | cin >> A[i] << " ";
| ^~ ~~~
| |
| const char [2]
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from cpicsort.cpp:1:
/usr/include/c++/9/bits/regex.h:1553:5: note: candidate: ‘template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_