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

#include <stdio.h>
int main(void)
{
int a, b, c;
scanf (“%d”, &a)
scanf (“%d”, &b)
scanf (“%d”, &c)

if(a == b && a != c )
printf(“Yes”)
else if(b == c && b != a)
printf(“Yes”)
else if(c == a && c != b)
printf(“Yes”)
else
printf(“No”)

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: stray '\342' in program
    5 | scanf (<U+201C>%d<U+201D>, &a)
      |        ^~~~~~~~
main.c:5:9: error: expected expression before '%' token
    5 | scanf (“%d”, &a)
      |         ^
main.c:5:11: error: stray '\342' in program
    5 | scanf (<U+201C>%d<U+201D>, &a)
      |                  ^~~~~~~~
main.c:5:17: error: expected ';' before 'scanf'
    5 | scanf (“%d”, &a)
      |                 ^
      |                 ;
    6 | scanf (“%d”, &b)
      | ~~~~~            
main.c:6:8: error: stray '\342' in program
    6 | scanf (<U+201C>%d<U+201D>, &b)
      |        ^~~~~~~~
main.c:6:11: error: stray '\342' in program
    6 | scanf (<U+201C>%d<U+201D>, &b)
      |                  ^~~~~~~~
main.c:7:8: error: stray '\342' in program
    7 | scanf (<U+201C>%d<U+201D>, &c)
      |        ^~~~~~~~
main.c:7:11: error: stray '\342' in program
    7 | scanf (<U+201C>%d<U+201D>, &c)
      |                  ^~~~~~~~
main.c:10:8: error: stray '\342' in program
   10 | printf(<U+201C>Yes<U+201D>)
      |        ^~~~~~~~
main.c:10:12: error: stray '\342' in program
   10 | printf(<U+201C>Yes<U+201D>)
      |                   ^~~~~~~~
main.c:12:8: error: stray '\342' in program
   12 | printf(<U+201C>Yes<U+201D>)
      |        ^~~~~~~~
main.c:12:12: error: stray '\342' in program
   12 | printf(<U+201C>Yes<U+201D>)
      |                   ^~~~~~~~
main.c:14:8: error: stray '\342' in program
   14 | printf(<U+201C>Yes<U+201D>)
      |        ^~~~~~~~
main.c:14:12: error: stray '\342' in program
   14 | printf(<U+201C>Yes<U+201D>)
      |                   ^~~~~~~~
main.c:16:8: error: stray '\342' in program
   16 | printf(<U+201C>No<U+201D>)
      |        ^~~~~~~~
main.c:16:11: error: stray '\342' in program
   16 | printf(<U+201C>No<U+201D>)
      |                  ^~~~~~~~
Language: C

#include <stdio.h>
 
int main()
{
  char s[3];
  
  for(i=0; i<3; i++){
    scanf("%s",s[i]);
    printf("%s",s[i]);
  }
  
  if(s[1]==s[2]&&s[1]==s[3]){
    puts("No");
  }else if(s[1]!=s[2]&&s[1]!=s[3]&&s[2]==s[3]){
    puts("No");
  }
  else
    puts(Yes);
  
  return 0;
}
#include <stdio.h>
 
int main()
{
  int s[3];
  
  for(int i=0; i<3; i++){
    scanf("%d ",s[i]);
  }
  
  if(s[1]==s[2]&&s[1]==s[3]){
    puts("No");
  }else if(s[1]!=s[2]&&s[1]!=s[3]&&s[2]==s[3]){
    puts("No");
  }
  else
    puts("Yes");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0; i<3; i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:10: error: 'Yes' undeclared (first use in this function)
   18 |     puts(Yes);
      |          ^~~
main.c: At top level:
main.c:24:5: error: redefinition of 'main'
   24 | int main()
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
  int A,B,C;
  if(scanf("%d%d%d",&A,&B,&C)==1){
  if(A==B&&A!=B)
   printf("Yes");
  else if(B==C&&B!=C)
   printf("Yes");
  else if(C==A&&C!=A)
   printf("Yes");
  else
   printf("No");  
  }
  else {
    printf("Failed to read integer.\n");
  }
                                
  return 0;
}
#include <stdio.h>
int main(void){
  int A,B,C;
  if(scanf("%d%d%d",&A,&B,&C)==1){
  if(A==B&&A!=C)
   printf("Yes");
  else if(B==C&&B!=A)
   printf("Yes");
  else if(C==A&&C!=B)
   printf("Yes");
  else
   printf("No");  
  }
  else {
    printf("Failed to read integer.\n");
  }
                                
  return 0;
}
提出情報 

Compiler output:
main.c:21:5: error: redefinition of 'main'
   21 | int main(void){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void){
      |     ^~~~
main.c:39:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   39 | 提出情報
      | ^~~~~~~~
Language: C

#include <stdio.h>
 
int main()
{
  char s[3];
  
  for(i=0; i<3; i++){
    scanf("%s",s[i]);
    printf("%s",s[i]);
  }
  
  if(s[1]==s[2]&&s[1]==s[3]){
    puts("No");
  }else if(s[1]!=s[2]&&s[1]!=s[3]&&s[2]==s[3]){
    puts("No");
  }
  else
    puts(Yes);
  
  return 0;
}
#include <stdio.h>

int main()
{
  int s[3];
  
  for(int i=0; i<3; i++){
    scanf("%s ",s[i]);
  }
  
  if(s[1]==s[2]&&s[1]==s[3]){
    puts("No");
  }else if(s[1]!=s[2]&&s[1]!=s[3]&&s[2]==s[3]){
    puts("No");
  }
  else
    puts("Yes");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0; i<3; i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:10: error: 'Yes' undeclared (first use in this function)
   18 |     puts(Yes);
      |          ^~~
main.c: At top level:
main.c:24:5: error: redefinition of 'main'
   24 | int main()
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
  int A,B,C;
  if(scanf("%d%d%d",&A,&B,&C)==1){
  if(A==B&&A!=B)
   printf("Yes");
  else if(B==C&&B!=C)
   printf("Yes");
  else if(C==A&&C!=A)
   printf("Yes");
  else
   printf("No");  
  }
  else {
    printf("Failed to read integer.\n");
                                
  return 0;
}
    

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

#include <stdio>
int main(void){
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(A==B&&A!=B)
   printf("Yes");
  else if(B==C&&B!=C)
   printf("Yes");
  else if(C==A&&C!=A)
   printf("Yes");
  else
   printf("No");
  return 0;
}

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

#include <stdio.h>

int main()
{
  char s[3];
  
  for(i=0; i<3; i++){
    scanf("%s",s[i]);
    printf("%s",s[i]);
  }
  
  if(s[1]==s[2]&&s[1]==s[3]){
    puts("No");
  }else if(s[1]!=s[2]&&s[1]!=s[3]&&s[2]==s[3]){
    puts("No");
  }
  else
    puts(Yes);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0; i<3; i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:10: error: 'Yes' undeclared (first use in this function)
   18 |     puts(Yes);
      |          ^~~
Language: C

#include<stadio.h>
 
int main(void){
  int a,b,c;
  int n = 0;
  scanf("%d,%d,%d",&a,&b,&c);
  if(a==b&&b!=c)n=1;
  if(b==c&&c!=a)n=1;
  if(c==a&&a!=b)n=1;
  
  if(n==1){
    puts("Yes");
  }else{
    puts("No");
  }return 0;
}

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

#inclde<stdio.h>
int main(void)
{
  int a,b,c;
  printf("３つの数を入力して下さい：");
  do{
    scanf("%d",&a);
    scanf("%d",&b); 
    scanf("%d",&c);
  }while(a<0 || a>10 || b<0 || b>10 ||c<0 || c>10);
  if(a==b && b==c){
    printf("No");
  }else{
    printf("Yes");
  } 
 return 0; 
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("３つの数を入力して下さい：");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |   printf("３つの数を入力して下さい：");
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d",&a);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
Language: C++

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c){
    printf("No");
    break;
  }
  if(a!=b && b!=c && a!=c){
    printf("No");
    break;
  }
  printf("Yes");
} 

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:5: error: break statement not within loop or switch
    7 |     break;
      |     ^~~~~
a.cc:11:5: error: break statement not within loop or switch
   11 |     break;
      |     ^~~~~
Language: C

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c){
    printf("Yes");
    break;
  }
  if(a!=b && b!=c && a!=c){
    printf("Yes");
    break;
  }
    printf("No");
} 

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

#include <stdio.h>
int main()
{
int A,B,C;
int kawaiso;

do{
scan("%d",A);
scan("%d",B);
scan("%d",C);
}while(A>0&&B>0&&C>0&&A<10&&B<10&&C<10);

if(A==B&&A!=C)
  kawaiso=1;
else if(A==C&&A!=B)
  kawaiso=1;
else if(B==C&&B!=A)
  kawaiso=1;
else
  kawaiso=0;
if(kawaiso==1)
  printf("Yes");
if(kawaiso==0)
  printf("No");

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 | scan("%d",A);
      | ^~~~
      | scanf
Language: C

#include <stdio.h>
int main(void){
  int A, B, C;
   scanf("%d", &A);
   scanf("%d", &B);
   scanf("%d", &C);
  if (A==B&&A==C&&B==C){
     printf("No\n");
  }
  else if (A!=B&&A!=C&&B!=C) {
    printf("No\n");
  }
  else{
    printf("Yes\n");
  return 0;
}

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

#include<stdio.h>
 
int main(void){
  int a,b,c;
  
  do{
    fgets("%d %d %d",&a,&b,&c);
  }while((a < 1 || a > 9)||((b < 1 || b > 9) || (c < 1 || c > 9)));
  
  if(a == b || (b == c || a == c))
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
    7 |     fgets("%d %d %d",&a,&b,&c);
      |                      ^~
      |                      |
      |                      int *
In file included from main.c:1:
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:7:25: error: passing argument 3 of 'fgets' from incompatible pointer type [-Wincompatible-pointer-types]
    7 |     fgets("%d %d %d",&a,&b,&c);
      |                         ^~
      |                         |
      |                         int *
/usr/include/stdio.h:654:69: note: expected 'FILE * restrict' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                                    ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:7:5: error: too many arguments to function 'fgets'
    7 |     fgets("%d %d %d",&a,&b,&c);
      |     ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if((a==b && b==c)||(a!=b && b!=c && a!=c){
    printf("Yes");
  }else{
    printf("No");
  }
} 

Compiler output:
main.c: In function 'main':
main.c:5:44: error: expected ')' before '{' token
    5 |   if((a==b && b==c)||(a!=b && b!=c && a!=c){
      |     ~                                      ^
      |                                            )
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
Language: C

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d%d%d",a,b,c);
  if((a==b && b==c)||(a!=b && b!=c && a!=c){
    printf("Yes");
  }else{
    printf("No");
  }
} 

Compiler output:
main.c: In function 'main':
main.c:5:44: error: expected ')' before '{' token
    5 |   if((a==b && b==c)||(a!=b && b!=c && a!=c){
      |     ~                                      ^
      |                                            )
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
	int A,B,C;
	do{
	scanf("%d ",A);
    }while(A<0&&A>9)
      
    do{
      scanf("%d ",B);
    }while(B<0&&B>9)
      
    do{
      scanf("%d \n",C);
    }while(C<0&&C>9)

	if(A==B==C)
  		printf("No");
	else{
  		if(A==B)
  			printf("Yes")；
  		else if(B==C)
    		printf("Yes");
  		else if(C==A)
    		printf("Yes");
  		else
    		printf("No");
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before 'do'
    8 |     }while(A<0&&A>9)
      |                     ^
      |                     ;
    9 | 
   10 |     do{
      |     ~~               
main.c:16:21: error: expected ';' before 'if'
   16 |     }while(C<0&&C>9)
      |                     ^
      |                     ;
   17 | 
   18 |         if(A==B==C)
      |         ~~           
main.c:20:9: error: 'else' without a previous 'if'
   20 |         else{
      |         ^~~~
main.c:22:38: error: expected ';' before '\U0000ff1b'
   22 |                         printf("Yes")；
      |                                      ^~
      |                                      ;
Language: C

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d",a);
  scanf("%d",b);
  scanf("%d",c);
  if((a==b && b==c)||(a!=b && b!=c && a!=c){
    printf("Yes");
  }else{
    printf("No");
  }
} 

Compiler output:
main.c: In function 'main':
main.c:7:44: error: expected ')' before '{' token
    7 |   if((a==b && b==c)||(a!=b && b!=c && a!=c){
      |     ~                                      ^
      |                                            )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stadio.h>

int main(void){
  int a,b,c;
  int n = 0;
  scanf("%d,%d,%d",&a,&b,&c);
  if(a==b&&b!=c)n=1;
  if(b==c&&c!=a)n=1;
  if(c==a&&a!=b)n=1;
  
  if(n==1){
    puts("Yes");
  }else{
    puts("No");
  }return;
}

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

#include <stdio.h>
void main(void){
  int a,b,c;
  scanf("%d",a);
  scanf("%d",b);
  scanf("%d",c);
  if((a==b && b==c)||(a!=b && b!=c && a!=c){
    printf("No");
  }else{
    printf("Yes");
  }
} 

Compiler output:
main.c: In function 'main':
main.c:7:44: error: expected ')' before '{' token
    7 |   if((a==b && b==c)||(a!=b && b!=c && a!=c){
      |     ~                                      ^
      |                                            )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include <stdio.h>

main(void)
{
  int a,b,c;
  
  scanf("%d%d%d",&a,&b,&c);
  
  if(a==b&&b!=c)
    printf("Yes");
  if(a!=b&&b==C)
    printf("Yes");
  if(a!=b&&c==a)
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:11:15: error: 'C' undeclared (first use in this function)
   11 |   if(a!=b&&b==C)
      |               ^
main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio>
int main(void){
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(A==B&&A!=B)
   printf("Yes");
  else if(B==C&&B!=C)
   printf("Yes");
  else if(C==A&&C!=A)
   printf("Yes");
  else
   printf("No");
  return 0;
}

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

#include <stdio.h>
#include <stdlib.h>

int main(){
  int a,b,c;
  while(a<1||a>9){
    scanf("%d"&a);
  }
  while(b<1||b>9){
    scanf("%d",&b);
  } 
  while(c<1||c>9){
    scanf("%d",&c);
  }
  if(a==b && b==c){
    printf("No");
  }
  else if(a!=b && b!=c && a!=c){
    printf("No");
  }
  else printf("Yes");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:15: error: invalid operands to binary & (have 'char *' and 'int')
    7 |     scanf("%d"&a);
      |           ~~~~^
      |           |
      |           char *
Language: C

#include<stdio.h>
 
int main(void){
  int a,b,c;
  
  do{
    fgets("%d",&a);
  }while(a < 1 || a > 9);
  do{
    fgets("%d",&b);
  }while(b < 1 || b > 9);
  do{
    fgets("%d",&c);
  }while(c < 1 || c > 9);
  
  if(a == b || (b == c || a == c))
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
    7 |     fgets("%d",&a);
      |                ^~
      |                |
      |                int *
In file included from main.c:1:
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:7:5: error: too few arguments to function 'fgets'
    7 |     fgets("%d",&a);
      |     ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:10:16: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
   10 |     fgets("%d",&b);
      |                ^~
      |                |
      |                int *
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:10:5: error: too few arguments to function 'fgets'
   10 |     fgets("%d",&b);
      |     ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:13:16: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
   13 |     fgets("%d",&c);
      |                ^~
      |                |
      |                int *
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:13:5: error: too few arguments to function 'fgets'
   13 |     fgets("%d",&c);
      |     ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

#include<stdio.h>
int main()
{
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  if(a==b&&b!=c){
    puts("Yes")
  }else if(b==c&&c!=a){
    puts("Yes");
  }else if(c==a&&a!=b){
    puts("Yes");
  }else{
    puts("No");
  }
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before '}' token
    8 |     puts("Yes")
      |                ^
      |                ;
    9 |   }else if(b==c&&c!=a){
      |   ~
Language: C

#include<stdio.h>

int main(void){
int a,b,c;
  scanf("%d %d %d", &a, &b, &d);
  if(a==b && b==c){
  printf("No\n");
  }
  else if(a!=b && b!=c && c!=a){
  printf("No\n");
  }
  else if(a!=b && b==c){
  printf("Yes\n");
  }
  else if(a==b && b!=c){
  printf("Yes\n");
  }
  else if(a==c && c!=b){
  printf("Yes\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:30: error: 'd' undeclared (first use in this function)
    5 |   scanf("%d %d %d", &a, &b, &d);
      |                              ^
main.c:5:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

main(void)
{
  int a,b,c;
  
  while(1){    
    scanf("%d%d%d",&a,&b,&c);
    
    if(1<=a&&a<=9&&1<=b&&b<=9&&1<=c&&c<=9)
      break;
  }
  
  if(a==b&&b!=c)
    printf("Yes");
  if(a!=b&&b==C)
    printf("Yes");
  if(a!=b&&c==a)
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:16:15: error: 'C' undeclared (first use in this function)
   16 |   if(a!=b&&b==C)
      |               ^
main.c:16:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>

main{
  int a,b,c;
  while(a<1||a>9){
    scanf("%d"&a);
  }
  while(b<1||b>9){
    scanf("%d",&b);
  } 
  while(c<1||c>9){
    scanf("%d",&c);
  }
  if(a==b && b==c){
    printf("No");
  }
  else if(a!=b && b!=c && a!=c){
    printf("No");
  }
  else printf("Yes");
  return 0;
}


Compiler output:
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | main{
      |     ^
Language: C

#include <stdio.h>

int main(void)
{
int a,b,c;
  do{
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", %c);
  }while(a<1||a>9||b<1||b>9||c<1||c>10);
  
  if(a==b&&b==c)
  {
  printf("No");
  }
  else if(a==b||b==c||c==a)
  {
  printf("Yes");
  }
  else
  {
  printf("No");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected expression before '%' token
    9 |   scanf("%d", %c);
      |               ^
Language: C

#include<stdio.h>
int main()
{
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  if(a==b&&b!=c){
    puts('Yes')
  }else if(b==c&&c!=a){
    puts('Yes');
  }else if(c==a&&a!=b){
    puts('Yes');
  }else{
    puts('No');
  }
}

Compiler output:
main.c: In function 'main':
main.c:8:10: warning: multi-character character constant [-Wmultichar]
    8 |     puts('Yes')
      |          ^~~~~
main.c:8:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
    8 |     puts('Yes')
      |          ^~~~~
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:8:16: error: expected ';' before '}' token
    8 |     puts('Yes')
      |                ^
      |                ;
    9 |   }else if(b==c&&c!=a){
      |   ~             
main.c:10:10: warning: multi-character character constant [-Wmultichar]
   10 |     puts('Yes');
      |          ^~~~~
main.c:10:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   10 |     puts('Yes');
      |          ^~~~~
      |          |
      |          int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:12:10: warning: multi-character character constant [-Wmultichar]
   12 |     puts('Yes');
      |          ^~~~~
main.c:12:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   12 |     puts('Yes');
      |          ^~~~~
      |          |
      |          int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:14:10: warning: multi-character character constant [-Wmultichar]
   14 |     puts('No');
      |          ^~~~
main.c:14:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   14 |     puts('No');
      |          ^~~~
      |          |
      |          int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

#include<stdio.h>

int main(void){
  int a,b,c;
  
  do{
    scanf("%d",&a);
  }while(a < 1 || a > 9);
  do{
    scanf("%d",&b);
  }while(b < 1 || b > 9);
  do{
    scanf("%d",&c);
  }while(c < 1 || c > 9);
  
  if(a == b || (b == c || a == c))
    printf("Yes");
  else
    pirntf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:5: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |     pirntf("No");
      |     ^~~~~~
      |     printf
Language: C

#include <stdio.h>
#include <stdlib.h>

main{
  int a,b,c;
  while(a<1||a>9){
    scanf("%d"&a);
  }
  while(b<1||b>9){
    scanf("%d",&b);
  } 
  while(c<1||c>9){
    scanf("%d",&c);
  }
  if(a==b && b==c){
    printf("No");
  }
  else if(a!=b && b!=c && a!=c){
    printf("No");
  }
  else printf("Yes");

Compiler output:
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | main{
      |     ^
Language: C++

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

int main{
  int a, b, c;
  cin >> a >> b >> c;
  if(a == b && a != c || a == c && a != b || b == c && a != b){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b, c;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(a == b && a != c || a == c && a != b || b == c && a != b){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else{
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include <stdio.h>
int x,y,z;
main{
 scanf("%d\n",&x);
 scanf("%d\n",&y);
 scanf("%d\n",&z);
  if((x==y&&x!=z)||(x==z&&x!=y)||(y==z&&z!=x))
    printf("Yes\n");
  else printf("No\n")
}

Compiler output:
main.c:3:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | main{
      |     ^
Language: C

#define <stdio.h>

int main
{
	int A,B,C;
    int judge;
    
    printf("Aを入力してください:");scanf("%d",&A);
    printf("Bを入力してください:");scanf("%d",&B);
    printf("Cを入力してください:");scanf("%d",&C);
    
    if(A==B&&A!=C)
    	judge=1;
    if(A==C&&A!=B)
    	judge=1;
    if(B==C&&B!=A)
    	judge=1;
    if(A!=C&&A!=B&&B!=C)
    	judge=0;
    if(judge=0)
    	printf("no\n");
    else
    	printf("yes\n");
        
    return 0;
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if(a == b || b==c)
    printf("Yes\n");
  else 
    printf("No\n")
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before 'return'
    9 |     printf("No\n")
      |                   ^
      |                   ;
   10 |  return 0;
      |  ~~~~~~
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  if(A == B && B == C) {
    cout << "No" << endl;
  }
  else if (A != B && B != C && A != C) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" <, endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected primary-expression before ',' token
   14 |     cout << "Yes" <, endl;
      |                    ^
Language: C

#include<stdio.h>
int main(void)
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	if(A==B&&A==C&&B==C){
		printf("No\n");
	}
	else if(A!=B&&A!=C&&B!=C){
		printf("No\n");
	else{
		printf("Yes\n");
	}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '}' before 'else'
   11 |         else{
      |         ^~~~
main.c: At top level:
main.c:15:9: error: expected identifier or '(' before 'return'
   15 |         return 0;
      |         ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	if(A==B&&A==C&&C==B){
		printf("No\n");
	}
	else{
		if(A!=B&&A!=C&&C!=B){
			printf("No\n");
			else{
				printf("Yes\n");
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected '}' before 'else'
   12 |                         else{
      |                         ^~~~
main.c: At top level:
main.c:17:9: error: expected identifier or '(' before 'return'
   17 |         return 0;
      |         ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	if(A==B&&A==C&&B==C){
		printf("No\n");
	}
	else if(A!=B&&A!=C&&B!=C){
		printf("No\n");
	else{
		printf("Yes\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '}' before 'else'
   11 |         else{
      |         ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	if(A==B&&A==C&&C==B){
		printf("Yes\n");
	}
	else{
		if(A!=B&&A!=C&&C!=B){
			printf("No\n");
			else{
				printf("No\n");
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected '}' before 'else'
   12 |                         else{
      |                         ^~~~
main.c: At top level:
main.c:17:9: error: expected identifier or '(' before 'return'
   17 |         return 0;
      |         ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

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

#define rep(i,n) for(int i=0; i<(n); i++)
#define repi(i,a,b) for(int i = (a); i<= (b); i++)
#define repA(i,n) for(int i=n; i>=0; i--)
#define all(x) x.begin(),x.end()
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz(a) (int)(a.size())

typedef long long ll;
typedef long double ld;
const ll mod = (ll)(1e9+7);//998244353;
const int N = (int)(2e6+5);

void pre() {

}


void solve() {
  int a[3];
  rep(i,3)  cin>>a[i];
  sort(all(a));
  set<int> ans;
  rep(i,3)  ans.insert(a[i]);
  if(sz(ans) == 2)  cout<<"Yes";
  else  cout<<"No";
}

int main() {
  ios::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  #ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  #endif
  int t = 1;
  pre();
  //cin>>t;
  rep(i,t)  {
    solve();
    cout<<'\n';
  }
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:7:18: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    7 | #define all(x) x.begin(),x.end()
      |                  ^~~~~
a.cc:27:8: note: in expansion of macro 'all'
   27 |   sort(all(a));
      |        ^~~
a.cc:7:28: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    7 | #define all(x) x.begin(),x.end()
      |                            ^~~
a.cc:27:8: note: in expansion of macro 'all'
   27 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i,n) for(int i=0; i<(n); i++)
#define repi(i,a,b) for(int i = (a); i<= (b); i++)
#define repA(i,n) for(int i=n; i>=0; i--)
#define all(x) x.begin(),x.end()
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz(a) (int)(a.size())

typedef long long ll;
typedef long double ld;
const ll mod = (ll)(1e9+7);//998244353;
const int N = (int)(2e6+5);

void pre() {

}


void solve() {
  int a[3];
  rep(i,3)  cin>>a[i];
  sort(all(a));
  set<int> ans;
  rep(i,3)  ans.insert(a[i]);
  if(sz(ans) == 2)  cout<<"Yes";
  else  cout<<"No";
}

int main() {
  ios::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  #ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  #endif
  int t = 1;
  pre();
  cin>>t;
  rep(i,t)  {
    solve();
    cout<<'\n';
  }
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:7:18: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    7 | #define all(x) x.begin(),x.end()
      |                  ^~~~~
a.cc:27:8: note: in expansion of macro 'all'
   27 |   sort(all(a));
      |        ^~~
a.cc:7:28: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    7 | #define all(x) x.begin(),x.end()
      |                            ^~~
a.cc:27:8: note: in expansion of macro 'all'
   27 |   sort(all(a));
      |        ^~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    if (A == B && A == C) || ((A != B && B != C) && A != C){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
  }
}


Compiler output:
Main.java:9: error: illegal start of expression
    if (A == B && A == C) || ((A != B && B != C) && A != C){
                          ^
Main.java:9: error: ';' expected
    if (A == B && A == C) || ((A != B && B != C) && A != C){
                                                           ^
Main.java:11: error: 'else' without 'if'
    }else{
     ^
3 errors
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    if (A == B && A == C) {
      System.out.println("No");
    }else if (A != B && A != C　&& B != C) {
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
  }
}


Compiler output:
Main.java:11: error: illegal character: '\u3000'
    }else if (A != B && A != C?&& B != C) {
                              ^
Main.java:11: error: not a statement
    }else if (A != B && A != C?&& B != C) {
                                    ^
Main.java:11: error: ';' expected
    }else if (A != B && A != C?&& B != C) {
                                        ^
Main.java:13: error: 'else' without 'if'
    }else{
     ^
4 errors
Language: Java

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		//入力表示
		int N = sc.nextInt();

		Map<String, Integer> map = new HashMap<>();

		int max = 0;
		for (int i = 0; i < N; i++) {
			String S = sc.next();

			if (map.containsKey(S)) {
				map.put(S, map.get(S) + 1);
			} else {
				map.put(S, 1);
			}
			max = Math.max(max, map.get(S));
		}
		List<String> list = new ArrayList<String>();
		for (Map.Entry<String, Integer> key : map.entrySet()) {
			if (key.getValue() == max) {
				list.add(key.getKey());
			}
		}
		Collections.sort(list);
		for (String S : list) {
			System.out.println(S);
		}
      ｝
 ｝

Compiler output:
Main.java:40: error: illegal character: '\uff5d'
      ?
      ^
Main.java:41: error: illegal character: '\uff5d'
 ?
 ^
Main.java:41: error: reached end of file while parsing
 ?
  ^
3 errors
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    int a, b, c;
    string ans == "Yes";
    cin >> a >> b >> c;
    if ((a == b && a != c) || (b == c && b != a) || (c == a && c != b)){
        ans == "Yes";
    }
    else ans == "No";
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected initializer before '==' token
    6 |     string ans == "Yes";
      |                ^~
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans == "Yes";
      |         ^~~
      |         abs
a.cc:11:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     else ans == "No";
      |          ^~~
      |          abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    int a, b, c;
    string ans == "";
    cin >> a >> b >> c;
    if ((a == b && a != c) || (b == c && b != a) || (c == a && c != b)){
        ans == "Yes";
    }
    else ans == "No";
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected initializer before '==' token
    6 |     string ans == "";
      |                ^~
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans == "Yes";
      |         ^~~
      |         abs
a.cc:11:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     else ans == "No";
      |          ^~~
      |          abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    int a,b,c;
    cin >> a >> b >> c;
    
    if(a / b = 1 && b / c = 1)
        cout << "NO" << endl;
    else
        cout << "YES" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: lvalue required as left operand of assignment
    8 |     if(a / b = 1 && b / c = 1)
      |                ~~^~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
    int A,B,C;
    cin>>A>>B>>C;
    if(A==B && !C)
    cout<<"Yes"<<endl;
    else if(A==C && !B)
    cout<<"Yes"<<endl;
    else if(B==C&& !=A)
    cout<<"Yes"<<endl;
    else
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>A>>B>>C;
      |     ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:9:20: error: expected primary-expression before '!=' token
    9 |     else if(B==C&& !=A)
      |                    ^~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |     cout<<"No"<<endl;
      |                 ^~~~
Language: C++

#include <stdio.h>
int main(void){
    int A,B,C;
    cin>>A>>B>>C;
    if(A==B)
    cout<<"Yes"<<endl;
    else if(A==C)
    cout<<"Yes"<<endl;
    else if(B==C)
    cout<<"Yes"<<endl;
    else
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>A>>B>>C;
      |     ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |     cout<<"No"<<endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a, b, c;
    string ans;
    cin >> a >> b >> c;
    if ((a == b && a != c) || (b == c && b  != a){
        ans == "YES";
    }
    else ans == "NO";
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:50: error: expected ';' before '{' token
    7 |     if ((a == b && a != c) || (b == c && b  != a){
      |                                                  ^
      |                                                  ;
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else ans == "NO";
      |     ^~~~
a.cc:9:6: error: expected ')' before 'else'
    9 |     }
      |      ^
      |      )
   10 |     else ans == "NO";
      |     ~~~~
a.cc:7:8: note: to match this '('
    7 |     if ((a == b && a != c) || (b == c && b  != a){
      |        ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    int a,b,c;
    cin >> a >> b >> c;
    
    if(a =b && a = c)
        cout << "NO" << endl;
    else
        cout << "YES" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |     if(a =b && a = c)
      |           ~~^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    int a,b,c;
    cin >> a >> b >> c;
    
    if(a=b&&b=c)
        cout << "NO" << endl;
    else
        cout << "YES" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |     if(a=b&&b=c)
      |          ~^~~
Language: C++

#include <stdio.h>
int main(void){
    int A,B,C;
    cin>>A>>B>>C;
    if(A==B==C)
    cout<<"Yes"<<endl;
    else
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>A>>B>>C;
      |     ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:8:17: error: 'endl' was not declared in this scope
    8 |     cout<<"No"<<endl;
      |                 ^~~~
Language: C++



#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
 
#define watch(x) cout<<(#x)<<"="<<(x)<<'\n'
#define mset(d,val) memset(d,val,sizeof(d))
#define setp(x) cout<<fixed<<setprecision(x)
#define forn(i,a,b) for(int i=a;i<b;i++)
#define fore(i,a,b) for(int i=a;i<=b;i++)
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define INF ll(1e18)
#define MOD 998244353
#define pqueue priority_queue
#define fbo find_by_order
#define ook order_of_key
typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef long double ld;
typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> pbds;
 
#define MAXN 1000000007
 
 
int main() {
	ll a,b,c;
	cin>>a>>b>>c;
	ll d=a-b;
	ll e=b-c;
	ll f=a-c;
	if (((d==0) and (e==0)) ((d==0) and (f==0)) or ((e==0) and (f==0))) {
		if (d+e+f!=0) {
			cout<<"Yes";
		}
		else {
			cout<<"No";
		}
	}
	else {
		cout<<"No";
	}
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:39:33: error: expression cannot be used as a function
   39 |         if (((d==0) and (e==0)) ((d==0) and (f==0)) or ((e==0) and (f==0))) {
      |             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define LL long long
#define DD double
#define Pb push_back
#define Bp pop_back
#define Pf push_front
#define Fp pop_front
#define Ub upper_bound
#define Lb lower_bound
#define In insert
#define All(x) x.begin(), x.end()
#define mem(a, b) memset(a, b, sizeof(a))
#define fast ios_base::sync_with_stdio(0);cin.tie(0)
#define X first
#define Y second
#define mx1 10
#define mx2 110
#define mx3 1010
#define mx4 10010
#define mx5 100010
#define mx6 1000010

typedef vector<LL> Vl;
typedef vector<DD> Vd;
typedef vector<bool> Vb;
typedef vector<Vl> VVl;
typedef pair<LL, LL> Pll;
typedef pair<DD, DD> Pdd;
typedef vector<Pll> Vpl;
typedef vector<Pdd> Vpd;
typedef queue<LL> Ql;
typedef stack<LL> Sl;
typedef deque<LL> Dl;

LL _set(LL N, LL pos) {return N = N | (1 << pos);}
LL _reset(LL N, LL pos) {return N = N & ~(1 << pos);}
bool _check(LL N, LL pos) {return (bool)(N & (1 << pos));}
bool _upper(char a) {return a >= 'A' && a <= 'Z';}
bool _lower(char a) {return a >= 'a' && a <= 'z';}
bool _digit(char a) {return a >= '0' && a <= '9';}

LL dx[] = {1, -1, 0, 0, -1, -1, 1, 1};
LL dy[] = {0, 0, 1, -1, -1, 1, -1, 1};

///**************************DONE****************************///

int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    
    if((a == b && a != c) || (b == c && b != a) || (c == a && c != b))
        cout << "Yes\n"
    else
        cout << "No\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:24: error: expected ';' before 'else'
   56 |         cout << "Yes\n"
      |                        ^
      |                        ;
   57 |     else
      |     ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
   int a,b,c;
   cin>>a>>b>>c;
   s.insert(a);    s.insert(b);
    s.insert(c);
    if (s.size()==2) cout<<"Yes"<<endl; else cout<<"No"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 's' was not declared in this scope
    7 |    s.insert(a);    s.insert(b);
      |    ^
Language: C++

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

int main(int argc, char *argv[]) { ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);

  int a,b,c;cin>>a>>b>>c;
  if(a==b&&b!=c){
    puts("Yes");
  else if(a==c&&b!=c){
    puts("Yes");
  } else if(b==c&&b!=a){
    puts("Yes");
  }else{
    puts("No");
  }

  
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else if(a==c&&b!=c){
      |   ^~~~
a.cc:9:17: note: to match this '{'
    9 |   if(a==b&&b!=c){
      |                 ^
Language: C++

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

int main () {
  vector<int> data(3);
  for (int i = 0; i < 3; i++) {
    cin >> data.(i);
  }

  int count = 0;
  for (int x : data) {
    if (data.at(0) == x) {
      count ++;
    }
    if (data.at(1) == x) {
      count ++;
    }
    if (data.at(2) == x) {
      count ++;
    }
  }
  if (count == 3) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected unqualified-id before '(' token
    7 |     cin >> data.(i);
      |                 ^