Language: C++

#include<bits/stdc++.h>
using namespace std;
int sc[110],index[110],rank[110];
int main(){
  int N;
  cin>>N;
  for(int i=0;i<N*(N-1)/2;++i){
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if(c>d) sc[a-1]+=3;
    else if(c<d) sc[b-1]+=3;
    else{
      sc[a-1]++;
      sc[b-1]++;
    }
  }
  for(int i=0;i<N;++i) index[i]=i+1;
  for(int i=0;i<N;++i){
    for(int j=N-1;j!=i;--j){
      if(sc[i]<sc[j]){
	swap(index[i],index[j]);
	swap(sc[i],sc[j]);
      }
    }
  }
  int x=1;
  for(int i=0;i<N;++i){
    if(i>0&&sc[i]==sc[i-1]){
      rank[index[i]-1]=rank[index[i-1]-1];
      x++;
    }else rank[index[i]-1]=x++;
  }
  for(int i=0;i<N;++i) cout<<rank[i]<<endl;
  return 0;
}

Compiler output:
a.cc:3:22: error: 'int index [110]' redeclared as different kind of entity
    3 | int sc[110],index[110],rank[110];
      |                      ^
In file included from /usr/include/string.h:462,
                 from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/strings.h:50:20: note: previous declaration 'const char* index(const char*, int)'
   50 | extern const char *index (const char *__s, int __c)
      |                    ^~~~~
a.cc: In function 'int main()':
a.cc:17:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   17 |   for(int i=0;i<N;++i) index[i]=i+1;
      |                             ^
a.cc:21:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   21 |         swap(index[i],index[j]);
      |                   ^
a.cc:21:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   21 |         swap(index[i],index[j]);
      |                            ^
a.cc:29:7: error: reference to 'rank' is ambiguous
   29 |       rank[index[i]-1]=rank[index[i-1]-1];
      |       ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:3:24: note:                 'int rank [110]'
    3 | int sc[110],index[110],rank[110];
      |                        ^~~~
a.cc:29:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   29 |       rank[index[i]-1]=rank[index[i-1]-1];
      |                 ^
a.cc:29:24: error: reference to 'rank' is ambiguous
   29 |       rank[index[i]-1]=rank[index[i-1]-1];
      |                        ^~~~
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:3:24: note:                 'int rank [110]'
    3 | int sc[110],index[110],rank[110];
      |                        ^~~~
a.cc:29:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   29 |       rank[index[i]-1]=rank[index[i-1]-1];
      |                                  ^
a.cc:31:11: error: reference to 'rank' is ambiguous
   31 |     }else rank[index[i]-1]=x++;
      |           ^~~~
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:3:24: note:                 'int rank [110]'
    3 | int sc[110],index[110],rank[110];
      |                        ^~~~
a.cc:31:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   31 |     }else rank[index[i]-1]=x++;
      |                     ^
a.cc:33:30: error: reference to 'rank' is ambiguous
   33 |   for(int i=0;i<N;++i) cout<<rank[i]<<endl;
      |                              ^~~~
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:3:24: note:                 'int rank [110]'
    3 | int sc[110],index[110],rank[110];
      |                        ^~~~