Language: C++

#include<bits/stdc++.h>
#define mod 1000000007
#define int long long int
#define phi 1.6180339
#define rep(i,n) for(auto i=0;i<(n);i++)
#define endl "\n"
#define For(i,a,b) for(auto i=(a);i<(b);i++)
#define op1 cin.tie(NULL)
#define op2 cout.tie(NULL)
#define op3 std::ios_base::sync_with_stdio(false)
#define MAXX 1000001
using namespace std;
class abc{
    public:int row,col,total;
};
void trozen()
{
    int n,m,to;
    cin>>n>>m>>to;
    map<pair<int,int>,bool>m1;
    //rep(i,n+1) rep(j,m+1) arr[i][j]=0;
    int x,y;
    rep(i,to)cin>>x>>y,row[x]++,col[y]++,m1[{x,y}]=true;
    int maxe=INT_MIN,rows,cols;
    for(int i=1;i<=n;i++) if(maxe<row[i]) maxel=row[i],rows=i;
    int mine=INT_MIN;
    for(int i=1;i<=m;i++) if(mine<col[i]) mine=cols[i],cols=i;
    int ans=row[rows]+col[cols]-m1[{row,cols}];
    cout<<ans<<endl;
}
int32_t main()
{
    op1;op2;op3;
    /*#ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    #endif*/
    trozen();
    return 0;
}


Compiler output:
a.cc: In function 'void trozen()':
a.cc:23:24: error: 'row' was not declared in this scope; did you mean 'pow'?
   23 |     rep(i,to)cin>>x>>y,row[x]++,col[y]++,m1[{x,y}]=true;
      |                        ^~~
      |                        pow
a.cc:23:33: error: 'col' was not declared in this scope; did you mean 'cosl'?
   23 |     rep(i,to)cin>>x>>y,row[x]++,col[y]++,m1[{x,y}]=true;
      |                                 ^~~
      |                                 cosl
a.cc:25:35: error: 'row' was not declared in this scope; did you mean 'rows'?
   25 |     for(int i=1;i<=n;i++) if(maxe<row[i]) maxel=row[i],rows=i;
      |                                   ^~~
      |                                   rows
a.cc:25:43: error: 'maxel' was not declared in this scope; did you mean 'maxe'?
   25 |     for(int i=1;i<=n;i++) if(maxe<row[i]) maxel=row[i],rows=i;
      |                                           ^~~~~
      |                                           maxe
a.cc:27:35: error: 'col' was not declared in this scope; did you mean 'cols'?
   27 |     for(int i=1;i<=m;i++) if(mine<col[i]) mine=cols[i],cols=i;
      |                                   ^~~
      |                                   cols
a.cc:27:52: error: invalid types 'long long int[long long int]' for array subscript
   27 |     for(int i=1;i<=m;i++) if(mine<col[i]) mine=cols[i],cols=i;
      |                                                    ^
a.cc:28:13: error: 'row' was not declared in this scope; did you mean 'rows'?
   28 |     int ans=row[rows]+col[cols]-m1[{row,cols}];
      |             ^~~
      |             rows
a.cc:28:23: error: 'col' was not declared in this scope; did you mean 'cols'?
   28 |     int ans=row[rows]+col[cols]-m1[{row,cols}];
      |                       ^~~
      |                       cols
a.cc:28:35: error: no match for 'operator[]' (operand types are 'std::map<std::pair<long long int, long long int>, bool>' and '<brace-enclosed initializer list>')
   28 |     int ans=row[rows]+col[cols]-m1[{row,cols}];
      |                                   ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:504:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<long long int, long long int>; _Tp = bool; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<const std::pair<long long int, long long int>, bool> >; mapped_type = bool; key_type = std::pair<long long int, long long int>]'
  504 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:504:34: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::map<std::pair<long long int, long long int>, bool>::key_type&' {aka 'const std::pair<long long int, long long int>&'}
  504 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_map.h:524:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = std::pair<long long int, long long int>; _Tp = bool; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<const std::pair<long long int, long long int>, bool> >; mapped_type = bool; key_type = std::pair<long long int, long long int>]'
  524 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:524:29: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::map<std::pair<long long int, long long int>, bool>::key_type&&' {aka 'std::pair<long long int, long long int>&&'}
  524 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~