| Problem | cpicsort |
|---|---|
| User | lengzt |
| Submission Time | 2026-06-23 15:06:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:13:9: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘long long int [N]’
13 | sort(A.begin(), A + N); //asending order
| ^~~~~
cpicsort.cpp:19:9: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘long long int [N]’
19 | sort(A.begin(), A + N, greater<int>());
| ^~~~~
cpicsort.cpp:21:7: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
21 | cin << A[i] << " ";
| ~~~ ^~ ~~~~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
cpicsort.cpp:21:7: note: candidate: ‘operator<<(int, long long int)’ <built-in>
21 | cin << A[i] << " ";
| ~~~~^~~~~~~
cpicsort.cpp:21:7: note: no known conversion for argument