Unable to find error
Two test cases failed
@kunaldude04 hey kunal share your code here using ide.codingblocks.com here you can copy your code and press save button it will generate a saved url link. please share it asap I will help you out.
#include
using namespace std;
int main() {
int n,target;
cin >> n;
int a[n] ;
for (int i = 0 ; i < n ; i++){
cin >> a[i];
}
cin >> target;
// for(int k = 0 ; k < n;k++){
// cout << a[k];
// }
for (int i = 0 ; i < n;i++){
for (int j=i+1 ; j<n ; j++){
if( a[i]+ a[j] == target){
cout << a[i] << " and " << a[j] << endl;
}
}
}
return 0;
}