Language: C++

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

int main(){
	char serve[3][101];
	char latestServe;
	int APoint[3];
	int BPoint[3];
	bool isDeuce = false;
	while(true){
		cin >> serve[0];
		if(strlen(serve) == 1){
			break;
		}
		cin >> serve[1] >> serve[2];
		APoint = 0;
		BPoint = 0;
		
		for(int i=0;i<3;i++){
			for(int j=1;j<101;j++){
				if(serve[i]=='A'){
					APoint[i]++;
				}else if(serve[i]=='B'){
					BPoint[i]++;
				}else if(serve[i]=='\0'){
					break;
				}
			  latestServe = serve[i];
				if(APoint == BPoint && APoint == 10){
					isDuce = true;
				}
			}
			if(isDuce){
				if(latestDuce == 'A'){
					APoint[i]++;
				}else{
					BPoint[i]++;
				}
			}else{
				if(APoint[i] > BPoint[i]){
					APoint[i]++;
				}else{
					BPoint[i]++;
				}
			}
			isDuce = false;
			cout << APoint[i] << ' ' << BPoint[i] << '\n';
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: cannot convert 'char (*)[101]' to 'const char*'
   13 |                 if(strlen(serve) == 1){
      |                           ^~~~~
      |                           |
      |                           char (*)[101]
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:17:24: error: incompatible types in assignment of 'int' to 'int [3]'
   17 |                 APoint = 0;
      |                 ~~~~~~~^~~
a.cc:18:24: error: incompatible types in assignment of 'int' to 'int [3]'
   18 |                 BPoint = 0;
      |                 ~~~~~~~^~~
a.cc:22:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |                                 if(serve[i]=='A'){
      |                                    ~~~~~~~~^~~~~
a.cc:24:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                                 }else if(serve[i]=='B'){
      |                                          ~~~~~~~~^~~~~
a.cc:26:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |                                 }else if(serve[i]=='\0'){
      |                                          ~~~~~~~~^~~~~~
a.cc:29:48: error: invalid conversion from 'char*' to 'char' [-fpermissive]
   29 |                           latestServe = serve[i];
      |                                         ~~~~~~~^
      |                                                |
      |                                                char*
a.cc:30:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |                                 if(APoint == BPoint && APoint == 10){
      |                                                        ~~~~~~~^~~~~
a.cc:31:41: error: 'isDuce' was not declared in this scope; did you mean 'isDeuce'?
   31 |                                         isDuce = true;
      |                                         ^~~~~~
      |                                         isDeuce
a.cc:34:28: error: 'isDuce' was not declared in this scope; did you mean 'isDeuce'?
   34 |                         if(isDuce){
      |                            ^~~~~~
      |                            isDeuce
a.cc:35:36: error: 'latestDuce' was not declared in this scope
   35 |                                 if(latestDuce == 'A'){
      |                                    ^~~~~~~~~~
a.cc:47:25: error: 'isDuce' was not declared in this scope; did you mean 'isDeuce'?
   47 |                         isDuce = false;
      |                         ^~~~~~
      |                         isDeuce