Language: C++

#include<iostream>
int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;} 

Compiler output:
a.cc:2:53: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;}
      |                                                     ^~~~
a.cc: In function 'int main()':
a.cc:2:68: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;}
      |                                                                    ^~~
      |                                                                    std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:2:296: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;}
      |                                                                                                                                                                                                                                                                                                        ^~~~
      |                                                                                                                                                                                                                                                                                                        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:2:308: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;}
      |                                                                                                                                                                                                                                                                                                                    ^~~~
      |                                                                                                                                                                                                                                                                                                                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:2:313: error: expected primary-expression before ')' token
    2 | int a[200],b[200],c[1000],d[1000],n,m,i,j,k,t=0,w,q;main(){for(;;){cin>>n;if(!n)break;for(i=0;i<n;i++){cin>>a[i]>>b[i];}cin>>m;for(i=0;i<m;i++){cin>>c[i]>>d[i];}for(i=0;i<m;i++){w=c[i]-a[0];q=d[i]-b[0];for(j=1;j<n;j++){for(k=0;k<m;k++){if(a[j]+w==c[k]){if(b[j]+q==d[k]){t++;break;}}}}if(t==n-1){cout<<w<<q<<endl;);t=0;break;}t=0;}}return 0;}
      |                                                                                                                                                                                                                                                                                                                         ^