#include<bits/stdc++.h>
using namespace std;
bool compare(const vector<long long int>&v1,const vector<long long int>&v2 ) {
return v1[0] < v2[0];
}
Can anyone tell me the use of const keyword and & in the function argument ?
#include<bits/stdc++.h>
using namespace std;
bool compare(const vector<long long int>&v1,const vector<long long int>&v2 ) {
return v1[0] < v2[0];
}
Can anyone tell me the use of const keyword and & in the function argument ?