| Problem | descsort |
|---|---|
| User | XY3491 |
| Submission Time | 2026-02-28 10:39:54 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp:2:7: error: expected nested-name-specifier before ‘namesapce’
2 | using namesapce std;
| ^~~~~~~~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin>>number
| ^~~
| 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:8: error: ‘a’ was not declared in this scope
10 | cin>>a[i];
| ^
descsort.cpp:12:7: error: ‘a’ was not declared in this scope
12 | sort(a,a+number)
| ^
descsort.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(a,a+number)
| ^~~~
| qsort
descsort.cpp:13:19: error: ‘i’ was not declared in this scope
13 | for