Language: C++

include<bits/stdc++.h>
using namespace std;

int main(){
   long int n,m;
   cin>>n>>m;
   vector<tuple<long int,string>>a(m);
   vector<long int>b(m);
   for(long int i=0;i<m;i++){
       string s;
       long int t;
       a.at(i)=make_tuple(t,s);
       b.at(i)=t;
   }
   sort(b.begin(),b.end());
   long int c;
   c=b.at(m-1);
   vector<int>d(n,0);

   long int wcount=0;
   long int rcount=0;
   
   for(long int i=0;i<m;i++){
       if(get<0>(a.at(i))==c && get<1>(a.at(i))=="AC"){
         d.at(get<0>(a.at(i))-1)=1;
         break;
       }
       else if(get<1>(a.at(i))=="AC"){
           d.at(get<0>(a.at(i))-1)=1;
       }
       else wcount+=1;
   }
   for(long int i=0;i<m;i++){
       rcount+=d.at(i);
   }
   cout<<rcount<<" "<<wcount<<endl;


}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:4: error: 'cin' was not declared in this scope
    6 |    cin>>n>>m;
      |    ^~~
a.cc:7:4: error: 'vector' was not declared in this scope
    7 |    vector<tuple<long int,string>>a(m);
      |    ^~~~~~
a.cc:7:11: error: 'tuple' was not declared in this scope
    7 |    vector<tuple<long int,string>>a(m);
      |           ^~~~~
a.cc:7:17: error: expected primary-expression before 'long'
    7 |    vector<tuple<long int,string>>a(m);
      |                 ^~~~
a.cc:8:11: error: expected primary-expression before 'long'
    8 |    vector<long int>b(m);
      |           ^~~~
a.cc:10:8: error: 'string' was not declared in this scope
   10 |        string s;
      |        ^~~~~~
a.cc:12:8: error: 'a' was not declared in this scope
   12 |        a.at(i)=make_tuple(t,s);
      |        ^
a.cc:12:29: error: 's' was not declared in this scope
   12 |        a.at(i)=make_tuple(t,s);
      |                             ^
a.cc:12:16: error: 'make_tuple' was not declared in this scope
   12 |        a.at(i)=make_tuple(t,s);
      |                ^~~~~~~~~~
a.cc:13:8: error: 'b' was not declared in this scope
   13 |        b.at(i)=t;
      |        ^
a.cc:15:9: error: 'b' was not declared in this scope
   15 |    sort(b.begin(),b.end());
      |         ^
a.cc:15:4: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |    sort(b.begin(),b.end());
      |    ^~~~
      |    short
a.cc:18:11: error: expected primary-expression before 'int'
   18 |    vector<int>d(n,0);
      |           ^~~
a.cc:24:11: error: 'get' was not declared in this scope
   24 |        if(get<0>(a.at(i))==c && get<1>(a.at(i))=="AC"){
      |           ^~~
a.cc:24:18: error: 'a' was not declared in this scope
   24 |        if(get<0>(a.at(i))==c && get<1>(a.at(i))=="AC"){
      |                  ^
a.cc:25:10: error: 'd' was not declared in this scope
   25 |          d.at(get<0>(a.at(i))-1)=1;
      |          ^
a.cc:29:12: error: 'd' was not declared in this scope
   29 |            d.at(get<0>(a.at(i))-1)=1;
      |            ^
a.cc:34:16: error: 'd' was not declared in this scope
   34 |        rcount+=d.at(i);
      |                ^
a.cc:36:4: error: 'cout' was not declared in this scope; did you mean 'rcount'?
   36 |    cout<<rcount<<" "<<wcount<<endl;
      |    ^~~~
      |    rcount
a.cc:36:31: error: 'endl' was not declared in this scope
   36 |    cout<<rcount<<" "<<wcount<<endl;
      |                               ^~~~