Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,c;
  while(cin>>a>>b>>c,a){
    if(c==0){
      if(a==1&&b<0)cout<<a<<' '<<0<<' '<<1<<' '<<b<<endl;
      else cout<<a<<' '<<b<<' '<<1<<' '<<0<<endl;
    }
    else{for(int j=1;j<=a;j++){
      if(a%j==0){
        if(a/j>=j)
          for(int i=10000;i>=-10000;i--){
            long long t,p=0;
            if(i*j+a/j*p==b&&p*i==c){
              cout<<a/j<<' '<<i<<' '<<j<<' '<<p<<endl;
              goto L;
            }
            if(i!=0){
              if(c%abs(i)==0)t=c/i;
              else continue;
            }
            else continue;
            if(i*j+a/j*t==b&&t*i==c){
              if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
              else cout<<a/j<<' '<<i<<' '<<j<<' '<<t<<endl;
              goto L;
            }
          }
          else break;
        }
      }
      cout<<"Impossible"<<endl;L:;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:30: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                              ^
a.cc:25:31: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                               ^
a.cc:25:32: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                ^
a.cc:25:33: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                 ^
a.cc:25:34: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                  ^
a.cc:25:35: error: expected primary-expression before '?' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                   ^
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token
a.cc:25:76: error: expected ':' before ';' token
   25 |               if(j*j==a&&i<t)?????? cout<<a/j<<' '<<t<<' '<<j<<' '<<i<<endl;
      |                                                                            ^
      |                                                                            :
a.cc:25:76: error: expected primary-expression before ';' token