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

    import java.util.Scanner;
            public class Main{
          		public static void Main (Stirng args[]){
                 /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
         			A = new String(in.readLine() );
                    */
                        int n=0;
                  while(n==0){
                    		Scanner scan = new Scanner(System.in);
         					int A = scan.nextInt();
                    if(A == 5 || A==7){
                    		Scanner scan2 = new Scanner(System.in);
         				int B  = scan2.nextInt();
                    	if(B == 5 || B==7){
                          	if(A + B !=12 ){
                              A=0; B=0;
                              System.out.println("NO!");
                              break;
                            }
                           Scanner scan3 = new Scanner(System.in);
         					int C = scan3.nextInt();
                          	if(A + B + C == 17){
                              	System.out.println("Yes!");
                            }
                          	else{
                              break;
                            }
                        }
                    }
                  }
     }
     }

Compiler output:
Main.java:3: error: cannot find symbol
          		public static void Main (Stirng args[]){
          		                         ^
  symbol:   class Stirng
  location: class Main
1 error
Language: Java

import java.util.Scanner;
        public class Main{
      		public static void Main (Stirng[] args){
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
                    int n=0;
              while(n==0){
                		Scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 || A==7){
                		Scanner scan2 = new Scanner(System.in);
     				int B  = scan2.nextInt();
                	if(B == 5 || B==7){
                      	if(A + B !=12 ){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       Scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.out.println("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }


Compiler output:
Main.java:3: error: cannot find symbol
      		public static void Main (Stirng[] args){
      		                         ^
  symbol:   class Stirng
  location: class Main
1 error
Language: Java

import java.util.Scanner;
        public class Main{
      		public static void Main (Stirng[] args){
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
                    int n=0;
              while(n==0){
                		Scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 && A==7){
                		Scanner scan2 = new Scanner(System.in);
     				int B  = scan2.nextInt();
                	if(B == 5 && B==7){
                      	if(A == B== 7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       Scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.out.println("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }


Compiler output:
Main.java:3: error: cannot find symbol
      		public static void Main (Stirng[] args){
      		                         ^
  symbol:   class Stirng
  location: class Main
Main.java:15: error: incomparable types: boolean and int
                      	if(A == B== 7){
                      	         ^
2 errors
Language: Java

import java.until.Scanner;
        public class Main{
      		public static void Main (Stirng[] args){
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
                    int n=0;
              while(n==0){
                		Scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 && A==7){
                		Scanner scan2 = new Scanner(System.in);
     				int B  = scan2.nextInt();
                	if(B == 5 && B==7){
                      	if(A == B== 7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       Scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.out.println("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }


Compiler output:
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
                 ^
Main.java:3: error: cannot find symbol
      		public static void Main (Stirng[] args){
      		                         ^
  symbol:   class Stirng
  location: class Main
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		                   ^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		                    ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: incomparable types: boolean and int
                      	if(A == B== 7){
                      	         ^
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                                           ^
  symbol:   class Scanner
  location: class Main
9 errors
Language: Java

import java.until.Scanner;
        public class Main{
      		public static void main (Stirng[] args){
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
                    int n=0;
              while(n==0){
                		Scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 && A==7){
                		Scanner scan2 = new Scanner(System.in);
     				int B  = scan2.nextInt();
                	if(B == 5 && B==7){
                      	if(A == B== 7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       Scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.out.println("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }


Compiler output:
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
                 ^
Main.java:3: error: cannot find symbol
      		public static void main (Stirng[] args){
      		                         ^
  symbol:   class Stirng
  location: class Main
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		                   ^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		                    ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: incomparable types: boolean and int
                      	if(A == B== 7){
                      	         ^
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                                           ^
  symbol:   class Scanner
  location: class Main
9 errors
Language: Java

import java.until.Scanner;
        public class Index{
      		public static void main (Stirng[] args){
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
                    int n=0;
              while(n==0){
                		Scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 && A==7){
                		Scanner scan2 = new Scanner(System.in);
     				int B  = scan2.nextInt();
                	if(B == 5 && B==7){
                      	if(A == B== 7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       Scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.out.println("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }


Compiler output:
Main.java:2: error: class Index is public, should be declared in a file named Index.java
        public class Index{
               ^
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
                 ^
Main.java:3: error: cannot find symbol
      		public static void main (Stirng[] args){
      		                         ^
  symbol:   class Stirng
  location: class Index
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Index
Main.java:9: error: cannot find symbol
                		Scanner scan = new Scanner(System.in);
                		                   ^
  symbol:   class Scanner
  location: class Index
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		^
  symbol:   class Scanner
  location: class Index
Main.java:12: error: cannot find symbol
                		Scanner scan2 = new Scanner(System.in);
                		                    ^
  symbol:   class Scanner
  location: class Index
Main.java:15: error: incomparable types: boolean and int
                      	if(A == B== 7){
                      	         ^
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Index
Main.java:20: error: cannot find symbol
                       Scanner scan3 = new Scanner(System.in);
                                           ^
  symbol:   class Scanner
  location: class Index
10 errors
Language: Java


    public class Index{
      		public static void main (Stirng[] args){
               INT A,B,C;
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
              
              while(1){
                		scanner scan = new Scanner(System.in);
     					int A = scan.nextInt();
                if(A == 5 && A==7){
                		scanner scan2 = new Scanner(System.in);
     					int B  = scan2.nextInt();
                	if(B == 5 && B==7){
                      	if(A==B==7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                       scanner scan3 = new Scanner(System.in);
     					int C = scan3.nextInt();
                      	if(A + B + C == 17){
                          	System.outprintln("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }
 }

Compiler output:
Main.java:34: error: class, interface, enum, or record expected
 }
 ^
1 error
Language: Java



    public class Index{
      		public static void main (Stirng[] args){
               INT A,B,C;
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
              
              while(1){
                	   BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     					A = new String(in.readLine() );
                if(A == 5 && A==7){
                		B = new String(in.readLine() );
                	if(B == 5 && B==7){
                      	if(A==B==7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                         C = new String(in.readLine());
                      	if(A + B + C == 17){
                          	System.outprintln("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }
 }

Compiler output:
Main.java:33: error: class, interface, enum, or record expected
 }
 ^
1 error
Language: Java

ソースコード
Copy
Copy

    public class index{
      		public static void main (Stirng[] args){
               INT A,B,C;
             /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     			A = new String(in.readLine() );
                */
              
              while(1){
                	   BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
     					A = new String(in.readLine() );
                if(A == 5 && A==7){
                		B = new String(in.readLine() );
                	if(B == 5 && B==7){
                      	if(A==B==7){
                          A=0; B=0;
                          System.out.println("NO!");
                          break;
                        }
                         C = new String(in.readLine());
                      	if(A + B + C == 17){
                          	System.outprintln("Yes!");
                        }
                      	else{
                          break;
                        }
                    }
                }
              }
 }
 }
 }

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
??????
^
Main.java:35: error: class, interface, enum, or record expected
 }
 ^
2 errors
Language: Java

public class index{
  		public static void main (Stirng[] args){
           INT A,B,C;
         /* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
 			A = new String(in.readLine() );
            */
          
          while(1){
            	   BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
 					A = new String(in.readLine() );
            if(A == 5 && A==7){
            		B = new String(in.readLine() );
            	if(B == 5 && B==7){
                  	if(A==B==7){
                      A=0; B=0;
                      System.out.println("NO!");
                      break;
                    }
                     C = new String(in.readLine());
                  	if(A + B + C == 17){
                      	System.outprintln("Yes!");
                    }
                  	else{
                      break;
                    }
                }
            }
          }

Compiler output:
Main.java:28: error: reached end of file while parsing
          }
           ^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    Map<Integer, Integer> seen = new HashMap<>();
    for (int ix = 0; ix < 3; ix++) {
      int value = scanner.nextInt();
      seen.put(value, seen.getOrDefault(value, 0) + 1);
    }

    bool result = seen.containsKey(5)
      && seen.containsKey(7)
      && seen.get(5) == 2
      && seen.get(7) == 1;
    
    System.out.println(result ? "YES" : "NO");
  }
}


Compiler output:
Main.java:12: error: cannot find symbol
    bool result = seen.containsKey(5)
    ^
  symbol:   class bool
  location: class Main
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    Map<Integer, Integer> seen = new HashMap<>();
    for (int ix = 0; ix < 3; ix++) {
      int value = scanner.nextInt();
      seen.put(value, seen.getOrDefault(value, 0) + 1);
    }

    return seen.containsKey(5)
      && seen.containsKey(7)
      && seen.get(5) == 2
      && seen.get(7) == 1;
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    Map<Integer, Integer> seen = new HashMap<>();
    ^
  symbol:   class Map
  location: class Main
Main.java:4: error: cannot find symbol
    Map<Integer, Integer> seen = new HashMap<>();
                                     ^
  symbol:   class HashMap
  location: class Main
Main.java:13: error: incompatible types: unexpected return value
      && seen.get(7) == 1;
      ^
5 errors
Language: C++

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

int main(){
    int n, l;
    cin >> n >> l;
    vector<string> s(n);
    for(int i=0; i<s.size(); i++){
        cin >> s.push_back(i);
    }
    sort(s.begin(), s.end());
    for(auto e:s){
        cout << e;
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(int&)'
    9 |         cin >> s.push_back(i);
      |                ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'int' to 'const std::vector<std::__cxx11::basic_string<char> >::value_type&' {aka 'const std::__cxx11::basic_string<char>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::__cxx11::basic_string<char> >::value_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	
	int x[3];
	int i= 0;
	int counter7 = 0;
	int counter5 = 0;
	
	
	while(i < 3){
		cin >> x[i];
		i++;
		
	}

	i = 0;
	}
	while(i < 3){
		if(x[i]==5){
			counter5 = counter5 + 1;
		}
		else if(x[i]== 7){
			counter7 = counter7 + 1;
		}
		i++;
	}
	if(counter5 == 2 && counter7 == 1){
		cout << "YES";
	}
	else{
		cout << "NO";
	}
	return 0;
}

Compiler output:
a.cc:20:9: error: expected unqualified-id before 'while'
   20 |         while(i < 3){
      |         ^~~~~
a.cc:29:9: error: expected unqualified-id before 'if'
   29 |         if(counter5 == 2 && counter7 == 1){
      |         ^~
a.cc:32:9: error: expected unqualified-id before 'else'
   32 |         else{
      |         ^~~~
a.cc:35:9: error: expected unqualified-id before 'return'
   35 |         return 0;
      |         ^~~~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
Language: C++

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

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

#include <iostream>
using namespace std;

int main() {
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  int c5 = 0;
  int c7 = 0;
  for (int i = 0; i < 3; i++) {
    if (a[i] == 5) c5++;
    else if (a[i] == 7) c7++;
  }
  cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:47: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |   cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
      |                                          ~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int D = A * B * C;
  if (D == 175){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
    }
  }
return 0;
}


Compiler output:
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int D = A * B * C;
  if (D == 175){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
    }
  }
}


Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int D = A * B * C;
  if (D == 175){
    cout << "YES" << endl;
    else{
      cout << "NO" << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
   10 |     else{
      |     ^~~~
a.cc:8:16: note: to match this '{'
    8 |   if (D == 175){
      |                ^
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'return'
   14 |   return 0;
      |   ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<math>

using namespace std;
int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int D = A * B * C;
  if (D == 175){
    cout << "YES" << endl;
    else{
      cout << "NO" << endl;
    }
  }
  return 0;
}


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

#include<bits/stdc++.h>
#include<iostream>
#include<Algorithm>
#include<math>

using namespace std;
int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int D = A * B * C;
  if (D == 175){
    cout << "YES" << endl;
    else{
      cout << "NO" << endl;
    }
  }
  return 0;
}

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

#include<iostream>
#include<Algorithm>

using namespace std;

int main(){
  int A[3];
  cin >> A[0];
  cin >> A[1];
  cin >> A[0];
  
  sort(A,A+3);
  
  if (A[0] == 5 && A[1] == 5 && A[2] == 7){
    cout << "Yes";
  }
}
  

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

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

int main(){
  vector<int> N(3);
  for(int i = 0; i < 3; i++){
    cin >> N.at(i);
  }
  sort(N.begin(), N.end()); 
  if(N.at(0) == 5 && N.at(1) == 5 && N.at(2) == 7){
    cout << "YES" << endl;
  }
  else{
    cout "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected ';' before string constant
   14 |     cout "NO" << endl;
      |         ^~~~~
      |         ;
Language: Java

import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();

        if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
            ^
  symbol:   method equal(String)
  location: variable s of type String
Main.java:7: error: cannot find symbol
        if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
                                ^
  symbol:   method equal(String)
  location: variable s of type String
Main.java:7: error: cannot find symbol
        if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
                                                    ^
  symbol:   method equal(String)
  location: variable s of type String
3 errors
Language: Java

public class Hello{
    public static void Main(){

        string[] input = System.Console.ReadLine().Split(' ');
        int A = int.Parse(input[0]);
        int B = int.Parse(input[1]);
        int C = int.Parse(input[2]);
        
        if((A == 5 && B == 5 && C == 7) || (A == 7 && B == 5 && C == 5) || (A == 7 && B == 5 && C == 5)){
            System.Console.WriteLine("YES");
        }else{
            System.Console.WriteLine("NO");
        }
    }
}


Compiler output:
Main.java:5: error: class expected
        int A = int.Parse(input[0]);
                    ^
Main.java:5: error: ';' expected
        int A = int.Parse(input[0]);
                         ^
Main.java:5: error: not a statement
        int A = int.Parse(input[0]);
                               ^
Main.java:5: error: ';' expected
        int A = int.Parse(input[0]);
                                  ^
Main.java:6: error: class expected
        int B = int.Parse(input[1]);
                    ^
Main.java:6: error: ';' expected
        int B = int.Parse(input[1]);
                         ^
Main.java:6: error: not a statement
        int B = int.Parse(input[1]);
                               ^
Main.java:6: error: ';' expected
        int B = int.Parse(input[1]);
                                  ^
Main.java:7: error: class expected
        int C = int.Parse(input[2]);
                    ^
Main.java:7: error: ';' expected
        int C = int.Parse(input[2]);
                         ^
Main.java:7: error: not a statement
        int C = int.Parse(input[2]);
                               ^
Main.java:7: error: ';' expected
        int C = int.Parse(input[2]);
                                  ^
12 errors
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 ==5 && B ==5 && C == 7 || A == 7 && B == 5 && C == 5) {
  cout << "YES" << endl;
  }
   else {
  cout << "NO" << endl;
   }
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include (bits/stdc++.h)
      |          ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include (bits/stdc++.h)
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << "YES" << endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |   cout << "YES" << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include (bits/stdc++.h)
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << "NO" << endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |   cout << "NO" << endl;
      |                   ^~~~
a.cc:12:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

using namespace std;

int main(){
	int a,b,c;
	cin>>a>>b>>c;
  	if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
	else cout<<NO<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: 'YES' was not declared in this scope
    8 |         if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
      |                                        ^~~
a.cc:9:20: error: 'NO' was not declared in this scope
    9 |         else cout<<NO<<endl;
      |                    ^~
Language: Java

read a b c
five=0
seven=0
for i in $a $b $c
do
  if [ $i -eq 5 ]; then
    five=`expr $five + 1`
  fi
  if [ $i -eq 7 ]; then
    seven=`expr $seven + 1`
  fi
done
if [ $five -eq 2 ]; then
  if [ $seven -eq 1 ]; then
    echo "YES"
  else
    echo "NO"
  fi
else
  echo "NO"
fi

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
read a b c
^
Main.java:7: error: illegal character: '`'
    five=`expr $five + 1`
         ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
  if [ $i -eq 5 ]; then
                   ^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: illegal character: '`'
    five=`expr $five + 1`
                        ^
Main.java:10: error: illegal character: '`'
    seven=`expr $seven + 1`
          ^
Main.java:10: error: illegal character: '`'
    seven=`expr $seven + 1`
                          ^
Main.java:13: error: class, interface, enum, or record expected
if [ $five -eq 2 ]; then
                    ^
Main.java:14: error: class, interface, enum, or record expected
  if [ $seven -eq 1 ]; then
                       ^
8 errors
Language: C++

#include<iostream>

int main(){
  int cnt[11];

  for(int i=0;i<=10;i++){
      cnt[i] = 0;
  }
  cnt[a]++; cnt[b]++; cnt[c]++;

  if(cnt[5]==2 && cnt[7]==1){
      printf("Yes");
  }else printf("No");
	return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'a' was not declared in this scope
    9 |   cnt[a]++; cnt[b]++; cnt[c]++;
      |       ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |   cnt[a]++; cnt[b]++; cnt[c]++;
      |                 ^
a.cc:9:27: error: 'c' was not declared in this scope
    9 |   cnt[a]++; cnt[b]++; cnt[c]++;
      |                           ^
Language: C++

#include<iostream.h>

int cnt[11];

for(int i=0;i<=10;i++){
	cnt[i] = 0;
}
cnt[a]++; cnt[b]++; cnt[c]++;

if(cnt[5]==2 && cnt[7]==1){
	printf("Yes");
}else printf("No");

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

#include<iostream>
using namespace std;

int main(){
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  int flag_5 = 0;
  int flag_7 = 0;
  
  for(int i = 0; i < 3; i++){
    if(a[i] ==5){
      flag_5++;
    }
    else if(a[i] ==7){
      flag_7++;
    }
  }
  
  if(flag5 ==2 && flag_7 == 1){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'flag5' was not declared in this scope; did you mean 'flag_5'?
   19 |   if(flag5 ==2 && flag_7 == 1){
      |      ^~~~~
      |      flag_5
Language: C++

lst = list(map(int, input().split()))
c5 = c7 = 0
for x in lst:
    if x == 5:
        c5 += 1
    elif x == 7:
        c7 += 1
if c5 == 2 and c7 == 1:
    print("YES")
else:
    print("NO")

Compiler output:
a.cc:1:1: error: 'lst' does not name a type
    1 | lst = list(map(int, input().split()))
      | ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:6: error: subscripted value is neither array nor pointer nor vector
    8 | if (c[5]==2 && c[7]==1){
      |      ^
main.c:8:17: error: subscripted value is neither array nor pointer nor vector
    8 | if (c[5]==2 && c[7]==1){
      |                 ^
Language: C

#include<stdio.h>

int main(void){
  int a[3],cnt5=0,cnt7=0,i;
  scanf("%d%d%d",a[0]a[1]a[2]);
  for(i=0;i<3;i++){
    if(a[i]==5) cnt5++;
    else if(a[i]==7) cnt7++;
  }
  if((cnt5==2) && (cnt7==1)) printf("YES\n");
  else printf("NO\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ')' before 'a'
    5 |   scanf("%d%d%d",a[0]a[1]a[2]);
      |        ~             ^
      |                      )
Language: C++

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

#define LEN 3

int main(void)
{
  int  A[3];
  int buf_for_5 = 0;
  int buf_for_7 = 0;
  cin >> A[0] >> A[1] >> A[2];
  
  for(i=0; i<LEN; i++)
  {
    if(A[i] == 5)
    {
      if(buf_for_5 < 2)
      {
        buf_for_5++;
      }
    }
    if(A[i] == 7)
    {
      if(buf_for_7 < 1)
      {
        buf_for_7++;
      }
    }
  }
  
  if(buf_for_5 == 2 && buf_for_7 == 1)
  {
    cout << "YES" << endl;
  }else{
    count << "NO" << endl;
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i=0; i<LEN; i++)
      |       ^
a.cc:35:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   35 |     count << "NO" << endl;
      |     ~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c;
  cin>>a>>b>>c;
  int x[11]={};
  x[a]++; x[b]++; x[c]++;
  if(x[5]==2 %%x[7]==1)
    cout<<"YES";
  else cout<<"NO";
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '%' token
    9 |   if(x[5]==2 %%x[7]==1)
      |               ^
Language: C++

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

int main(void){
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  sort(a, a + 3);
  if(a[0] == a[1] && a[1] == 5 && a[2] == 7) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}


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

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:11:12: error: 'cout' was not declared in this scope
   11 |   if(flag) cout<<"YES"<<endl;
      |            ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |   if(flag) cout<<"YES"<<endl;
      |                         ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout<<"NO"<<endl;
      |        ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |   else cout<<"NO"<<endl;
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
    int a;

    int cnt5 = 0, cnt7 = 0;
    for(int i = 0;i < 3;i++){
        cin >> a;
        if(a == 5) cnt5++;
        else if(a == 7) cnt7++;
    }
    if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
    else cout << "NO" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'cnt' was not declared in this scope; did you mean 'cnt7'?
   14 |     if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
      |                     ^~~
      |                     cnt7
Language: C

#include<stdio.h>
 
int main(void){
 int A=0,B=0,C=0,count=0;
  scanf("%d %d %d",&A,&B,&C);
  if(A==7||A==5)
    count+=A;
  if(B==7||B==5)
    count+=B;
  if(C==7||C==5)
    count+=C;
  
  if(count==17)
    printf("YES");
  else
    printf("NO");
  
  return 0;

Compiler output:
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
   18 |   return 0;
      |   ^~~~~~
Language: C++

#include<iostream>

int main()
{
int a,b,c;
cin >> a >> b >> c;
  List<int> log = new List<int>();
  for(int i = 0;i < 3;i++)
  {
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: 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:7:3: error: 'List' was not declared in this scope
    7 |   List<int> log = new List<int>();
      |   ^~~~
a.cc:7:8: error: expected primary-expression before 'int'
    7 |   List<int> log = new List<int>();
      |        ^~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
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";
    else cout <<"NO";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:64: error: expected ';' before 'cout'
   14 |     if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
      |                                                                ^~~~
      |                                                                ;
a.cc:15:5: error: expected primary-expression before 'else'
   15 |     else cout <<"NO";
      |     ^~~~
a.cc:14:76: error: expected ')' before 'else'
   14 |     if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
      |       ~                                                                    ^
      |                                                                            )
   15 |     else cout <<"NO";
      |     ~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    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";
    else cout <<"NO";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'a' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |            ^
a.cc:12:17: error: 'b' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |                 ^
a.cc:12:22: error: 'c' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |                      ^
a.cc:14:5: error: expected primary-expression before 'else'
   14 |     else cout <<"NO";
      |     ^~~~
a.cc:13:76: error: expected ')' before 'else'
   13 |     if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
      |       ~                                                                    ^
      |                                                                            )
   14 |     else cout <<"NO";
      |     ~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int,n,five=0,seven=0;
  for(int i = 0;i < 3;i++)
  {
    scanf("%d",&n);
    switch(n)
    {
      case 5:
        five += 1;
        break;
      case 7:
        seven += 1;
        break;
      default:
        continue;
    }
  }
  if(five == 2 && seven == 1){printf("YES");}
  else{printf("NO");}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: expected identifier or '(' before ',' token
    5 |   int,n,five=0,seven=0;
      |      ^
main.c:8:17: error: 'n' undeclared (first use in this function)
    8 |     scanf("%d",&n);
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'five' undeclared (first use in this function)
   12 |         five += 1;
      |         ^~~~
main.c:15:9: error: 'seven' undeclared (first use in this function)
   15 |         seven += 1;
      |         ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define ll long long
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pii pair<ll,ll>
#define vpii vector<pair<ll,ll> >
#define F first
#define S second
#define ld long double
#define built __builtin_popcountll
#define mst(a,i) memset(a,i,sizeof(a))
#define all(x) x.begin(),x.end()
#define itit(it,a) for(auto it=(a).begin(); it!=(a).end(); it++)
#define rep(i,a,b) for(ll i=a; i<b; i++)
#define repr(i,a,b) for(ll i=a; i>b; i--)
#define reprr(i,a,b) for(ll i=a; i>=b; i--)
#define pi 3.14159265358979323846264338327950288419716939937510582097494459230
ll max3(ll x,ll y,ll z) {return max(max(x,y),z);}
ll min3(ll x,ll y,ll z) {return min(min(x,y),z);}
const ll M=2e5+10,M2=1e6+10,mod=1e9+7,inf=1e17+10;

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	ll a[2];
	cin >> a[0] >> a[1] >> a[2];
	sort(a,a+3);
	if(a[0]==a[1] && a[0]==5 && a[2]=7) cout << "YES";
	else cout << "NO";
	return 0;
}
/* The judge is never wrong! Your code is buggy 
   Look for:
 * * Read the problem carefully.
 * * Don't forget to sort(), mod, ll!!!!
 * * Initial value = +/- infinity instead of zero!!!
 * * an easier and alternate approach
 * * read the problem statement carefully
 * * if concept is correct and still WA, try with a different implementation
 * * special cases (n=1?)
 * * overflow (ll vs int?)
 * * array bounds
 * * if you have no idea just guess the appropriate well-known algorithm instead of doing nothing :/
 */

Compiler output:
a.cc: In function 'int main()':
a.cc:34:34: error: lvalue required as left operand of assignment
   34 |         if(a[0]==a[1] && a[0]==5 && a[2]=7) cout << "YES";
      |            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: could not convert 'vec.std::vector<int>::operator=(std::initializer_list<int>{((const int*)(& const int [3]{7, 5, 5})), 3})' from 'std::vector<int>' to 'bool'
   12 |                 if (vec = {7, 5, 5}) {
      |                     ~~~~^~~~~~~~~~~
      |                         |
      |                         std::vector<int>
a.cc:16:17: error: 'even' was not declared in this scope
   16 |                 even if {
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#define all(x) (x).begin(),(x).end()

const int MOD = 1e9 + 7;

void solve(){

}
int main(){
    vector<int> a(3);
    for (int i = 0; i < 3; i++){
        cin >> a[i];
    }
    sort(a);
    if (a[0] == 5 && a[1] == 5 && a[2] == 7){
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: no matching function for call to 'sort(std::vector<int>&)'
   30 |     sort(a);
      |     ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:9:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

int main (){
  string input;for(int i=0;i<3;i++){cin>>input[i];}
  bool five =false, seven = false;
  int fcnt = 0;
  for(int i=0; i<3; i++){
    if(s[i] == '7'){
      seven =true;
      }
    else if(s[i] == '5') {
      fcnt += 1;
      }
  
    if(fcnt==2){
      five =true;
      }
    }
  if(five==true&&seven==true)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 's' was not declared in this scope
   10 |     if(s[i] == '7'){
      |        ^