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

#include <stdio.h>
#include <stdbool.h>

char dividing(int pm, int pe, int pj);

int main(void)
{
	int ninnzuu;
	int pm[1000], pe[1000], pj[1000];
	char class[1000];
	while(true) {
		scanf("%d", &ninnzuu);
		if(ninnzuu == 0) {
			break;
		}
		for(int i = 0; i < ninnzuu; i++) {
			scanf("%d %d %d", &pm[i], &pe[i], &pj[i]);
			class[i] = dividing(pm[i], pe[i], pj[i]);
		}
		for(int i = 0; i < ninnzuu; i++) {
			printf("%c\n", class[i]);
		}
	}
	return 0;
}

char dividing(int pm, int pe, int pj)
{
	if(pm == 100 || pe == 100 || pj == 100) {
		return 'A';
	}else 	if(pm + pe >= 180) {
		return 'A';
	}else 	if(pm + pe + pj >= 240) {
		return 'A';
	}else  	if(pm + pe + pj >= 210) {
		return 'B';
	}else  	if(pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) {
		return 'B';
	}else{
		return 'C';
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: two or more data types in declaration of 'structured binding'
   10 |         char class[1000];
      |         ^~~~
a.cc:10:19: error: empty structured binding declaration
   10 |         char class[1000];
      |                   ^
a.cc:10:9: error: expected primary-expression before 'char'
   10 |         char class[1000];
      |         ^~~~
a.cc:18:30: error: structured binding declaration cannot have type 'int'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                              ^~~
a.cc:18:30: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:18:31: error: redeclaration of 'auto i'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                               ^
a.cc:16:25: note: 'int i' previously declared here
   16 |                 for(int i = 0; i < ninnzuu; i++) {
      |                         ^
a.cc:18:48: error: use of 'i' before deduction of 'auto'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                                                ^
a.cc:18:55: error: use of 'i' before deduction of 'auto'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                                                       ^
a.cc:18:62: error: use of 'i' before deduction of 'auto'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                                                              ^
a.cc:18:25: error: expected primary-expression before 'class'
   18 |                         class[i] = dividing(pm[i], pe[i], pj[i]);
      |                         ^~~~~
a.cc:21:40: error: expected primary-expression before 'class'
   21 |                         printf("%c\n", class[i]);
      |                                        ^~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

int grading(int x, int y, int z, char rank)
{    
    int sum2 = x + y;
    int sum3 = x + y + z;
    if(x == 100 || y == 100 || z == 100){
        rank = 'A';
    }else if(sum2 >= 180){
        rank = 'A';
    }else if(sum3 >= 240){
        rank = 'A';        
    }else if(sum3 >= 210){
        rank = 'B';        
    }else if(sum3 >= 150 && (x >= 80 || y >= 80)){
        rank = 'B';        
    }else{
        rank = 'C'; 
    }       
}
    

int main(void)
{   
    int rep, ma, en, ja;
    char rank;
    while(true){
        scanf("%d", &rep);
        if(n == 0){
            break;
        }
        for(int i = 0; i < rep; ++i){
            scanf ("%d%d%d", &ma, &en, &ja);
            grading(ma, en, ja,rank);
            printf("%c\n", rank);
        }
    }
    return 0;        
}

Compiler output:
a.cc: In function 'int grading(int, int, int, char)':
a.cc:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
a.cc: In function 'int main()':
a.cc:30:12: error: 'n' was not declared in this scope; did you mean 'en'?
   30 |         if(n == 0){
      |            ^
      |            en
Language: C++

#include <stdio.h>

float mean2(int x, int y)
{
    return (float)(x + y) / 2.0;
}

float mean3(int x, int y, int z)
{
    return (floag)(x + y + z) / 3.0;
}

char grading(int p_math, int p_eng, int p_jpn)
{
    if ( p_math == 100 || p_eng == 100 || p_jpn == 100) {
        return 'A';
    } else if (mean2(p_math, p_jpn) >= 90.0) {
        return 'A';
    } else if (mean3(p_math, p_eng, p_jpn) >= 80.0) {
        return 'A';
    } else if (mean3(p_math, p_eng, p_jpn) >= 70.0) {
        return 'B'
    } else if (mean3(p_math, p_eng, p_jpn) >= 70.0 && (p_math >= 80 || p_eng >= 80)) {
        return 'B';
    } else {
        return 'C';
    }
}

int main(void)
{
    int i, p_math, p_eng, p_jpn, n_iteration;
    char grade;

    scanf("%d", &n_iteration);

    for (i = 0; i < n_iteration; i++) {
        scanf("%d %d %d", &p_math, &p_eng, &p_jpn);
        grade = grading(p_math, p_eng, p_jpn);
        printf("%c\n", grade);
    }
    return 0;
}    

Compiler output:
a.cc: In function 'float mean3(int, int, int)':
a.cc:10:13: error: 'floag' was not declared in this scope; did you mean 'float'?
   10 |     return (floag)(x + y + z) / 3.0;
      |             ^~~~~
      |             float
a.cc: In function 'char grading(int, int, int)':
a.cc:22:19: error: expected ';' before '}' token
   22 |         return 'B'
      |                   ^
      |                   ;
   23 |     } else if (mean3(p_math, p_eng, p_jpn) >= 70.0 && (p_math >= 80 || p_eng >= 80)) {
      |     ~
Language: C++

#include <stdio.h>
int class(int pm, int pe, int pj);

int main(void)
{
    int n, pm, pe, pj;
    scanf("%d", &n);
    for (int i = 0;i < n;i ++){
	scanf("%d %d %d", &pm, &pe, &pj);
    
	if (class(pm, pe, pj) == 1){
	    printf("A\n");
	} else if (class(pm, pe, pj) == 2){
	    printf("B\n");
	} else {
	    printf("C\n");
	}
    }
    return 0;
}

int class(int pm, int pe, int pj)
{
    int ave = (pm + pe + pj) / 3;
    if (pm == 100 || pe == 100 || pj == 100){
	return 1;
    } else if ((pm + pe) / 2 >= 90){
	return 1;
    } else if (ave >= 80){
	return 1;
    } else if (ave >= 70){
	return 2;
    } else if (ave >= 50 && (pm >= 80 || pe >= 80)){
	return 2;
    } else {
	return 0;
    }
}

Compiler output:
a.cc:2:10: error: expected identifier before '(' token
    2 | int class(int pm, int pe, int pj);
      |          ^
a.cc:2:11: error: expected unqualified-id before 'int'
    2 | int class(int pm, int pe, int pj);
      |           ^~~
a.cc:2:11: error: expected ')' before 'int'
    2 | int class(int pm, int pe, int pj);
      |          ~^~~
      |           )
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before 'class'
   11 |         if (class(pm, pe, pj) == 1){
      |             ^~~~~
a.cc:11:13: error: expected ')' before 'class'
   11 |         if (class(pm, pe, pj) == 1){
      |            ~^~~~~
      |             )
a.cc:13:20: error: expected primary-expression before 'class'
   13 |         } else if (class(pm, pe, pj) == 2){
      |                    ^~~~~
a.cc:13:20: error: expected ')' before 'class'
   13 |         } else if (class(pm, pe, pj) == 2){
      |                   ~^~~~~
      |                    )
a.cc: At global scope:
a.cc:22:10: error: expected identifier before '(' token
   22 | int class(int pm, int pe, int pj)
      |          ^
a.cc:22:11: error: expected unqualified-id before 'int'
   22 | int class(int pm, int pe, int pj)
      |           ^~~
a.cc:22:11: error: expected ')' before 'int'
   22 | int class(int pm, int pe, int pj)
      |          ~^~~
      |           )
Language: C++

#include <stdio.h>
char class(int pm, int pe, int pj);

int main(void)
{
    int n, pm, pe, pj;
    scanf("%d", &n);
    for (int i = 0;i < n;i ++){
	scanf("%d %d %d", &pm, &pe, &pj); 
	printf("%c\n", class(pm, pe, pj));
    }
    return 0;
}

char class(int pm, int pe, int pj)
{
    int ave = (pm + pe + pj) / 3;
    if (pm == 100 || pe == 100 || pj == 100){
	return 'A';
    } else if ((pm + pe) / 2 >= 90){
	return 'A';
    } else if (ave >= 80){
	return 'A';
    } else if (ave >= 70){
	return 'B';
    } else if (ave >= 50 && (pm >= 80 || pe >= 80)){
	return 'B';
    } else {
	return 'C';
    }
}

Compiler output:
a.cc:2:11: error: expected identifier before '(' token
    2 | char class(int pm, int pe, int pj);
      |           ^
a.cc:2:12: error: expected unqualified-id before 'int'
    2 | char class(int pm, int pe, int pj);
      |            ^~~
a.cc:2:12: error: expected ')' before 'int'
    2 | char class(int pm, int pe, int pj);
      |           ~^~~
      |            )
a.cc: In function 'int main()':
a.cc:10:24: error: expected primary-expression before 'class'
   10 |         printf("%c\n", class(pm, pe, pj));
      |                        ^~~~~
a.cc: At global scope:
a.cc:15:11: error: expected identifier before '(' token
   15 | char class(int pm, int pe, int pj)
      |           ^
a.cc:15:12: error: expected unqualified-id before 'int'
   15 | char class(int pm, int pe, int pj)
      |            ^~~
a.cc:15:12: error: expected ')' before 'int'
   15 | char class(int pm, int pe, int pj)
      |           ~^~~
      |            )
