criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define int         long long   
#define double      long double
#define endl        "\n"
#define pb          push_back
#define PI          3.1415926535897932384626433832795l
#define F           first
#define S           second
#define mp          make_pair
#define f(i,n)      for(int i=0;i<n;i++)
#define fastio      ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define all(v)      (v).begin(),(v).end()
#define sort(v)     sort((v).begin(),(v).end())
#define rall(v)     (v).rbegin(),(v).rend()
#define rsort(v)     sort((v).rbegin(),(v).rend())
#define gcd(a,b)    __gcd((a),(b))
#define minn(v)     *min_element(v.begin(), v.end());
#define maxx(v)     *max_element(v.begin(), v.end());
#define print(x)    cout<<(x)<<endl;
typedef pair<int,int> pii;  
typedef vector<int> vi;
//x.substr(start, length);
/*
// Create a vector containing n 
//vectors of size m.  
    vector<vector<int> > vec( n , vector<int> (m, 0));  
*/
struct type{
    int k, i, j;
};
//to check if a no is prime or not?
bool isPrime(int n) 
{ 
    if (n <= 1) 
        return false; 
    if (n <= 3) 
        return true; 
    if (n % 2 == 0 || n % 3 == 0) 
        return false; 
  
    for (int i = 5; i * i <= n; i = i + 6) 
        if (n % i == 0 || n % (i + 2) == 0) 
            return false; 
  
    return true; 
}

// minimum subaaray sum of size k-sliding window approach
int findSubarray(int arr[], int n, int k)
{
	int window_sum = 0;
	int min_window = INT_MAX;
	int last = 0;
	for (int i = 0; i < n; i++)
	{
		window_sum += arr[i];
		if (i + 1 >= k)
		{
			if (min_window > window_sum)
			{
				min_window = window_sum;
				last = i;
			}
			window_sum -= arr[i + 1 - k];
		}
	}
	int sum=0;
	for(int i=last-k+1;i<=last;i++)
	{
	    sum+=arr[i];
	}
	return sum;
}
signed main() 
{
    fastio;
    //cout << fixed << setprecision(0);
    int n,m;
    cin>>n>>m;
    vi a(n+1,0);
    int wr=0;
    int ac=0;
    f(i,m)
    {
        int z;
        string s;
        cin>>z>>s;
    
        if(a[z]==0 and s=="WA")
        {
            wr++;
        }
        else if(s=="AC" and a[z]==0)
        {
            ac++;
            a[z]=1;
        }
        else if(s="AC" and a[z]==1)
        {
            wr++;
        }
    }
    cout<<ac<<" "<<wr<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:100:18: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"AC") != 0) && (a.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)z)) == 1)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
  100 |         else if(s="AC" and a[z]==1)
      |                 ~^~~~~~~~~~~~~~~~~
      |                  |
      |                  std::__cxx11::basic_string<char>
Language: C++

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

