What is the problem with my code ?
prog.cpp: In function ‘void helper()’: prog.cpp:15:25: error: expected primary-expression before ‘long’
ans = ans + max(long long(0),vec[i]-i);
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
void helper(){
ll n;
cin>>n;
vector<ll>vec(n);
for(ll i=0;i<n;i++)
cin>>vec[i];
sort(vec.begin(),vec.end(),greater<ll>());
ll ans=0;
for(ll i=0;i<n;i++){
ans = ans + max(long long(0),vec[i]-i);
ans=ans % mod;
}
cout<<ans<<endl;
}
int main() {
int test;cin>>test;
while(test--){
helper();
}
return 0;
}