Whats problem with my this code as test case 3 and 4 in not passed

@anantgovil123 share your code using cb ide

i have switched on collabrate mode please see to it

@guptanikhil898 its diff to look at the photo and correct it i need to run it on my own compiler and check so please share the source code through cb ide

#include using namespace std; int main() { int x; cin >> x; if(x%2==0){ float m = x/2; float n = 1; int y = mm - nn; int z = mm + nn; … } } return 0; }

#include using namespace std; int main() { int x; cin >> x; if(x%2==0){ float m = x/2; float n = 1; int y = mm - nn; int z = mm + nn; } } else if(x<0||x==1||x==2){ cout << “-1”; } else{ float m = (x+1)/2; float n = (x-1)/2; int y= 2mn; int z = mm +nn; if(xx +yy == z*z){ cout << y<<" "<< z; } else{ cout << “-1”; } return 0; }

@anantgovil123 corrected


use long long int ( other all correct)
dont forget to hit like and mark resolved if cleared :smiley: