Problem | descsort |
---|---|
User | JerryCodebreaker |
Submission Time | 2024-01-27 18:20:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp:3:1: error: expected identifier before ‘int’
3 | int main() {
| ^~~
descsort.cpp:2:16: error: expected ‘;’ before ‘int’
2 | using namespace
| ^
| ;
3 | int main() {
| ~~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:5:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>a;
| ^~~
| std::cin
In file included from descsort.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
descsort.cpp:10:10: error: request for member ‘begin’ in ‘t’, which is of non-class type ‘int [a]’
10 | sort(t.begin(),t.end());
| ^~~~~
descsort.cpp:10:20: error: request for member ‘end’ in ‘t’, which is of non-class type ‘int [a]’
10 | sort(t.begin(),t.end());