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

#include "stdio.h"
#include <iostream>
int main (){
 int number = -1;
 while (number < 0 || number>100) {
  printf("Please input the number of the children\n");
  scanf_s("%d",&number);
  if (number > 100 || number < 0) {
   printf("Please check the number you input\n");
  }
 }
 int sum = 0;
 for (int i = 0; i < number; i++) {
  sum = sum + i + 1;
 }
 printf("The number of candies needed is:");
 printf("%d", sum;
 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |   scanf_s("%d",&number);
      |   ^~~~~~~
      |   scanf
a.cc:17:18: error: expected ')' before ';' token
   17 |  printf("%d", sum;
      |        ~         ^
      |                  )
Language: C++

#include <stdio.h>
int main
{ 
 int num[3];
    while(cin>>num[0]>>num[1]>>num[2])
        {
         int count1 = 0,count2 = 0;
             for(int i=0;i<3;i++){
              if(num[i] == 5)
              count1++;
           else
              if(num[i] == 7)
              count2++;
        }
        if((count1 == 2) && (count2 == 1))
            cout << "YES" <<endl;
        else
            cout << "NO" <<endl;
    }
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:2: error: expected primary-expression before 'int'
    4 |  int num[3];
      |  ^~~
a.cc:4:2: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:5: error: expected unqualified-id before 'while'
    5 |     while(cin>>num[0]>>num[1]>>num[2])
      |     ^~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

int main
{ 
 int num[3];
    while(cin>>num[0]>>num[1]>>num[2])
        {
         int count1 = 0,count2 = 0;
             for(int i=0;i<3;i++){
              if(num[i] == 5)
              count1++;
           else
              if(num[i] == 7)
              count2++;
        }
        if((count1 == 2) && (count2 == 1))
            cout << "YES" <<endl;
        else
            cout << "NO" <<endl;
    }
}

Compiler output:
a.cc:1:5: error: cannot declare '::main' to be a global variable
    1 | int main
      |     ^~~~
a.cc:3:2: error: expected primary-expression before 'int'
    3 |  int num[3];
      |  ^~~
a.cc:3:2: error: expected '}' before 'int'
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
a.cc:4:5: error: expected unqualified-id before 'while'
    4 |     while(cin>>num[0]>>num[1]>>num[2])
      |     ^~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <stdio.h>
int main
{ 
	int A,B,C, flag=0;
    scanf("%d %d",&A,&B,&C);
    if(A==5 && B==5 && C==7)flag=1;
    if(A==5 && B==7 && C==5)flag=1;
    if(A==7 && B==5 && C==5)flag=1;
    else(flag=1)
    	printf("YES\n");
    	else print("NO\n")
return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int A,B,C, flag=0;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf("%d %d",&A,&B,&C);
      |          ^
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if(A==5 && B==5 && C==7)flag=1;
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if(A==5 && B==7 && C==5)flag=1;
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(A==7 && B==5 && C==5)flag=1;
      |     ^~
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else(flag=1)
      |     ^~~~
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else print("NO\n")
      |         ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <stdlib.h>
int main
{ 
	int A,B,C, flag=0;
    scanf("%d %d",&A,&B,&C);
    if(A==5 && B==5 && C==7)flag=1;
    if(A==5 && B==7 && C==5)flag=1;
    if(A==7 && B==5 && C==5)flag=1;
    else(flag=1)
    	printf("YES\n");
    	else print("NO\n")
return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int A,B,C, flag=0;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf("%d %d",&A,&B,&C);
      |          ^
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if(A==5 && B==5 && C==7)flag=1;
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if(A==5 && B==7 && C==5)flag=1;
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(A==7 && B==5 && C==5)flag=1;
      |     ^~
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else(flag=1)
      |     ^~~~
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else print("NO\n")
      |         ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<stdio.h>

{
    int a1,a2,a3;
    scanf("%d %d %d",&a1,&a2,&a3);
    if(a1==7 && a2==5 && a3==5) printf("YES");
    else if("a1==5 && a2==5 && a3==7) printf("YES");
    else if("a1==5 && a2==7 && a3==5) printf("YES");
    else printf("NO");
    return 0;
}

Compiler output:
a.cc:7:50: warning: missing terminating " character
    7 |     else if("a1==5 && a2==5 && a3==7) printf("YES");
      |                                                  ^
a.cc:7:50: error: missing terminating " character
    7 |     else if("a1==5 && a2==5 && a3==7) printf("YES");
      |                                                  ^~~
a.cc:8:50: warning: missing terminating " character
    8 |     else if("a1==5 && a2==7 && a3==5) printf("YES");
      |                                                  ^
a.cc:8:50: error: missing terminating " character
    8 |     else if("a1==5 && a2==7 && a3==5) printf("YES");
      |                                                  ^~~
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include<stdio.h>

{
    int a1,a2,a3;
    scanf("%d %d %d",&a1,&a2,&a3);
    if(a1==7 && a2==5 && a3==5) printf("YES");
    else if("a1==5 && a2==5 && a3==7) printf("YES");
    else if("a1==5 && a2==7 && a3==5) printf("YSE");
    else printf("NO");
    return 0;
}

Compiler output:
a.cc:7:50: warning: missing terminating " character
    7 |     else if("a1==5 && a2==5 && a3==7) printf("YES");
      |                                                  ^
a.cc:7:50: error: missing terminating " character
    7 |     else if("a1==5 && a2==5 && a3==7) printf("YES");
      |                                                  ^~~
a.cc:8:50: warning: missing terminating " character
    8 |     else if("a1==5 && a2==7 && a3==5) printf("YSE");
      |                                                  ^
a.cc:8:50: error: missing terminating " character
    8 |     else if("a1==5 && a2==7 && a3==5) printf("YSE");
      |                                                  ^~~
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&C);
	if(a==5&&b==5&&c==7)
	printf("YES\n");
	else if(a==5&&c==5&&b==7)
	printf("YES\n");
	else if(a==7&&b==5&&c==5)
	printf("YES\n");
	else printf("NO\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: 'C' was not declared in this scope
    5 |         scanf("%d %d %d",&a,&b,&C);
      |                                 ^
Language: C

int main(){
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(A==7&&B==5&&C==5){
  printf("YES");
  }
  else if(A==&&B==7&&C==5){
  printf("YES");
  }
  else if(A==5&&B==5&&C==7){
  printf("YES");
  }else{
  printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d%d",&A,&B,&C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d%d",&A,&B,&C);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("YES");
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:12: warning: comparison between pointer and integer
    7 |   else if(A==&&B==7&&C==5){
      |            ^~
main.c:8:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |   printf("YES");
      |   ^~~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |   printf("YES");
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |   printf("NO");
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: error: label 'B' used but not defined
    7 |   else if(A==&&B==7&&C==5){
      |   ^~~~
Language: C

int main(){
  int A,B,C;
  scanf("%d%d%d",A,B,C);
  if(A==7&&B==5&&C==5){
  printf("YES");
  }
  else if(A==&&B==7&&C==5){
  printf("YES");
  }
  else if(A==5&&B==5&&C==7){
  printf("YES");
  }else{
  printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d%d",A,B,C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d%d",A,B,C);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("YES");
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:12: warning: comparison between pointer and integer
    7 |   else if(A==&&B==7&&C==5){
      |            ^~
main.c:8:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |   printf("YES");
      |   ^~~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |   printf("YES");
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |   printf("NO");
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: error: label 'B' used but not defined
    7 |   else if(A==&&B==7&&C==5){
      |   ^~~~
Language: C

#include<stdio.h>

int main()
{
   int a,b,c;
   scanf("%d%d%d",&a,&b,&c);
   if(a = 5 && b = 5 && c = 7)
   {
   	printf("YES");
   }
   else
   {
    printf("NO");  
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: lvalue required as left operand of assignment
    7 |    if(a = 5 && b = 5 && c = 7)
      |                           ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int A,B,C;
	cin>>A>>B>>C;
	if(A=5,B=5,C=7);
	cout<<"YES"<<endl;
	else
		cout<<"NO"<<endl;
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
Language: C++

#include <stdio.h>
main()
{
	int A,B,C;;
	scanf("%d %d %d",A,B,C);
	if("A=5,B=5,C=7") printf("YES");
	if("A=7,B=5,C=5") printf("YES");
	if("A=5,B=7,C=5") printf("YES");
	else printf("NO");


Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:27: error: expected '}' at end of input
    9 |         else printf("NO");
      |                           ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a,b,c；
scanf("%d %d %d,&a,&b,&c);
if(a==5&&b==5&&c==7)printf("YES\n"）；
else if(a==5&&c==5&&b==7)printf("YES\n");
else if(b==5&&c==5&&a==7)printf("YES\n");
else printf("NO\n");
return 0;
}

Compiler output:
a.cc:5:7: warning: missing terminating " character
    5 | scanf("%d %d %d,&a,&b,&c);
      |       ^
a.cc:5:7: error: missing terminating " character
    5 | scanf("%d %d %d,&a,&b,&c);
      |       ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'scanf'
    5 | scanf("%d %d %d,&a,&b,&c);
      | ^~~~~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else if(b==5&&c==5&&a==7)printf("YES\n");
      | ^~~~
a.cc:8:15: error: 'c' was not declared in this scope
    8 | else if(b==5&&c==5&&a==7)printf("YES\n");
      |               ^
Language: C++

#include<stdio.h>
int main()
{
int a,b,c；
scanf("%d %d %d,&a,&b,&c);
if(a==5&&b==5&&c==7)printf("YES\n"）；
else if(a==5&&b==7&&c==5)printf("YES\n");
else if(a==7&&b==5&&c==5)printf("YES\n");
else printf("NO\n");
return 0;
}

Compiler output:
a.cc:5:7: warning: missing terminating " character
    5 | scanf("%d %d %d,&a,&b,&c);
      |       ^
a.cc:5:7: error: missing terminating " character
    5 | scanf("%d %d %d,&a,&b,&c);
      |       ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'scanf'
    5 | scanf("%d %d %d,&a,&b,&c);
      | ^~~~~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else if(a==7&&b==5&&c==5)printf("YES\n");
      | ^~~~
a.cc:8:21: error: 'c' was not declared in this scope
    8 | else if(a==7&&b==5&&c==5)printf("YES\n");
      |                     ^
Language: C++

#include  <stdio.h>
int main(){
    
    int a,b,c;
    scanf("%d %d %d",&a，&b，&c);
    if(a*b*c=175){
        printf("YES");
    }
    else
    printf("NO");
    
    return 0;
}
    
    
    
    
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: 'a\U0000ff0c' was not declared in this scope
    5 |     scanf("%d %d %d",&a，&b，&c);
      |                       ^~~
a.cc:5:27: error: 'b\U0000ff0c' was not declared in this scope
    5 |     scanf("%d %d %d",&a，&b，&c);
      |                           ^~~
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |     if(a*b*c=175){
      |        ~~~^~
Language: C++

//注意:代码模板中的代码将会被复制到任何新创建的文件中，编辑代码模板中的代码，让他帮你自动增加固定代码吧
#include  <stdio.h>
int main(){
    
    int a,b,c;
    scanf("%d %d %d",&a，&b，&c);
    if(a*b*c=175){
        printf("YES");
    }
    else
    printf("NO");
    
    return 0;
}
    
    
    
    
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'a\U0000ff0c' was not declared in this scope
    6 |     scanf("%d %d %d",&a，&b，&c);
      |                       ^~~
a.cc:6:27: error: 'b\U0000ff0c' was not declared in this scope
    6 |     scanf("%d %d %d",&a，&b，&c);
      |                           ^~~
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |     if(a*b*c=175){
      |        ~~~^~
Language: C++

#include <stdio.h>
int main(){
    int x;
    float y;
    scanf ("%d"，&x);
    y = x*(x+1)/2;
    printf("%f",y);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: unable to find string literal operator 'operator""\U0000ff0c' with 'const char [3]', 'long unsigned int' arguments
    5 |     scanf ("%d"，&x);
      |            ^~~~~~
Language: C++

int main()
{
	int a,b,c,YES,NO;
	cin>>a>>b>>c;
	if(a==5&&b==5&&c==7)
		cout<<"YES"<<endl;
		else if(a==5&&b==7&&c==5)
			cout<<"YES"<<endl;
			else if(a==7&&b==5&&c==5)
				cout<<"YES"<<endl;
				else
					cout<<"NO"<<endl;
		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin>>a>>b>>c;
      |         ^~~
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout<<"YES"<<endl;
      |                 ^~~~
a.cc:6:30: error: 'endl' was not declared in this scope
    6 |                 cout<<"YES"<<endl;
      |                              ^~~~
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |                         cout<<"YES"<<endl;
      |                         ^~~~
a.cc:8:38: error: 'endl' was not declared in this scope
    8 |                         cout<<"YES"<<endl;
      |                                      ^~~~
a.cc:10:33: error: 'cout' was not declared in this scope
   10 |                                 cout<<"YES"<<endl;
      |                                 ^~~~
a.cc:10:46: error: 'endl' was not declared in this scope
   10 |                                 cout<<"YES"<<endl;
      |                                              ^~~~
a.cc:12:41: error: 'cout' was not declared in this scope
   12 |                                         cout<<"NO"<<endl;
      |                                         ^~~~
a.cc:12:53: error: 'endl' was not declared in this scope
   12 |                                         cout<<"NO"<<endl;
      |                                                     ^~~~
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  vector<int> fsf = {A, B, C};
  sort(fsf.begin(),fsf.end());
  vector<int> ans = {5,7,7};
  if (ans == fsf)
    cout << "YES" << endl;
  if else
    cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected '(' before 'else'
   12 |   if else
      |      ^~~~
      |      (
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  vector<int> fsf = {A, B, C};
  sort(fsf.begin(),fsf.end());
  vector<int> ans = {5,7,7}
  if (ans == fsf)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if (ans == fsf)
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  vector<int> fsf = {A, B, C};
  sort(fsf.begin(),fsf.end());
  vec<int> ans = {5,7,7}
  if (ans == fsf)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vec' was not declared in this scope
    9 |   vec<int> ans = {5,7,7}
      |   ^~~
a.cc:9:7: error: expected primary-expression before 'int'
    9 |   vec<int> ans = {5,7,7}
      |       ^~~
a.cc:10:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if (ans == fsf)
      |       ^~~
      |       abs
Language: C++

#include<stdio.h>
int main()
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	switch(A,B,C){
        case 7,5,5:printf("yes\n");break;
        case 5,7,5:printf("yes\n");break;
        case 5,5,7:printf("yes\n");break;
        default:printf("no\n");
	}
    return 0	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ':' before ',' token
    7 |         case 7,5,5:printf("yes\n");break;
      |               ^
      |               :
a.cc:7:15: error: expected primary-expression before ',' token
a.cc:8:15: error: expected ':' before ',' token
    8 |         case 5,7,5:printf("yes\n");break;
      |               ^
      |               :
a.cc:8:15: error: expected primary-expression before ',' token
a.cc:9:9: error: duplicate case value
    9 |         case 5,5,7:printf("yes\n");break;
      |         ^~~~
a.cc:8:9: note: previously used here
    8 |         case 5,7,5:printf("yes\n");break;
      |         ^~~~
a.cc:9:15: error: expected ':' before ',' token
    9 |         case 5,5,7:printf("yes\n");break;
      |               ^
      |               :
a.cc:9:15: error: expected primary-expression before ',' token
a.cc:12:16: error: expected ';' before '}' token
   12 |     return 0
      |             ^   
      |                ;
   13 | }
      | ~
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  if (A = 7 && B = 5 && C = 5) {
    cout << "YES" << endl;
  }
  else if (A = 5 && B = 7 && C = 5) {
    cout << "YES" << endl;
  }
  else if (A = 5 && B = 5 && C = 7) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: lvalue required as left operand of assignment
    8 |   if (A = 7 && B = 5 && C = 5) {
      |                    ~~^~~~
a.cc:11:27: error: lvalue required as left operand of assignment
   11 |   else if (A = 5 && B = 7 && C = 5) {
      |                         ~~^~~~
a.cc:14:27: error: lvalue required as left operand of assignment
   14 |   else if (A = 5 && B = 5 && C = 7) {
      |                         ~~^~~~
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  if (A = 7 && B = 5 && C = 5) cout << "YES" << endl;
  else if (A = 5 && B = 7 && C = 5) cout << "YES" << endl;
  else if (A = 5 && B = 5 && C = 7) cout << "YES" << endl;
  else cout << "NO" << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: lvalue required as left operand of assignment
    8 |   if (A = 7 && B = 5 && C = 5) cout << "YES" << endl;
      |                    ~~^~~~
a.cc:9:27: error: lvalue required as left operand of assignment
    9 |   else if (A = 5 && B = 7 && C = 5) cout << "YES" << endl;
      |                         ~~^~~~
a.cc:10:27: error: lvalue required as left operand of assignment
   10 |   else if (A = 5 && B = 5 && C = 7) cout << "YES" << endl;
      |                         ~~^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<string>
#include<cstring>
#include<stdio.h>
using namespace std;
int main(){
	char s[10];
	gets(s);
	int count5 = 0;
	int count7 = 0;
	for( int i = 0; i < strlen(s); i++)
		if (s[i] == '5') count5++;
		else if(s[i] == '7') count7++;
	if(count5 == 2 && count7 == 1)
		cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<iostream>
#include<string>
#include<cstring>
using namespace std;
int main(){
	char s[10];
	gets(s);
	int count5 = 0;
	int count7 = 0;
	for( int i = 0; i < strlen(s); i++)
		if (s[i] == '5') count5++;
		else if(s[i] == '7') count7++;
	if(count5 == 2 && count7 == 1)
		cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A, B ,C ;
    cin >> A>>B>>C ;

if (A==5 &&B==5 &&C==7) ||(A==5&&B=7 &&C==5)|| (A==7 &&B==5 &&C==5)
    cout <<"YES" ;
else
    cout <<"NO" ;



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected primary-expression before '||' token
   10 | if (A==5 &&B==5 &&C==7) ||(A==5&&B=7 &&C==5)|| (A==7 &&B==5 &&C==5)
      |                         ^~
a.cc:10:32: error: lvalue required as left operand of assignment
   10 | if (A==5 &&B==5 &&C==7) ||(A==5&&B=7 &&C==5)|| (A==7 &&B==5 &&C==5)
      |                            ~~~~^~~
Language: C++

#include<bits/stdc++.h>
#define eoi ios::sync_with_stdio(0),ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
using namespace std;
int main()
{
    eoi;
    int a,b,q;
    char m;
    vector<char>v;
    cin>>a>>b;
    while(b--){
        cin>>m;
        v.push_back(m);
    }
    for(int z=0;z<100000;z++){
        a+=z;
        string t=to_string(a);
        for(int i=0;i<t.length();i++){
            for(int s=0;s<v.size();s++){
                if(t[i]==v[s]){
                    i=t.length();
                    break;
                }
                if(s+1==v.size()){cout<<t;return 0;}
            }

        }
        int a=stoi(a);

    }

    return 0;
}







Compiler output:
a.cc: In function 'int main()':
a.cc:28:19: error: no matching function for call to 'stoi(int&)'
   28 |         int a=stoi(a);
      |               ~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from 'int' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from 'int' to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

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

int main(){
  vector<int> A(3);
  cin >>A.at(1)>>A.at(2)>>A.at(3);
  
  int count1=0;
  int count2=0;
  for(int i=0;i<3;i++){
    if(A.at(i)=='5'){
      count1++;
    }else{
      count2++;
    }
    
    if(count1==2 && count2==1){
      cout << "YES" << endl;
    }else{
      cout << "NO" << endl;
    }
}

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

a,b,c = map(int, input().split())

if( (a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)):
    print('YES')
else:
    print('NO')


Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('YES')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c = map(int, input().split())
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int x,y,c;
cin>>y>>x>>c;
if(y==5&&x==5&&c==7)||(x==5&&y==7&&c==5)||(x==7&&y==5&&c==5)
cout<<"YES";
else 
cout<<"NO";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before '||' token
    9 | if(y==5&&x==5&&c==7)||(x==5&&y==7&&c==5)||(x==7&&y==5&&c==5)
      |                     ^~
Language: C++

#include<iostream>
using manespace std;
int main(){
  int A , B , C;
  
  cin >> A >> B >> C;
  
  if((A + B == 10 && A + C == 12) || (B + C == 10 && B + A == 12) || (C + A == 10 && B + C == 12))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  
  return 0;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B >> C;
      |   ^~~
      |   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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "YES" << 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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << "YES" << 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)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "NO" << 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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "NO" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

class test{
	public static void main(String args[]){
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(String arg: args[]){
      	if( Integer.parseInt(arg) == '5'){
          fiveCount++
        }
        if( Integer.parseInt(arg) == '7'){
          fiveCount++
        }
        
        if(fiveCount == 2 || sevenCount == 1){
          System.out.print("OK")
        }else{
          System.out.print("NO")
        }
      }
    }
}

Compiler output:
Main.java:7: error: '.class' expected
      for(String arg: args[]){
                            ^
Main.java:9: error: ';' expected
          fiveCount++
                     ^
Main.java:12: error: ';' expected
          fiveCount++
                     ^
Main.java:16: error: ';' expected
          System.out.print("OK")
                                ^
Main.java:18: error: ';' expected
          System.out.print("NO")
                                ^
5 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

	int cnt5 = cnt7 = 0;
  	int x; cin >> x;
  	if(x == 5) cnt5++;
  	else if(x == 7) cnt7++;
    cin >> x;
    if(x == 5) cnt5++;
    else if(x == 7) cnt7++;
    cin >> x;
    if(x == 5) cnt5++;
    else if(x == 7) cnt7++;
  
  if(cnt5 == 1 && cnt7 == 2){cout << "YES\n";}
  else cout << "NO\n";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'cnt7' was not declared in this scope; did you mean 'cnt5'?
    7 |         int cnt5 = cnt7 = 0;
      |                    ^~~~
      |                    cnt5
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> vec(3)
  cin >> vec.at(0) >> vec.at(1) >> vec.at(2);
  
  sort(vec.begin(),vec.end());
  if(vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }

  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
    6 |   cin >> vec.at(0) >> vec.at(1) >> vec.at(2);
      |   ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> vec(3)
  cin >> vec.at(0) >> vec.at(1) >> vec.at(2);
  
  sort(vec.begin(),vec.end());
  if(vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }

  
  
  
}

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

#include <bits/stdc++.h>

#include <cstdlib>  // abs() for integer 絶対値求めやつ

#include <cmath>    // abs() for float, and fabs()

#include <algorithm>
#include <vector>
#include <string>
#define rep(i,n) for(int i = 0; i< (n);i++)

#define SORT(a) sort((a).begin(),(a).end());

#define che(a,string) cout<<string<<":"<<(a)<<endl;

#define ch(a,string) cout<<string<<":"<<(a)<<" ";

using namespace std;

typedef pair<int,int> p;

int main(){
	vector<int> A(3);
	rep(i,3){
		cin>>A[i]
	  }
	int five,seven;
	rep(i,3){
		if(A[i]==5){
			five++;
		  }
		  else if(A[i]==7){
			  seven++;
			}
	  }
	  if(five==2&&seven==1){
		  cout<<"YES"<<endl;
		}
		else{
			cout<<"NO"<<endl;
		  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:26: error: expected ';' before '}' token
   25 |                 cin>>A[i]
      |                          ^
      |                          ;
   26 |           }
      |           ~
Language: C++

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

int main(){
	ios_base::sync_with_stdio(0); cin.tie(0);
	vector<int> v(3); int cnt5=0, cnt7=0;
	for(auto : &x){
		cin >> x;
		if(x == 5) cnt5++;
		if(x == 7) cnt7++;
	}
	if(cnt5 == 2 && cnt7 == 1) cout << "YES\n";
	else cout << "NO\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected unqualified-id before ':' token
    7 |         for(auto : &x){
      |                  ^
a.cc:7:21: error: 'x' was not declared in this scope
    7 |         for(auto : &x){
      |                     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'C' was not declared in this scope
   17 |     if(b==5&&C==5){
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'C' was not declared in this scope
   17 |     if(b==5&&C==5){
      |              ^
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define eb emplace_back
#define all(c) begin(c),end(c)
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef tuple<int,int,int> T;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
typedef vector<T> vt;
 
 
 
 
iint main() {
  int p[3];
  rep(i,3)cin>>p[i];
  sort(p,p+3);
    if(p[0]!=5){
      cout<<"NO";
      return 0;
    }
    if(p[1]!=5){
      cout<<"NO";
      return 0;
  }
    if(p[2]!=7){
    cout<<"NO";
    return 0;
  }
  cout<<"YES";
  
 
}




Compiler output:
a.cc:44:1: error: 'iint' does not name a type; did you mean 'uint'?
   44 | iint main() {
      | ^~~~
      | uint
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define eb emplace_back
#define all(c) begin(c),end(c)
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef tuple<int,int,int> T;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
typedef vector<T> vt;
 
 
 
 
int main() {
  vi p(3));
  rep(i,3)cin>>p[i];
  sort(p.begin(),p.end());
    if(p[0]!=5){
      cout<<"No";
      return 0;
    }
    if(p[0]!=5){
      cout<<"No";
      return 0;
  }
    if(p[0]!=7){
    cout<<"No";
    return 0;
  }
  cout<<"Yes";
  

}




Compiler output:
a.cc: In function 'int main()':
a.cc:45:10: error: expected ',' or ';' before ')' token
   45 |   vi p(3));
      |          ^
Language: C

#include<stdio.h>
int main(){
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);
  if(a==5&&b==7&&c==5){
    printf("YES");
  }else{
    printf("NO");
  }
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	
	int on = 0, fi = 0; int x;
	for(int i = 0 ; i < n; i++){
		cin>>x;
		x == 5 ? fi++ : on++;
	}
	if(fi == 2) cout<<"YES"<<"\n";
	else cout<<"NO"<<"\n";
	
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: 'n' was not declared in this scope
    7 |         for(int i = 0 ; i < n; i++){
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){	
  int fi = 0,on = 0; int x;
  for(int i = 0; i < n; i++){
  	cin>>x;
    x == 5 ? fi++ : on++;
  }
	if(fi == 2) cout<<"YES"<<"\n";

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'n' was not declared in this scope
    5 |   for(int i = 0; i < n; i++){
      |                      ^
Language: C

#include <cstdio>
using namespace std;

#define lo(n,m) for(int i=n; i<m; i++)

int main(){
  int a[3],j=0,k=0;

  lo(0,3){
    if (scanf("%d",&a[i]) !=1 ){
      printf("None.\n");
    }
  }

  lo(0,3){
    if ( a[i] == 5){
      j++;
    }else if(a[i] == 7){
      k++;
    }
  }

  if ( j == 2 && k == 1){
    printf("YES\n");
  }else{
    printf("NO\n");
  }
  

  
  

  return 0;
}

  



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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a[3],a=0,b=0;
  for(int i=0;i<3;i++)
  {
    cin>>a[i];
  }
for(int i=0;i<3;i++)
{
  if(a[i]==5)
     a++;
     else if(a[i]==7)
     b++;
     }
     if(a==2&&b==1)
     cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: conflicting declaration 'int a'
    5 |   int a[3],a=0,b=0;
      |            ^
a.cc:5:7: note: previous declaration as 'int a [3]'
    5 |   int a[3],a=0,b=0;
      |       ^
a.cc:13:6: error: lvalue required as increment operand
   13 |      a++;
      |      ^
a.cc:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |      if(a==2&&b==1)
      |         ~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a[3],a=0,b=0;
  for(int i=0;i<3;i++)
  {
    cin>>a[i];
  }
for(int i=0;i<3;i++)
{
  if(a[i]==5;
     a++;
     else if(a[i]==7)
     b++;
     }
     if(a==2&&b==1)
     cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: conflicting declaration 'int a'
    5 |   int a[3],a=0,b=0;
      |            ^
a.cc:5:7: note: previous declaration as 'int a [3]'
    5 |   int a[3],a=0,b=0;
      |       ^
a.cc:13:6: error: lvalue required as increment operand
   13 |      a++;
      |      ^
a.cc:13:9: error: expected ')' before ';' token
   13 |      a++;
      |         ^
      |         )
a.cc:12:5: note: to match this '('
   12 |   if(a[i]==5;
      |     ^
a.cc:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |      if(a==2&&b==1)
      |         ~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a[3],b=0;
  cin>>a[0]>>a[1]>>a[2];
  sort(a,a+3)
  if(a[0]==5) b++;
  if(a[1]==5) b++;
  if(a[2]==7) b++;
  if(b==3&&a[0]+a[1]+a[2]==17) cout<<"YES";
  if(b!=3) cout<<"NO";
  cout<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'if'
    6 |   sort(a,a+3)
      |              ^
      |              ;
    7 |   if(a[0]==5) b++;
      |   ~~
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if( (a==5 && b==7 && c==5)||(a==7 && b==5 && c==5)||(a==5 && b==5 && c==7) ) {
    cout << "YES" << endl;
  }
  else cout << "NO" << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected '}' at end of input
   10 |   else cout << "NO" << endl;
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if( (a==5 && b==7 && c==5)||(a==7 && b==5 && c==5)||(a==5 && b==5 && c==7) ) {
    cout << "YES" << endl;
  else cout << "NO" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else cout << "NO" << endl;
      |   ^~~~
a.cc:7:80: note: to match this '{'
    7 |   if( (a==5 && b==7 && c==5)||(a==7 && b==5 && c==5)||(a==5 && b==5 && c==7) ) {
      |                                                                                ^
a.cc:9:29: error: expected '}' at end of input
    9 |   else cout << "NO" << endl;
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if(a*b*c==175) {
    cout >> "YES" >> end1;
  }
  else {
    cout >> "NO" >> emd1;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b >> c;
      |   ^~~
      |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout >> "YES" >> end1;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'end1' was not declared in this scope
    7 |     cout >> "YES" >> end1;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout >> "NO" >> emd1;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'emd1' was not declared in this scope
   10 |     cout >> "NO" >> emd1;
      |                     ^~~~
Language: C++

#include<bits/c++.h>
using namespace std;
int main(){
     
int a=0,b=0,c;

cin >>c;
if(c==5) a++;
if(c==7) b++;
cin >>c;
if(c==5) a++;
if(c==7) b++;
cin >>c;
if(c==5) a++;
if(c==7) b++;
if(a==2&&b==1) cout <<“YES\n”;
else count <<“NO\n”;
}

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

#include <bits/stdc++.h>
using namespace std;
int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}
int main() {
  vector<int> a(3);
  rep(i,3){
    cin>>a.at(i);
  }
  sort(a.begin(),a.end());
  if(a.at(0)==5&&a.at(1)==5&&a.at(2)==7){
    cout<<"YES";
  }
  else{
    cout<<"NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   rep(i,3){
      |       ^
a.cc:11:3: error: 'rep' was not declared in this scope
   11 |   rep(i,3){
      |   ^~~
Language: C

#include<stdio.h>
void cmp(const void*a,const void*b){
  return (int*)a*-(int*)b*;}
int main(){
  int i,a[3];
  for(i=0;i<3:i++)
    scanf("%d",&a[i]);
  qsort(a,3,sizeof(int),cmp);
  if(a[0]=a[1]==5&&a[2]==7)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;}

Compiler output:
main.c: In function 'cmp':
main.c:3:18: error: wrong type argument to unary minus
    3 |   return (int*)a*-(int*)b*;}
      |                  ^
main.c:3:27: error: expected expression before ';' token
    3 |   return (int*)a*-(int*)b*;}
      |                           ^
main.c:3:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
    3 |   return (int*)a*-(int*)b*;}
      |          ^
main.c:2:6: note: declared here
    2 | void cmp(const void*a,const void*b){
      |      ^~~
main.c: In function 'main':
main.c:6:14: error: expected ';' before ':' token
    6 |   for(i=0;i<3:i++)
      |              ^
      |              ;
main.c:8:3: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    8 |   qsort(a,3,sizeof(int),cmp);
      |   ^~~~~