Problem | descsort |
---|---|
User | Adam |
Submission Time | 2024-06-19 11:15:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp:2:17: error: ‘sdc’ is not a namespace-name
2 | using namespace sdc;
| ^~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:4:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | int n; cin >> n
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:7:10: error: ‘arr’ was not declared in this scope
7 | cin >> arr[i];
| ^~~
descsort.cpp:8:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << arr[0]+arr[1] << "\n"
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/st