Problem | sort |
---|---|
User | hitarthdangra |
Submission Time | 2025-06-18 15:38:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:7:11: error: could not convert ‘N’ from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘long unsigned int’
7 | string A[N];
| ^
sort.cpp:7:11: error: size of array ‘A’ has non-integral type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
sort.cpp:8:20: error: no match for ‘operator<’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
8 | for (int i = 0; i < N; i++) {
| ~ ^ ~
| | |
| int std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from sort.cpp:1:
/usr/include/c++/9/bits/regex.h:1048:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<(const std::__c