Problem area_noi
User themailcat
Submission Time 2024-02-14 19:53:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits.stdc++.h>
| ^~~~~~~
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:5:9: error: ‘cin’ was not declared in this scope
5 | int n; cin >> n;
| ^~~
area_noi.cpp:7:6: error: redeclaration of ‘int n’
7 | int n;
| ^
area_noi.cpp:5:6: note: ‘int n’ previously declared here
5 | int n; cin >> n;
| ^
area_noi.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i=0;i<n;i++){
| ^
area_noi.cpp:14:17: error: ‘greater’ was not declared in this scope
14 | sort(arr,arr+n,greater<int>());
| ^~~~~~~
area_noi.cpp:14:25: error: expected primary-expression before ‘int’
14 | sort(arr,arr+n,greater<int>());
| ^~~
area_noi.cpp:14:2: error: ‘sort’ was not declared in this scope; did you mean ‘s