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

#include<iostream>
#include<string>
using namespace std;

int main() {

	int x, y, z;
	char next = 'A';

	string A, B, C;

	cin >> A >> B >> C;

	while (A.length > x && B.length > y && C.length > z)
	{
		switch (next)
		{
		case 'A':
			next = A[x];
			x++;
		case 'B':
			next = B[y];
			y++;
		case 'C':
			next = C[z];
			z++;
		}
	}

	cout << next << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |         while (A.length > x && B.length > y && C.length > z)
      |                ~~^~~~~~
      |                        ()
a.cc:14:34: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |         while (A.length > x && B.length > y && C.length > z)
      |                                ~~^~~~~~
      |                                        ()
a.cc:14:50: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |         while (A.length > x && B.length > y && C.length > z)
      |                                                ~~^~~~~~
      |                                                        ()
Language: C

#include<stdio.h>
#include<string.h>

int main(void)
{
  int Acount = 0,Bcount = 0,Ccount = 0flag = 0;
  char A[110],B[110],C[110];
  scanf("%s",A);  scanf("%s",B);  scanf("%s",C);
  
  while(flag != 4)
  {
    switch(flag)
    {
      case 0:
        if(Acount == strlen(A) - 1){printf("A"); flag = 4; break;}
        if(A[Acount] == 'B'){flag = 1;}else{flag = 2;}
        Acount++;
        break;
      case 1:
        if(Bcount == strlen(B) - 1){printf("B"); flag = 4; break;}
        if(A[Acount] == 'B'){flag = 1;}else{flag = 2;}
        Bcount++;
        break;
      case 2:
        if(Ccount == strlen(C) - 1){printf("C"); flag = 4; break;}
        if(A[Acount] == 'B'){flag = 1;}else{flag = 2;}
        Ccount++;
        break;
        
    }
  }
  
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:6:38: error: invalid suffix "flag" on integer constant
    6 |   int Acount = 0,Bcount = 0,Ccount = 0flag = 0;
      |                                      ^~~~~
main.c:10:9: error: 'flag' undeclared (first use in this function)
   10 |   while(flag != 4)
      |         ^~~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using lint = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main()
{
    optimize_cin();

    string SA, SB, SC;
    cin >> SA >> SB >> SC;

    char turn = 'a';

    while (true)
    {
        if (SZ(SA) == 0)
        {
            cout << "A" << "\n";
            break;
        }
        else if (SZ(SB) == 0)
        {
            cout << "B" << "\n";
            break;
        }
        else if (SZ(SC) == 0)
        {
            cout << "C" << "\n";
            break;
        }

        if (turn == 'a')
        {
            turn = SA.back();
            SA.pop_back();
        }
        else if (turn == 'b')
        {
            turn = SB.back();
            SB.pop_back();
        }
        else if (turn == 'c')
        {
            turn = SC.back();
            SC.pop_back();
        }
    }

    return 0;



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

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

int main()
{
    string s[3];
    REP(i, 3) cin >> s[i];

    int mbr_next;
    int mbr_prev = 0;

    do
    {
        mbr_next = s[mbr_prev].c_str()[0] - 'a';
        s[mbr_prev] = s[mbr_prev].substr(1, s[mbr_prev].size() - 1);
        mbr_prev = mbr_next;
    }
    while(s[mbr_next].size());
    
    if (!s[0].size()) cout << "A" << endl;
    else if (!s[1].size()) cout << "B" << endl;
    else cout << "C" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     REP(i, 3) cin >> s[i];
      |         ^
a.cc:7:5: error: 'REP' was not declared in this scope
    7 |     REP(i, 3) cin >> s[i];
      |     ^~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <set>
#include <map>
#include <unordered_map>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <cstdlib>
#include <iterator>
#include <algorithm>
#include <functional>
#include <random>
#include <bits/stdc++.h>

#include <stdio.h>
#include <cstdio>
#include <cctype>
#include <cmath>
#include <math.h>
#include <ctime>
#include <cstring>


typedef long long ll;
using namespace std;

#define FOR(i,n) for(ll i=97;i<n;i++) 
#define RFOR(i,n) for(ll i=n-1;i>=0;--i)
#define COUT(str) cout << str << endl

string a, b, c;

int main() {
	cin >> a >> b >> c;
	int ia = 0, ib = 0, ic = 0;
	char state = 'a';
	while (ia <= a.length() and ib <= b.length() and ic <= c.length())
	{
		if (state == 'a') {
			if (ia == a.length()) {
				cout << "A" << nn;
				return 0;
			}
			state = a[ia++];
		}
		else if (state == 'b') {
			if (ib == b.length()) {
				cout << "B" << nn;
				return 0;
			}
			state = b[ib++];
		}
		else if (state == 'c') {
			if (ic == c.length()) {
				cout << "C" << nn;
				return 0;
			}
			state = c[ic++];
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:48: error: 'nn' was not declared in this scope; did you mean 'yn'?
   47 |                                 cout << "A" << nn;
      |                                                ^~
      |                                                yn
a.cc:54:48: error: 'nn' was not declared in this scope; did you mean 'yn'?
   54 |                                 cout << "B" << nn;
      |                                                ^~
      |                                                yn
a.cc:61:48: error: 'nn' was not declared in this scope; did you mean 'yn'?
   61 |                                 cout << "C" << nn;
      |                                                ^~
      |                                                yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	string a, b, c;
	cin >> a >>  b >> c;
	char card=='a';
	while () {
		if (card = 'a') {
			if (a.size() == 0) {
				cout << "A" << endl;
				return 0;
			}
			else {
				card = a[0];
				a = a.substr(1, a.size() - 1);
			}
		}
		if (card = 'b') {
			if (b.size() == 0) {
				cout << "B" << endl;
				return 0;
			}
			else {
				card = b[0];
				b = b.substr(1, b.size() - 1);
			}
		}if (card = 'c') {
			if (c.size() == 0) {
				cout << "C" << endl;
				return 0;
			}
			else {
				card = c[0];
				c = c.substr(1, c.size() - 1);
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected initializer before '==' token
    6 |         char card=='a';
      |                  ^~
a.cc:7:16: error: expected primary-expression before ')' token
    7 |         while () {
      |                ^
a.cc:8:21: error: 'card' was not declared in this scope
    8 |                 if (card = 'a') {
      |                     ^~~~
a.cc:18:21: error: 'card' was not declared in this scope
   18 |                 if (card = 'b') {
      |                     ^~~~
a.cc:27:22: error: 'card' was not declared in this scope
   27 |                 }if (card = 'c') {
      |                      ^~~~
Language: C++

#include <iostream>
#include <queue>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
int main(void){
　char sa[105],sb[105],sc[105];
　cin>>sa>>sb>>sc;
　int now=sa[0];
　int a=0,b=0,c=0;
　for(int i=0;i<310;i++){
　    if(now=='a') {a++; now=sa[a]; if(now!='a'&&now!='b'&&now!='c') {cout<<'A';break;}}
　    else if(now=='b') {b++; now=sb[b]; if(now!='a'&&now!='b'&&now!='c') {cout<<'B';break;}}
　    else {c++; now=sc[c]; if(now!='a'&&now!='b'&&now!='c') {cout<<'C'; break;}
　}
　return 0;
}


Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　char sa[105],sb[105],sc[105];
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　cin>>sa>>sb>>sc;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　int now=sa[0];
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　int a=0,b=0,c=0;
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　for(int i=0;i<310;i++){
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　    if(now=='a') {a++; now=sa[a]; if(now!='a'&&now!='b'&&now!='c') {cout<<'A';break;}}
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　    else if(now=='b') {b++; now=sb[b]; if(now!='a'&&now!='b'&&now!='c') {cout<<'B';break;}}
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　    else {c++; now=sc[c]; if(now!='a'&&now!='b'&&now!='c') {cout<<'C'; break;}
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　}
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000char' was not declared in this scope
    8 | 　char sa[105],sb[105],sc[105];
      | ^~~~~~
a.cc:9:1: error: '\U00003000cin' was not declared in this scope
    9 | 　cin>>sa>>sb>>sc;
      | ^~~~~
a.cc:9:8: error: 'sa' was not declared in this scope
    9 | 　cin>>sa>>sb>>sc;
      |        ^~
a.cc:9:12: error: 'sb' was not declared in this scope
    9 | 　cin>>sa>>sb>>sc;
      |            ^~
a.cc:9:16: error: 'sc' was not declared in this scope
    9 | 　cin>>sa>>sb>>sc;
      |                ^~
a.cc:10:1: error: '\U00003000int' was not declared in this scope
   10 | 　int now=sa[0];
      | ^~~~~
a.cc:11:6: error: expected ';' before 'a'
   11 | 　int a=0,b=0,c=0;
      |      ^~
      |      ;
a.cc:12:7: error: expected primary-expression before 'int'
   12 | 　for(int i=0;i<310;i++){
      |       ^~~
a.cc:12:15: error: 'i' was not declared in this scope
   12 | 　for(int i=0;i<310;i++){
      |               ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:7:15: note: to match this '{'
    7 | int main(void){
      |               ^
Language: C++

#include<stdio.h>

int  main(void){
  
  char a[100],b[100],c[100];
  
  scanf("%s",a);
  scanf("%s",b);
  scanf("%s",c);
  
  int ca=0,cb=0,cc=0;
  char n="a";
  char ans=0;
  
  while(n!=0){
  
  if(n=="a"){
    ans="a";
    n=a[ca];
    ca++;
  }else if(n=="b"){
    ans="b";
    n=b[cb];
    cb++;
  }else if(n=="c"){
    ans="c";
    n=c[cc];
    cc++;
  }
    
  }
    
  printf("%s\n",ans);
  
  return 0;
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |   char n="a";
      |          ^~~
      |          |
      |          const char*
a.cc:17:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(n=="a"){
      |      ~^~~~~
a.cc:18:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |     ans="a";
      |         ^~~
      |         |
      |         const char*
a.cc:21:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   }else if(n=="b"){
      |            ~^~~~~
a.cc:22:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   22 |     ans="b";
      |         ^~~
      |         |
      |         const char*
a.cc:25:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |   }else if(n=="c"){
      |            ~^~~~~
a.cc:26:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |     ans="c";
      |         ^~~
      |         |
      |         const char*
Language: C++

#include<stdio.h>

int  main(void){
  
  char a[100],b[100],c[100];
  
  scanf("%s",a);
  scanf("%s",b);
  scanf("%s",c);
  
  int ca=0,cb=0,cc=0;
  int n="a";
  char ans=0;
  
  while(n!=0){
  
  if(n=="a"){
    ans="a";
    n=a[ca];
    ca++;
  }else if(n=="b"){
    ans="b";
    n=b[cb];
    cb++;
  }else if(n=="c"){
    ans="c";
    n=c[cc];
    cc++;
  }
    
  }
    
  printf("%s\n",ans);
  
  return 0;
  
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |   int n="a";
      |         ^~~
      |         |
      |         const char*
a.cc:17:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(n=="a"){
      |      ~^~~~~
a.cc:18:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |     ans="a";
      |         ^~~
      |         |
      |         const char*
a.cc:21:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   }else if(n=="b"){
      |            ~^~~~~
a.cc:22:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   22 |     ans="b";
      |         ^~~
      |         |
      |         const char*
a.cc:25:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |   }else if(n=="c"){
      |            ~^~~~~
a.cc:26:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |     ans="c";
      |         ^~~
      |         |
      |         const char*
Language: C

#include<stdio.h>
#include<string.h>

char s[4][102],x_x;
int len[4],p;
int main()
{
	scanf("%s %s %s",s[1],s[2],s[3]);
	len[1]=strlen(s[1])-1;
	len[2]=strlen(s[2])-1;
	len[3]=strlen(s[3])-1;
	len[4]=strlen(s[4])-1;

	int gun(char x);
	gun('a');
}

char gun(char x){	
	if(x=='a')
		p=1;
	else if(x=='b')
		p=2;
	else
		p=3;

	if(len[p]>=0){
		x_x=s[p][len[p]];
		s[p][len[p]]='\0';
		len[p]--;
		gun(x_x);
	}
	else
		printf("%c",x-32);
}

Compiler output:
main.c:18:6: error: conflicting types for 'gun'; have 'char(char)'
   18 | char gun(char x){
      |      ^~~
main.c:14:13: note: previous declaration of 'gun' with type 'int(char)'
   14 |         int gun(char x);
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<iostream>
using namespace std;

int main()
{
	int a, b, c;
	int la, lb, lc;
	int i = 0;
	char A[120], B[120], C[120];
	cin >> A >> B >> C;
	a = b = c = -1;
	la = strlen(A);
	lb = strlen(B);
	lc = strlen(C);
	while(1)
	{
		if(a = la)
		{
			printf("A\n");
			break;
		}
			else if(b = lb)
			{
			printf("B\n");
			break;
			}
			else
			{
				printf("C\n"); break;
			}
				while(1)
				{
				if(i == 0)
				{
					a++;
					i = A[i] - 'a';
				}
					else if(i == 1)
					{
						b++;
						i = B[i] - 'b';
					}
						else
						{
							c++;
							i = C[i] - 'c';
						}
				}
	}
	return 0 ;

}


Compiler output:
main.c:4:9: fatal error: iostream: No such file or directory
    4 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using ll = long long;
using namespace std;

int main() {
  string sa, sb, sc;
  cin >> sa >> sb >> sc;
  queue<char> qa, qb, qc;
  for (int i = 0; i < sa.size(); i++) qa.push(sa[i]);
  for (int i = 0; i < sb.size(); i++) qb.push(sb[i]);
  for (int i = 0; i < sc.size(); i++) qc.push(sc[i]);
  char ans = 'a';
  while(true){
    if (ans == 'a') {
      if (qa.empty()) break;
      ans = qa.front();
      qa.pop();
    }
    if (ans == 'b') {
      if (qb.empty()) break;
      ans = qb.front();
      qb.pop();
    }
    if (ans == 'c') {
      if (qc.empty()) break;
      ans = qc.front();
      qc.pop();
    }
  }
  cout << (char)(ans + 'A' - 'a') << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'queue' was not declared in this scope
   16 |   queue<char> qa, qb, qc;
      |   ^~~~~
a.cc:10:1: note: 'std::queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    9 | #include <map>
  +++ |+#include <queue>
   10 | using ll = long long;
a.cc:16:9: error: expected primary-expression before 'char'
   16 |   queue<char> qa, qb, qc;
      |         ^~~~
a.cc:17:39: error: 'qa' was not declared in this scope; did you mean 'sa'?
   17 |   for (int i = 0; i < sa.size(); i++) qa.push(sa[i]);
      |                                       ^~
      |                                       sa
a.cc:18:39: error: 'qb' was not declared in this scope; did you mean 'sb'?
   18 |   for (int i = 0; i < sb.size(); i++) qb.push(sb[i]);
      |                                       ^~
      |                                       sb
a.cc:19:39: error: 'qc' was not declared in this scope; did you mean 'sc'?
   19 |   for (int i = 0; i < sc.size(); i++) qc.push(sc[i]);
      |                                       ^~
      |                                       sc
a.cc:23:11: error: 'qa' was not declared in this scope; did you mean 'sa'?
   23 |       if (qa.empty()) break;
      |           ^~
      |           sa
a.cc:24:13: error: 'qa' was not declared in this scope; did you mean 'sa'?
   24 |       ans = qa.front();
      |             ^~
      |             sa
a.cc:28:11: error: 'qb' was not declared in this scope; did you mean 'sb'?
   28 |       if (qb.empty()) break;
      |           ^~
      |           sb
a.cc:29:13: error: 'qb' was not declared in this scope; did you mean 'sb'?
   29 |       ans = qb.front();
      |             ^~
      |             sb
a.cc:33:11: error: 'qc' was not declared in this scope; did you mean 'sc'?
   33 |       if (qc.empty()) break;
      |           ^~
      |           sc
a.cc:34:13: error: 'qc' was not declared in this scope; did you mean 'sc'?
   34 |       ans = qc.front();
      |             ^~
      |             sc
Language: C++

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

typedef long long ll;
#define put(n) cout<<(n)<<"\n"
#define FOR(i,num,N) for(int(i)=(num);(i)<(N);++(i))
#define RFOR(i,num,N) for(int (i)=(num);(i)>(N);--(i))
#define all(v) (v).begin() , (v).end()
#define rall(v) (v).rbegin() , (v).rend()

int main(){
    string s,t,u;
    cin>>s>>t>>u;
    
    s += " "; t += " "; u += " ";

    reverse(all(s));
    reverse(all(t));
    reverse(all(u));
    char c = s.back(); s.pop_back();

    while(s.size() && t.size() && u.size()){
        cout<<endl;
        if(c == 'a'){c = s.back(); s.pop_back();}
        else if(c == 'b'){c = t.back(); t.pop_back();}
        else if(c == 'c'){c = u.back(); u.pop_back();}
    }

    if(!s.size()) puts("A");
    else if(!t.size()) puts("B");
    else puts("C");
}


Compiler output:
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
    1 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<cstdio>
std::string s[3];
int T=0,N=0;
int main()
{
	std::cin>>s[0]>>s[1]>>s[2];
	while(s[N].size())
    {
        This=N;
        N=s[T][0]-'a';
        std::s[T].erase(0,1);
    }
    printf("%c",'A'+N);
}


Compiler output:
a.cc:2:6: error: 'string' in namespace 'std' does not name a type
    2 | std::string s[3];
      |      ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<cstdio>
  +++ |+#include <string>
    2 | std::string s[3];
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin>>s[0]>>s[1]>>s[2];
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | std::string s[3];
a.cc:6:19: error: 's' was not declared in this scope
    6 |         std::cin>>s[0]>>s[1]>>s[2];
      |                   ^
a.cc:9:9: error: 'This' was not declared in this scope
    9 |         This=N;
      |         ^~~~
a.cc:11:14: error: 's' is not a member of 'std'
   11 |         std::s[T].erase(0,1);
      |              ^
Language: C++

#include<cstdio>
string s[3];
int T=0,N=0;
int main()
{
	std::cin>>s[0]>>s[1]>>s[2];
	while(s[N].size())
    {
        This=N;
        N=s[T][0]-'a';
        s[T].erase(0,1);
    }
    printf("%c",'A'+N);
}


Compiler output:
a.cc:2:1: error: 'string' does not name a type; did you mean 'stdin'?
    2 | string s[3];
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin>>s[0]>>s[1]>>s[2];
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | string s[3];
a.cc:6:19: error: 's' was not declared in this scope
    6 |         std::cin>>s[0]>>s[1]>>s[2];
      |                   ^
a.cc:9:9: error: 'This' was not declared in this scope
    9 |         This=N;
      |         ^~~~
Language: C++

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

int main(){
  string array[4],name[4];
  int i=0,j;
  cin>>array[0]>>array[1]>>array[2];
  name[0]="A";
  name[1]="B";
  name[2]="C";
  for( ; ; ){
    if(array[i].at(0)=='a'){
      j=0;
    }else if(array[i].at(0)=='b'){
      j=1;
    }else if(array[i].at(0)=='c'){
      j=2;
    }
    if(array[i].size==0){
      cout<<name[i]<<endl;
      return 0;
    }
    array[i].erase(array[i].begin());
    i=j;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   19 |     if(array[i].size==0){
      |        ~~~~~~~~~^~~~
      |                     ()
Language: C

#include<iostream>
int main()
{
	char s[3][101];
	for(int i = 0; i < 3; i++)
	{
		std::cin >> s[i];
	}
	int end[3];
	for(int i = 0; i < 3; i++)
	{
		for(int j = 0;; j++)
		{
			if(s[i][j] == '\0')
			{
				end[i] = j;
				break;
			}
		}
	}
	int num[3] {0, 0, 0};
	while(true)
	{
		static int turn = 0;
		switch(s[turn][num[turn]])
		{
			case 'a':
				num[turn]++;
				turn = 0;
				break;
			case 'b':
				num[turn]++;
				turn = 1;
				break;
			case 'c':
				num[turn]++;
				turn = 2;
				break;
		}
		if(num[turn] == end[turn])
		{
			std::cout << (turn == 0 ? 'A' : turn == 1 ? 'B' : 'C') << std::endl;
			break;
		}
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h> //Ithea Myse Valgulious
namespace chtholly{
typedef long long ll;
#define re0 register int
#define rec register char
#define rel register ll
#define gc getchar
#define pc putchar
#define p32 pc(' ')
#define pl puts("")
/*By Citrus*/
inline int read(){
  int x=0,f=1;char c=gc();
  for (;!isdigit(c);c=gc()) f^=c=='-';
  for (;isdigit(c);c=gc()) x=(x<<3)+(x<<1)+(c^'0');
  return f?x:-x;
  }
inline bool read(ll &x){
  x=0;int f=1;char c=gc();
  for (;!isdigit(c)&&~c;c=gc()) f^=c=='-';
  if (!~c) return 0;
  for (;isdigit(c);c=gc()) x=(x<<3)+(x<<1)+(c^'0');
  return x=f?x:-x,1;
  }
template <typename mitsuha>
inline int write(mitsuha x){
  if (!x) return pc(48);
  if (x<0) x=-x,pc('-');
  int bit[20],i,p=0;
  for (;x;x/=10) bit[++p]=x%10;
  for (i=p;i;--i) pc(bit[i]+48);
  }
inline char fuhao(){
  char c=gc();
  for (;isspace(c);c=gc());
  return c;
  }
}using namespace chtholly;
using namespace std;
map<char,string> mp;
int main(){
for (char c='a';c<='c';++c) cin>>mp[c];
char r='a';
for (;;){
  mp[r].erase(0,1);
  if (mp[now].empty()) return pc(r-32),0;
  r=mp[r][0];
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:10: error: 'now' was not declared in this scope; did you mean 'pow'?
   46 |   if (mp[now].empty()) return pc(r-32),0;
      |          ^~~
      |          pow
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include<bits/stdc++.h>
using namespace std;
using ll =long long;

int main (void) {
  vector<string> cards(3);
  for (int i=0; i<3; i++) cin >> card[i];

  int turn =0;
  while(true){
    if (card[turn].empty()){
      cout << (char)('A'+turn);
      break;
    }
    int next =cards[turn][0]-'a';
    cards[turn].erase(0,1);
    turn =next;
  }  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: 'card' was not declared in this scope; did you mean 'cards'?
   12 |   for (int i=0; i<3; i++) cin >> card[i];
      |                                  ^~~~
      |                                  cards
a.cc:16:9: error: 'card' was not declared in this scope; did you mean 'cards'?
   16 |     if (card[turn].empty()){
      |         ^~~~
      |         cards
Language: C++

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

int main(){
	string S[3];
	cin >> S[0] >> S[1] >> S[2];
	int i=0;

	while(1){
		if(S[i].size()==0){
			cout << (char)(t+'A');
			return 0;
		}
		char c=S[i][0];
		S[i].erase(S[i].begin());
		i=c-'a';
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: 't' was not declared in this scope
   11 |                         cout << (char)(t+'A');
      |                                        ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a=0, b=0, c=0;
	string A, B, C;
	char X='a';
	cin >> A >> B >> C;
	while(1){
		if(X=='a'){
			X=A[i];
			a++;
			if(a==A.size()){
				cout << 'A' << endl;
				break;
			}
		} else if(X=='b'){
			X=B[b];
			b++;
			if(b==B.size()){
				cout << 'B' << endl;
				break;
			}
		} else if(X=='c'){
			X=C[c];
			c++;
			if(c==C.size()){
				cout << 'C' << endl;
				break;
			}
		}
	}		
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'i' was not declared in this scope
   11 |                         X=A[i];
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int i=0, j=0, k=0;
	string SA, SB, SC;
	char X='a';
	cin >> SA >> SB >> SC;
	while(1){
		if(X=='a'){
			X=a[i];
			i++;
			if(i==A.size()){
				cout << 'A' << endl;
				break;
			}
		} else if(X=='b'){
			X=a[j];
			j++;
			if(j==B.size()){
				cout << 'B' << endl;
				break;
			}
		} else if(X=='c'){
			X=a[k];
			k++;
			if(i==C.size()){
				cout << 'C' << endl;
				break;
			}
		}
	}		
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'a' was not declared in this scope
   11 |                         X=a[i];
      |                           ^
a.cc:13:31: error: 'A' was not declared in this scope
   13 |                         if(i==A.size()){
      |                               ^
a.cc:18:27: error: 'a' was not declared in this scope
   18 |                         X=a[j];
      |                           ^
a.cc:20:31: error: 'B' was not declared in this scope
   20 |                         if(j==B.size()){
      |                               ^
a.cc:25:27: error: 'a' was not declared in this scope
   25 |                         X=a[k];
      |                           ^
a.cc:27:31: error: 'C' was not declared in this scope
   27 |                         if(i==C.size()){
      |                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int i,ia=0,ib=0,ic=0,turna=1,turnb=0,turnc=0;
char sa[101],sb[101],sc[101];
cin>>sa>>sb>>sc;
while(1){
if(turna==1) {
 if(sa[ia+1]=='\0') { cout<<"a"<<endl;
                          return 0;
  }
  if(sa[ia]=='b') { turna = 0;
                      turnb =1
  }
   if(sa[ia]=='c') { turna = 0;
                      turnc =1
  }
 ia++;
 }
if(turnb==1) {
 if(sb[ib+1]=='\0') { cout<<"b"<<endl;
                          return 0;
  }
  if(sb[ib]=='a') { turnb = 0;
                      turna =1
  }
   if(sb[ib]=='c') { turnb = 0;
                      turnc =1
  }
 ib++;
 }
if(turnc==1) {
 if(sc[ic+1]=='\0') { cout<<"c"<<endl;
                          return 0;
  }
  if(sc[ic]=='a') { turnc = 0;
                      turna =1
  }
   if(sc[ic]=='b') { turnc = 0;
                      turnb =1
  }
 ic++;
 }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected ';' before '}' token
   13 |                       turnb =1
      |                               ^
      |                               ;
   14 |   }
      |   ~                            
a.cc:16:31: error: expected ';' before '}' token
   16 |                       turnc =1
      |                               ^
      |                               ;
   17 |   }
      |   ~                            
a.cc:25:31: error: expected ';' before '}' token
   25 |                       turna =1
      |                               ^
      |                               ;
   26 |   }
      |   ~                            
a.cc:28:31: error: expected ';' before '}' token
   28 |                       turnc =1
      |                               ^
      |                               ;
   29 |   }
      |   ~                            
a.cc:37:31: error: expected ';' before '}' token
   37 |                       turna =1
      |                               ^
      |                               ;
   38 |   }
      |   ~                            
a.cc:40:31: error: expected ';' before '}' token
   40 |                       turnb =1
      |                               ^
      |                               ;
   41 |   }
      |   ~
Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;
vector< vector<int> > myVector;

int main(){

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

		string cards;
		cin >> cards; //input
		int n = cards.length(); //length
		vector<int> myRow(n);
		myVector.push_back(myRow);

		char char_array[n+1];
		strcpy(char_array, cards.c_str());
		for(int x = 0; x < int(sizeof(char_array)-1); x++){
			//cout << char_array[x] << endl;
			if('a' == char_array[x]){
				myVector[i].push_back(0);
			} else if('b' == char_array[x]) {
				myVector[i].push_back(1);
			} else if('c' == char_array[x]) {
				myVector[i].push_back(2);
			}
		
		}
	}
 //cout << myVector[0].size() << myVector[1].size() << myVector[2].size() << endl;
	
	int cot = 0;
	char arr[3] = {'A', 'B', 'C'};
	while(true){
		if(myVector[cot].size() == 0){	
			cout << arr[cot] << endl;
			exit(1);
		}
		cot = int(myVector[cot][0]);
		myVector[cot].erase(myVector[cot].begin());
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'strcpy' was not declared in this scope
   18 |                 strcpy(char_array, cards.c_str());
      |                 ^~~~~~
a.cc:4:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

int main(){
	string s[3];
  rep(i, 3) cin>>s[i];
  rep(i, 3) reverse(all(s[i]));
  int p = 0;
  while(!s[p].empty()){
    int p2 = s[p].back()-'a';
    s[p].erase(s.end()-1);
    p = p2;
  }
  cout<<(char)('A'+p)<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:18: error: request for member 'end' in 's', which is of non-class type 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   48 |     s[p].erase(s.end()-1);
      |                  ^~~
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

int main(){
	string s[3];
  rep(i, 3) cin>>s[i];
  rep(i, 3) reverse(all(s));
  int p = 0;
  while(!s[p].empty()){
    int p2 = s[p].back()-'a';
    s[p].erase(s.end()-1);
    p = p2;
  }
  cout<<(char)('A'+p)<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:20: error: request for member 'begin' in 's', which is of non-class type 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   30 | #define all(v) (v).begin(), (v).end()
      |                    ^~~~~
a.cc:44:21: note: in expansion of macro 'all'
   44 |   rep(i, 3) reverse(all(s));
      |                     ^~~
a.cc:30:33: error: request for member 'end' in 's', which is of non-class type 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   30 | #define all(v) (v).begin(), (v).end()
      |                                 ^~~
a.cc:44:21: note: in expansion of macro 'all'
   44 |   rep(i, 3) reverse(all(s));
      |                     ^~~
a.cc:48:18: error: request for member 'end' in 's', which is of non-class type 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   48 |     s[p].erase(s.end()-1);
      |                  ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for(int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;

int main(int argc, char const *argv[]) {
	ios_base::sync_with_stdio(false);
	queue<int> q[3];
	FOR(i, 3) {
		string s;
		cin >> s;
		FOR(j, s.size()) q[i].push(s[j]-'a');
	}
	int x = 0;
	while (!q[x].empty()) {
		int next = q[x].top();
		q[x].pop();
		x = next;
	}
	cout << (char)('A'+x) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:19:33: error: 'class std::queue<int>' has no member named 'top'; did you mean 'pop'?
   19 |                 int next = q[x].top();
      |                                 ^~~
      |                                 pop
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<functional>
#include<cstring>
using namespace std;
int main(void){
	int i,abcp[3],abcl[3],p;
	char abc[3][101],x;
	for(i=0;i<3;i++){
		cin>>abc[i];
		abcl[i]=strlen(abc[i]);
		abcp[i]=0
	}
	p=0;
	while(1){
		if(abcp[p]==abcl[p]) break;
		x=abc[p][abcp[p]];
		abcp[p]++;
		if(x=='a') p=0;
		if(x=='b') p=1;
		if(x=='c') p=2;
	}
	if(p==0) cout<<'A'<<endl;
	if(p==1) cout<<'B'<<endl;
	if(p==2) cout<<'C'<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before '}' token
   13 |                 abcp[i]=0
      |                          ^
      |                          ;
   14 |         }
      |         ~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>

using namespace std;

int main() {
    string A,B,C;
    cin >> A >> B >> C;
    int cnt = 0;
    char tmp = 'a';
    while (true) {
        
        switch (tmp) {
        case 'a':
            a = A[0];
            A.erase(0,1);
        case 'b':
            b = B[0];
            B.erase(0,1);
        case 'c':
            c = C[0];
            C.erase(0,1);
        }

        if (A.empty()) {
            cout << "A\n";
            break;
        } else if (B.empty()) {
            cout << "B\n";
            break;
        } else if (C.empty()) {
            cout << "C\n";
            break;
        }
    }
        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'a' was not declared in this scope
   18 |             a = A[0];
      |             ^
a.cc:21:13: error: 'b' was not declared in this scope
   21 |             b = B[0];
      |             ^
a.cc:24:13: error: 'c' was not declared in this scope
   24 |             c = C[0];
      |             ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  a+='a'; b+='b'; c+='c';
  int i=1;
  string seq="a";
  while(1){
    if(a.size()==1||b.size()==1||c.size()==1){
      if(a.size()==1){ cout << "A" << endl; break;}
      if(b.size()==1){ cout << "B" << endl; break;}
      if(c.size()==1){ cout << "C" << endl; break;}
    }
    else{
      if(seq[i-1]=='a'){
        a.erase(a.begin());
          if(a[0]=='a')seq+='a'; 
          else if(a[0]=='b')seq+='b';
          else if(a[0]=='c')seq+='c';
      }
      if(S[i-1]=='b'){
        b.erase(b.begin()); 
          if(b[0]=='a')seq+='a';
          else if(b[0]=='b')seq+='b';
          else if(b[0]=='c')seq+='c';
      }
      if(S[i-1]=='c'){
        c.erase(c.begin()); 
          if(c[0]=='a')seq+='a';
          else if(c[0]=='b')seq+='b';
          else if(c[0]=='c')seq+='c';
      }
    }
    i++;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: 'S' was not declared in this scope
   26 |       if(S[i-1]=='b'){
      |          ^
a.cc:32:10: error: 'S' was not declared in this scope
   32 |       if(S[i-1]=='c'){
      |          ^
Language: C++

#include <bits/stdc++.h>
#include <string>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;

int main() {
  string a[3];
  cin >> a[0] >> a[1] >> a[2];
  int p = 0;
  for (;;) {
    if (a[p].size() == 0) {
      cout << static_cast<char>(p + 'A') << endl;
      return 0;
    }
    int q = a[p][0] - 'a';
    a[p] = a[p].substr(1);
    p = q;
  }
}
    return 0;
}


Compiler output:
a.cc:21:5: error: expected unqualified-id before 'return'
   21 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

include <stdio.h>

char A(char q[100],int a);
char B(char w[100],int s);
char C(char e[100],int d);


int main() {

char a[100],b[100],c[100],ans,result;
int i,j,k;
 i=j=k=0;

scanf("%s %s %s",a,b,c);

ans = A(a,i);
i++;

while(ans != '\0'){
if(ans == 'a'){
ans = A(a,i);
i++;
result = 'A';
}
else if(ans == 'b'){
ans = B(b,j);
j++;
result='B';
}
else {
ans = C(c,k);
k++;
result='C';
}
}

printf("%c",result);

return 0;
}

char A(char a[100],int i){
char q;
q = a[i];
return q;
}
char B(char b[100],int j){
char q;
q = b[j];
return q;
}

char C(char c[100],int k){
char q;
q = c[k];
return q;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:14:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   14 | scanf("%s %s %s",a,b,c);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:14:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   14 | scanf("%s %s %s",a,b,c);
      | ^~~~~
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:7: error: implicit declaration of function 'A' [-Wimplicit-function-declaration]
   16 | ans = A(a,i);
      |       ^
main.c:37:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   37 | printf("%c",result);
      | ^~~~~~
main.c:37:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:37:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:37:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:42:6: error: conflicting types for 'A'; have 'char(char *, int)'
   42 | char A(char a[100],int i){
      |      ^
main.c:16:7: note: previous implicit declaration of 'A' with type 'int()'
   16 | ans = A(a,i);
      |       ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<math.h>
 
 
using namespace std;
#define out(s) cout<<(s)<<endl;
using ll = long long;
 
int main()
{
	string A, B, C;
	cin >> A >> B >> C;
	char next = 'a';
	while (true) {
		if (next == 'a') {
			if (A.size() == 0)break;
			next = A[0];
			A = A.substr(1);
		}
		else if (next == 'b') {
			if (B.size() == 0)break;
			next = B[0];
			B = B.substr(1);
		}
		else {
			if (C.size() == 0)break;
			next = C[0];
			C = C.substr(1);
		}
	}
	next = toupper(next);
	out(next);
	return 0;
}

Compiler output:
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |  
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |  
      | ^
a.cc:6:1: error: '\U000000a0' does not name a type
    6 |  
      | ^
a.cc:11:1: error: '\U000000a0' does not name a type
   11 |  
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  char unko,flag;
  string sa,sb,sc;
  int a=0,b=0,c=0;
  cin>>sa>>sb>>sc;
  unko=sa[a];
  a++;
  for(int i=0;unko!='';i++){
    switch(unko){
      case 'a': unko=sa[a]; a++; flag='A'; break;
      case 'b': unko=sb[b]; b++; flag='B'; break;
      case 'c': unko=sc[c]; c++; flag='C'; break;
    }
  }
  cout<<flag<<endl;
}

Compiler output:
a.cc:11:21: error: empty character constant
   11 |   for(int i=0;unko!='';i++){
      |                     ^~
Language: Java

   public static void main(String[] args) throws IOException {

        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

        String cardsOfA = input.readLine();
        String cardsOfB = input.readLine();
        String cardsOfC = input.readLine();

        int lengthOfCardsOfA = cardsOfA.length();
        int lengthOfCardsOfB = cardsOfB.length();
        int lengthOfCardsOfC = cardsOfC.length();

        int currentCardPositionOfA = 0;
        int currentCardPositionOfB = 0;
        int currentCardPositionOfC = 0;

        boolean isWinnerDetermined = false;
        char nameOfWinner = ' ';
        char currentPlayer = 'a';
        while (!isWinnerDetermined) {
            if (currentPlayer == 'a') {
                if (doesPlayerFinish(currentCardPositionOfA, lengthOfCardsOfA)) {
                    isWinnerDetermined = true;
                    nameOfWinner = 'a';
                } else {
                    currentPlayer = cardsOfA.charAt(currentCardPositionOfA);
                    currentCardPositionOfA += 1;
                }
            } else if (currentPlayer == 'b') {
                if (doesPlayerFinish(currentCardPositionOfB, lengthOfCardsOfB)) {
                    isWinnerDetermined = true;
                    nameOfWinner = 'b';
                } else {
                    currentPlayer = cardsOfB.charAt(currentCardPositionOfB);
                    currentCardPositionOfB += 1;
                }

            } else if (currentPlayer == 'c') {
                if (doesPlayerFinish(currentCardPositionOfC, lengthOfCardsOfC)) {
                    isWinnerDetermined = true;
                    nameOfWinner = 'c';
                } else {
                    currentPlayer = cardsOfC.charAt(currentCardPositionOfC);
                    currentCardPositionOfC += 1;
                }
            }
        }

        System.out.println(nameOfWinner);


    }

    private static boolean doesPlayerFinish(int currentCardPositionOfThePlayer, int lengthOfCardsOfThePlayer) {
        return currentCardPositionOfThePlayer >= lengthOfCardsOfThePlayer;
    }


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
   public static void main(String[] args) throws IOException {
                 ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class code7途中 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String Sa = scan.next();
        String Sb = scan.next();
        String Sc = scan.next();
 
        boolean ok = true;
        char turn = 'a';
        char win = 'a';
 
        while (ok) {
            switch (turn) {
                case 'a':
                    if (Sa.equals(" ")){
                        win = 'A';
                        ok = false;
                    }else {
                        turn = Sa.charAt(0);
                        Sa = ret(Sa);
                    }
                    break;
                case 'b':
                    if (Sb.equals(" ")){
                        win = 'B';
                        ok = false;
                    }else {
                        turn = Sb.charAt(0);
                        Sb = ret(Sb);
                    }
                    break;
                case 'c':
                    if (Sc.equals(" ")){
                        win = 'C';
                        ok = false;
                    }else {
                        turn = Sc.charAt(0);
                        Sc = ret(Sc);
                    }
                    break;
            }
 
        }
        System.out.println(win);
    }
 
    public static String ret(String str) {
        if (str.length() != 1) {
            return str.substring(1);
        } else {
            return " ";
        }
    }
}

Compiler output:
Main.java:3: error: class code7?? is public, should be declared in a file named code7??.java
public class code7?? {
       ^
1 error