My issue
in my code i am not able to find any issue as it is working fine but compiler is showing wrong
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
long long n,l;
cin>>n>>l;
long long a=l;
vector<long long> arr;
for(int i=0;i<n;i++){
arr.push_back(a);
a+=(l+1);
}
for(int i=0;i<n;i++){
cout<<arr[i]<<" ";
}
cout<<endl;
}
}
Problem Link: Anti-Triangle Practice Coding Problem - CodeChef