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

#include<stdio.h>
#define ARRAY_MAX 50
#define COUNT_RESET 0
#define RETURN 0
#define ARRAY_END -1
#define TEST_ABSENT -1
#define BORDER_A 80
#define BORDER_B 65
#define BORDER_C 50
#define BORDER_D 30

struct test_result{
    signed short ssW_D_mid;
    signed short ssW_D_fin;
    signed short ssW_D_re;
    unsigned char ubW_D_eval;
};

unsigned char s_EVALUATE(struct test_result test);

int main(){
    struct test_result test[ARRAY_MAX];
    unsigned short usW_C_i;
    unsigned short usW_C_count = COUNT_RESET;

    for(usW_C_i = COUNT_RESET;usW_C_i < ARRAY_MAX;usW_C_i++){
        scanf("%d %d %d", &test[usW_C_i].ssW_D_mid, &test[usW_C_i].ssW_D_fin, &test[usW_C_i].ssW_D_re);
        if(test[usW_C_i].ssW_D_mid == ARRAY_END && test[usW_C_i].ssW_D_fin == ARRAY_END && test[usW_C_i].ssW_D_re == ARRAY_END){
            break;
        }
        test[usW_C_i].ubW_D_eval = s_EVALUATE(test[i]);
        usW_C_count++;
    }

    for(usW_C_i = COUNT_RESET;usW_C_i < usW_C_count;usW_C_i++){
        printf("%c\n", test[usW_C_i].ubW_D_eval);
    }

    return RETURN;
}

unsigned char s_EVALUATE(struct test_result test){
    signed short ssW_D_sum;
    unsigned char ubW_D_result;

    ssW_D_sum = test.ssW_D_mid + test.ssW_D_fin;

    if(ssW_D_mid == TEST_ABSENT || ssW_D_fin == TEST_ABSENT){
        ubW_D_result = 'F';
    }
    else if(ssW_D_sum >= BORDER_A){
        ubW_D_result = 'A';
    }
    else if(ssW_D_sum >= BORDER_B){
        ubW_D_result = 'B';
    }
    else if(ssW_D_sum >= BORDER_C){
        ubW_D_result = 'C';
    }
    else if(ssW_D_sum >= BORDER_D){
        if(test.ssW_D_re >= BORDER_C){
            ubW_D_result = 'C';
        }
        else{
            ubW_D_result = 'D';
        }
    }
    else{
        ubW_D_result = 'F';
    }

    return ubW_D_result;
}


Compiler output:
main.c: In function 'main':
main.c:31:52: error: 'i' undeclared (first use in this function)
   31 |         test[usW_C_i].ubW_D_eval = s_EVALUATE(test[i]);
      |                                                    ^
main.c:31:52: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 's_EVALUATE':
main.c:48:8: error: 'ssW_D_mid' undeclared (first use in this function); did you mean 'ssW_D_sum'?
   48 |     if(ssW_D_mid == TEST_ABSENT || ssW_D_fin == TEST_ABSENT){
      |        ^~~~~~~~~
      |        ssW_D_sum
main.c:48:36: error: 'ssW_D_fin' undeclared (first use in this function); did you mean 'ssW_D_sum'?
   48 |     if(ssW_D_mid == TEST_ABSENT || ssW_D_fin == TEST_ABSENT){
      |                                    ^~~~~~~~~
      |                                    ssW_D_sum
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]) {
    int m, f, r;

    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        
        if(m == -1 && f == -1 && r == -1){
            break;
            if(m+f>=80){
                puts("A");
            }
            else if(m+f>=65){
                puts("B");
            }
            else if(m+f>=50||r>=50){
                puts("C");
            }
            else if(m+f>=30){
                puts("D");
            }
            else if(m==-1||f==-1){
                puts("F");
            }

            else
                puts("F");

            
        }



Compiler output:
main.c: In function 'main':
main.c:32:9: error: expected declaration or statement at end of input
   32 |         }
      |         ^
