Problem descsort
User aaargh
Submission Time 2024-03-25 22:14:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:4:12: error: ‘ios_base’ has not been declared
4 | #define io ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
| ^~~~~~~~
descsort.cpp:7:2: note: in expansion of macro ‘io’
7 | io; int n; cin >> n;
| ^~
descsort.cpp:4:46: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | #define io ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
| ^~~
descsort.cpp:7:2: note: in expansion of macro ‘io’
7 | io; int n; cin >> n;
| ^~
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:4:58: error: ‘cout’ was not declared in