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

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

int main() {
  int N;
  cin >> N;
  if(N < 10 || (N%2 ==0 && N/2 < 10) || (N%3 ==0 && N/3 < 10) || (N%4 ==0 && N/4 < 10) || (N%5 ==0 && N/5 < 10) || (N%6 ==0 && N/6 < 10) || (N%7 ==0 && N/7 < 10) || (N%8 ==0 && N/8 < 10) || (N%9 ==0 && N/9 < 10){
    cout << "Yes" << endl;
  }
     else {
       cout << "No" << endl;
     }
     
     

Compiler output:
a.cc: In function 'int main()':
a.cc:7:212: error: expected ')' before '{' token
    7 |   if(N < 10 || (N%2 ==0 && N/2 < 10) || (N%3 ==0 && N/3 < 10) || (N%4 ==0 && N/4 < 10) || (N%5 ==0 && N/5 < 10) || (N%6 ==0 && N/6 < 10) || (N%7 ==0 && N/7 < 10) || (N%8 ==0 && N/8 < 10) || (N%9 ==0 && N/9 < 10){
      |     ~                                                                                                                                                                                                              ^
      |                                                                                                                                                                                                                    )
a.cc:12:7: error: expected statement at end of input
   12 |      }
      |       ^
a.cc:12:7: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  N;
  cin >> N;
  if(N < 10 || (N%2 ==0 && N/2 < 10) || (N%3 ==0 && N/3 < 10) || (N%4 ==0 && N/4 < 10) || (N%5 ==0 && N/5 < 10) || (N%6 ==0 && N/6 < 10) || (N%7 ==0 && N/7 < 10) || (N%8 ==0 && N/8 < 10) || (N%9 ==0 && N/9 < 10){
    cout << "Yes" << endl;
  }
     else {
       cout << "No" << endl;
     }
     }
     


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'N' was not declared in this scope
    5 |   N;
      |   ^
a.cc:7:212: error: expected ')' before '{' token
    7 |   if(N < 10 || (N%2 ==0 && N/2 < 10) || (N%3 ==0 && N/3 < 10) || (N%4 ==0 && N/4 < 10) || (N%5 ==0 && N/5 < 10) || (N%6 ==0 && N/6 < 10) || (N%7 ==0 && N/7 < 10) || (N%8 ==0 && N/8 < 10) || (N%9 ==0 && N/9 < 10){
      |     ~                                                                                                                                                                                                              ^
      |                                                                                                                                                                                                                    )
a.cc:13:6: error: expected primary-expression before '}' token
   13 |      }
      |      ^
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; i++){
     if (N == i*j) {
    cout << "Yes" << endl;
  } 
    else {
      cout << "No" <<endl;
    }
  }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'loop1' was not declared in this scope; did you mean 'loop2'?
    7 |       if(loop1*loop2==n){
      |          ^~~~~
      |          loop2
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'p' was not declared in this scope
    5 |   for(int loop=0;loop<=p;loop++){
      |                        ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |       if(a*b==n){
      |          ^
a.cc:7:12: error: 'b' was not declared in this scope
    7 |       if(a*b==n){
      |            ^
Language: C

#include<Stdio.h>
int main(void){
  int n;
  scanf("%d",&n);
  for(int loop=0;loop<=p;loop++){
    for(int loop2=0;loop2<=9;loop2++){
      if(a*b==n){
        printf("Yes");
        return 0;
      }
    }
  }
  printf("No");
  return 0;
}

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

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

int main() {
  int N;
  cin >>N;
  bool asd = false
    
  for(int i=1;i < 10;i++){
    for(int j=1;j < 10;j++){
      if(N == i*j){
        asd = true
      }
    }
  }
  
  if(asd)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=1;i < 10;i++){
      |   ^~~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=1;i < 10;i++){
      |               ^
Language: C

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

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

#include<iostream>

using namespace std;

int main()
{
  int n;
  
  cin>>n;
  
  bool flag=false;
  
  for(int i=1;i<100;i++)
  {
    for(int k=1;k<100;i++)
    {
      if(s==(i*k))
      {
        flag=true;
      }
    }
  }
  
  if(flag)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 's' was not declared in this scope
   17 |       if(s==(i*k))
      |          ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int n;
  
  cin>>n;
  
  bool flag=false;
  
  for(i=1;i<100;i++)
  {
    for(int k=1;k<100;i++)
    {
      if(s==(i*k))
      {
        flag=true;
      }
    }
  }
  
  if(flag)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"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=1;i<100;i++)
      |       ^
a.cc:17:10: error: 's' was not declared in this scope
   17 |       if(s==(i*k))
      |          ^
Language: Java

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                if (i * j == x) {
                    System.out.println("Yes");
                    System.exit(0);

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


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main() {
  int n;
  cin >> n;
  bool a = 0;
  rep(i,10) {
    rep(j,10) {
      if(i*j == n){
         a = 1;
      }
    }
  }
  if(a) {
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<endl;
  }

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

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

int main() {
  int n;
  cin >> n;
  bool a fase;
  rep(i,9) {
    rep(j,9) {
      if(i*j == n){
        bool a ture;
      }
    }
  }
  if(a) {
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected initializer before 'fase'
    8 |   bool a fase;
      |          ^~~~
a.cc:12:16: error: expected initializer before 'ture'
   12 |         bool a ture;
      |                ^~~~
a.cc:16:6: error: 'a' was not declared in this scope
   16 |   if(a) {
      |      ^
Language: C++

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

int main(){
  
  int N;
  cin >> N;
  

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




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

#include<stdio.h>
int main()
{
if(a%2==0 && a<20) printf("Yes");
else if(a%3==0 && a<30) printf("Yes");
else if(a%4==0 && a<40) printf("Yes");
else if(a%5==0 && a<50) printf("Yes");  
else if(a%6==0 && a<60) printf("Yes"); 
else if(a%7==0 && a<70) printf("Yes");
else if(a%8==0 && a<80) printf("Yes");
else (a%9==0 && a<90) printf("Yes");

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'a' was not declared in this scope
    4 | if(a%2==0 && a<20) printf("Yes");
      |    ^
Language: C++

#include <iostream>
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";
		}
	}
	else
		cout << "No";
}

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

#include <iostream>
using namespace std;
 
int main()
{
	int n;
	cin >> n;
	for (int a=1; a <=9; ++a)
	{
		cin >> a;
		for (int b=1; b <=9; ++b)
		{
			cin >> b;
			if (a*b == n)
				cout << "Yes";
		}
	}
	else
		cout << "No";
}

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

#include <iostream>
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";
		return 0;
	}
	else
		cout << "No";
}

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

#include <iostream>
using namespace std;
 
int main()
{
	int n;
	cin >> n;
	for (a=1; a <=9; ++a)for (b=1; b <=9; ++b)
	{
		if (a*b == n)
			cout << "Yes";
		else
			cout << "No";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         for (a=1; a <=9; ++a)for (b=1; b <=9; ++b)
      |              ^
a.cc:8:35: error: 'b' was not declared in this scope
    8 |         for (a=1; a <=9; ++a)for (b=1; b <=9; ++b)
      |                                   ^
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
	int n;
	cin >> n;
	for (a=1; a <=9; ++a)
	{
		for (b=1; b <=9; ++b)
		{
			if (a*b == n)
				cout << "Yes";
			else
				cout << "No";
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         for (a=1; a <=9; ++a)
      |              ^
a.cc:10:22: error: 'b' was not declared in this scope
   10 |                 for (b=1; b <=9; ++b)
      |                      ^
Language: Java

import java.util.Scanner;

public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,tmp;
        boolean flag;
        flag=false;
        n=nextInt();
        tmp=1;
        while(tmp<10){
            if(n%tmp==0){
                if(n/tmp<10){
                    flag=true;
                    break;
                }
            }
            tmp+=1;
        }
        yesNo(flag);
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){0
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
}

Compiler output:
Main.java:31: error: not a statement
    public static String next(){0
                                ^
Main.java:31: error: ';' expected
    public static String next(){0
                                 ^
2 errors
Language: C++

#include <stdio.h>
#include <string.h>
#include <algorithm>

using namespace std;

int main(){
	
	int angka;
	int arr[15][15];
	for (int a=1;a<=9;a++){
		for (int b=1;b<=9;b++){
			arr[a][b] = a*b;
		}
	}
	scanf ("%d",&angka);
	int check = 0;
	for (int a=1;a<=9;a++){
		for (int b=1;b<=9;b++){
			if (arr[a][b] == a){
				check=1;
			}
		}
	}
	
	if (check==1){
		pritnf ("Yes\n");
	}
	else{
		printf ("No\n");
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   27 |                 pritnf ("Yes\n");
      |                 ^~~~~~
      |                 printf
Language: C++

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

bool IsMultiplicationTable(int N){
    bool Multiplication_flg = false;
    for(int i=2;i<10;i++){
        if(N%i==0){
            Multiplication_flg=true;
            break;
        }
    }
}

int main(){
    int N; cin >> N;
    if(IsMultiplicationTable(N)==true){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}

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

#include <iostream>
using namespace std;

int a[10];
 
int main()
{
	int n;
	cin >> n;
	for (int i = 1; i < 10; ++i)
	{	
		cin >> a[i];
	}
	int j = 0;
	for (int i = 1; i < 10; ++i)
	{
		j = j + a[i]
	}
	if (n == j*j)
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected ';' before '}' token
   17 |                 j = j + a[i]
      |                             ^
      |                             ;
   18 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;

int a[10];
 
int main()
{
	int n;
	cin >> n;
	for (int i = 1; i < 10; ++i)
	{	
		cin >> i;
	}
	if (n == i*i)
		cout << "Yes";
	else
		cout << "No";
}

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

#include <iostream>
using namespace std;

int a[10];
 
int main()
{
	int n;
	cin >> n;
	int b;
	for (int i = 1; i < 10; ++i)
	{	
		cin >> a[i];
		b = a[i]
	}
	if (n == b*b)
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected ';' before '}' token
   14 |                 b = a[i]
      |                         ^
      |                         ;
   15 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;

int a[10];
 
int main()
{
	int n;
	cin >> n;
	for (int i = 1; i < 10; ++i)
	{	
		cin >> a[i];
	}
	if (n == a[i] * a[i])
		cout << "Yes";
	else
		cout << "no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'i' was not declared in this scope
   14 |         if (n == a[i] * a[i])
      |                    ^
Language: C++

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

int main() {
  int num;
  cin >> num;
  bool IsPrime=false;
    if (num < 2) IsPrime=false;
    else if (num == 2) IsPrime= true;
    else if (num % 2 == 0) IsPrime= false; // 偶数はあらかじめ除く

    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            // 素数ではない
            IsPrime= false;
        }
    }

    // 素数である
    IsPrime= true;
}
  if(num==2||num==3||num==5||num==7) {
    cout << "Yes" << endl;
    break;
  }
  else if(IsPrime==true||num>81) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc:26:3: error: expected unqualified-id before 'if'
   26 |   if(num==2||num==3||num==5||num==7) {
      |   ^~
a.cc:30:3: error: expected unqualified-id before 'else'
   30 |   else if(IsPrime==true||num>81) {
      |   ^~~~
a.cc:33:3: error: expected unqualified-id before 'else'
   33 |   else {
      |   ^~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
Language: C++

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

int main() {
  int num;
  cin >> num;
  bool IsPrime{
    if (num < 2) IsPrime=false;
    else if (num == 2) IsPrime= true;
    else if (num % 2 == 0) IsPrime= false; // 偶数はあらかじめ除く

    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            // 素数ではない
            IsPrime= false;
        }
    }

    // 素数である
    IsPrime= true;
}
  if(num==2||num==3||num==5||num==7) {
    cout << "Yes" << endl;
    break;
  }
  else if(IsPrime==true||num>81) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected primary-expression before 'if'
    9 |     if (num < 2) IsPrime=false;
      |     ^~
a.cc:9:5: error: expected '}' before 'if'
a.cc:8:15: note: to match this '{'
    8 |   bool IsPrime{
      |               ^
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else if (num == 2) IsPrime= true;
      |     ^~~~
a.cc: At global scope:
a.cc:26:3: error: expected unqualified-id before 'if'
   26 |   if(num==2||num==3||num==5||num==7) {
      |   ^~
a.cc:30:3: error: expected unqualified-id before 'else'
   30 |   else if(IsPrime==true||num>81) {
      |   ^~~~
a.cc:33:3: error: expected unqualified-id before 'else'
   33 |   else {
      |   ^~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
Language: C++

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

int main() {
  int num;
  cin >> num;
  bool IsPrime(int num)
{
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; // 偶数はあらかじめ除く

    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            // 素数ではない
            return false;
        }
    }

    // 素数である
    return true;
}
  if(num==2||num==3||num==5||num==7) {
    cout << "Yes" << endl;
    break;
  }
  else if(IsPrime==true||num>81) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: a function-definition is not allowed here before '{' token
    9 | {
      | ^
a.cc:29:5: error: break statement not within loop or switch
   29 |     break;
      |     ^~~~~
a.cc:31:11: error: 'IsPrime' was not declared in this scope
   31 |   else if(IsPrime==true||num>81) {
      |           ^~~~~~~
Language: C

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

int main(){
  int a,b;
  int x;
  int i;

  scanf("%d", &x);

  a = 1000;
  b = 1000;]

  if(x == 1){
    printf("Yes\n");
    return 0;
  }

  for(i = 9;i >= 2;i--){
    if(x % i == 0){
      a = i;
      x = x/i;
      b = x;
      break;
    }
  }

  if(a > 9 || b > 9) printf("No\n");

  else printf("Yes\n");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:12: error: expected statement before ']' token
   14 |   b = 1000;]
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    int N;
    
    cin >> N;
    
    int ans = 0;
    for( int i = 1 ; i < 10 ; i++ ){
        for( int j == 1; j < 10; j++){
            if( i * j == N ){
                cout << "Yes";
                return 0;
            }
        }
    }
    
    cout << "No";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '==' token
   12 |         for( int j == 1; j < 10; j++){
      |                   ^~~
      |                   ;
a.cc:12:20: error: expected primary-expression before '==' token
   12 |         for( int j == 1; j < 10; j++){
      |                    ^~
a.cc:12:32: error: expected ')' before ';' token
   12 |         for( int j == 1; j < 10; j++){
      |            ~                   ^
      |                                )
a.cc:12:34: error: 'j' was not declared in this scope
   12 |         for( int j == 1; j < 10; j++){
      |                                  ^
Language: C

#include <stdio.h>

int main(void)
{

   int N,i,j;

   scanf("%d",&N);
   for(i=1;i<=9;i++){
      for(j=1;j<=9;j++)
         a=i*j;
   if(a==81) printf("Yes\n");
   else                   printf("No\n");

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:10: error: 'a' undeclared (first use in this function)
   11 |          a=i*j;
      |          ^
main.c:11:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
        int N, i, s=0;

        scanf("%d",&N);

        for(i=2;i<=9;i++){
                if((N%i==0)&&(N/i<=9))
                        s = s + 1;
        }
        if((s==0)||(N>81))
                printf("No\n");
        else if ((s>=1)&&(N<82))
                printf("Yes\n");

        return 0;


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

#include <stdio.h>

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

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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;
int main(){
int N;
  cin>>N;
  int A[100]
    int r=0;
  for (int i=1; i<10; i++){
    for (int j=1; j<10; j++){
     
      A[r]=i*j;
      r++;
    }}
           bool t=false;
 for (int i=0; i<81; i++)
           {
             if (A[i]==N) {t=true;}
           }
           if (t) cout<<"Yes"<<endl;
           else cout<<"No"<<endl;
           }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'int'
    7 |     int r=0;
      |     ^~~
a.cc:11:7: error: 'A' was not declared in this scope
   11 |       A[r]=i*j;
      |       ^
a.cc:11:9: error: 'r' was not declared in this scope
   11 |       A[r]=i*j;
      |         ^
a.cc:17:18: error: 'A' was not declared in this scope
   17 |              if (A[i]==N) {t=true;}
      |                  ^
Language: C++

x = int(input())
bool ok=False
for i in range 9:
	for j in range 9:
		if(i*j==x):
			ok=True
if(ok):print("Yes")
else: print("No")

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x = int(input())
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'endl'
   12 |         else{cout << "No" endl;}
      |                          ^~~~~
      |                          ;
Language: C++

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

using ll=long long;
const ll MOD=1000000007;

int main() {
  int n;
  cin >> n;
  bool a=false
  for(int i=1;i<10;i++){
    for(int j=1;j<10;j++){
      if(i*j==n)
        a=true;
    }
  }
  if(a)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i=1;i<10;i++){
      |   ^~~
a.cc:11:15: error: 'i' was not declared in this scope
   11 |   for(int i=1;i<10;i++){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout<<"No"<<endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |       if(i*j=N){
      |          ~^~
a.cc:10:13: error: expected identifier before '=' token
   10 |         and = true;
      |             ^
Language: C++

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

int main()
{
	int n;
  cin >> n;
  
  for(int i=2;i<=9;i++)
    if(n%i==0){
      int r = n/i;
      if(r>0 || r<10){
        cout << "Yes";
        return 0}
    else{
      cout << "No";
      return 0;
    }
      
    }
      


}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |         return 0}
      |                 ^
      |                 ;
Language: C++

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

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

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

#include<iostream>

using namespace std;

int main(){
  int N;
  cin>>N;
  bool flag=false;
  for(int i=2;i<10;i++){
    if(N%i==0){
      for(int j=1;j<10){
        if((N/i)==j){
          flag=true;
          break;
        }
      }
      if(flag)break;
    }
  }
  if(flag)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before ')' token
   11 |       for(int j=1;j<10){
      |                       ^
      |                       ;
Language: C++

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

int main() {
  int n;
  string s;
  cin >> n;
  for(int i=1;i<10;i++){
    for(int j=1;j<9;j++){
      if(i*j == n){s = "Yes";
                   break;}
      else{s ="No";}
    }
    cout << s << endl;
    return 0;
  }
      

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

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

int main() {
  int n;
  string s;
  cin >> s;
  if(n>81){ans = "No";}
  for(int i =1;1<10;i++){
    if(n/i>9){ans = "No";}
  }
  for(n%2!=0&&n%3!=0&&n%5!=0&&n%7!=0&&n%11!=0&&n%13!=0n%17!=0){}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(n>81){ans = "No";}
      |            ^~~
      |            abs
a.cc:10:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if(n/i>9){ans = "No";}
      |               ^~~
      |               abs
a.cc:12:54: error: unable to find numeric literal operator 'operator""n'
   12 |   for(n%2!=0&&n%3!=0&&n%5!=0&&n%7!=0&&n%11!=0&&n%13!=0n%17!=0){}
      |                                                      ^~
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
a.cc:12:65: error: expected ';' before '}' token
   12 |   for(n%2!=0&&n%3!=0&&n%5!=0&&n%7!=0&&n%11!=0&&n%13!=0n%17!=0){}
      |                                                                 ^
      |                                                                 ;
   13 | }
      | ~                                                                
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
a.cc:12:65: error: expected ')' before '}' token
   12 |   for(n%2!=0&&n%3!=0&&n%5!=0&&n%7!=0&&n%11!=0&&n%13!=0n%17!=0){}
      |      ~                                                          ^
      |                                                                 )
   13 | }
      | ~                                                                
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

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

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

#include "bits/stdc++.h"

using namespace std;



int main(){
	long long n,a,b,x,ac=0;
	cin >> n;


	for (int i = 1; i < 10; i++){

		for (int i = j; j < 10; j++){
			if (i*j == n){
				cout << "Yes" << endl;
				return 0;
			}
		}
	}

	cout << "No" << endl;
//	cin >> n;
	return 0;

	
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'j' was not declared in this scope
   14 |                 for (int i = j; j < 10; j++){
      |                              ^
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();
        int div = 0;
 
        for (int i = 0; i < 10; i++) {
            if (N % i == 0) {
                div = N % i;
                for (int j = 9; j < 0; j--) {
                    if (div * j == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
        }
        System.out.println("No");
    }
}
import java.util.Scanner;

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

        for (int i = 1; i < 10; i++) {
            if (N % i == 0) {
                div = N % i;
                for (int j = 9; j < 0; j--) {
                    if (div * j == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
        }
        System.out.println("No");
    }
}
提出情報
提出日時	

Compiler output:
Main.java:23: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:45: error: class, interface, enum, or record expected
????
^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;
int main()
{   
    int N;
    cin>>N
    string ans="No";
    REP2(i,1,10){
        if(N%i==0) ans="Yes";
    }
    
    cout << ans << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before 'string'
   12 |     cin>>N
      |           ^
      |           ;
   13 |     string ans="No";
      |     ~~~~~~ 
a.cc:15:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         if(N%i==0) ans="Yes";
      |                    ^~~
      |                    abs
a.cc:18:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    boolean isOk = false;
    for(int i=1; i<=9; i++){
      if( N%i == 0 && String.valueOf(N/i).length() == 1){
        isOk = true;
        break;
      }
    }
    if(isOk){
      System.out.print("Yes");
    }else{
      System.out.print("No");
  }
}


Compiler output:
Main.java:18: 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();
		String ans="No";
		for(int i=1;i<=9;i++){
			for(int k=1;k<=9;k++){
				if(i*j==N){
				ans="Yes";
				}
			}
		}
		System.out.println(ans);
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
				if(i*j==N){
				     ^
  symbol:   variable j
  location: class Main
1 error
Language: C++

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

int main(){
  int N,a,b;
  int flag=0;
  int i=1;
  int j=1;
  cin >> N;
  for(i<10;i++){
    for(j<10;j++){
      if(i*j==N){
        cout<<"Yes"<<endl;
      }
    }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before ')' token
   10 |   for(i<10;i++){
      |               ^
      |               ;
a.cc:11:17: error: expected ';' before ')' token
   11 |     for(j<10;j++){
      |                 ^
      |                 ;
Language: C++

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

int main(){
  int N,a,b;
  int flag=0;
  cin >> N;
  for(i=1;i<10;i++){
    for(j=1;j<10;j++){
      if(i*j==N){
        cout<<"Yes"<<endl;
      }
    }
  }
  cout<<"No"<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int N;
  cin >> N;
  int ans = 0;
  
  for(int i = 0;i < 9;i ++){
    for(int j = 0;j < 9; ++){

      if(i * j == N)ans++;
    }
  }
  if(ans > 0){
    puts("Yes");
  }else{
    puts("No");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected primary-expression before ')' token
   10 |     for(int j = 0;j < 9; ++){
      |                            ^
Language: C++

#include "stdafx.h" //プリインクルードされている場合はコメントアウト
#include <iostream>
#include <string>
#include <cstdlib> //func147bでインクルード
#include <vector>  //func146b

using namespace std;

void func144b()
{
    int n;
    cin >> n;
    string m = "No";
    for (int i = 1; i < 10; ++i) {
        if (n % i == 0 && (n /i) <10) {
            m = "Yes";
            }
    }
    cout << m << endl;
}

int main()
{
  func144b();
  return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h" //プリインクルードされている場合はコメントアウト
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
using vl = vector<ll>;
using vvl = vector<vl>;


int main(){
  ll n; cin >> n;
  bool tf = true;
  
  rep(i,10){
    rep(j,10){
      if(n==i*j){
        cout << "Yes" << endl;
        tf = false;
        break;
      }
    }
  }
  
  if(tf) cout << "No" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:31: error: expected '}' at end of input
   25 |   if(tf) cout << "No" << endl;
      |                               ^
a.cc:11:11: note: to match this '{'
   11 | int main(){
      |           ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'x' was not declared in this scope
    9 |       x=N/i;
      |       ^
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
    int N;
    for(int i=1;i<10;i++){
        if((A%i==0)&&(A/i<10)){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'A' was not declared in this scope
    7 |         if((A%i==0)&&(A/i<10)){
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;cin >> a;bool ok = false
  for(int i=1;i<=9;i++){
   for (int j=1;j<=9;j++){
     if (i*j==a) ok = true;
   }
  }
  cout << ((ok) ? "Yes":"No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'for'
    5 |   for(int i=1;i<=9;i++){
      |   ^~~
a.cc:5:15: error: 'i' was not declared in this scope
    5 |   for(int i=1;i<=9;i++){
      |               ^
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] product = {1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,28,30,32,35,36,40,42,45,48,49,54,56,64,72,81};
    boolean bl = false;
    for(int i = 0; i < product.length; i++){
      if(n == product[i]){
        bl = true;
      }
    }
    if(bl){
      System.out.println("Yes");
    }else{
      System.out.printnl("No");
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      System.out.printnl("No");
                ^
  symbol:   method printnl(String)
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
    
    int n;
    int a,b;

    cin >> n;

    for(a=1;a<9;a++){
        for(b=1;b<9;b++){
            if(n == a*b){
                printf("Yes\n");
                break;
            }

        }
    }

    else
    printf("No\n");

	return 0;
}

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

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
    
    int n;
    int a,b;

    cin >> n;

    for(a=1;a<9;a++){
        for(b=1;b<9;b++){
            if(n == a*b){
                printf("Yes\n");
                break;
            }

        }
    }

    else
    printf("No\n");

	return 0;
}

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

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


Compiler output:
main.c: In function 'main':
main.c:9:14: error: lvalue required as left operand of assignment
    9 |       if(i*j = n)
      |              ^
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    boolean check = true;
    for(int a = 1; a < 10; a++ ){
      for( int b = 1; b < 10; b++) {
        if( (a * b)== N ) {
          check = false;
        }
      }
    }
    if(check) {
      System.out.println("No");
    }else{
      System.out.println("Yes");
  }
}

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

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


Compiler output:
Main.java:10: error: ';' expected
          break
               ^
1 error
Language: Java

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


Compiler output:
Main.java:7: error: variable o might not have been initialized
      for(int o; o < 10; o++){
                 ^
1 error
Language: Java

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


Compiler output:
Main.java:7: error: variable o might not have been initialized
      for(int o; o < 10; o++){
                 ^
1 error
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include <iomanip>
// std::cout << std::setprecision(2) << 3.141; // "3.1"
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
// #include <bits/stdc++.h> all

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;

static const int giga = pow(10,9);
// double pi = 3.141592653589793238463;

int main(void){
  int n; cin >> n;
  for(i = 9; i > 0; i--){
    if(n%i == 0){
      if(n/i < 10){
	cout << "Yes" << endl;
	return 0;
      } else {
	
      }
    }
  }

  cout << "No" << endl;
  
  return 0;
}

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

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

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

#include <iostream>

void func144b() {
  int n;
  cin >> n;
  if (n > 81) {
    cout << "No";
    return;
  }
  for (int i = 1; i <= 9; i++) {
    for (int j = 1; j <= 9; j++) {
      if (n == i*j) {
        cout << "Yes" << endl;
        return;
      }
    }
  }
  cout << "No" << endl;
}

int main() {
  func144b();
  return 0;
}

Compiler output:
a.cc: In function 'void func144b()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << "No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << "Yes" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout << "No" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |   cout << "No" << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~