main.c:32:9: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(void){
  int i,m,f,r;
  while(1){
    scanf("%d %d %d",&m,&f,&r);
    if(m == -1 && f == -1 && r == -1){
      break;
    }
    if(m == -1){
      m = 0;
    }
    if(f == -1){
      n = 0;
    }
    if(m + f >= 80){
      printf("A\n");
    }
    else if(m + f >= 65){
      printf("B\n");
    }
    else if(m + f >= 50 || r >= 50){
      printf("C\n");
    }
    else if(m + f >= 30){
      printf("D\n");
    }
    else{
      printf("F\n");
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:7: error: 'n' undeclared (first use in this function)
   14 |       n = 0;
      |       ^
main.c:14:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {

	int m, f, r, p;

	while (1) {

		scanf("%d %d %d", &m, &f, &r);

		if (m == -1 && f == -1 && r == -1)
			break;

		p = m + f;

		if (m == -1 || f == -1) {
			printf("F");
		}

		else if (80 <= p) {
			printf("A");
		}

		else if (65 <= p && p < 80) {
			printf("B");
		}

		else if (50 <= p && p < 65) {
			printf("C");
		}

		else if (p < 30) {
			printf("F");
		}

		else if (30 <= p && p < 50 && r < 50) {
			printf("D");
		}
		
		else if (30 <= p && p < 50 && 50 <= r) {
			printf("C");
		}

		pritnf("\n");
	}
	return(0);

}


Compiler output:
main.c: In function 'main':
main.c:44:17: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   44 |                 pritnf("\n");
      |                 ^~~~~~
      |                 printf
Language: C

#include<stdio.h>

int main(void) {

	int m, f, r, p;

	while (1) {

		scanf("%d %d %d", &m, &f, &r);

		if (m == -1 && f == -1 && r == -1)
			break;

		p = m + f;

		if (m == -1 || f == -1) {
			printf("F");
		}

		else if (80 <= p) {
			printf("A");
		}

		else if (65 <= p && p < 80) {
			printf("B");
		}

		else if (50 <= p && p < 65) {
			printf("C");
		}

		else if (p < 30) {
			printf("F");
		}

		else if (30 <= p && p < 50 && r < 50) {
			printf("D");
		}
		
		else if (30 <= p && p < 50 && 50 <= r) {
			printf("C");
		}

		pritnf("\n");
	}
}
	return(0);

}


Compiler output:
main.c: In function 'main':
main.c:44:17: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   44 |                 pritnf("\n");
      |                 ^~~~~~
      |                 printf
main.c: At top level:
main.c:47:9: error: expected identifier or '(' before 'return'
   47 |         return(0);
      |         ^~~~~~
main.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^
Language: C

#include <stdio.h>
 
int main(0)
{
  int m, f, r;
  int x;
  while(1) {
 
    scanf("%d %d %d", &m , &f , &r);
    x = m + f;
    if(m == -1 && f ==-1 && r == -1) {
      break;
    }
 
    if(m == -1 || f == -1) {
      printf("F\n");
    } else if(x >= 80) {
      printf("A\n");
    } else if (x >= 65) {
      printf("B\n");
    } else if(x >= 50) {
      printf("C\n");
    } else if ( x >=30) {
      if(r >= 50) {
    printf("C\n");
      } else {
    printf("D\n");
      }
    } else if (x < 30) {
      printf("F\n");

    }
  }
  return 0;
}


Compiler output:
main.c:3:10: error: expected declaration specifiers or '...' before numeric constant
    3 | int main(0)
      |          ^
Language: C

#include <stdio.h>
int main() {
  int m, f, r;
  int x;
  while(1) {
    scanf("%d %d %d", &m , &f , &r);
    x = m + f;
    if(m == -1 && f ==-1 && r == -1)break;
    if(m == -1 || f == -1) {
      printf("F\n");
    {else if(x >= 80) {
      printf("A\n");
    } else if (x >= 65) {
      printf("B\n");
    } else if(x >= 50) {
      printf("C\n");
    } else if ( x >=30) {
      if(r >= 50) {
    printf("C\n");
      } else {
    printf("D\n");
      }
    } else if (x < 30) {
      printf("F\n");
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:6: error: 'else' without a previous 'if'
   11 |     {else if(x >= 80) {
      |      ^~~~
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
main.c:28:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(void){
	
	int m,f,r,k;
	
	while(1){
		
		scanf("%d %d %d",&m, &f, &r);
		
		if(m==-1 && f==-1 && r==-1){
			break;
		}
		
		k = m + f;
		
		if(m==-1 || f==-1){
			printf("F\n");
		}
		if(m != -1 && f != -1)){
			if(k>80){
				printf("A\n");
			}else if(k>=65 && k<80){
				printf("B\n");
			}else if(k>=50 && k<65){
				printf("C\n");
			}else if(k>=30 && k<50){
				if(r>50){
					printf("C\n");
				}else{
					printf("D\n");
				}
			}else{
				printf("F\n");
			}
		}
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:39: error: expected statement before ')' token
   20 |                 if(m != -1 && f != -1)){
      |                                       ^
Language: C

#include <stdio.h>
int main(void)
{
    int m,f,r;
   
    while(1){
    scanf("%d %d %d",&m,&f,&r);
        if(m==-1&&f==-1&&r==-1)break;
       
        if(m==-1||f==-1)
            printf("F\n");
        else if(m+f<30)
            printf("F\n");
        else if(80<=m+f)
            printf("A\n");
        else if(65<=m+f&&m+f<80)
            printf("B\n");
        else if(50<=m+f&&m+f<65)
            printf("C\n");
        else (30<=m+f&&m+f<50){
            if(r>=50)printf("C\n");
            else printf("D\n");
        }
       
    }
        printf("\n");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:31: error: expected ';' before '{' token
   20 |         else (30<=m+f&&m+f<50){
      |                               ^
      |                               ;
Language: C

#include <stdio.h>
int main(void) 
{
	int m, f, r;
	while (1) {
                scanf("%d %d %d", &m, &f, &r);
		if (m == -1 && f == -1 && r == -1) {
			break;
		}
		if (m == -1 || f == -1) {
			printf("F\n");
		}
		else if (m + f >= 80) {
			printf("A\n");
		}
		else if (m + f >= 65 && m + f < 80) {
			printf("B\n");
		}
		else if (m + f >= 50 && m + f < 65) {
			printf("C\n");
		}
		else if (m + f >= 30 && m + f < 50) {
			if (r >= 50) {
				printf("C\n");
			else
			    printf("D\n");
			}
		}
		else if (m + f < 30) {
			printf("F\n");
		}
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:25:25: error: expected '}' before 'else'
   25 |                         else
      |                         ^~~~
main.c:29:17: error: 'else' without a previous 'if'
   29 |                 else if (m + f < 30) {
      |                 ^~~~
main.c: At top level:
main.c:33:9: error: expected identifier or '(' before 'return'
   33 |         return 0;
      |         ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

#include <stdio.h>
int main(void) 
{
	int m, f, r;
	while (1) {
                scanf("%d %d %d", &m, &f, &r);
		if (m == -1 && f == -1 && r == -1) {
			break;
		}
		if (m == -1 || f == -1) {
			printf("F\n");
		}
		else if (m + f >= 80) {
			printf("A\n");
		}
		else if (m + f >= 65 && m + f < 80) {
			printf("B\n");
		}
		else if (m + f >= 50 && m + f < 65) {
			printf("C\n");
		}
		else if (m + f >= 30 && m + f < 50) {
			if (r < 50) {
				printf("D\n");
			else
			    printf("C\n");
			}
		}
		else if (m + f < 30) {
			printf("F\n");
		}
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:25:25: error: expected '}' before 'else'
   25 |                         else
      |                         ^~~~
main.c:29:17: error: 'else' without a previous 'if'
   29 |                 else if (m + f < 30) {
      |                 ^~~~
main.c: At top level:
main.c:33:9: error: expected identifier or '(' before 'return'
   33 |         return 0;
      |         ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

#include <stdio.h>
int main() {
	int m, f, r, g;
	scanf_s("%d %d %d", &m, &f, &r);
	while (m != -1 || f != -1 || r != -1) {
		g = m + f;
		if (m == -1 || f == -1 || g < 30)printf("F\n");
		else if (g >= 80)printf("A\n");
		else if (g >= 65 && g > 80)printf("B\n");
		else if (g >= 50 && g < 65 || g >= 30 && g < 50 && r >= 50)printf("C\n");
		else if (g >= 30 && g < 50)printf("D\n");
		scanf("%d %d %d", &m, &f, &r);
	}
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d %d %d", &m, &f, &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    int total[];
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        total[count] = m + k + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
        
        total = m + f + r;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80)
            printf("A\n");
        if(total[i] < 80 && total >= 65)
            printf("B\n");
        if(total[i] < 65 && total >= 50 )
            printf("C\n");
        if(total[i] < 50 && total >= 30)
            printf("D\n");
        if(total[i] < 30)
        printf("F\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: array size missing in 'total'
    7 |     int total[];
      |         ^~~~~
main.c:11:28: error: 'k' undeclared (first use in this function)
   11 |         total[count] = m + k + r;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:15: error: assignment to expression with array type
   15 |         total = m + f + r;
      |               ^
main.c:19:13: error: expected ')' before ';' token
   19 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:22:35: warning: comparison between pointer and integer
   22 |         if(total[i] < 80 && total >= 65)
      |                                   ^~
main.c:24:35: warning: comparison between pointer and integer
   24 |         if(total[i] < 65 && total >= 50 )
      |                                   ^~
main.c:26:35: warning: comparison between pointer and integer
   26 |         if(total[i] < 50 && total >= 30)
      |                                   ^~
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    int total[];
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        total[count] = m + k + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80)
            printf("A\n");
        if(total[i] < 80 && total >= 65)
            printf("B\n");
        if(total[i] < 65 && total >= 50 )
            printf("C\n");
        if(total[i] < 50 && total >= 30)
            printf("D\n");
        if(total[i] < 30)
        printf("F\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: array size missing in 'total'
    7 |     int total[];
      |         ^~~~~
main.c:11:28: error: 'k' undeclared (first use in this function)
   11 |         total[count] = m + k + r;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:13: error: expected ')' before ';' token
   17 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:20:35: warning: comparison between pointer and integer
   20 |         if(total[i] < 80 && total >= 65)
      |                                   ^~
main.c:22:35: warning: comparison between pointer and integer
   22 |         if(total[i] < 65 && total >= 50 )
      |                                   ^~
main.c:24:35: warning: comparison between pointer and integer
   24 |         if(total[i] < 50 && total >= 30)
      |                                   ^~
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        int total[count] = m + k + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80)
            printf("A\n");
        if(total[i] < 80 && total >= 65)
            printf("B\n");
        if(total[i] < 65 && total >= 50 )
            printf("C\n");
        if(total[i] < 50 && total >= 30)
            printf("D\n");
        if(total[i] < 30)
        printf("F\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:32: error: 'k' undeclared (first use in this function)
   10 |         int total[count] = m + k + r;
      |                                ^
main.c:10:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:28: error: variable-sized object may not be initialized except with an empty initializer
   10 |         int total[count] = m + k + r;
      |                            ^
main.c:16:13: error: expected ')' before ';' token
   16 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:17:12: error: 'total' undeclared (first use in this function)
   17 |         if(total[i] >= 80)
      |            ^~~~~
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    int total[100000];
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        total[count] = m + k + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80)
            printf("A\n");
        if(total[i] < 80 && total >= 65)
            printf("B\n");
        if(total[i] < 65 && total >= 50 )
            printf("C\n");
        if(total[i] < 50 && total >= 30)
            printf("D\n");
        if(total[i] < 30)
            printf("F\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'k' undeclared (first use in this function)
   11 |         total[count] = m + k + r;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:13: error: expected ')' before ';' token
   17 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:20:35: warning: comparison between pointer and integer
   20 |         if(total[i] < 80 && total >= 65)
      |                                   ^~
main.c:22:35: warning: comparison between pointer and integer
   22 |         if(total[i] < 65 && total >= 50 )
      |                                   ^~
main.c:24:35: warning: comparison between pointer and integer
   24 |         if(total[i] < 50 && total >= 30)
      |                                   ^~
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    int total[100000];
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        total[count] = m + f + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80)
            printf("A\n");
        if(total[i] < 80 && total >= 65)
            printf("B\n");
        if(total[i] < 65 && total >= 50 )
            printf("C\n");
        if(total[i] < 50 && total >= 30)
            printf("D\n");
        if(total[i] < 30)
            printf("F\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:13: error: expected ')' before ';' token
   17 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:20:35: warning: comparison between pointer and integer
   20 |         if(total[i] < 80 && total >= 65)
      |                                   ^~
main.c:22:35: warning: comparison between pointer and integer
   22 |         if(total[i] < 65 && total >= 50 )
      |                                   ^~
main.c:24:35: warning: comparison between pointer and integer
   24 |         if(total[i] < 50 && total >= 30)
      |                                   ^~
Language: C

#include <stdio.h>

int main(){
    
    int m, f, r;
    int count = 0;
    int total[100000];
    
    while(1){
        scanf("%d %d %d", &m, &f, &r);
        total[count] = m + f + r;
        count++;
        if(m == -1 && f == -1 && r == -1) break;
    }
    
    int i;
    if(i = 0;i < count;i++){
        if(total[i] >= 80){
            printf("A\n");
        }
        if(total[i] < 80 && total >= 65){
            printf("B\n");
        }
        if(total[i] < 65 && total >= 50){
            printf("C\n");
        }
        if(total[i] < 50 && total >= 30){
            printf("D\n");
        }
        if(total[i] < 30){
            printf("F\n");
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:13: error: expected ')' before ';' token
   17 |     if(i = 0;i < count;i++){
      |       ~     ^
      |             )
main.c:21:35: warning: comparison between pointer and integer
   21 |         if(total[i] < 80 && total >= 65){
      |                                   ^~
main.c:24:35: warning: comparison between pointer and integer
   24 |         if(total[i] < 65 && total >= 50){
      |                                   ^~
main.c:27:35: warning: comparison between pointer and integer
   27 |         if(total[i] < 50 && total >= 30){
      |                                   ^~
Language: C

while True:
  m, f, r = map(int, input().split())
  g=m+f
  if m == -1 and f == -1 and r == -1:
    break
  if m == -1 or f == -1 or g<30:
    print("F")
  elif g >= 80:
    print("A")
  elif g >= 65:
    print("B")
  elif g >= 50:
    print("C")
  elif g >= 30:
    if r>=50:
      print("C")
    else:
      print("D")


Compiler output:
main.c:1:1: error: expected identifier or '(' before 'while'
    1 | while True:
      | ^~~~~
Language: C


#include <stdio.h> int main() { int m, f, r; int x; while(1) { scanf("%d %d %d", &m , &f , &r); x = m + f; if(m == -1 && f ==-1 && r == -1) { break; } if(m == -1 || f == -1) { printf("F\n"); } else if(x >= 80) { printf("A\n"); } else if (x >= 65) { printf("B\n"); } else if(x >= 50) { printf("C\n"); } else if ( x >=30) { if(r >= 50) { printf("C\n"); } else { printf("D\n"); } } else if (x < 30) { printf("F\n"); } } return 0; }

  

 



 



Compiler output:
main.c:2:20: warning: extra tokens at end of #include directive
    2 | #include <stdio.h> int main() { int m, f, r; int x; while(1) { scanf("%d %d %d", &m , &f , &r); x = m + f; if(m == -1 && f ==-1 && r == -1) { break; } if(m == -1 || f == -1) { printf("F\n"); } else if(x >= 80) { printf("A\n"); } else if (x >= 65) { printf("B\n"); } else if(x >= 50) { printf("C\n"); } else if ( x >=30) { if(r >= 50) { printf("C\n"); } else { printf("D\n"); } } else if (x < 30) { printf("F\n"); } } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h> int main(void) { /*?????°??£?¨?*/ int m,f,r; char g; /*??????*/ while(!(m==-1&&f==-1&&r==-1)){ scanf("%d %d %d",&m,&f,&r); if(m==-1||f==-1) g='F'; else if(m+f>=80) g='A'; else if(m+f>=65&&m+f<80) g='B'; else if(m+f>=50&&m+f<65) g='C'; else if(m+f>=30&&m+f<50){ if(r>=50) g='C'; else g='D'; } else if(m+f<30) g='F'; if(m==-1&&f==-1&&r==-1) break; printf("%c\n",g); } return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void) { /*?????°??£?¨?*/ int m,f,r; char g; /*??????*/ while(!(m==-1&&f==-1&&r==-1)){ scanf("%d %d %d",&m,&f,&r); if(m==-1||f==-1) g='F'; else if(m+f>=80) g='A'; else if(m+f>=65&&m+f<80) g='B'; else if(m+f>=50&&m+f<65) g='C'; else if(m+f>=30&&m+f<50){ if(r>=50) g='C'; else g='D'; } else if(m+f<30) g='F'; if(m==-1&&f==-1&&r==-1) break; printf("%c\n",g); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h> int main() { int m,f,r,t; for(;;) { scanf("%d%d%d",&m,&f,&r); t=m+f; if(m+f+r==-3)return 0; if(m==-1||f==-1)puts("F"); else if(t>=80)puts("A"); else if(t>=65)puts("B"); else if(t>=50||r>=50)puts("C"); else if(t>=30)puts("D"); else puts("F"); } return 0; } 


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main() { int m,f,r,t; for(;;) { scanf("%d%d%d",&m,&f,&r); t=m+f; if(m+f+r==-3)return 0; if(m==-1||f==-1)puts("F"); else if(t>=80)puts("A"); else if(t>=65)puts("B"); else if(t>=50||r>=50)puts("C"); else if(t>=30)puts("D"); else puts("F"); } return 0; }
      |                   ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main(void){
  int m, f, r;
  while(1){
    scanf("%d %d %d\n", &m, &f, &r);
    if      (m == -1 && f == -1 %% r == -1) break;
    else if (m == -1 || f == -1) printf("F\n");
    else if (m+f => 80) printf("A\n");
    else if (m+f => 65) printf("B\n");
    else if (m+f => 50) printf("C\n");
    else if (m+f => 30 && r => 50) printf("C\n");
    else if (m+f => 30) printf("D\n");
    else printf("F\n");
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:34: error: expected expression before '%' token
    7 |     if      (m == -1 && f == -1 %% r == -1) break;
      |                                  ^
main.c:9:19: error: expected expression before '>' token
    9 |     else if (m+f => 80) printf("A\n");
      |                   ^
main.c:10:19: error: expected expression before '>' token
   10 |     else if (m+f => 65) printf("B\n");
      |                   ^
main.c:11:19: error: expected expression before '>' token
   11 |     else if (m+f => 50) printf("C\n");
      |                   ^
main.c:12:19: error: expected expression before '>' token
   12 |     else if (m+f => 30 && r => 50) printf("C\n");
      |                   ^
main.c:13:19: error: expected expression before '>' token
   13 |     else if (m+f => 30) printf("D\n");
      |                   ^
Language: C

include <stdio.h>
int main(void){
int m=0,f=0,r;
while(scanf("%d %d %d", &m, &f, &r)!=EOF){
    int s = m + f;
    if(m == -1 && f == -1 && r == -1){ 
      break;
  }
    if(m==-1 || f==-1){
        printf("F");
    }
  
    else if (s>=80){
      printf("A");
  }
    else if(65<=s&&s<80){
      printf("B");
  }
    else if(50<=s||r>=50){
      printf("C");
  }    
    else if(30<=s&&s<50){
      printf("D");
  }
    else if(s<30){
      printf("F");
  }
    printf("\n");
}
    return(0);
}



Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
int main(void){
   int m,f,r; 
   scanf("%d %d %d",&m,&f,&r),m+f+r!=-3){ 
   if(m==-1||f==-1) printf("F\n"); 
   else if(m+f>=80) printf("A\n"); 
   else if(m+f>=65) printf("B\n"); 
   else if(m+f>=50) printf("C\n"); 
   else if(m+f>=30){
       if(r>=50) printf("C\n"); 
       else printf("D\n"); 
   } 
   else printf("F\n");
   } 
   return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:4:40: error: expected ';' before ')' token
    4 |    scanf("%d %d %d",&m,&f,&r),m+f+r!=-3){
      |                                        ^
      |                                        ;
main.c:4:40: error: expected statement before ')' token
Language: C

#include<stdio.h>
int main(){
int j,r,n,total;
int test[50][3]={{0}};
while(1){
  scanf("%d %d %d",&m,&f,&r);
  m=test[n][1];
  f=test[n][2];
  r=test[n][3];
n++;
if(test[n][1]==-1&&test[n][2]==-1&&test[n][3]==-1) break;
}
for(j=0;j<n;j++){
  total=test[j][1]+test[j][2];
  if(test[j][1]==-1 || test[j][2]==-1){
    printf("%c\n",'F');
  }else if(total>=80 && test[j][3]==-1){
    printf("%c\n",'A');
  }else if(65<=total && total<80 && test[j][3]==-1){
    printf("%c\n",'B');
  }else if(50<=total && total<65 && test[j][3]==-1){
    printf("%c\n",'C');
  }else if(total<50 && total>=30){
    if(r>=50){
       printf("%c\n",'C');
}else {
  printf("%c\n",'F');
}
  }else{
     printf("%c\n",'F');
  }
}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:21: error: 'm' undeclared (first use in this function)
    6 |   scanf("%d %d %d",&m,&f,&r);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:24: error: 'f' undeclared (first use in this function)
    6 |   scanf("%d %d %d",&m,&f,&r);
      |                        ^
Language: C

#include<stdio.h>

int main() {
	int i = 0;
	int m, f, r;
	int score[50][3] = { 0 };

	while (1) {
		scanf("%d %d %d", &m, &f, &r);

		if (m == -1 && f == -1 && r == -1) {
			break;
		}

		score[i][0] = m;
		score[i][1] = f;
		score[i][2] = r;

		if (score[i][0] == -1 || score[i][1] == -1) {
			printf("F");
		}else if (score[i][0] + score[i][1] > 80) {
			printf("A");
		}else if (score[i][0] + score[i][1] > 65) {
			printf("B");
		}else if (score[i][0] + score[i][1] > 50) {
			printf("C");
		}else if (score[i][0] + score[i][1] > 30) {
			if (score[i][2] > 50) {
				printf("C");
			}else {
				printf("D");
			}
		}else {
			printf("F");
		}
		printf("\n");
	}

	return


Compiler output:
main.c: In function 'main':
main.c:39:9: error: expected expression at end of input
   39 |         return
      |         ^~~~~~
main.c:39:9: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void)
{
	int f,m,r;
	do{
		scanf("%d %d %d",&f,&m,&r);
		if(f<=50&&m<=50)
		{
		if(f==-1||m==-1)printf("F\n");
		else if((f+m)>=80)printf("A\n");
		else if((f+m)<80&&(f+m)>=65)printf("B\n");
		else if((f+m)<65&&(f+m)>=50)printf("C\n");
		else if((f+m)<50&&(f+m)>=30&&r>=50))printf("C\n");
		else if((f+m)<50&&(f+m)>=30&&r<50)printf("D\n");
		else if((f+m)<30)printf("F\n");
		}
	}while(f!=-1||m!=-1||r!=-1);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:52: error: expected statement before ')' token
   13 |                 else if((f+m)<50&&(f+m)>=30&&r>=50))printf("C\n");
      |                                                    ^
main.c:14:17: error: expected '}' before 'else'
   14 |                 else if((f+m)<50&&(f+m)>=30&&r<50)printf("D\n");
      |                 ^~~~
main.c:17:9: error: expected 'while' before '}' token
   17 |         }while(f!=-1||m!=-1||r!=-1);
      |         ^
Language: C

#include<stdio.h>

main() {

	int m, f, r;
	int score;
	char seiseki;

	while (1) {
		scanf("%d %d %d", &m, &f, &r);

		score = m + f;

		if (m == -1 && f == -1 && r = -1) break;

		if (score >= 80) {
			seiseki = 'A';
		} else if (65 <= score && score < 80) {
				seiseki = 'B';
			} else if (50 <= score && score < 65) {
					seiseki = 'C';
				} else if (30 <= score && score < 50) {
						seiseki = 'D';
          if (50 <= r) {
							seiseki = 'C';
					} else if (m == -1 || f == -1 || score < 30) {
								seiseki = 'F';
						}

		printf("%s", seiseki);

	}

	return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main() {
      | ^~~~
main.c: In function 'main':
main.c:14:45: error: lvalue required as left operand of assignment
   14 |                 if (m == -1 && f == -1 && r = -1) break;
      |                                             ^
main.c:36:1: error: expected declaration or statement at end of input
   36 | }
      | ^
Language: C

#include<stdio.h>

main() {

	int m, f, r;
	int score;
	char seiseki;

	while (1) {
		scanf("%d%d%d", &m, &f, &r);

		score = m + f;

		if (m == -1 && f == -1 && r = -1) break;

		if (score >= 80) {
			seiseki = 'A';
		} else if (65 <= score && score < 80) {
				seiseki = 'B';
			} else if (50 <= score && score < 65) {
					seiseki = 'C';
				} else if (30 <= score && score < 50) {
						seiseki = 'D';
          if (50 <= r) {
							seiseki = 'C';
					} else if (m == -1 || f == -1 || score < 30) {
								seiseki = 'F';
						}

		printf("%s\n", seiseki);

	}

	return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main() {
      | ^~~~
main.c: In function 'main':
main.c:14:45: error: lvalue required as left operand of assignment
   14 |                 if (m == -1 && f == -1 && r = -1) break;
      |                                             ^
main.c:36:1: error: expected declaration or statement at end of input
   36 | }
      | ^
Language: C

#include<stdio.h>

main() {

	int m, f, r;
	int score;
	char seiseki;

	while (1) {
		scanf("%d%d%d", &m, &f, &r);

		score = m + f;

		if (m == -1 && f == -1 && r = -1) break;

		if (score >= 80) {
			seiseki = 'A';
		} else if (65 <= score && score < 80) {
				seiseki = 'B';
			} else if (50 <= score && score < 65) {
					seiseki = 'C';
				} else if (30 <= score && score < 50) {
						seiseki = 'D';
          	if (50 <= r) seiseki = 'C';
					} else if (m == -1 || f == -1 || score < 30) {
								seiseki = 'F';
						}

		printf("%s\n", seiseki);

	}

	return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main() {
      | ^~~~
main.c: In function 'main':
main.c:14:45: error: lvalue required as left operand of assignment
   14 |                 if (m == -1 && f == -1 && r = -1) break;
      |                                             ^
Language: C

#include<stdio.h>
int main(void)
{
  int m,f,r;
  scanf("%d %d &d",m,f,r);
  if(m==-1 && f==-1 && r==-1)
    break;
  else{
    if((m==-1 || f==-1)||(m+f)<30) printf("F\n");
    else if (m+f>=80) printf("A\n");
    else if (m+f>=65 && m+f<80)printf("B\n");
    else if (m+f>=50 && m+f<65)printf("C\n");
    else if (m+f>=30 && m+f<50){
      if (r>=50) printf("C\n");
      else printf("D\n");
    }
   }
   return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:7:5: error: break statement not within loop or switch
    7 |     break;
      |     ^~~~~
Language: C

#include <stdio.h>

int main(){

int r,m,f;

while(1){

 scanf("%d%d%d",&r,&m,&f);
 if(r==-1&&m==-1&&f==-1)break;
 if(r==-1||m==-1)printf("F\n");
 else if((r+m)>=80)printf("A\n");
 else if((r+m)>=65)printf("B\n");
 else if((r+m)>=30){
  if(f>=50)printf("C\n");
  else printf("D\n");
 }else prinf("F\n");

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:8: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |  }else prinf("F\n");
      |        ^~~~~
      |        printf
Language: C++

#include <iostream>
using namespace std;
int main(){
 int m,f,r;
 while(1){
  	cin >> m >> f >> r;
  	if(m==-1 && f==-1 && r==-1){
       break;
  	}
  	if(m==-1 || f==-1){
  		cout << "F" << endl;
  	}
  	else if(m+f>=80){
  		cout << "A" << endl;
  	}
  	else if(m+f<80 && m+f>=65){
  		cout << "B" << endl;
  	}
  	else if(m+f<65 && m+f>=50){
  		cout << "C" << endl;
  	}
  	else if(m+f<50 && m+f>=30){
  		if(r>=50){
  			cout << "C" << endl;
  		}
  		else if(r<50){
  			cout << "D" << endl
  		}
  	}
  	else if(m+f<30){
  		cout << "F" << endl;
  	}
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:44: error: expected ';' before '}' token
   27 |                         cout << "D" << endl
      |                                            ^
      |                                            ;
   28 |                 }
      |                 ~
Language: C++

#include <stdio.h>
int main(void){
int m, f, r,p;
while(1){
    scanf("%d %d %d", &m, &f, &r);
    p=m+f;
    if(m == -1 && f == -1 && r == -1) break;
        else if (p => 80)
            printf("A\n");
        else if(65 <= p && p < 80)
            printf("B\n");
        else if(50 <= p && p < 65)
            printf("C\n");
        else if(30 <= p && p < 50&&r>=50)
            printf("C\n");
        else if(30 <= p && p < 50)
            printf("D\n");
        else if(p < 30)
            printf("F\n");       
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected primary-expression before '>' token
    8 |         else if (p => 80)
      |                     ^
Language: C++

#include <stdio.h>
int main(void){
int m, f, r,p;
while(1){
    scanf("%d %d %d", &m, &f, &r);
    p=m+f;
    if(m == -1 && f == -1 && r == -1) break;
        else if (80=>p)
            printf("A\n");
        else if(65 <= p && p < 80)
            printf("B\n");
        else if(50 <= p && p < 65)
            printf("C\n");
        else if(30 <= p && p < 50&&r>=50)
            printf("C\n");
        else if(30 <= p && p < 50)
            printf("D\n");
        else if(p < 30)
            printf("F\n");       
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected primary-expression before '>' token
    8 |         else if (80=>p)
      |                     ^
Language: C++

#include<iostream>
using namespacestd;
char getGrade(int m,int f,int r){
   int sum = m+f;
   char grade;
   if(m==-1||f==-1){
       grade='F';
}else if(80<=sum){
    grade='A';
}else if(65<=sum&&sum<80){
    grade='B';
}else if(50<=sum&&sum<65){
    grade='C';
}else if(30<=sum&&sum<50){
    if(50<=r)grade='C';
    else grade='D';
}else if(sum<30){
    grade='F';
}
return grade;
}
int main(){
    int m,f,r;
    while(1){
        cin>>m>>f>>r;
        if(m==-1&&f==-1&&r==-1)break;
        cout<<getGrade(m,f,r)<<endl;
    }
    return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:25:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   25 |         cin>>m>>f>>r;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:27:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |         cout<<getGrade(m,f,r)<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |         cout<<getGrade(m,f,r)<<endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
int main(void){
    int m, f, r;
    while(1){
        scanf("%d %d %d",&m,&f,&r);
        if(m = = -1&&f = = -1&&r = = -1)break;
        if(m = = -1||f = = -1){
            printf("F\n");
        }else if(m + f > = 80){
            printf("A\n");
        }else if(m + f > = 65){
            printf("B\n");
        }else if(m + f > = 30){
            if(r > = 50){
                printf("C\n");
            }else{
                printf("D\n");
            }
        }else{
            printf("F\n");
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before '=' token
    6 |         if(m = = -1&&f = = -1&&r = = -1)break;
      |                ^
a.cc:6:26: error: expected primary-expression before '=' token
    6 |         if(m = = -1&&f = = -1&&r = = -1)break;
      |                          ^
a.cc:6:36: error: expected primary-expression before '=' token
    6 |         if(m = = -1&&f = = -1&&r = = -1)break;
      |                                    ^
a.cc:7:16: error: expected primary-expression before '=' token
    7 |         if(m = = -1||f = = -1){
      |                ^
a.cc:7:26: error: expected primary-expression before '=' token
    7 |         if(m = = -1||f = = -1){
      |                          ^
a.cc:9:26: error: expected primary-expression before '=' token
    9 |         }else if(m + f > = 80){
      |                          ^
a.cc:11:26: error: expected primary-expression before '=' token
   11 |         }else if(m + f > = 65){
      |                          ^
a.cc:13:26: error: expected primary-expression before '=' token
   13 |         }else if(m + f > = 30){
      |                          ^
a.cc:14:20: error: expected primary-expression before '=' token
   14 |             if(r > = 50){
      |                    ^
Language: C++

#include <stdio.h>
int main(void){
    int m, f, r;
    while(1){
        scanf("%d %d %d",&m,&f,&r);
        if(m == -1&&f == -1&&r == -1)break;
        if(m == -1||f == -1){
            printf("F\n");
        }else if(m + f > = 80){
            printf("A\n");
        }else if(m + f > = 65){
            printf("B\n");
        }else if(m + f > = 30){
            if(r > = 50){
                printf("C\n");
            }else{
                printf("D\n");
            }
        }else{
            printf("F\n");
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected primary-expression before '=' token
    9 |         }else if(m + f > = 80){
      |                          ^
a.cc:11:26: error: expected primary-expression before '=' token
   11 |         }else if(m + f > = 65){
      |                          ^
a.cc:13:26: error: expected primary-expression before '=' token
   13 |         }else if(m + f > = 30){
      |                          ^
a.cc:14:20: error: expected primary-expression before '=' token
   14 |             if(r > = 50){
      |                    ^
Language: C++

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

int main() {
  int m, f, r, i = 0;
  string R[50];

  for (i = 0; i < 50; i ++) {
  cin >> m  >> f >> r;
  if (m == -1 && f == -1 && r == -1)
    break;

  if (m == 0 || f == 0)
    R[i] = "F"

  else if  (m + f >= 80)
    R[i] = "A";

  else if (m + f >= 65 && m + f < 80)
    R[i] = "B";

  else if (m + f >= 50 && m + f < 65)
    R[i] = "C";

  else if (m + f >= 30 && m + f < 50) {
    if (r >= 50)
      R[i] = "C";
    else
      R[i] = "D";
  }

  else if (m + f < 30)
    R[i] = "F";

  }

  for (int j = 0; j < i; j++)
    cout << R[j] << endl;

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ';' before 'else'
   15 |     R[i] = "F"
      |               ^
      |               ;
   16 | 
   17 |   else if  (m + f >= 80)
      |   ~~~~
Language: C++

#include<stdio.h>
using namespace std;
中間試験、期末試験のいずれかを欠席した場合成績は F。
中間試験と期末試験の合計点数が 80 以上ならば成績は A 。
中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。
中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。
中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。
中間試験と期末試験の合計点数が 30 未満ならば成績は F。
int main(){
    while(ture){
        scanf("%d%d%d",&m,&f,&r);
        if(m==-1&&f==-1&&r==-1)break;
        if(m==-1 || f==-1)printf("F\n");
        if(m+f>=80)printf("A\n");
        if(m+f>=65&&m+f<80)printf("B\n");
        if(m+f>=50&&m+f<65)printf("C\n");
        if(m+f>=35&&m+f<50){
            if(r>=50)printf("C\n");
            else printf("D\n");
        }
        if(m+f<30)printf("F\n");
    }
    
    
}


Compiler output:
a.cc:3:1: error: extended character 、 is not valid in an identifier
    3 | 中間試験、期末試験のいずれかを欠席した場合成績は F。
      | ^
a.cc:3:50: error: extended character 。 is not valid in an identifier
    3 | 中間試験、期末試験のいずれかを欠席した場合成績は F。
      |                                                  ^
a.cc:4:54: error: extended character 。 is not valid in an identifier
    4 | 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。
      |                                                      ^
a.cc:5:60: error: extended character 。 is not valid in an identifier
    5 | 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。
      |                                                            ^
a.cc:6:60: error: extended character 。 is not valid in an identifier
    6 | 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。
      |                                                            ^
a.cc:7:60: error: extended character 。 is not valid in an identifier
    7 | 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。
      |                                                            ^
a.cc:7:64: error: extended character 、 is not valid in an identifier
    7 | 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。
      |                                                                ^
a.cc:7:107: error: extended character 。 is not valid in an identifier
    7 | 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。
      |                                                                                                           ^
a.cc:8:52: error: extended character 。 is not valid in an identifier
    8 | 中間試験と期末試験の合計点数が 30 未満ならば成績は F。
      |                                                    ^
a.cc:3:1: error: '\U00004e2d\U00009593\U00008a66\U00009a13\U00003001\U0000671f\U0000672b\U00008a66\U00009a13\U0000306e\U00003044\U0000305a\U0000308c\U0000304b\U00003092\U00006b20\U00005e2d\U00003057\U0000305f\U00005834\U00005408\U00006210\U00007e3e\U0000306f' does not name a type
    3 | 中間試験、期末試験のいずれかを欠席した場合成績は F。
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<stdio.h>
using namespace std;

int main(){
    while(ture){
        scanf("%d%d%d",&m,&f,&r);
        if(m==-1&&f==-1&&r==-1)break;
        if(m==-1 || f==-1)printf("F\n");
        if(m+f>=80)printf("A\n");
        if(m+f>=65&&m+f<80)printf("B\n");
        if(m+f>=50&&m+f<65)printf("C\n");
        if(m+f>=35&&m+f<50){
            if(r>=50)printf("C\n");
            else printf("D\n");
        }
        if(m+f<30)printf("F\n");
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'ture' was not declared in this scope
    5 |     while(ture){
      |           ^~~~
a.cc:6:25: error: 'm' was not declared in this scope
    6 |         scanf("%d%d%d",&m,&f,&r);
      |                         ^
a.cc:6:28: error: 'f' was not declared in this scope
    6 |         scanf("%d%d%d",&m,&f,&r);
      |                            ^
a.cc:6:31: error: 'r' was not declared in this scope
    6 |         scanf("%d%d%d",&m,&f,&r);
      |                               ^
Language: C++

#include<stdio.h>
using namespace std;

int main(){
    while(ture){
        int m,f,r;
        scanf("%d%d%d",&m,&f,&r);
        if(m==-1&&f==-1&&r==-1)break;
        if(m==-1 || f==-1)printf("F\n");
        if(m+f>=80)printf("A\n");
        if(m+f>=65&&m+f<80)printf("B\n");
        if(m+f>=50&&m+f<65)printf("C\n");
        if(m+f>=35&&m+f<50){
            if(r>=50)printf("C\n");
            else printf("D\n");
        }
        if(m+f<30)printf("F\n");
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'ture' was not declared in this scope
    5 |     while(ture){
      |           ^~~~