Language: C++

#include <cstdio>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <string> 
#include <vector> 
using namespace std;

int main(){
	int n;
	while(cin >> n){
	int t[3],tt[2];
	string ans[n];
	for(int i = 1;n >= i;i++){
		for(int ii = 1;3 >= ii;ii++){
			cin >> t[1] >> t[2] >> t[3];
			tt[1] = ( t[1] + t[2] ) / 2;
			tt[2] = ( t[1] + t[2] + t[3]) / 3;
			if(t[1] == 100 or t[2] == 100 or t[3] == 100 or  tt[1] >= 90 or t[2] >= 80){
				ans[i] = "A";
			}else if(tt[2] >= 70){
				ans[i] = "B";
			}else if(tt[2] >= 50 and t[1] >= 80 or tt[2] >= 50 and t[2] >= 80){
				ans[i] = "B";
			}else{
				ans[i] = "C";
			}
		}
	}
	for(int iii = 1;n >= iii;iii++){
		cout << ans[i] << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:29: error: 'i' was not declared in this scope
   31 |                 cout << ans[i] << endl;
      |                             ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C++

#include <cstdio>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <string> 
#include <vector> 
using namespace std;

int main(){
	int n;
	while(cin >> n){
	int t[3],tt[2];
	string ans[n];
	for(int i = 1;n >= i;i++){
		for(int ii = 1;3 >= ii;ii++){
			cin >> t[1] >> t[2] >> t[3];
			tt[1] = ( t[1] + t[2] ) / 2;
			tt[2] = ( t[1] + t[2] + t[3]) / 3;
			if(t[1] == 100 or t[2] == 100 or t[3] == 100 or  tt[1] >= 90 or t[2] >= 80){
				ans[i] = "A";
			}else if(tt[2] >= 70){
				ans[i] = "B";
			}else if(tt[2] >= 50 and t[1] >= 80 or tt[2] >= 50 and t[2] >= 80){
				ans[i] = "B";
			}else{
				ans[i] = "C";
			}
		}
	}
	for(int iii = 1;n >= iii;iii++){
		cout << ans[iii] << endl;
	}
}

	

Compiler output:
a.cc: In function 'int main()':
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n
		if(n==0) break;
		for(int i=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pe==100||pm==100){
				cout<<"A"<<endl;

			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pe=>80||pm>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'if'
    6 |                 cin>>n
      |                       ^
      |                       ;
    7 |                 if(n==0) break;
      |                 ~~     
a.cc:19:55: error: expected primary-expression before '>' token
   19 |                         }else if((pm+pe+pj)/3>=50&&pe=>80||pm>=80){
      |                                                       ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n
		if(n==0) break;
		for(int i=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pe==100||pj==100){
				cout<<"A"<<endl;

			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pe=>80||pm>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'if'
    6 |                 cin>>n
      |                       ^
      |                       ;
    7 |                 if(n==0) break;
      |                 ~~     
a.cc:19:55: error: expected primary-expression before '>' token
   19 |                         }else if((pm+pe+pj)/3>=50&&pe=>80||pm>=80){
      |                                                       ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n;
		if(n==0) break;
		for(int i<=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pj==100||pe==100){
				cout<<"A"<<endl;
			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if(pm/3+pe/3+pj/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pm>=80||pe>=80){
				coout<<"B"<<endl;
			}else{
				cout<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
      |                          ;
a.cc:8:26: error: expected primary-expression before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
a.cc:8:34: error: expected ')' before ';' token
    8 |                 for(int i<=1;i<=n;i++){
      |                    ~             ^
      |                                  )
a.cc:8:35: error: 'i' was not declared in this scope
    8 |                 for(int i<=1;i<=n;i++){
      |                                   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n;
		if(n==0) break;
		for(int i<=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pj==100||pe==100){
				cout<<"A"<<endl;
			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if(pm/3+pe/3+pj/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pm>=80||pe>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
      |                          ;
a.cc:8:26: error: expected primary-expression before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
a.cc:8:34: error: expected ')' before ';' token
    8 |                 for(int i<=1;i<=n;i++){
      |                    ~             ^
      |                                  )
a.cc:8:35: error: 'i' was not declared in this scope
    8 |                 for(int i<=1;i<=n;i++){
      |                                   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n;
		if(n==0) break;
		for(int i<=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pj==100||pe==100){
				cout<<"A"<<endl;
			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pm>=80||pe>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
      |                          ;
a.cc:8:26: error: expected primary-expression before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
a.cc:8:34: error: expected ')' before ';' token
    8 |                 for(int i<=1;i<=n;i++){
      |                    ~             ^
      |                                  )
a.cc:8:35: error: 'i' was not declared in this scope
    8 |                 for(int i<=1;i<=n;i++){
      |                                   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(1){
		cin>>n;
		if(n==0) break;
		for(int i<=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pj==100||pe==100){
				cout<<"A"<<endl;
			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pm>=80||(pm+pe+pj)/3>=50&&pe>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
      |                          ;
a.cc:8:26: error: expected primary-expression before '<=' token
    8 |                 for(int i<=1;i<=n;i++){
      |                          ^~
a.cc:8:34: error: expected ')' before ';' token
    8 |                 for(int i<=1;i<=n;i++){
      |                    ~             ^
      |                                  )
a.cc:8:35: error: 'i' was not declared in this scope
    8 |                 for(int i<=1;i<=n;i++){
      |                                   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,pj,pm,pe;
	while(n){
		cin>>n;
		for(int i<=1;i<=n;i++){
			cin>>pm>>pe>>pj;
			if(pm==100||pj==100||pe==100){
				cout<<"A"<<endl;
			}else if((pm+pe)/2>=90){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=80){
				cout<<"A"<<endl;
			}else if((pm+pe+pj)/3>=70){
				cout<<"B"<<endl;
			}else if((pm+pe+pj)/3>=50&&pm>=80||pe>=80){
				cout<<"B"<<endl;
			}else{
				cout<<"C"<<endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before '<=' token
    7 |                 for(int i<=1;i<=n;i++){
      |                          ^~
      |                          ;
a.cc:7:26: error: expected primary-expression before '<=' token
    7 |                 for(int i<=1;i<=n;i++){
      |                          ^~
a.cc:7:34: error: expected ')' before ';' token
    7 |                 for(int i<=1;i<=n;i++){
      |                    ~             ^
      |                                  )
a.cc:7:35: error: 'i' was not declared in this scope
    7 |                 for(int i<=1;i<=n;i++){
      |                                   ^
Language: C++

#include <iostream>

char detClass(int pm, int pe, int pj)
{
	mean = (pm + pe + pj)/3;
	if((pm == 100) | (pe == 100) | (pj == 100)) {
		return 'A';
	} else if( (pm + pe)/2 >= 90) {
		return 'A';
	} else if( mean >= 80) {
		return 'A';
	} else if( mean >= 70) {
		return 'B';
	} else if( (mean >= 50) && ((pm >= 80) | (pe >= 80))) {
		return 'B';
	} else {
		return 'C';
	}
}

int main()
{
	int n, pm, pe, pj = 0;
	
	while(true) {
		std::cin >> n;
		if(n == 0) {
			break;
		}
		for(int i = 0; i < n; i++) {
			std::cin >> pm >> pe >> pj;
			std::cout << detClass(pm,pe,pj) << std::endl;
		}
	}
	return 0;	
}

Compiler output:
a.cc: In function 'char detClass(int, int, int)':
a.cc:5:9: error: 'mean' was not declared in this scope
    5 |         mean = (pm + pe + pj)/3;
      |         ^~~~
a.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
Language: C++

#include<<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int *students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((studnets[n][0]+studnets[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(i)<<endl;
    }
  }
  return 0;
}

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

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((studnets[n][0]+studnets[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'char hyakuten(int (*)[3], int)':
a.cc:11:7: error: 'studnets' was not declared in this scope; did you mean 'students'?
   11 |   if((studnets[n][0]+studnets[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
      |       ^~~~~~~~
      |       students
a.cc: In function 'int main()':
a.cc:26:22: error: invalid conversion from 'int' to 'int (*)[3]' [-fpermissive]
   26 |       cout<<hyakuten(i)<<endl;
      |                      ^
      |                      |
      |                      int
a.cc:26:21: error: too few arguments to function 'char hyakuten(int (*)[3], int)'
   26 |       cout<<hyakuten(i)<<endl;
      |             ~~~~~~~~^~~
a.cc:4:6: note: declared here
    4 | char hyakuten(int students[][3],int n){
      |      ^~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((students[n][0]+studnets[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'char hyakuten(int (*)[3], int)':
a.cc:11:22: error: 'studnets' was not declared in this scope; did you mean 'students'?
   11 |   if((students[n][0]+studnets[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
      |                      ^~~~~~~~
      |                      students
a.cc: In function 'int main()':
a.cc:26:22: error: invalid conversion from 'int' to 'int (*)[3]' [-fpermissive]
   26 |       cout<<hyakuten(i)<<endl;
      |                      ^
      |                      |
      |                      int
a.cc:26:21: error: too few arguments to function 'char hyakuten(int (*)[3], int)'
   26 |       cout<<hyakuten(i)<<endl;
      |             ~~~~~~~~^~~
a.cc:4:6: note: declared here
    4 | char hyakuten(int students[][3],int n){
      |      ^~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((students[n][0]+students[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: invalid conversion from 'int' to 'int (*)[3]' [-fpermissive]
   26 |       cout<<hyakuten(i)<<endl;
      |                      ^
      |                      |
      |                      int
a.cc:26:21: error: too few arguments to function 'char hyakuten(int (*)[3], int)'
   26 |       cout<<hyakuten(i)<<endl;
      |             ~~~~~~~~^~~
a.cc:4:6: note: declared here
    4 | char hyakuten(int students[][3],int n){
      |      ^~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((students[n][0]+students[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(students[i],i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:32: error: cannot convert 'int*' to 'int (*)[3]'
   26 |       cout<<hyakuten(students[i],i)<<endl;
      |                      ~~~~~~~~~~^
      |                                |
      |                                int*
a.cc:4:19: note:   initializing argument 1 of 'char hyakuten(int (*)[3], int)'
    4 | char hyakuten(int students[][3],int n){
      |               ~~~~^~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((students[n][0]+students[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(students[i][],i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:34: error: expected primary-expression before ']' token
   26 |       cout<<hyakuten(students[i][],i)<<endl;
      |                                  ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
char hyakuten(int students[][3],int n){
  for(int i=0;i<3;i++){
   if(students[n][i]==100)return 'A';
  }
  if((students[n][0]+students[n][1])/2>=90)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=80)return 'A';
  if((students[n][0]+students[n][1]+students[n][2])/3>=70)return 'B';
  if((students[n][0]+students[n][1]+students[n][2])/3>=50&&students[n][0]>=80||students[n][1]>=80)return 'B';
  return 'C';
}


int main(){
  int n;
  while(cin>>n&&n){
    int students[10000][3];
    for(int i=0;i<n;i++){
      for(int j=0;j<3;j++){
        cin>>students[i][j];
      }
    }
    for(int i=0;i<n;i++){
      cout<<hyakuten(students[i][0],i)<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:35: error: invalid conversion from 'int' to 'int (*)[3]' [-fpermissive]
   26 |       cout<<hyakuten(students[i][0],i)<<endl;
      |                      ~~~~~~~~~~~~~^
      |                                   |
      |                                   int
a.cc:4:19: note:   initializing argument 1 of 'char hyakuten(int (*)[3], int)'
    4 | char hyakuten(int students[][3],int n){
      |               ~~~~^~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	while(true){
		int n;
		cin >> n;
		if(n == 0)break;
		for(int i = 0; i < n; i++){
			int pm, pe, pj;
			cin >> pm >> pe >> pj;
			if(pm,pe,pj == 100 || (pm + pe) / 2 >= 90 || (pm + pe + pj) / 3 >= 80){
				cout << "A" << endl;
			}
			else if((pm + pe + pj) / 3 >= 70){
				cout << "B" << endl;
			}
			else if((pm + pe + pj) / 3 >= 50 && pm,pe >= 80){
				cout << "B" << endl;
		}
			else{
				cout << "C" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<stdio.h>
int main(void)
{
    int i,a,b[10001],c[10001],d[10001];
	while(1){
	scanf("%d",&a);
	if(a==0) break;
	for(i=0;i<a;i++){
	scanf("%d %d %d",&b[i],&c[i],&d[i]);
	}
	for(i=0;i<a;i++){
	if(b==100||c==100||d==100){
	printf("A\n");
	}
	else if((b+c)/2>=90){
	printf("A\n");
	}
	else if((b+c+d)/3>=80){
	printf("A\n");
	}
	else if((b+c+d)/3>=70){
	printf("B\n");
	}
	else if((b+c+d)/3>=50){
	if(b>=80||c>=80){
	printf("B\n");
	}
	}
	else{
	printf("C\n");
	}
	}
	}
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(b==100||c==100||d==100){
      |            ~^~~~~
a.cc:12:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(b==100||c==100||d==100){
      |                    ~^~~~~
a.cc:12:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(b==100||c==100||d==100){
      |                            ~^~~~~
a.cc:15:19: error: invalid operands of types 'int [10001]' and 'int [10001]' to binary 'operator+'
   15 |         else if((b+c)/2>=90){
      |                  ~^~
      |                  | |
      |                  | int [10001]
      |                  int [10001]
a.cc:18:19: error: invalid operands of types 'int [10001]' and 'int [10001]' to binary 'operator+'
   18 |         else if((b+c+d)/3>=80){
      |                  ~^~
      |                  | |
      |                  | int [10001]
      |                  int [10001]
a.cc:21:19: error: invalid operands of types 'int [10001]' and 'int [10001]' to binary 'operator+'
   21 |         else if((b+c+d)/3>=70){
      |                  ~^~
      |                  | |
      |                  | int [10001]
      |                  int [10001]
a.cc:24:19: error: invalid operands of types 'int [10001]' and 'int [10001]' to binary 'operator+'
   24 |         else if((b+c+d)/3>=50){
      |                  ~^~
      |                  | |
      |                  | int [10001]
      |                  int [10001]
a.cc:25:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         if(b>=80||c>=80){
      |            ~^~~~
a.cc:25:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         if(b>=80||c>=80){
      |                   ~^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <map>
#include <stack>
#include <list>

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,b,n) for(int i=b;i<n;i++)
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

int n;

int main() {
  while(cin >> n, n) {
    rep(i, n) {
      int pm, pe, pj;
      cin >> pm >> pe >> pj;
      float tmp1 = (pm + pe) / 2.0;
      float tmp2 = (pm + pe + pj) / 3.0;
      if(tmp1 => 90 || tmp2 => 80 || pm == 100 || pe == 100 || pj == 100) {
        cout << 'A' << endl;
      } else if (tmp2 => 70 || (tmp2 => 50 && (pm => 80 || pe => 80))) {
        cout << 'B' << endl;
      } else {
        cout << 'C' << endl;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:16: error: expected primary-expression before '>' token
   34 |       if(tmp1 => 90 || tmp2 => 80 || pm == 100 || pe == 100 || pj == 100) {
      |                ^
a.cc:34:30: error: expected primary-expression before '>' token
   34 |       if(tmp1 => 90 || tmp2 => 80 || pm == 100 || pe == 100 || pj == 100) {
      |                              ^
a.cc:36:24: error: expected primary-expression before '>' token
   36 |       } else if (tmp2 => 70 || (tmp2 => 50 && (pm => 80 || pe => 80))) {
      |                        ^
a.cc:36:39: error: expected primary-expression before '>' token
   36 |       } else if (tmp2 => 70 || (tmp2 => 50 && (pm => 80 || pe => 80))) {
      |                                       ^
a.cc:36:52: error: expected primary-expression before '>' token
   36 |       } else if (tmp2 => 70 || (tmp2 => 50 && (pm => 80 || pe => 80))) {
      |                                                    ^
a.cc:36:64: error: expected primary-expression before '>' token
   36 |       } else if (tmp2 => 70 || (tmp2 => 50 && (pm => 80 || pe => 80))) {
      |                                                                ^
Language: C++

#include<stdio.h>
int main(void)
{
	int n,a,b,c,i;
	scanf("%d",&n);
	while(n!=0){
		for(i=0;i<n;i++){
			scanf("%d %d %d",&a,&b,&c);
			if(a==100 || b==100 || c==100 || (a+b)/2>89 || (a+b+c)/3>79)  printf("A\n");
			else if((a+b+c)/3>69 && (a+b+c)/3>49 && (a>79 || b>79))  printf("A\n");
			else if((a+b+c)/3>69 || (a+b+c)/3>49 && (a>79 || b>79))  printf("B\n");
			else printf("C\n");
		}
		scanf("%d",&n);
	}
	return 0;

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

#include<iostream>

int n,pm,pe,pj;

char solve(int m, int e, int j){
	char ans='C';
	if(m==100 || e==100 || j==100 || m+e>=180 || m+e+j>=240)
		ans = 'A';
	else if(m+e+j>=210 || (m+e+j>=50 && (m>=80 || e>=80)))
		ans = 'B';
	return ans;
}

int main(){
	while(true){
		std::cin >> n;
		if(!n)
			return 0;
		for(int i=0; i<n; i++){
			std::cin >> pm >> pe >> pj;
			std::cout << solve(pm, pe, pj);
		}
		delete[] c;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: 'c' was not declared in this scope
   23 |                 delete[] c;
      |                          ^
Language: C++

#include<iostream>

char *c;
int n,pm,pe,pj;

char solve(int m, int e, int j){
	char ans='C';
	if(m==100 || e==100 || j==100 || m+e>=180 || m+e+j>=240)
		ans = 'A';
	else if(m+e+j>=210 || (m+e+j>=150 && (m>=80 || e>=80)))
		ans = 'B';
	return ans;
}

int main(){
	while(true){
		std::cin >> n;
		if(!n)
			return 0;
		c = new char[n];
		for(int i=0; i<n; i++){
			std::cin >> pm >> pe >> pj;
			c[i] = solve(pm, pe, pj);
		}
		for(int i=0; i<n; i++)
			std::cout << c[i] << endl;
		delete[] c;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |                         std::cout << c[i] << endl;
      |                                              ^~~~
      |                                              std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

g#include <iostream>

using namespace std;

char divide(int m, int e, int j) {
    if (m == 100 || e == 100 || j == 100) return 'A';
    if ( (m+e)/2 >= 90 ) return 'A';
    if ( (m+e+j)/3 >= 80 ) return 'A';
    if ( (m+e+j)/3 >= 70 ) return 'B';
    if ( (m+e+j)/3 >= 50 && (m >= 80 || e >= 80) ) return 'B';
    return 'C';
}

int main() {
    int n;
    while (cin >> n, n) {
        while (n--) {
            int pm, pe, pj;
            cin >> pm >> pe >> pj;
            cout << divide(pm, pe, pj) << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | g#include <iostream>
      |  ^
a.cc:1:1: error: 'g' does not name a type
    1 | g#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:16:12: error: 'cin' was not declared in this scope
   16 |     while (cin >> n, n) {
      |            ^~~
a.cc:20:13: error: 'cout' was not declared in this scope
   20 |             cout << divide(pm, pe, pj) << endl;
      |             ^~~~
a.cc:20:43: error: 'endl' was not declared in this scope
   20 |             cout << divide(pm, pe, pj) << endl;
      |                                           ^~~~
Language: C++

#include<cstdio>
using namespace std; 

int main(){
    int n, a, b, c, i , ans[10000];
    while(1){
        scanf("%d", &n);
        if(n == 0) break;
        for(i = 0; i < n; i++){
            ans[i] = 0;
            scanf("%d %d %d", &a, &b, &c);
            if((a == 100 || b == 100 || c == 100) || (a + b) / 2 >= 90 || (a + b + c) / 3 >= 80) ans[i] = 2;
            else{
                if((a + b + c) / 3 >= 70) ans[i]++;
                if((a + b + c) / 3 >= 50 && a >= 80) ans[i]++;
                if((a + b + c) / 3 >= 50 && b >= 80) ans[i]++;
            }
        }
       for(i = 0; i < n; i++){
            if(ans > 1) printf("%s\n", 'A');
            if(ans == 1) printf("%s\n", 'B');
            if(ans == 0) printf("%s\n", 'C');
       }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |             if(ans > 1) printf("%s\n", 'A');
      |                ~~~~^~~
a.cc:21:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             if(ans == 1) printf("%s\n", 'B');
      |                ~~~~^~~~
Language: C++

#include<cstdio>
using namespace std; 

int main(){
    int n, a, b, c, i , ans[10000];
    while(1){
        scanf("%d", &n);
        if(n == 0) break;
        for(i = 0; i < n; i++){
            ans[i] = 0;
            scanf("%d %d %d", &a, &b, &c);
            if((a == 100 || b == 100 || c == 100) || (a + b) / 2 >= 90 || (a + b + c) / 3 >= 80) ans[i] = 2;
            else{
                if((a + b + c) / 3 >= 70 || ((a + b + c) / 3 >= 50 && a >= 80) || ((a + b + c) / 3 >= 50 && b >= 80)) ans[i]++;
            }
        }
       for(i = 0; i < n; i++){
            if(ans > 1) printf("A\n");
            if(ans == 1) printf("B\n");
            if(ans == 0) printf("C\n");
       }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             if(ans > 1) printf("A\n");
      |                ~~~~^~~
a.cc:19:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(ans == 1) printf("B\n");
      |                ~~~~^~~~
Language: C++

#include<cstdio>
using namespace std; 

int main(){
    int n, a, b, c, i , ans[10000];
    while(1){
        scanf("%d", &n);
        if(n == 0) break;
        for(i = 0; i < n; i++){
            ans[i] = 0;
            scanf("%d %d %d", &a, &b, &c);
            if((a == 100 || b == 100 || c == 100) || (a + b) / 2 >= 90 || (a + b + c) / 3 >= 80) ans[i] = 2;
            else{
                if((a + b + c) / 3 >= 70 || ((a + b + c) / 3 >= 50 && a >= 80) || ((a + b + c) / 3 >= 50 && b >= 80) ans[i]++;
            }
        }
       for(i = 0; i < n; i++){
            if(ans > 1) printf("A\n");
            if(ans == 1) printf("B\n");
            if(ans == 0) printf("C\n");
       }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:117: error: expected ';' before 'ans'
   14 |                 if((a + b + c) / 3 >= 70 || ((a + b + c) / 3 >= 50 && a >= 80) || ((a + b + c) / 3 >= 50 && b >= 80) ans[i]++;
      |                                                                                                                     ^~~~
      |                                                                                                                     ;
a.cc:15:13: error: expected primary-expression before '}' token
   15 |             }
      |             ^
a.cc:14:127: error: expected ')' before '}' token
   14 |                 if((a + b + c) / 3 >= 70 || ((a + b + c) / 3 >= 50 && a >= 80) || ((a + b + c) / 3 >= 50 && b >= 80) ans[i]++;
      |                   ~                                                                                                           ^
      |                                                                                                                               )
   15 |             }
      |             ~                                                                                                                  
a.cc:15:13: error: expected primary-expression before '}' token
   15 |             }
      |             ^
a.cc:18:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             if(ans > 1) printf("A\n");
      |                ~~~~^~~
a.cc:19:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(ans == 1) printf("B\n");
      |                ~~~~^~~~
Language: C++

#include<stdio.h>
 
int main(void){
    int i,k;
    int h1,m1,s1,h2,m2,s2;
    int sum1,sum2;
 
    while(scanf("%d",&k)==0){
       for(i=0;i<k;i++){
        scanf("%d %d %d",&h1,&m1,&s1);
        sum1=h1+m1;
        sum2=h1+m1+s1;
       if((h1==100||m1==100||s1==100)||sum1=>180||sum2==270) printf("A\n");
       else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
       else printf("C\n");
    }
    }
    return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:45: error: expected primary-expression before '>' token
   13 |        if((h1==100||m1==100||s1==100)||sum1=>180||sum2==270) printf("A\n");
      |                                             ^
a.cc:14:21: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
      |                     ^
a.cc:14:33: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
      |                                 ^
a.cc:14:43: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
      |                                           ^
a.cc:14:51: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
      |                                                   ^
a.cc:15:8: error: expected primary-expression before 'else'
   15 |        else printf("C\n");
      |        ^~~~
a.cc:14:71: error: expected ')' before 'else'
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80)) printf("B\n");
      |               ~                                                       ^
      |                                                                       )
   15 |        else printf("C\n");
      |        ~~~~
Language: C++

#include<stdio.h>
 
int main(void){
    int i,k;
    int h1,m1,s1,h2,m2,s2;
    int sum1,sum2;
 
    while(scanf("%d",&k)==0){
       for(i=0;i<k;i++){
        scanf("%d %d %d",&h1,&m1,&s1);
        sum1=h1+m1;
        sum2=h1+m1+s1;
       if((h1==100||m1==100||s1==100)||sum1=>180||sum2==270) printf("A\n");
       else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80))) printf("B\n");
       else printf("C\n");
    }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:45: error: expected primary-expression before '>' token
   13 |        if((h1==100||m1==100||s1==100)||sum1=>180||sum2==270) printf("A\n");
      |                                             ^
a.cc:14:21: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80))) printf("B\n");
      |                     ^
a.cc:14:33: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80))) printf("B\n");
      |                                 ^
a.cc:14:43: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80))) printf("B\n");
      |                                           ^
a.cc:14:51: error: expected primary-expression before '>' token
   14 |        else if(sum1=>210||(sum1=>150&&(h1=>80||m1=>80))) printf("B\n");
      |                                                   ^
Language: C++

#include<stdio.h>

int main(void){
	int i,n,t1,t2,j,m,e;
	while(0==0)
	{
		scanf("%d",&n);
		if(n==0)break;

		for(i=0;i<n;i++){
			scanf("%d %d %d",&m,&e,&j);
			t1=m+e;  t2=m+e+j;
			if((m==100 || e==100 || j==100) || (t1>=180) || (t2>=240))
				printf("A\n");
			else if((t2>=210) || (t2>=150 && ( m>=80 || e>=80)))
				printf("B\n");
			else printf("C\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: Java

#include <stdio.h>

int main(void) {
	int n,i,j,k[10],buy;
	while (1) {
		scanf("%d",&n);
		if (n==0) break;

		for (i=0;i<10;i++) k[i] = 0;
		for (i=0;i<n;i++) {
			scanf("%d",&buy);
			k[buy]++;
		}
		for (i=0;i<10;i++) {
			if (k[i]==0) puts("-");
			else {
				for (j=0;j<k[i];j++) {
					putchar('*');
				}
				putchar('\n');
			}
		}
	}

	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: class, interface, enum, or record expected
	while (1) {
	^
Main.java:7: error: class, interface, enum, or record expected
		if (n==0) break;
		^
Main.java:9: error: class, interface, enum, or record expected
		for (i=0;i<10;i++) k[i] = 0;
		^
Main.java:9: error: class, interface, enum, or record expected
		for (i=0;i<10;i++) k[i] = 0;
		         ^
Main.java:9: error: class, interface, enum, or record expected
		for (i=0;i<10;i++) k[i] = 0;
		              ^
Main.java:10: error: class, interface, enum, or record expected
		for (i=0;i<n;i++) {
		^
Main.java:10: error: class, interface, enum, or record expected
		for (i=0;i<n;i++) {
		         ^
Main.java:10: error: class, interface, enum, or record expected
		for (i=0;i<n;i++) {
		             ^
Main.java:12: error: class, interface, enum, or record expected
			k[buy]++;
			^
Main.java:13: error: class, interface, enum, or record expected
		}
		^
Main.java:14: error: class, interface, enum, or record expected
		for (i=0;i<10;i++) {
		         ^
Main.java:14: error: class, interface, enum, or record expected
		for (i=0;i<10;i++) {
		              ^
Main.java:16: error: class, interface, enum, or record expected
			else {
			^
Main.java:17: error: class, interface, enum, or record expected
				for (j=0;j<k[i];j++) {
				         ^
Main.java:17: error: class, interface, enum, or record expected
				for (j=0;j<k[i];j++) {
				                ^
Main.java:19: error: class, interface, enum, or record expected
				}
				^
Main.java:21: error: class, interface, enum, or record expected
			}
			^
Main.java:26: error: class, interface, enum, or record expected
}
^
20 errors