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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int A=1;A<=9;A++) { 
for(int B=1;B<=9;B++){
if(A*B==n){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
}
}
s

Compiler output:
Main.java:17: error: reached end of file while parsing
s
^
1 error
Language: C++

#include <bits/stdc++.h>
         
using namespace std;
        
#define F first
#define S second
#define sqr(x) x*x
#define pb push_back
#define mp make_pair
#define long long ll
#define sz(x) ((int) (x).size())
#define all(x) (x).begin(), (x).end()
#define allr(x) (x).rbegin(), (x).rend()
#define rep(i, a, n) for(int i = (a); i < (n); ++i)
#define repr(i, a, n) for(int i = (n); i >= (a); --i)
#define repit(i, n) for(auto it = n.begin(); it != n.end(); ++it)
       
     
int main(){ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int n;
    cin >> n;
    for(int i = 0; i < 10; ++i){
        for(int j = i; j < 10; ++i){
            if(i * j == n){
                cout << "Yes";
                exit(0);
            }
        }
    }
    cout << "No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:17: error: expected ';' before '}' token
   30 |     cout << "No"
      |                 ^
      |                 ;
   31 | }
      | ~
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        for(int a=0; 1<=a && a<=9; a++) {
            for(int b=0; 1<=b && b<=9; b++) {
                if(a*b == n) {
                    System.out.println(yes);
                }else{
                    System.out.println(no);
                }
            }
        }
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
                    System.out.println(yes);
                                       ^
  symbol:   variable yes
  location: class Main
Main.java:12: error: cannot find symbol
                    System.out.println(no);
                                       ^
  symbol:   variable no
  location: class Main
2 errors
Language: C++

#include <stdio.h>
#include <set>
int main()
{
  set<int> nums;
  int n;
  for (int i=1; i<=9; ++i)
    for(int j=1; j<=9; ++j)
     nums.insert(i*j);
  
  scanf("%d",&n);
  
  if (nums.find(n) == nums.end())
   printf("No\n");
  else
    printf("Yes\n");
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'set' was not declared in this scope
    5 |   set<int> nums;
      |   ^~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/set:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_set.h:96:11: note:   'std::set'
   96 |     class set
      |           ^~~
/usr/include/c++/14/set:87:13: note:   'std::pmr::set'
   87 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
a.cc:5:7: error: expected primary-expression before 'int'
    5 |   set<int> nums;
      |       ^~~
a.cc:9:6: error: 'nums' was not declared in this scope
    9 |      nums.insert(i*j);
      |      ^~~~
a.cc:13:7: error: 'nums' was not declared in this scope
   13 |   if (nums.find(n) == nums.end())
      |       ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a=9;
  int b=a;
  while(a>1)
  {
    if(n%a==0)
    {
      b=n/a;
      break;
    }
    a--;
  }
  if(b<10)
    cout<<"Yes";
  else
    cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'n' was not declared in this scope
    9 |     if(n%a==0)
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int x;
  cin>>x;
  if(x <= 81) cout<<"Yes";
  else cout<<"No"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'return'
    7 |   else cout<<"No"
      |                  ^
      |                  ;
    8 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
 
int main() {
    int a;
    cin >> a;

    for (auto i = 1; i < 10; ++i) {
        for (auto j = 1; j < 10; ++j) {
            if (i * j == a) {
                cout << "Yes" << endl;
                return 0;
            }
    }
    cout << "No" << endl;

}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
if(N!=50){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int  A=sc.nextInt();
int B=sc.nextInt();
int N=A*B;
if(n<=10){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}

Compiler output:
Main.java:8: error: cannot find symbol
if(n<=10){
   ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    for(int i = 1; i <= 9; i++){
      for(int j = 1; j <= 9; j++){
        int kake = i * j;
        if(kake == n){
          count++;
        }
      }
    }
    if(count == 0){
      System.out.println("No");
    }else if{
      System.out.println("Yes");
    }
  }
}
    

Compiler output:
Main.java:18: error: '(' expected
    }else if{
            ^
1 error
Language: C

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

int main(){
	int i,j=0,k,n,m;

	scanf("%d",&k);

	if(0<k && k<82){
		for(i=1; i<10; i++){
			n=k%i;
			m=k/i;
			if(n==0 && m<10){
				printf("Yes\n");
				j=1
				break;
			}
		}
	}
	if(j=0){
		printf("No\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:15:36: error: expected ';' before 'break'
   15 |                                 j=1
      |                                    ^
      |                                    ;
   16 |                                 break;
      |                                 ~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); ++i)
typedef long long ll;


int main(){
    int N; cin >> N;
    for(int i = 1; i < 10; ++i){
        if(N % i == 0){
            cout << "Yes" << endl;
            return;
        }
    }
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |             return;
      |             ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define ALL(v) v.begin(),v.end()
typedef long long ll;
int main() {
  int n;
  string s = "No";
  cin >> n;
  for(int i=1; i<=9; i++){
    for(int j=1; j<=9; j++){
    	if(ij==n){
        	s= "Yes";
        }
    }
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'ij' was not declared in this scope; did you mean 'j'?
   13 |         if(ij==n){
      |            ^~
      |            j
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vc= vector<char>;
#define REP(i,x,n) for(int i=x; i<n; i++)
#define rep(i,n) REP(i,0,n)
#define all(x) x.begin(), x.end()

int main(){
  int n;
  bool ans=0;
  cin >> n;

  rep(i,1,10){
    rep(j,i,10){
      if(i*j==n){
        ans= 1;
        break;
      }
    }
  }
  if(ans){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc:17:13: error: macro "rep" passed 3 arguments, but takes just 2
   17 |   rep(i,1,10){
      |             ^
a.cc:9:9: note: macro "rep" defined here
    9 | #define rep(i,n) REP(i,0,n)
      |         ^~~
a.cc:18:15: error: macro "rep" passed 3 arguments, but takes just 2
   18 |     rep(j,i,10){
      |               ^
a.cc:9:9: note: macro "rep" defined here
    9 | #define rep(i,n) REP(i,0,n)
      |         ^~~
a.cc: In function 'int main()':
a.cc:17:3: error: 'rep' was not declared in this scope
   17 |   rep(i,1,10){
      |   ^~~
Language: C++

#include <iostream>
using namespace std;
int N, i, m;
int main () {
cin >> N;
if (N > 81 && N < 1) {
    cout << "No" << endl;
} else if (N == 50) { 
    cout << "No" << endl;
} else if (N == 60){
    cout << "No" << endl;
} else if (N == 70){
    cout << "No" << endl;
} else if (N == 80){
    cout << "No" << endl;
} else if (N == 55){
    cout << "No" << endl;
} else if (N == 65){
    cout << "No" << endl;
} else if (N == 75){
    cout << "No" << endl;
} else if (N == 66){
    cout << "No" << endl;
} else if (N == 78){
    cout << "No" << endl;
} else if (N == 77){
    cout << "No" << endl;
} else if (N == 22){
    cout << "No" << endl;
} else if (N == 33){
    cout << "No" << endl;
} else if (N == 44){
    cout << "No" << endl;
}else if ( {
    cout << "Yes" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:12: error: expected primary-expression before '{' token
   34 | }else if ( {
      |            ^
a.cc:34:11: error: expected ')' before '{' token
   34 | }else if ( {
      |          ~^~
      |           )
a.cc:37:1: error: expected primary-expression before '}' token
   37 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int N;
int main () {
cin >> N;
if (N > 81 && N < 1 && N=50 && N=60 && N=70 && N=80) {
    cout << "No" << endl;
} else { 
    cout << "Yes" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:45: error: lvalue required as left operand of assignment
    6 | if (N > 81 && N < 1 && N=50 && N=60 && N=70 && N=80) {
      |                                          ~~~^~~~
Language: C++

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

int N,a,b;

int main () {
	cin >> N;
	for (int i=a;i<=b;i++) {
		if (a<=9 && b<=9 && N=a*b) {
			cout << "Yes" << endl;
		} else {
			cout << "No" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: lvalue required as left operand of assignment
    9 |                 if (a<=9 && b<=9 && N=a*b) {
      |                     ~~~~~~~~~~~~~^~~~
Language: C++

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

int main () {
    long long n,k;
    cin>>n;
    k = sqrt(n);
    
    for(long long i=k;i>=1;i--){
        if(i * (n/i) == n){
            cout<<i+(n/i)-2;
            return 0;
        }
    }


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

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

int main( ){
    int mat[110]
    
    memset(mat, 0, sizeof(mat));
    for(int i=1;i<=9;i++)
        for(int j=1;j<=9;j++)
            mat[i*j] = 1;
    
    int k
    cin>>k;
    if(mat[k])
        cout<<"Yes";
    else
        cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'memset'
    8 |     memset(mat, 0, sizeof(mat));
      |     ^~~~~~
a.cc:11:13: error: 'mat' was not declared in this scope
   11 |             mat[i*j] = 1;
      |             ^~~
a.cc:14:5: error: expected initializer before 'cin'
   14 |     cin>>k;
      |     ^~~
a.cc:15:8: error: 'mat' was not declared in this scope
   15 |     if(mat[k])
      |        ^~~
a.cc:15:12: error: 'k' was not declared in this scope
   15 |     if(mat[k])
      |            ^
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int a,i,j,c=0;
    scanf("%d",&a);
    for(ii=1;i<=9;i++)
    {
            for(j=1;j<=9;j++)
{
 
        if(i*j==a)
        {
         c++;
        }
}}
 
    if(c>0)
    printf("Yes");
    else
    printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'ii' undeclared (first use in this function); did you mean 'i'?
    7 |     for(ii=1;i<=9;i++)
      |         ^~
      |         i
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;

int main(){
  int a;
  cin >> a;
  bool flag = false;
    for(int i=1; i<=9; i++){
      if(a%i == 0 && (a/i >=1 && a/i <=9) &&){
        flag = true;
        cout << "Yes" << endl;
        break;
      }
    }
  if(!flag) cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: expected primary-expression before ')' token
   10 |       if(a%i == 0 && (a/i >=1 && a/i <=9) &&){
      |                                             ^
Language: C++

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

int main(int argc, char const *argv[]) {

  int n1, n2 = 0;
  char *m;
  char num1[5];
  m = (fgets(num1, sizeof(num1), stdin));
  sscanf(num1, "%d\n", &n1);

  if(n1 >= 82){
    n2 = 1
  }else{
    for (int i = 1; i < 10; i++) {
      for (int j = 1; j < 10; j++) {
        if ( (i * j) == n1) {
          n2 = 1;
          break;
        }
      }
      if (n2 == 1) break;
    }
  }

  if (n2 == 1) {
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:13:11: error: expected ';' before '}' token
   13 |     n2 = 1
      |           ^
      |           ;
   14 |   }else{
      |   ~
Language: C++

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

int main()
{
  int n, flag = 1 ;
  cin >> n ;
  for(int i = 1 ; i <= n ; i++)
  {
    if(n % i == 0 && i <= 9)
    {
      if(n / i <= 9)
      {
        flag = 0 ;
        cout << "Yes" ;
        break ;
      }
    }
  }
  if(flag)
    cout << "No" ;
  return 0 ;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Yes" ;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << "No" ;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  
 cin>>n;
  
 for(int a=1;a<=9;a++){
   for(int b=1;b<=9;b++){
 	if(a*b==n){
 		cout<<"Yes"<<endl;
 	return 0;
 	}
 }
 cout<<"No"<<endl;
 }

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

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

int main(){
  cin>>N;

  if(N%2==0){
    cout<<"Yes"<<endl;
  }
  else if(N%3==0){
    cout<<"yes"<<endl;
  }
  else if(N%5==0){
    cout<<"yes"<<endl;
  }
  else if(N%7==0){
    cout<<"yes"<<endl;
  }
  else if(N%9==0){
    cout<<"yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'N' was not declared in this scope
    5 |   cin>>N;
      |        ^
Language: C++

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

cin>>N;

if(N%2==0){
  cout<<"Yes"<<endl;
}
else if(N%3==0){
  cout<<"yes"<<endl;
}
else if(N%5==0){
  cout<<"yes"<<endl;
}
else if(N%7==0){
  cout<<"yes"<<endl;
}
else if(N%9==0){
  cout<<"yes"<<endl;
}
else{
  cout<<"No"<<endl;
}


Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>N;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(N%2==0){
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else if(N%3==0){
      | ^~~~
a.cc:12:1: error: expected unqualified-id before 'else'
   12 | else if(N%5==0){
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else if(N%7==0){
      | ^~~~
a.cc:18:1: error: expected unqualified-id before 'else'
   18 | else if(N%9==0){
      | ^~~~
a.cc:21:1: error: expected unqualified-id before 'else'
   21 | else{
      | ^~~~
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
  int n;
  cin>>n;
  if(n<10)
    cout<<"Yes"<<endl;
  else
  {
  	for(int i=9;i>0;i--)
    {
      if(n%i==0)
      {
        if((n/i)<=9)
          cout<<"Yes"<<endl;
        else{
          cout<<"No"<<endl;
        }
        break;
      }
    }
  }
  return 0;
}

  
}

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

#include<iostram>
using namespace std;
bool isPrime(int n)
{
  for(int i=2;i<=sqrt(n);i++)
  {
    if(n%i==0)
      return false;
  }
  return true;
}
int main()
{
  int n;
  cin>>n;
  if(n<=9)
    cout<<"Yes"<<endl;
  else if(n<=81)
  {
    if(isPrime(n))
      cout<<"No"<<endl;
    else
      cout<<"Yes"<<endl;
  }
  return 0;
}

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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int n=in.nextInt();
            for (int i = 1; i <=9 ; i++) {
                if ((n%i)==0 && (n/i)>0 && (n/i)< 10){
                    out.println("Yes");
                    return;
                }
            }
            out.println("NO");
        }
    }


    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }

}


Compiler output:
Main.java:15: error: cannot find symbol
        TaskA solver = new TaskB();
        ^
  symbol:   class TaskA
  location: class Main
1 error
Language: Java

Scanner sc = new Scanner(System.in);
		int input1 = sc.nextInt();
		sc.close();

		List<Integer> list = new ArrayList<Integer>();
		int num = 0;
		int count = 0;
		for (int i = 1; i <= 9 ; i++ ) {
			for (int j = 1; j <= 9 ; j++ ) {
				num = i*j;
				list.add(num);
			}
		}

		for (int k=0; k < list.size(); k++) {
			if (input1 == list.get(k)) {
				System.out.println("Yes");
				count ++;
				break;
			}
		}
		if(count == 0) {
			System.out.println("No");
		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
		sc.close();
		^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		                ^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		                         ^
Main.java:9: error: class, interface, enum, or record expected
			for (int j = 1; j <= 9 ; j++ ) {
			                ^
Main.java:9: error: class, interface, enum, or record expected
			for (int j = 1; j <= 9 ; j++ ) {
			                         ^
Main.java:11: error: class, interface, enum, or record expected
				list.add(num);
				^
Main.java:12: error: class, interface, enum, or record expected
			}
			^
Main.java:15: error: class, interface, enum, or record expected
		for (int k=0; k < list.size(); k++) {
		              ^
Main.java:15: error: class, interface, enum, or record expected
		for (int k=0; k < list.size(); k++) {
		                               ^
Main.java:18: error: class, interface, enum, or record expected
				count ++;
				^
Main.java:19: error: class, interface, enum, or record expected
				break;
				^
Main.java:20: error: class, interface, enum, or record expected
			}
			^
Main.java:24: error: class, interface, enum, or record expected
		}
		^
15 errors
Language: Java

Scanner sc = new Scanner(System.in);
		int input1 = sc.nextInt();
		sc.close();

		List<Integer> list = new ArrayList<Integer>();
		int num = 0;
		int count = 0;
		for (int i = 1; i <= 9 ; i++ ) {
			for (int j = 1; j <= 9 ; j++ ) {
				num = i*j;
				list.add(num);
			}
		}

		for (int k=0; k < list.size(); k++) {
			if (input1 == list.get(k)) {
				System.out.println("Yes");
				break;
			}
		}
		System.out.println("No");

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
		sc.close();
		^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		                ^
Main.java:8: error: class, interface, enum, or record expected
		for (int i = 1; i <= 9 ; i++ ) {
		                         ^
Main.java:9: error: class, interface, enum, or record expected
			for (int j = 1; j <= 9 ; j++ ) {
			                ^
Main.java:9: error: class, interface, enum, or record expected
			for (int j = 1; j <= 9 ; j++ ) {
			                         ^
Main.java:11: error: class, interface, enum, or record expected
				list.add(num);
				^
Main.java:12: error: class, interface, enum, or record expected
			}
			^
Main.java:15: error: class, interface, enum, or record expected
		for (int k=0; k < list.size(); k++) {
		              ^
Main.java:15: error: class, interface, enum, or record expected
		for (int k=0; k < list.size(); k++) {
		                               ^
Main.java:18: error: class, interface, enum, or record expected
				break;
				^
Main.java:19: error: class, interface, enum, or record expected
			}
			^
13 errors
Language: C

#include <stdio.h>
int main() {
  int n;
  scanf("%d", &n);
  for (a = 1; a <= 9; a++) {
    for (b = 1; b <= 9; b++) {
      if (a*b == n) {
        puts("Yes");
        return 0;
      }
    }
  }
  puts("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: 'a' undeclared (first use in this function)
    5 |   for (a = 1; a <= 9; a++) {
      |        ^
main.c:5:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: error: 'b' undeclared (first use in this function)
    6 |     for (b = 1; b <= 9; b++) {
      |          ^
Language: C++

#include <iostream>
using namespaces std;
int main()
{
  int a;
  cin>>a;
  
  for(int i=1;i<10;++i)
  {
    if(a/i<10 && a%i==0)
    {
cout<<"Yes";
      return 0;
  }
  }  
   cout<<"No";
    return 0;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces 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;
      |   ^~~
      |   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:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<"Yes";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |    cout<<"No";
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

    #include<stdio.h>
    #include<string.h>
    #include<math.h>
    int main(void)
    {
      int a,s,d,f,g,h,i,j;
      S=0;
      scanf("%d",&a);
      for(i=1;i<=9;i++){
        if(a%i==0&&a/i<=9){
          s=1;
          break;
        }
      }
      if(s==0) printf("No\n");
      else if(s==1) printf("Yes\n");
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'S' was not declared in this scope
    7 |       S=0;
      |       ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
int n,i,c=0;
cin>>n;
for(i=1;i<=9;i++){

    if((n%i==0)&&(n/i<=9))
    {
        c=c+1;

        break;
    }
    else
        continue;

}
if(c==0)
        cout<<"No"<<endl;
else
        cout<<"Yes"<<endl;


return 0;

}


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

#include<stdio.h>
int main()
{
int n,a,i;
scanf("%d",&n);
for(i=1;i<10;i++){
a=n/i;
if(a<10 && (a*i)==n){
  printf("Yes");
}else{
  printf("No");
}
return 0;
}


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

#include <iostream>
main(){
  int N;
  cin >> N;
  for(int i=1; i<10; i++){
    int dev = N/i;
    if(N%i==0 && dev<10){
	  cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}

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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> N;
      |   ^~~
      |   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:8:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |           cout << "Yes";
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << "No";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  vector<vector<int>> vec(9, vector<int>(9,o));
  for (int i = 0; i < 9; i++){
    for (int j = 0; j < 9; j++){
      vec.at(i).at(j) = (i + 1) * (j + 1);
    }
  }
  
  bool ans = false;
  for (int i = 0; i < 9; i++){
    for (int j = 0; j < 9; j++){
      if(vec.at(i).at(j) == N){
        ans = true;
        break;
      }
      if(ans){
        break;
      }
    }
  }
  
  if(ans == true){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:44: error: 'o' was not declared in this scope
    8 |   vector<vector<int>> vec(9, vector<int>(9,o));
      |                                            ^
Language: Java

import java.util.Scanner;
public class Main {

    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	// 入力
    	int n = sc.nextInt();
    	Sring ans = "No";

    	for(int i = 1; i <=  9; i++){
    		for(int k = 1; k <= 9; k++){
    			if (n == i * k){
    				ans = "Yes";
    				break;
    			}
    		}
    	}


    	// 出力
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
    	Sring ans = "No";
    	^
  symbol:   class Sring
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class main {

    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        boolean b=false;

        int x=s.nextInt();
        for(int i=1;i<10;i++){
            for(int j=1;j<10;j++){
                if(i*j==x){b=true;}
                    
            }
            
        }
        
        if(b=true){System.out.println("YES");}
        else{System.out.println("NO");}


 

        }
        
    }
    

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;

public class PS {

    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        boolean b=false;

        int x=s.nextInt();
        for(int i=1;i<10;i++){
            for(int j=1;j<10;j++){
                if(i*j==x){b=true;}
                    
            }
            
        }
        
        if(b=true){System.out.println("YES");}
        else{System.out.println("NO");}


 

        }
        
    }
    

Compiler output:
Main.java:3: error: class PS is public, should be declared in a file named PS.java
public class PS {
       ^
1 error
Language: Java

public class main {

    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        boolean b=false;

        int x=s.nextInt();
        for(int i=1;i<10;i++){
            for(int j=1;j<10;j++){
                if(i*j==x){b=true;}
                    
            }
            
        }
        
        if(b=true){System.out.println("YES");}
        else{System.out.println("NO");}


 

        }
        
    }

Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
        Scanner s=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class main
Main.java:4: error: cannot find symbol
        Scanner s=new Scanner(System.in);
                      ^
  symbol:   class Scanner
  location: class main
3 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int a = sc.nextInt();
      	String out = "No";
      	for(int i = 1; i<10; i++){
          if(a%i == 0 && a/i < 10){
			out = "Yes"
              break;
          }
        }
      	System.out.println(out);
    
    }




}

Compiler output:
Main.java:9: error: ';' expected
			out = "Yes"
			           ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;cin>>a;
  for(int i=1;i<=9;i++)
  {
    if(n%i==0)
    {
      int temp=n/i;
      if(temp>=1 && temp<=9) {cout<<"Yes"; return 0;}
    }
  }
  cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'n' was not declared in this scope
    8 |     if(n%i==0)
      |        ^
Language: C++

    #include <iostream>
    using namespace std;
     
    int main()
    {
      int n;
      for(i=1;i<10;i++)
      {
        if(n%i==0){
		if(n/i<=9 and n/i>0)
          cout<<"YES"<<endl;
        else
          cout<<"NO"<<endl;}
      return 0;
      
      
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'i' was not declared in this scope
    7 |       for(i=1;i<10;i++)
      |           ^
a.cc:17:6: error: expected '}' at end of input
   17 |     }
      |      ^
a.cc:5:5: note: to match this '{'
    5 |     {
      |     ^
Language: C++

#include<stdio.h>
int main(void) {
	int i, j, x, n;
	scanf_s("%d", &n);
	if (1 <= n && n <= 100) {
		for (i = 1; i < 10; i++) {
			for (j = 1; j < 10; j++) {
				x = i * j;
				if (x == n) {
					printf("yes");
					break;
				}
			}
			if (x == n)break;
		}
		if (x != n) {
			printf("no");
		}
	}
	else
		printf("範囲外");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main(void) {
	int i, j, x, n;
	scanf_s("%d", &n);
	for (i = 1; i < 10; i++) {
		for (j = 1; j < 10; j++) {
			x = i * j;
			if (x == n) {
				printf("yes");
				break;
			}
		}
		if (x == n)break;
	}
	if (x != n) {
		printf("no");
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
  
  int N;
  cin >> N;
  
  for(int i = 0;i <= 9;i ++) {
    for(int j = 0;j <= 9;j ++) {
      
      if(N == i*j) {
        cout << "Yes" << endl;
      return;
        cout << "No" << endl;
        return;
      
      }
    }
  }
}
      
        
      
    
  
  
    



Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
a.cc:15:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |         return;
      |         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  
  int N;
  cin >> N;
  
  for(int i = 0;i <= 9;i ++) {
    for(int j = 0;j <= 9;j ++) {
      
      if(N == i*j) {
        cout << "Yes" << endl;
      }
    }
  }
  cout << "NO" << endl;
}
      
        
      
    
  
  
    
}


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

#include<bits/stdc++.h>
using namespace std;
int main() {
  
  int N;
  cin >> N;
  
  for(int i = 0;i <= 9;i ++) {
    for(int i = 0;i <= 9;i ++) {
      
      if(N == i) {
        cout << "Yes" << endl;
      }
      else {
        cout << "No" << endl;
      }
    }
  }
  
    

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

#include <iostream>
using namespace std; 
double n; 
int main()
{
  	cin >> n; 
  	if (n > 81)
    {
      	cout << "No"; 
      	return 0; 
    }
  	for (int i = 0; i <= 9; ++i)
    {
      	if (n % i == 0)
        {
          	if (n / i <= 9){
              	cout << "Yes"; return 0; }
        }
    }
  cout << "No"; 
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |         if (n % i == 0)
      |             ~ ^ ~
      |             |   |
      |             |   int
      |             double
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
using namespace std;

int main(){
  int n;
  cin >> n;
  bool ok = false;
  for(int i=1;i<=9;i++){
    for(int j=1;j<=9;j++){
      if(n==i*j) ok = ture;
    }
  }
  if(ok) puts("Yes");
  else puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'ture' was not declared in this scope
   12 |       if(n==i*j) ok = ture;
      |                       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int main(){
  int N;
  cin >> N;
  bool nine = false;
  while(!nine){
  	for(int i=1;i<10;i++){
      for(int j=1;j<10;j++){
        if(N==i*j){
          nine = true;
          break;
        }
      }
      if(nine){
        break;
      }
    }
  }
          
  }
  if(nine){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:23:3: error: expected unqualified-id before 'if'
   23 |   if(nine){
      |   ^~
a.cc:26:3: error: expected unqualified-id before 'else'
   26 |   else {
      |   ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: Java

#include<stdio.h>

int main(void){
	int table[9][9];
	for(int i = 1; i <= 9; i++){
		for(int j = 1; j <= 9; j++){
			table[i-1][j-1] = i * j;
		}
	}
	int N = 0;
	scanf("%d", &N);
	for(int i = 0; i < 10; i++){
		for(int j = 0; j < 10; j++){
			if(table[i][j] == N){
				printf("Yes\n");
				return 0;
			}
		}
	}
	printf("No\n");
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
	for(int i = 1; i <= 9; i++){
	^
Main.java:5: error: class, interface, enum, or record expected
	for(int i = 1; i <= 9; i++){
	               ^
Main.java:5: error: class, interface, enum, or record expected
	for(int i = 1; i <= 9; i++){
	                       ^
Main.java:6: error: class, interface, enum, or record expected
		for(int j = 1; j <= 9; j++){
		               ^
Main.java:6: error: class, interface, enum, or record expected
		for(int j = 1; j <= 9; j++){
		                       ^
Main.java:8: error: class, interface, enum, or record expected
		}
		^
Main.java:11: error: class, interface, enum, or record expected
	scanf("%d", &N);
	^
Main.java:12: error: class, interface, enum, or record expected
	for(int i = 0; i < 10; i++){
	^
Main.java:12: error: class, interface, enum, or record expected
	for(int i = 0; i < 10; i++){
	               ^
Main.java:12: error: class, interface, enum, or record expected
	for(int i = 0; i < 10; i++){
	                       ^
Main.java:13: error: class, interface, enum, or record expected
		for(int j = 0; j < 10; j++){
		               ^
Main.java:13: error: class, interface, enum, or record expected
		for(int j = 0; j < 10; j++){
		                       ^
Main.java:16: error: class, interface, enum, or record expected
				return 0;
				^
Main.java:17: error: class, interface, enum, or record expected
			}
			^
Main.java:21: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:22: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

import java.util.Scanner;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean flag = false;


		if(N >= 1 && N<= 81)
		{
			for(int i = 1; i<=9; i++)
			{
				if( ((N%i) == 0) && ((N/i) <= 9))
					flag = true;
                           }


		}

		if(flag == true)
			System.out.println("Yes");
		else
			System.out.println("No");
		}
	}

}

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



import java.util.Scanner;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		boolean flag = false;

			int N = sc.nextInt();

		if(N >= 1 && N<= 81)
		{
			for(int i = 1; i<=9; i++)
			{
				if( ((N%i) == 0) && ((N/i) <= 9))
					flag = true;
				}

			}
		else
			System.out.println("No");

		if(flag == true)
			System.out.println("Yes");
		}
	}

}

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

import java.util.Scanner;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		boolean flag = false;

			int N = sc.nextInt();

		if(N >= 1 && N<= 81)
		{
			for(int i = 1; i<=9; i++)
			{
				if( ((N%i) == 0) && ((N/i) <= 9))
					flag = true;

			}
		else
			System.out.println("No");

		if(flag == true)
			System.out.println("Yes");
		}
	}

}

Compiler output:
Main.java:21: error: 'else' without 'if'
		else
		^
1 error
Language: Java

import java.util.*;

public class main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		boolean flag = false;


		if(N >=1 && N<=81)
		{
			for(int i = 1; i<=9; i++)
			{
				if( ((N%i) == 0) && ((N/i) <= 9) )
					flag = true;
			}
		}
		else
			System.out.println("No");

		if(flag == true)
			System.out.println("Yes");
	}
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main
       ^
1 error
Language: Java

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

		int counter = 0;
		for(int i = 1; i<=9; i++)
		{
			if(a%i == 0)
				counter++;

		if(a == 100)
		{
			System.out.println("No");
		}
		else if(counter >= 2 || Math.sqrt(a)%1 == 0)
		{
			System.out.println("Yes");
		}
		else
			System.out.println("No");
	}
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        boolean divisible = false;

        for(int i = 9; i > 1; i--) {
            double divided = N/i;
            int count = 0;
            if(N%1 == 0 && divided >= 1 && divided <= 9) {
                count++;
                if(count == 2)
                  divisible = true
            }
        }

        if(divisible) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
}

    }
}

Compiler output:
Main.java:18: error: ';' expected
                  divisible = true
                                  ^
1 error
Language: C++

#include<iostream>
using namespace std;
int isPrime(int x);
int main()
{
  int n=0;
  cin>>n;
  if(n>0 && n<=81 && isPrime(n)==0)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  return 0;
}
int isPrime(int x)
{
  for(int i=2;i<x;i++)
  {
    if(x%i==0)
    {
      flag++;
      break;
    }
    
  }
if(flag==0)
  return 1;
  else 
    return 0; 
}


Compiler output:
a.cc: In function 'int isPrime(int)':
a.cc:20:7: error: 'flag' was not declared in this scope
   20 |       flag++;
      |       ^~~~
a.cc:25:4: error: 'flag' was not declared in this scope
   25 | if(flag==0)
      |    ^~~~
a.cc:29:1: warning: control reaches end of non-void function [-Wreturn-type]
   29 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
  int n,i,flag=0;
  scanf("%d",&n);
  for(i=1;i<=9;i++)
  {
    for(j=1;j<=9;j++)
    {
  	if(n==i*j)
    flag = 1;
    }
  }
  if(flag==1)
    printf("Yes");
  else 
    printf("No");
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'j' undeclared (first use in this function)
    8 |     for(j=1;j<=9;j++)
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
  int A;
  cin >> A;
  
  for(int a=0; a< 9; a++){
    for(int b=0; b<9; b++){
    	if(a*b==A){
      	cout << "YES" << endl;
   		 }
    }
    
     if(a*b==A){
      cout << "YES" << endl;
    }
    else{
      cout << " NO " << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'b' was not declared in this scope
   15 |      if(a*b==A){
      |           ^
Language: C++

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

int main(){
  int A;
  cin >> A;
  
  for(int a=0; a< 9; a++){
    for(int b=0; b<9; b++){
    if(a*b==A){
      cout << "YES" << endl;
    }
    
    }
    else{
      cout << " NO " << endl;
    }
  }
}


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

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define in(j,n) for(j=0;j<n;j++)
#define inp(j,n) for(j=1;j<=n;j++)
#define lo(i,st,n) for(i=st;i<n;i++)
#define pb push_back
#define csbits(n) __builtin_popcount(n)
int main()
{
  ll i,j,n;
  cin>>n;
  inp(i,( ll )sqrt(n))
  {
    if(i>9)
      break;
    if(n%i==0)
    {
      ll u=n/i;
      if(u<10)
      {
        cout<<"Yes"<<endl;
        return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
int main()
{
	ll n;
  	cin >> n;
  	for(int i=1;i<=9;i++)
    {
      ll x;
      if(n%i==0)
        x=n/i;
      for(int j=1;j<=9;j++)
      {
        if(x%i==0)
        {
          x=x/i;
		  if(x==1)
          {
            cout << "Yes";
            break;
          }
       }
    }
  	
}

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

#include <iostream>
int main(){
  int n;
  cin >> n;
  
  for(int i = 1; i < 10; i++){
    if(!(n % i)){
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> n;
      |   ^~~
      |   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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << "Yes";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << "No";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <stdio.h>

int main()
{
  int table[9][9];
  int a, b, i, j;
  scanf("%d", &a);
  b= 0;
  for (i=0;i<9;i++){
	for (j=0;j<9;j++){
      if ( a== (i+1)*(j+1)){
        print("YES\n");
        b = 1;
        break;
      }
    }
	if (a==(i+1)*(j+1)){
	break;
    }
  }
  if (b==0){
    printf("NO\n");
  }
  return 0;
  
  }
  
  


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

#include <stdio.h>

int main()
{
	int N,a;
	float b;
	scanf_s("%d", &N);
		for (int i = 1; i <= 9; i++)
		{
			a = N % i;
			b = N / i;
			if (a == 0)
			{
				if (b <= 9)
				{
					printf("Yes");
					return 0;
				}
			}
		}
			printf("No");
			return 0;
}

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