0_0_39060190_22058.cpp: In function 'int main()':
0_0_39060190_22058.cpp:21:9: error: 'sort' was not declared in this scope; did you mean 'short'?
21 | sort(v1.begin(),v1.end(),[&](input x,input y){
| ^~~~
| short
0_0_39060190_22058.cpp:25:15: error: expected ';' before 'for'
25 | temp=M
| ^
| ;
26 | for(int i=0;i<N;i++){
| ~~~
0_0_39060190_22058.cpp:26:21: error: 'i' was not declared in this scope
26 | for(int i=0;i<N;i++){
| ^
0_0_39060190_22058.cpp:35:23: error: 'setprecision' was not declared in this scope
35 | cout<<totalj<<setprecision(3)<<endl;
| ^~~~~~~~~~~~
0_0_39060190_22058.cpp:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
2 | #include<vector>
+++ |+#include <iomanip>
3 | struct input{
|