Problem | cny |
---|---|
User | R1 |
Submission Time | 2023-02-01 17:00:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cny.cpp: In function ‘int main()’:
cny.cpp:4:3: error: ‘ios_base’ has not been declared
4 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
cny.cpp:5:3: error: ‘cin’ was not declared in this scope
5 | cin.tie(0);
| ^~~
cny.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
cny.cpp:14:18: error: ‘greater’ was not declared in this scope
14 | sort(arr,arr+n,greater<int>());
| ^~~~~~~
cny.cpp:14:26: error: expected primary-expression before ‘int’
14 | sort(arr,arr+n,greater<int>());
| ^~~
cny.cpp:14:3: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
14 | sort(arr,arr+n,greater<int>());
| ^~~~
| short
cny.cpp:29:3: error: ‘cout’ was not declared in this scope
2