Language: C++

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<iomanip>
#include<queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#typedef long long ll
#define INF 2147483647
using namespace std;
using Graph=vector<vector<int>>;

ll gcd(ll a,ll b){
  a=abs(a); b=abs(b);
  if(a==0 || b==0){
    return abs(a+b);
  }
  if(a<b){
    ll tmp=a; a=b; b=tmp;
  }
  ll r=a%b;
  while(r!=0){
    a=b;
    b=r;
    r=a%b;
  }
  return b;
}

ll RepSq(ll a,ll n,ll mod){
  if(n==0){
    return 1;
  }else if(n%2!=0){
    return (a*RepSq(a,n-1,mod))%mod;
  }else{
    ll x=RepSq(a,n/2,mod);
    return (x*x)%mod;
  }
}

int main(){
  ll n;
  cin>>n;
  ll mod=1000000007
  ll a[n],b[n],g[n];
  map<pair<ll,ll>,ll> mp;
  rep(i,n){
    cin>>a[i]>>b[i];
    g[i]=gcd(a[i],b[i]);
    a[i]/=g[i]; b[i]/=g[i];
    if(a[i]<0 || (a[i]==0 && b[i]>0)){
      a[i]*=-1; b[i]*=-1;
    }
    mp[make_pair(a[i],b[i])]++;
  }
  ll ans=0;
  for(auto p:mp){
    ll x,y,z,w;
    x=p.first.first; y=p.first.second;
    z=p.second;
    if(y<0){
      w=mp[make_pair(-y,x)];
    }else{
      w=mp[make_pair(y,-x)];
    }
  }
}


Compiler output:
a.cc:16:2: error: invalid preprocessing directive #typedef
   16 | #typedef long long ll
      |  ^~~~~~~
a.cc:21:1: error: 'll' does not name a type
   21 | ll gcd(ll a,ll b){
      | ^~
a.cc:38:1: error: 'll' does not name a type
   38 | ll RepSq(ll a,ll n,ll mod){
      | ^~
a.cc: In function 'int main()':
a.cc:50:3: error: 'll' was not declared in this scope
   50 |   ll n;
      |   ^~
a.cc:51:8: error: 'n' was not declared in this scope; did you mean 'yn'?
   51 |   cin>>n;
      |        ^
      |        yn
a.cc:52:5: error: expected ';' before 'mod'
   52 |   ll mod=1000000007
      |     ^~~~
      |     ;
a.cc:54:21: error: template argument 1 is invalid
   54 |   map<pair<ll,ll>,ll> mp;
      |                     ^
a.cc:54:21: error: template argument 3 is invalid
a.cc:54:21: error: template argument 4 is invalid
a.cc:56:10: error: 'a' was not declared in this scope
   56 |     cin>>a[i]>>b[i];
      |          ^
a.cc:56:16: error: 'b' was not declared in this scope
   56 |     cin>>a[i]>>b[i];
      |                ^
a.cc:57:5: error: 'g' was not declared in this scope
   57 |     g[i]=gcd(a[i],b[i]);
      |     ^
a.cc:64:5: error: expected ';' before 'ans'
   64 |   ll ans=0;
      |     ^~~~
      |     ;
a.cc:65:14: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   65 |   for(auto p:mp){
      |              ^~
      |              std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:4:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:65:14: error: 'end' was not declared in this scope; did you mean 'std::end'?
   65 |   for(auto p:mp){
      |              ^~
      |              std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
a.cc:66:7: error: expected ';' before 'x'
   66 |     ll x,y,z,w;
      |       ^~
      |       ;
a.cc:67:5: error: 'x' was not declared in this scope
   67 |     x=p.first.first; y=p.first.second;
      |     ^
a.cc:67:22: error: 'y' was not declared in this scope; did you mean 'yn'?
   67 |     x=p.first.first; y=p.first.second;
      |                      ^
      |                      yn
a.cc:68:5: error: 'z' was not declared in this scope
   68 |     z=p.second;
      |     ^
a.cc:70:7: error: 'w' was not declared in this scope
   70 |       w=mp[make_pair(-y,x)];
      |       ^
a.cc:72:7: error: 'w' was not declared in this scope
   72 |       w=mp[make_pair(y,-x)];
      |       ^