int main(){
 int N , M ;
  cin >> N >> M ;

  vector<int> AC(10300,0) ;
  vector<int> WA(10300,0) ;
  int ansac =0;
  int answa =0;
  
  for(int i=0;i<M;i++){
      int s=0 ;
  string p=' ' ;
    cin >> s ;
    cin >> p ;
    if(p=="AC"){
      AC[s]++;
    }
     if(p=="AC"&&WA[s]>0) {
      answa += WA[s];
      WA[s] = -500;    
    }
    if(p=="WA") WA[s]++;
  }
  
  for(int i=0;i<M;i++){
    if(AC[i]>0) ansac++;
  }
  
  cout << ansac << ' ' << answa << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   15 |   string p=' ' ;
      |            ^~~
Language: C++

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

int main(){
 int N , M ;
  cin >> N >> M ;

  vector<int> AC(10300)={0} ;
  vector<int> WA(10300)={0} ;
  int ansac =0;
  int answa =0;
  
  for(int i=0;i<M;i++){
      int s=0 ;
  string p=' ' ;
    cin >> s ;
    cin >> p ;
    if(p=="AC"){
      AC[s]++;
    }
     if(p=="AC"&&WA[s]>0) {
      answa += WA[s];
      WA[s] = -500;    
    }
    if(p=="WA") WA[s]++;
  }
  
  for(int i=0;i<M;i++){
    if(AC[i]>0) ansac++;
  }
  
  cout << ansac << ' ' << answa << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ',' or ';' before '=' token
    8 |   vector<int> AC(10300)={0} ;
      |                        ^
a.cc:9:24: error: expected ',' or ';' before '=' token
    9 |   vector<int> WA(10300)={0} ;
      |                        ^
a.cc:15:12: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   15 |   string p=' ' ;
      |            ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin>>N;
int M; cin>>M;
int counter=0;
int ac[N]={};
int wa[N]={};
int counterw=0;
int r;
string t;
cin>>t;
for(int i=0; i<M;i++){
cin>>r>>t;
if(){
ac[r]++;}
else{
if(ac[r]==0){
counterw++;}}}
for(int i=0; i<N;i++){
if(ac[i]>0){
counter++;}}
cout<<counter<<" "<<counterw<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected primary-expression before ')' token
   16 | if(){
      |    ^
Language: Java

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[] pm = new int[m];
		String[] sm = new String[m];
		List<Integer> acList = new ArrayList<>();
		Map<Integer, Boolean> bMap = new HashMap<>();

		for (int i = 0; i < m; i++) {
			int p = scan.nextInt();
			String s = scan.next();
			pm[i] = p;
			sm[i] = s;
			if (!acList.contains(pm[i])) {
				if (sm[i].equals("AC")) {
					acList.add(pm[i]);
					bMap.put(pm[i], false);
				}
			}
		}

		int cor = acList.size();
		int pen = 0;

		for (int i = 0; i < m; i++) {
			if (acList.contains(pm[i]) && !bMap.get(pm[i])) {
				if (sm[i].equals("WA")) {
					pen++;
				} else {
					bMap.put(pm[i], true);
				}
			}
		
		System.out.println(cor + " " + pen);

		scan.close();

	}

}


Compiler output:
Main.java:50: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int flag[N];
int main()
{
	int n,m;
	cin>>n>>m;
	if(m==0){cout<<"0"<<" "<<"0";return 0;}
	string s;
	int ac=0,wa=0,X;
	for(int i=0;i<m;i++)
	{
		cin>>X;
		cin>>s;
		if(flag[X]==0)//û��AC��
		{
			if(s=="AC")
		{
			flag[X]=1;
			ac++;
		}
		else {
			wa++;
		}
		}

	}
	cout<<ac<<" "<<wa<<endl;
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:30:14: error: expected '}' at end of input
   30 |     return 0;
      |              ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n1) for(int i=0;i<n1;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define yesno(flg) if(flg){cout<<'YES'<<endl;}else{cout<<'NO'<<endl;}
#define vi vector<int>
#define pb push_back
#define i197 1000000007
#define MAX_N 200002
#define PI 3.141592653589793
using namespace std;

typedef long long ll;
typedef pair<int,int> Pii;
typedef pair<Pii,int> Piii;
typedef pair<int,ll> Pil;
typedef pair<ll,ll> Pll;
typedef pair<string,int> Psi;
typedef pair<Psi,int> Psii;

const ll inf=1000000007;
struct edge{
	int myc,to,c,cost;
};
struct pos{
	int to,cost,color;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

vector<Pii> v[100001];
int dp[100000][3]={};
ll dp2[300000][60]={};
int main() {
	int n,m;
	cin>>n>>m;
	int k[n]={};
	int k2[n]={};
	rep(i,m){
		int p
		string s;
		cin>>p>>s;
		if(s=="AC"){
			k[p-1]++;
		}else{
			if(k[p-1]==0)k2[p-1]++;
		}
	}
	int r1=0;
	int r2=0;
	rep(i,n){
		if(k[i]>0){
			r1++;
			r2+=k2[i];
		}
	}
	cout<<r1<<" "<<r2<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:17: error: expected initializer before 'string'
   41 |                 string s;
      |                 ^~~~~~
a.cc:42:22: error: 'p' was not declared in this scope
   42 |                 cin>>p>>s;
      |                      ^
a.cc:42:25: error: 's' was not declared in this scope
   42 |                 cin>>p>>s;
      |                         ^
Language: C++

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

int main()
{
	int n, m, accnt = 0, wacnt=0;
	cin>>n>>m;
	vector<bool> prob(n);
	vector<int> wacntpro(n);
	for(int i=0;i<n;i++) prob[i] = false;
	for(int i=0;i<m;i++){
		int p;
		string s;
		cin>>p>>s;
		if(s == "AC"){
			if(!prob[p-1]){
				accnt++;
				prob[p-1] = true;
			}
		}
		if(s == "WA"){
			if(!prob[p-1]) wacntprob[p-1]++;
		}
	}
	for(int i=0;i<n;i++){
		if(prob[i]) wacnt += wacntprob[i];
	}
	cout<<accnt<<" "<<wacnt<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:40: error: 'wacntprob' was not declared in this scope; did you mean 'wacntpro'?
   22 |                         if(!prob[p-1]) wacntprob[p-1]++;
      |                                        ^~~~~~~~~
      |                                        wacntpro
a.cc:26:38: error: 'wacntprob' was not declared in this scope; did you mean 'wacntpro'?
   26 |                 if(prob[i]) wacnt += wacntprob[i];
      |                                      ^~~~~~~~~
      |                                      wacntpro
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(){
    int n, m;
    cin >> n >> m;
    int p, ans1 = 0, ans2 = 0;
    vector<int> wa_num(n+1);
    string s;
    for(int i = 0; i < m; i++){
        cin >> p >> s;
        if(wa_num[p] != -1){
            if(s == "AC"){
                ans1++;
                ans2 += wa_num[p];
                wa_num[p] = -1;
            }
            else wa_num[p]++;
        }
    }
    cout << ans1 << " " << ans2;
    return 0;
}v

Compiler output:
a.cc:23:2: error: 'v' does not name a type
   23 | }v
      |  ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <bits/stdc++.h>
#include <iomanip>
#include <numeric>
#include <utility>
#include <map>
#include <algorithm>
using namespace std;

long long main(void)
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    long long N, M;
    cin >> N >> M;
    vector<pair<long long, string>> vec(M);
    set<long long> st2; //不正解
    set<long long> st3; //正解済
    for (long long i = 0; i < M; ++i)
    {
        long long a;
        string b;
        cin >> a >> b;
        st2.insert(a);
        vec[i].first = a;
        vec[i].second = b;
    }
    long long num_maru = 0, num_pe = 0;
    for (long long i = 0; i < M; ++i)
    {
        if (st3.find(vec[i].first) != st3.end())
            continue;
        if (st2.find(vec[i].first) != st2.end())
        {
            if (vec[i].second == "AC")
            {
                st3.insert(vec[i].first);
                num_maru++;
            }
            else
                num_pe++;
        }
    }
    cout << num_maru << " " << num_pe << "\n";
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

n,m = map(int,input().split())
ac,wa = 0,0
number=[0]*N

for m in range(m):
  p,s = input().split()
  p = int(p) - 1
  if number[p]!=1:
    if s == "WA":
      number[p]+=1
    elif s == "AC":
      ac+=1
      wa+=number[p]
      number[p]=-1
print(ac,wa)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,m = map(int,input().split())
      | ^
Language: C

#include <stdio.h>

int main(){
	int state[100001];
	int wa_count[100001];

	int N,M,i,wa = 0, ac = 0;
	scanf("%d %d",&N,&M);
	
	for(i = 0; i < M; i++){
		int pi;
		char Si[20];
	
		scanf("%d %s",&pi,Si
	
			switch(Si[0]){
				case 'A':
					state[pi]++;
					break;
				case 'W':
					if(state[pi] == 0){
						wa_count[pi]++;
					}
					break;
			}
	}
	
		for(i = 1; i <N;i++){
			if(state[i]){
				ac++;
				wa += wa_count[i];
			}
		}
		printf("%d %d\n",ac,wa);
}
	
	

Compiler output:
main.c: In function 'main':
main.c:14:37: error: expected ')' before 'switch'
   14 |                 scanf("%d %s",&pi,Si
      |                      ~              ^
      |                                     )
   15 | 
   16 |                         switch(Si[0]){
      |                         ~~~~~~       
main.c:25:26: error: expected ';' before '}' token
   25 |                         }
      |                          ^
      |                          ;
   26 |         }
      |         ~
Language: C++

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

int main(){
  int n,m;
  cin>>n>>m;
  vector<int>ac[n],pena[n];
  rep(i,m){
      int p;
      string s;
      cin>>p>>s;
      if(ac[p]) continue;
      if(s=="AC") ac[p]=1;
      else pena[p]++;
  }
  int AC=0,WA=0;
  rep(i,n){
      AC+=ac[i];
      if(ac[i]) WA+=pena[i];
  }
  cout<<AC<<" "<<WA<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,m){
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,m){
      |   ^~~
Language: Java

import java.util.Scanner;
import java.util.TreeMap;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int ac = 0;
		int wa = 0;

		TreeMap<Integer, String> ans = new TreeMap<>();

		for (int i = 0; i < m; i++) {
			int p = sc.nextInt();
			String s = sc.next();
			if (ans.containsKey(p)) {
				if (ans.get(p).equals("AC")) {
					continue;
				} else {
					ans.put(p, s);
					if (s.equals("AC")) {
						ac++;
						continue;
					} else {
						wa++;
						continue;
					}
				}
			} 
			ans.put(p, s);
				if (s.equals("AC")) {
					ac++;
				} else {
					wa++;
				}
			}
		}

		System.out.println(ac+" "+wa);

	}
}


Compiler output:
Main.java:43: error: <identifier> expected
		System.out.println(ac+" "+wa);
		                  ^
Main.java:43: error: <identifier> expected
		System.out.println(ac+" "+wa);
		                     ^
Main.java:46: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <algorithm>
#include <bits/stdc++.h>
#include<iostream>
#include<string>
using namespace std;
#define rep(i, n) for (int i = 0; i <(int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ll long long
int main(){
ll n,m;cin>>n>>m;
int p;
string s;
int t[n]={0};
int ok[n]={0};
int cor=0;
int dif=0;
int wa[n]={0};
rep(i,m){
 cin>>p>>s;
 p--;
 if(ok[p])continue;
 if(s=="AC"){
     ok[p]=1;
     cor++;
     dif+=wa[p];
 }
 if(s=="WA")w[p]++;
}
cout<<cor<<" "<<wa<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'w' was not declared in this scope
   27 |  if(s=="WA")w[p]++;
      |             ^
Language: C++

#include <algorithm>
#include <bits/stdc++.h>
#include<iostream>
#include<string>
using namespace std;
#define rep(i, n) for (int i = 0; i <(int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ll long long
int main(){
ll n,m;cin>>n>>m;
int p;
string s;
int t[n]={0};
int ok[n]={0};
rep(i,m){
 cin>>p>>s;
 p--;
 if(s[i]=="AC")ok[p]=1;
 if(ok[p]!=1&&s[i]=="WA")t[p]++;
}
int sum=0;
int tmp=0;
rep(i,n){
  sum+=ok[i];
  tmp+=t[i];
}
cout<<sum<<" "<<tmp<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |  if(s[i]=="AC")ok[p]=1;
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |  if(ok[p]!=1&&s[i]=="WA")t[p]++;
Language: C++

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

int main(){
    int N,M;
    cin >> N >> M;
    map<int,bool> ma;
    int ac = 0;
    int wa = 0;
    for(int i = 0;i < M;i++){
        int p;
        string s;
        cin >> p >> s;
        if(s == "AC"){
            if(!ma.count(p) || ma[p] == false){
                ac++;
                ma[p] = true;
            }else if(ma[p] == "AC");
        }else if(s == "WA"){
            if(!ma.count(p)){
                wa++;
                ma[p] = false;
            }else if(ma[p] == false){
              wa++;
            }else if(ma[p] == true);
        }
    }
    cout << ac << " " << wa << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             }else if(ma[p] == "AC");
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n, m; cin>>n>>m;
  bool AC[n];
  int WA[n];
  
  int WAnum = 0;
  int ACnum = 0;
  for(int i = 1; i <= N; i++) {
        WA[i] = 0;
        AC[i] = false;
  }
  
  while(m--){
    int p; cin >> p;
    string s; cin >> s;
    if(AC[p]) continue;
    if(s=="AC") {
      AC[p]=true;
      ACnum++;
      WAnum+=WA[p];
    }
    else if {
      WA[p]++;
    }
  }
  cout << ACnum << " " << WAnum << endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'N' was not declared in this scope
   10 |   for(int i = 1; i <= N; i++) {
      |                       ^
a.cc:24:13: error: expected '(' before '{' token
   24 |     else if {
      |             ^
      |             (
Language: C++

#include<stdio.h>
#include<string.h>
int main() {
  int n,m,i;
  scanf("%d %d",&n,&m);
  int pi,acnum,x = 0,warongnum[m + 1];
  char si[2],ac[2] = "AC";
  acnum = 0;

  for (i = 1;i <= m; i ++) {
    warongnum[i] = 0;
  }
  for (i = 1;i <= m;i ++) {
    scanf("%d %s",&pi,&si);
    if (strcmp(si,ac)) {
      acnum ++;
      x = x + warongnum[pi];
    }
    else {
      warongnum[pi] ++;
    }
  }
  printf("%d %d",&acnum,&x);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: initializer-string for 'char [2]' is too long [-fpermissive]
    7 |   char si[2],ac[2] = "AC";
      |                      ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
int n,m,,f[N],ans,sum;
string s;
int main()
{
    cin>>n>>m;
    for(int i=1,x;i<=n;i++){
        cin>>x>>s;
        if(f[x])continue;
        else if(s=="AC")f[x]=1,ans++;
        else ++sum;
    }
    cout<<ans<<" "<<sum;
    return 0;
}

Compiler output:
a.cc:4:9: error: expected unqualified-id before ',' token
    4 | int n,m,,f[N],ans,sum;
      |         ^
Language: C++

#include <math.h>
#include <algorithm> // std::sort, std::min
#include <iomanip> // std::setprecision
#include <cmath> // std::ceil
#include <numeric> // std::gcd
#include <limits> // std::numeric_limits<long int>::max()

using namespace std;
typedef long long ll;
#define INF 1999999999
#define MODA 1000000007 

template<typename T>
T powint (const T& x, const T& y) {
  T ret = 1;
  for(int i=0; i<y; ++i) ret *= x;
  return ret;
}

int main() {
  ll N, M;
  cin >> N >> M;
  vector<int> p(M);
  vector<string> S(M);
  for(int i=0; i<M; ++i) cin >> p[i] >> S[i];

  vector<bool> ACflag(N+1, false);
  vector<ll> WAcount(N+1, 0);
  ll WAsum = 0;
  ll ACsum = 0;

  for(int i=0; i<M; ++i) {
    if(S[i] == "WA" && !ACflag[p[i]]) {
      WAcount[p[i]]++;
    }
    else if (S[i] == "AC" && !ACflag[p[i]]) {
      WAsum += WAcount[p[i]];
      ACsum++;
      ACflag[p[i]] = true;
    }
  }
  cout << ACsum <<" "<< WAsum << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: 'cin' was not declared in this scope
   22 |   cin >> N >> M;
      |   ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <numeric> // std::gcd
  +++ |+#include <iostream>
    6 | #include <limits> // std::numeric_limits<long int>::max()
a.cc:23:3: error: 'vector' was not declared in this scope
   23 |   vector<int> p(M);
      |   ^~~~~~
a.cc:6:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    5 | #include <numeric> // std::gcd
  +++ |+#include <vector>
    6 | #include <limits> // std::numeric_limits<long int>::max()
a.cc:23:10: error: expected primary-expression before 'int'
   23 |   vector<int> p(M);
      |          ^~~
a.cc:24:16: error: expected primary-expression before '>' token
   24 |   vector<string> S(M);
      |                ^
a.cc:24:18: error: 'S' was not declared in this scope
   24 |   vector<string> S(M);
      |                  ^
a.cc:25:33: error: 'p' was not declared in this scope
   25 |   for(int i=0; i<M; ++i) cin >> p[i] >> S[i];
      |                                 ^
a.cc:27:10: error: expected primary-expression before 'bool'
   27 |   vector<bool> ACflag(N+1, false);
      |          ^~~~
a.cc:28:12: error: expected primary-expression before '>' token
   28 |   vector<ll> WAcount(N+1, 0);
      |            ^
a.cc:28:14: error: 'WAcount' was not declared in this scope
   28 |   vector<ll> WAcount(N+1, 0);
      |              ^~~~~~~
a.cc:33:25: error: 'ACflag' was not declared in this scope
   33 |     if(S[i] == "WA" && !ACflag[p[i]]) {
      |                         ^~~~~~
a.cc:33:32: error: 'p' was not declared in this scope
   33 |     if(S[i] == "WA" && !ACflag[p[i]]) {
      |                                ^
a.cc:42:3: error: 'cout' was not declared in this scope
   42 |   cout << ACsum <<" "<< WAsum << endl;
      |   ^~~~
a.cc:42:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

// AUTHOR:: MOHAMMAD FAISAL
#include<bits/stdc++.h>
using namespace std;
bool visited[100005];
int wrong[100005]
int main()
{
  for(int i=1;i<100005;i++)
    visited[i] = true,wrong[i]=0;
  
  int n,m;
  cin >> n >> m;
  int good = 0, bad = 0;
  while(m--){
  	int x;string s;
    cin >> x >> s;
    if(s=="AC" && visited[x]==true)
    {
     good++;
     bad+=wrong[x];
     visited[x] = false;
    }
    else if(s=="WA" && visited[x]==true){
      wrong[x]++;
    }
  }
  cout<<good<<" "<<bad;
 return 0; 
}


Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main()
      | ^~~
Language: C++

// AUTHOR:: MOHAMMAD FAISAL
#include<bits/stdc++.h>
using namespace std;
bool visited[100005];

int main()
{
  for(int i=1;i<100005;i++)
    visited[i] = true;
  
  int n,m;
  cin >> n >> m;
  int good = 0, bad = 0;
  for(int i=0;i<m;i++){
  	int x, string s;
    cin >> x >> s;
    if(s=="AC" && visited[x]==true)
    {
     good++;
     visited[x] = false;
    }
    if(s=="WA" && visited[x]==true){
      bad++;
    }
  }
  cout<<good<<" "<<bad;
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: expected initializer before 's'
   15 |         int x, string s;
      |                       ^
a.cc:16:17: error: 's' was not declared in this scope
   16 |     cin >> x >> s;
      |                 ^
Language: C++

// AUTHOR:: MOHAMMAD FAISAL
#include<bits/stdc++.h>
using namespace std;
bool visited[100005];

int main()
{
  for(int i=1;i<100005;i++)
    visited[i] = true;
  
  int n,m;
  cin >> n >> m;
  int good = 0, bad = 0;
  for(int i=0;i<m;i++){
  	int x, string s;
    cin >> x >> s;
    if(s=="AC" && visited[x]==true)
    {
     good++;
     visited = false;
    }
    else if(s=="WA" && visited[x]==true){
      bad++;
    }
  }
  cout<<good<<" "<<bad;
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: expected initializer before 's'
   15 |         int x, string s;
      |                       ^
a.cc:16:17: error: 's' was not declared in this scope
   16 |     cin >> x >> s;
      |                 ^
a.cc:20:14: error: incompatible types in assignment of 'bool' to 'bool [100005]'
   20 |      visited = false;
      |      ~~~~~~~~^~~~~~~
Language: C++

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

int main() {
  int n,m,ac,wa;
  cin>>n>>m;
  vector<bool>yet(n);
  for(int i=0;i<n;i++) yet[i]=true;
  for(int i=0;i<m;i++){
    int p;
    string s;
    cin>>p>>s;
    if(s=="AC"){
      if(yet[p-1]){
        ac++;
        yet[p-1]++;
      }
    }
    else{
      if(yet[p-1]) wa++;
    }
  }
  cout<<ac<<" "<<wa<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   16 |         yet[p-1]++;
      |         ~~~~~~~~^~
Language: C++

int main(){
    ll n,m;
    cin>>n>>m;
    vector<ll> p(m);
    vector<string> s(m);
    rep(i,m){
        cin>>p[i];
        cin>>s[i];
    }

    vector<string> judge(n+1,"non");
    vector<int> wa_count(n+1);
    int ac  = 0;
    int wa = 0;

    rep(i,m){
        if(judge[p[i]]=="AC") continue;
        else{
            if((s[i]=="WA")){
                judge[p[i]] = "WA";
                ++wa_count[p[i]];
            }
            else if((s[i]=="AC")){
                judge[p[i]] = "AC";
                ++ac;
                wa += wa_count[p[i]];
            }
        }
    }

    cout << ac << " " << wa << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'll' was not declared in this scope
    2 |     ll n,m;
      |     ^~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>n>>m;
      |     ^~~
a.cc:3:10: error: 'n' was not declared in this scope
    3 |     cin>>n>>m;
      |          ^
a.cc:3:13: error: 'm' was not declared in this scope
    3 |     cin>>n>>m;
      |             ^
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<ll> p(m);
      |     ^~~~~~
a.cc:4:16: error: 'p' was not declared in this scope
    4 |     vector<ll> p(m);
      |                ^
a.cc:5:12: error: 'string' was not declared in this scope
    5 |     vector<string> s(m);
      |            ^~~~~~
a.cc:5:20: error: 's' was not declared in this scope
    5 |     vector<string> s(m);
      |                    ^
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     rep(i,m){
      |         ^
a.cc:6:5: error: 'rep' was not declared in this scope
    6 |     rep(i,m){
      |     ^~~
a.cc:11:20: error: 'judge' was not declared in this scope
   11 |     vector<string> judge(n+1,"non");
      |                    ^~~~~
a.cc:12:12: error: expected primary-expression before 'int'
   12 |     vector<int> wa_count(n+1);
      |            ^~~
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout << ac << " " << wa << endl;
      |     ^~~~
a.cc:31:32: error: 'endl' was not declared in this scope
   31 |     cout << ac << " " << wa << endl;
      |                                ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>

int main() {
    int N,M;
    scanf("%d %d",&N, &M);
    int A[N];
    for(int i = 0; i < N; ++i){
        A[i] = 0;
    }
    int count_AC = 0;
    int count_WA = 0;
    for(int i = 0; i < M; ++i){
        int bangou;
        char hantei[3];
        scanf("%d",&bangou);
        scanf("%s", hantei);
        if(strcmp(hantei,"AC") == 0){
            if(A[bangou-1] == 0){
                A[bangou-1] = 1;
                count_AC++;
            }
        }
        else {
            if (A[bangou-1] == 0) {
                count_WA++;
            }
        }
    }
    printf("%d %d",count_AC,count_WA);



Compiler output:
a.cc: In function 'int main()':
a.cc:34:39: error: expected '}' at end of input
   34 |     printf("%d %d",count_AC,count_WA);
      |                                       ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    vector<bool> isAC(n, false);
    vector<ll> pena(n, 0);
    for (int i = 0; i < m; ++i) {
        int p;
        string s;
        cin >> p >> s;
        --p;
        if (s == "AC") isAC[p] = true;
        else if (s == "WA" and !isAC[p]) pena[p]++;
    }
    cout << accumulate(isAC.begin(), isAC.end(), 0) << " " << accumulate(pena.begin(), pena.end(), (ll)0 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:106: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |     cout << accumulate(isAC.begin(), isAC.end(), 0) << " " << accumulate(pena.begin(), pena.end(), (ll)0 << endl;
      |                                                                                                    ~~~~~~^~~~~~~
Language: C++

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

int main(){
    int n, m, p, a=0, w=0;
    string s;
    cin>>n >>m;
    vector<int> q(n,0);
    
    for(int i=0;i<m;i++){
        cin>>p;
        p--;
        cin>>s;
        if(!q[p]){
            if(s=="WA"){
                w++;
            }else{
                q[p]=1;
                a++;
            }
        }
    }
    cout<<a<<" "<<w<<endl;
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inculde<bits/stdc++.h>
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>n >>m;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde<bits/stdc++.h>
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<int> q(n,0);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #inculde<bits/stdc++.h>
a.cc:8:12: error: expected primary-expression before 'int'
    8 |     vector<int> q(n,0);
      |            ^~~
a.cc:13:14: error: 's' was not declared in this scope
   13 |         cin>>s;
      |              ^
a.cc:14:13: error: 'q' was not declared in this scope
   14 |         if(!q[p]){
      |             ^
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout<<a<<" "<<w<<endl;
      |     ^~~~
a.cc:23:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:22: error: 'endl' was not declared in this scope
   23 |     cout<<a<<" "<<w<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde<bits/stdc++.h>
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  int n, m;
  cin >> n >> m;
  int key[n], pen[n];
  for(int i=0; i<n; i++){
    key[i]=0;
    pen[i]=0;
  }
  int p, cor=0, pensum=0;
  string s;
  for(int i=1; i<=m; i++){
    cin >> p >> s;
    if(key[p-1]==1) continue;
    if(s=="AC") {
      correct++;
      key[p-1]=1;
      pensum+=pen[p-1];
    }
    else{
      pen[p-1]++;
    }
  }
  cout << cor << " " << pensum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'correct' was not declared in this scope
   18 |       correct++;
      |       ^~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
#define MAXN 100000

int N,M;
vector<int> pe(MAXN,0);
vector<bool> isAC(MAXN false);

int main(){
  cin>>N>>M;
  int cAC=0;
  int cpe=0;
  int p;
  string s;
  for(int i=0;i<M;i++){
    cin>>p>>s;
    p--;
    if(s=="WA"){
      if(isAC[p]) continue;
      pe[p]++;
    }
    else{
      if(isAC[p]) continue;
      isAC[p]=true;
      cAC++;
      cpe+=pe[p];
    }
  }
  cout<<cAC<<" "<<cpe<<endl;
  return 0;
}
  
  

Compiler output:
a.cc:9:24: error: expected ')' before 'false'
    9 | vector<bool> isAC(MAXN false);
      |                  ~     ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  cin >> n >> m;
  vector<int>wa(n+1);
  vector<int>ac(n+1);
  int ca = 0 , p = 0;
  for(int i = 0; i < m; ++i){
    int tmp; 
    cin >> tmp;
    string ver;
    cin >> ver;
    if(ver == "AC"){
    	if(ac[tmp]){
        	continue;
        }
      	else{
        	p+=wa[tmp];
          	ca+=1;
          	ac[tmp]++;
        }
    }
    else{
    	wa[tmp]++;
    }
  
  }
  cout << ca <<" " << p <<"\n";
  return 0

}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:11: error: expected ';' before '}' token
   30 |   return 0
      |           ^
      |           ;
   31 | 
   32 | }
      | ~
Language: Java

import java.util.Scanner;
import java.util.rrays;
public class MainC{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;

    boolean[] isAC = new boolean[N];
    Arrays.fill(isAC,false);
    for(int i=0; i<M; i++){
        int index = sc.nextInt()-1;
        String s = sc.next();
        if(s.equals("AC")&&isAC[index]==false){
            isAC[index]=true;
            count1++;
            count3 += count2;
            count2 = 0;
        }else if(s.equals("WA")&&isAC[index]==false){
            count2++;
        }
    }
    System.out.print(count1 + " ");  
    System.out.print(count3);  
    return;
  }
}





Compiler output:
Main.java:3: error: class MainC is public, should be declared in a file named MainC.java
public class MainC{
       ^
Main.java:2: error: cannot find symbol
import java.util.rrays;
                ^
  symbol:   class rrays
  location: package java.util
Main.java:13: error: cannot find symbol
    Arrays.fill(isAC,false);
    ^
  symbol:   variable Arrays
  location: class MainC
3 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
public class MainC{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;

    boolean[] isAC = new boolean[N];
    Arrays.fill(isAC,false);
    for(int i=0; i<M; i++){
        int index = sc.nextInt()-1;
        String s = sc.next();
        if(s.equals("AC")&&isAC[index]==false){
            isAC[index]=true;
            count1++;
            count3 += count2;
        }else if(s.equals("WA")&&isAC[index]==false){
            count2++;
        }
    }
    System.out.print(count1 + " ");  
    System.out.print(count2);  
    return;
  }
}





Compiler output:
Main.java:3: error: class MainC is public, should be declared in a file named MainC.java
public class MainC{
       ^
1 error
Language: C++

int N, M;
bool solved[101010];
int wa[101010];
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> N >> M;

    rep(i, 0, M) {
        int p; string s; cin >> p >> s;
        p--;

        if (s == "WA" and !solved[p]) wa[p]++;
        if (s == "AC") solved[p] = true;
    }

    int correct = 0, penalty = 0;
    rep(i, 0, N) if (solved[i]) {
        correct++;
        penalty += wa[i];
   }

    cout << correct << " " << penalty << endl;
}

Compiler output:
a.cc: In function 'void _main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> N >> M;
      |     ^~~
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     rep(i, 0, M) {
      |         ^
a.cc:8:5: error: 'rep' was not declared in this scope
    8 |     rep(i, 0, M) {
      |     ^~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << correct << " " << penalty << endl;
      |     ^~~~
a.cc:22:42: error: 'endl' was not declared in this scope
   22 |     cout << correct << " " << penalty << endl;
      |                                          ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n,m;

    cin >> n >> m;

    int wa[n]={0};
    int ac[n]={0};

    int x=0;

    for(int i = 0; i < m; i++) {
        int a;
        string s;

        cin >> a >> s;

        a=a-1;
        int p=0;
        if(s=="WA"){
            wa[a]++;
        }else{
            if(ac[a]==0){
                p+=wa[a];
                ac[a]=1;
            }
        }
    }

    cout << accumulate(ac,ac+n,0) << " " << p << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:45: error: 'p' was not declared in this scope
   33 |     cout << accumulate(ac,ac+n,0) << " " << p << endl;
      |                                             ^
Language: C++

int main() {
	
	int N, M;

	int a[100000];
	int d[100001]={0};
  int e[100001]={0};
	char b, c;

	int ac=0, wa=0;

	cin >> N >> M;

	for (int i = 0; i < M; i++) {

		cin >> a[i] >> b >>c;

		if (b == 'A' && d[a[i]] == 0) {
			ac++;
			d[a[i]]++;
			wa = wa + e[a[i]];
		}
		if (b == 'W'&& d[a[i]] == 0) {
			e[a[i]]++;
		}


	}





	cout << ac << " " << wa;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> N >> M;
      |         ^~~
a.cc:34:9: error: 'cout' was not declared in this scope
   34 |         cout << ac << " " << wa;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int N, M;
  
  vector<int> a[N+1] = {0}; // それぞれの問題のACまでに間違った数
  
  bool flag[N+1] = {false}; // それぞれの問いをACだしたか
  
  int wa = 0;
  int ac = 0;
  
  for (int i = 0; i < N; i++) {
    int num;
    string S;
    cin >> num >> S;
    
    if (flag[num]) {
      continue;
    } else { 
      if (S.at(0) == 'W') wa++;
      if (S.at(0) == 'A') {
        flag[num] = true;
        ac++;
      }
    }
  }   
  cout << ac << " " << wa << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    8 |   vector<int> a[N+1] = {0}; // それぞれの問題のACまでに間違った数
      |                         ^
Language: C++

#include <cstring>
#include <stdlib.h>
using namespace std;

int N,M,cnt1=0,cnt2=0,i,j;
int *p1,*flg;
char **p2;

int main(void){
        cin >> N >> M;
        p1 = (int *)calloc(M, sizeof(int));
        p2 = (char **)calloc(M, sizeof(char *));
        for(i=0;i<M;i++){
                p2[i] = (char *)calloc(3, sizeof(char));
        }
        flg = (int *)calloc(N, sizeof(int));
        for(i=0;i<M;i++){
                if((string)p2[i]=="AC" && flg[p1[i]]==0){
                        flg[p1[i]] = 1;
                        cnt1 += 1;
                        for(j=0;j<i;j++){
                                if(p1[j]==p1[i] && (string)p2[j]=="WA"){
                                        cnt2 += 1;
                                }
                        }
                }

        }

        cout << cnt1 << " " << cnt2 << endl;

        for(i=0;i<M;i++){
                free(p2[i]);
        }
        free(p2);
        free(p1);
        free(flg);
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> N >> M;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdlib.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:18:21: error: 'string' was not declared in this scope
   18 |                 if((string)p2[i]=="AC" && flg[p1[i]]==0){
      |                     ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include <stdlib.h>
  +++ |+#include <string>
    3 | using namespace std;
a.cc:18:28: error: expected ')' before 'p2'
   18 |                 if((string)p2[i]=="AC" && flg[p1[i]]==0){
      |                   ~        ^~
      |                            )
a.cc:22:60: error: expected ')' before 'p2'
   22 |                                 if(p1[j]==p1[i] && (string)p2[j]=="WA"){
      |                                   ~                        ^~
      |                                                            )
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout << cnt1 << " " << cnt2 << endl;
      |         ^~~~
a.cc:30:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:40: error: 'endl' was not declared in this scope
   30 |         cout << cnt1 << " " << cnt2 << endl;
      |                                        ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <stdlib.h>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

n,m=map(int,input().split())
a=[]
for i in range(m):
	p,s=input().split()
	if p in a:
		continue
	if s=="AC":
		a.append(p)
print(len(a))

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,m=map(int,input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  ll N,M;
  cin>>N>>M;
  vector<string> ans(N,"WA");
    ll wanum=0,acnum=0;
  for(ll i=0;i<M;i++){
    ll x;
    string s;
    cin>>x>>s;
    x--;
  
    if(ans[x]=="WA"&&s=="WA"){
      wanum++;
    }else if(ans[x]=="WA"&&s=="AC"){
      acnum++;
      ans[x]="AC";
    }else continue;
  }
  cout<<acnum<<" "<<wanum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll N,M;
      |   ^~
a.cc:5:8: error: 'N' was not declared in this scope
    5 |   cin>>N>>M;
      |        ^
a.cc:5:11: error: 'M' was not declared in this scope
    5 |   cin>>N>>M;
      |           ^
a.cc:7:7: error: expected ';' before 'wanum'
    7 |     ll wanum=0,acnum=0;
      |       ^~~~~~
      |       ;
a.cc:8:9: error: expected ';' before 'i'
    8 |   for(ll i=0;i<M;i++){
      |         ^~
      |         ;
a.cc:8:14: error: 'i' was not declared in this scope
    8 |   for(ll i=0;i<M;i++){
      |              ^
a.cc:9:7: error: expected ';' before 'x'
    9 |     ll x;
      |       ^~
      |       ;
a.cc:11:10: error: 'x' was not declared in this scope
   11 |     cin>>x>>s;
      |          ^
a.cc:15:7: error: 'wanum' was not declared in this scope
   15 |       wanum++;
      |       ^~~~~
a.cc:17:7: error: 'acnum' was not declared in this scope
   17 |       acnum++;
      |       ^~~~~
a.cc:21:9: error: 'acnum' was not declared in this scope
   21 |   cout<<acnum<<" "<<wanum<<endl;
      |         ^~~~~
a.cc:21:21: error: 'wanum' was not declared in this scope
   21 |   cout<<acnum<<" "<<wanum<<endl;
      |                     ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
ll main(){
  ll N,M;
  cin>>N>>M;
  vector<string> ans(N,"WA");
    ll wanum=0,acnum=0;
  for(ll i=0;i<M;i++){
    ll x;
    string s;
    cin>>x>>s;
    x--;
  
    if(ans[x]=="WA"&&s=="WA"){
      wanum++;
    }else if(ans[x]=="WA"&&s=="AC"){
      acnum++;
      ans[x]="AC";
    }else continue;
  }
  cout<<acnum<<" "<<wanum<<endl;
}

Compiler output:
a.cc:3:1: error: 'll' does not name a type
    3 | ll main(){
      | ^~
Language: C++

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


int main(){
  int n,m;
  cin>>n>>m;
  vector<int> ac(n),pena(n);
  for(int i=0;i<m;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<n;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d",AC);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   26 |   priitf("%d",AC);
      |   ^~~~~~
      |   printf
Language: C++

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


int main(){
  int n,m;
  cin>>n>>m;
  vector<int> ac(n),pena(n);
  for(int i=0;i<m;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<n;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d %d\n",AC, PENA);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   26 |   priitf("%d %d\n",AC, PENA);
      |   ^~~~~~
      |   printf
Language: C++

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


int main(){
  int n,m;
  cin>>n>>m;
  vector<int> ac(n),pena(n);
  for(int i=0;i<m;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<n;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d" "%d\n" ,AC, PENA);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   26 |   priitf("%d" "%d\n" ,AC, PENA);
      |   ^~~~~~
      |   printf
Language: C++

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


int main(){
  int n,m;
  cin>>n>>m;
  vector<int> ac(n),pena(n);
  for(int i=0;i<m;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<n;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d %d/n" ,AC,PENA);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   26 |   priitf("%d %d/n" ,AC,PENA);
      |   ^~~~~~
      |   printf
Language: C++

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


int main(){
  int n,m;
  cin>>n>>m;
  vector<int> ac(n),pena(n);
  for(int i=0;i<m;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<n;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d" "%d/n" ,AC,PENA);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   26 |   priitf("%d" "%d/n" ,AC,PENA);
      |   ^~~~~~
      |   printf
Language: C++

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


int main(){
  int N,M;
  cin>>N>>M;
　vector<int>ac(N);
  vector<int>pena(N);
  for(int i=0;i<M;i++){
    int num;
    string str;
    cin>>num>>str;
    --num;
    if(ac[num]) continue;
    if(str=="AC"){
      ac[num] =1;
    }else {
      pena[num]++;
    }
  }
  int AC=0,PENA=0;
  for(int i=0;i<N;i++){
    AC+=ac[i];
    if(ac[i]) PENA+=pena[i];
  }
  priitf("%d" "%d/n" ,AC,PENA);
  return 0;
}
  
    
  
  
  
  
  


Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　vector<int>ac(N);
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000vector' was not declared in this scope
    8 | 　vector<int>ac(N);
      | ^~~~~~~~
a.cc:8:10: error: expected primary-expression before 'int'
    8 | 　vector<int>ac(N);
      |          ^~~
a.cc:15:8: error: 'ac' was not declared in this scope
   15 |     if(ac[num]) continue;
      |        ^~
a.cc:17:7: error: 'ac' was not declared in this scope
   17 |       ac[num] =1;
      |       ^~
a.cc:24:9: error: 'ac' was not declared in this scope; did you mean 'AC'?
   24 |     AC+=ac[i];
      |         ^~
      |         AC
a.cc:27:3: error: 'priitf' was not declared in this scope; did you mean 'printf'?
   27 |   priitf("%d" "%d/n" ,AC,PENA);
      |   ^~~~~~
      |   printf