Problem doll_noi
User G
Submission Time 2024-02-05 20:23:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:11:3: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
11 | sort(ar,ar+i+1);
| ^~~~
| qsort
doll_noi.cpp:18:17: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
18 | cout << count >> " ";
| ~~~~~~~~~~~~~ ^~ ~~~
| | |
| | const char [2]
| std::basic_ostream<char>
In file included from /usr/include/c++/9/string:56,
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,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from doll_noi.cpp:1:
/usr/include/c++/9/bits/basic_string.tcc:1466:5: note: candida