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

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <cmath>
#include <climits>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <array>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define io() ios_base::sync_with_stdio(false); cin.tie(nullptr)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define us unsigned short
#define fi first
#define se second
#define IN(i,l,r) (l<i&&i<r)
#define LINR(i,l,r) (l<=i&&i<=r)
#define LIN(i,l,r) (l<=i&&i<r)
#define INR(i,l,r) (l<i&&i<=r)
#define ii pair<int, int>
#define vi vector<int>
#define vii vector<pair<int, int>>
#define vvi vector<vector<int>>
#define vl vector<long long>
#define vll vector<pair<long long, long long>>
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define qsort(a) sort(all(a))
#define qsortd(a) sort(all(a), greater<>())
#define qsortf(a, f) sort(all(a), f)
#define pb(n) push_back(n)
#define eb(n) emplace_back(n)
#define pp(a, b) emplace_back(make_pair(a, b))
#define fori(i, n) for(ll i = 0; i < n; i++)
#define foris(i, a, b) for(ll i = a; i < b; i++)
#define forise(i, a, b) for(ll i = a; i <= b; i++)
#define ford(i, n) for(ll i = n; i >= 0; i--)
#define fords(i, a, b) for(ll i = a; i >= b; i--)
#define fordse(i, a, b) for(ll i = a; i > b; i--)
#define forr(i, a) for (auto &i: a)
#define rev(a) reverse(a.begin(), a.end())
#define revf(a, b, c) (reverse(a.begin() + b, a.begin() + c))
#define digits(i) (int)((log(i)/(log(10))+1)
#define umap unordered_map
#define nl '\n'
#define fileio(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
const int mod = 1000000007;

int A, B;

int main() {
  io();
  cin >> A >> B;
  
  bool canA = LINR(a, 1, 9);
  bool canB = LINR(b, 1, 9);
  
  if(canA && canB) {
    cout << A * B;
  }
  else {
    cout << "-1";
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:77:20: error: 'a' was not declared in this scope
   77 |   bool canA = LINR(a, 1, 9);
      |                    ^
a.cc:39:25: note: in definition of macro 'LINR'
   39 | #define LINR(i,l,r) (l<=i&&i<=r)
      |                         ^
a.cc:78:20: error: 'b' was not declared in this scope
   78 |   bool canB = LINR(b, 1, 9);
      |                    ^
a.cc:39:25: note: in definition of macro 'LINR'
   39 | #define LINR(i,l,r) (l<=i&&i<=r)
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
	int a,b;
  	cin>>a>>b;
  	if(a<1||a>9||b<1||b>9)cout<<"-1\n";
  	else cout<<a*b<<"\n"
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:29: error: expected ';' before '}' token
    7 |         else cout<<a*b<<"\n"
      |                             ^
      |                             ;
    8 | }
      | ~
Language: C++

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

int main() {
	ll a,b,ans;
	cin a >> b;
	if(a>=10 || b>=10) ans=-1;
	else ans=a*b;
	cout << ans << endl;	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'a'
    9 |         cin a >> b;
      |            ^~
      |            ;
Language: C++

import sys
a, b= map(int, sys.stdin.readline().split())
if (a<=9 and b<=9):
    print(a*b)
else:
    print(-1)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

const bool DEBUG = false;

int main(int argc, char const *argv[]) {
  int A, B;
  cin >> A >> B;
  if (A > 9) {
    cout << "-1" << endl;
    return 0
  }
  if (B > 9) {
    cout << "-1" << endl;
    return 0;
  }
  cout << A * B << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 |   }
      |   ~
Language: Java

/**
 * ******* Created on 27/10/19 5:23 PM*******
 */

import java.io.*;
import java.util.*;

public class Aabc144 implements Runnable {

    private void solve() throws IOException {
        int a = reader.nextInt();
        int b = reader.nextInt();
        if(a >=1 && a<= 9 && b >=1 && b<=9)
            writer.println(a*b);
        else
            writer.println("-1");
    }

    public static void main(String[] args) throws IOException {
        try (Input reader = new StandardInput(); PrintWriter writer = new PrintWriter(System.out)) {
            new Aabc144().run();
        }
    }

    StandardInput reader;
    PrintWriter writer;

    @Override
    public void run() {
        try {
            reader = new StandardInput();
            writer = new PrintWriter(System.out);
            solve();
            reader.close();
            writer.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    interface Input extends Closeable {
        String next() throws IOException;

        default int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        default long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        default double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        default int[] readIntArray() throws IOException {
            return readIntArray(nextInt());
        }

        default int[] readIntArray(int size) throws IOException {
            int[] array = new int[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextInt();
            }
            return array;
        }

        default long[] readLongArray(int size) throws IOException {
            long[] array = new long[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextLong();
            }
            return array;
        }
    }

    private static class StandardInput implements Input {
        private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        private StringTokenizer stringTokenizer;

        @Override
        public void close() throws IOException {
            reader.close();
        }

        @Override
        public String next() throws IOException {
            if (stringTokenizer == null || !stringTokenizer.hasMoreTokens()) {
                stringTokenizer = new StringTokenizer(reader.readLine());
            }
            return stringTokenizer.nextToken();
        }
    }
}


Compiler output:
Main.java:8: error: class Aabc144 is public, should be declared in a file named Aabc144.java
public class Aabc144 implements Runnable {
       ^
1 error
Language: C

#include<stdio.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  if(a>9 || b>9)
    printf("-1");
  else
    print("%d",a*b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |     print("%d",a*b);
      |     ^~~~~
      |     printf
Language: C++

#include<stdio.h>

int main(){
	int a,b;
	
	scanf("%d %d",&a,&b);
	if(a >=1 && a<= 9 && b >=1 && b<= 9){
	printf("%d\n",a*b);}
	else{printf("-1\n")}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before '}' token
    9 |         else{printf("-1\n")}
      |                            ^
      |                            ;
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    
    if (a>9 || b>9) {
      System.out.println("-1");
      return
    } else {
      int ans = a*b;
      System.out.println(ans);
    }
    
  }
}


Compiler output:
Main.java:12: error: illegal start of expression
    } else {
    ^
1 error
Language: Java

import java.util.*;

public class Main {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) {
    int A = sc.nextInt();
    int B = sc.nextInt();

    if (A<10 && B<10){
      return A*B;
    }else{
      return -1;
    }

  }
}


Compiler output:
Main.java:12: error: incompatible types: unexpected return value
      return A*B;
              ^
Main.java:14: error: incompatible types: unexpected return value
      return -1;
             ^
2 errors
Language: C++

// Karm Karta ja, Phal Ki Chinta na Kar:)
#include <bits/stdc++.h>
using namespace std;
#include<stdio.h>
int main()
{
    ll a,b;
    cin>>a>>b;
    if(a>=1&&a<=9&&b>=1&&b<=9)
    {
        cout<<a*b;
    }
    else
    {
        cout<<-1;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll a,b;
      |     ^~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |     cin>>a>>b;
      |          ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cin>>a>>b;
      |             ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;

int binpow(int a, int b) {
    if (b == 0)
        return 1;
    int res = binpow(a, b / 2);
    if (b % 2)
        return res * res * a;
    else
        return res * res;
}

ll gcd(ll a,ll b)
{
    if (b==0) return a;
    return gcd(b,a%b);
}
string to_upper(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='a' && a[i]<='z') a[i]-='a'-'A';
    return a;
}
 
string to_lower(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='A' && a[i]<='Z') a[i]+='a'-'A';
    return a;
}

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n,m;
    cin>>n>>m;
    if (a<10&&b<10)
    {
        cout<<a*b;
    }
    else
    {
        cout<<-1;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:9: error: 'a' was not declared in this scope
   38 |     if (a<10&&b<10)
      |         ^
a.cc:38:15: error: 'b' was not declared in this scope
   38 |     if (a<10&&b<10)
      |               ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cassert>
#include <utility>
#include <numeric>
#include <cstring>
#include <map>
#include <set>
#define rep(i,n) for (int i=0; i<(n); ++i)

using namespace std;
using ll = long long;

int main(){
    int a,b;
    cin >> a >> b;

    if(a<=9 && b <= 9){
        cout << a*b;
    }
    else {
        cpit << "-1"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'cpit' was not declared in this scope
   27 |         cpit << "-1"
      |         ^~~~
Language: C

a,b=map(int,input().split())
if(a<10 and b<10):
    print(a*b)
else:
    print(-1)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b=map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b=map(int,input().split())
      |   ^
main.c:1:5: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a,b=map(int,input().split())
      |     ^~~
main.c:1:9: error: expected expression before 'int'
    1 | a,b=map(int,input().split())
      |         ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if(a<10 and b<10):
      | ^~
Language: C++

#include <bits/stdc++.h>
#define ROOP(i, N) for(int i=0; i++; i<N)
#define RVROOP(i, N) for(int i=N; i--; i>=0)
#define INF 1e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

int main() {
  int A,B; cin>>A>>B;
  
  if(A<10 && B<10){
    cout<<"-1"<<endl;
  }
  else{
    cout<<A*B<<endl;
  return 0;
}


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

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

if a >= 1 and a <= 9 and b >= 1 and b <= 9:
    print(a*b)
else:
    print(-1)

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

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
//桁
int kt(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
signed main(){
  int a,b;
  cin>>a>>b;
  if(1<=a&&a<=9&&1<=b&&&b<=9)
    cout<<a*b;
  else
    cout<<-1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   55 |   if(1<=a&&a<=9&&1<=b&&&b<=9)
      |                        ~~^~~
Language: C++

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

ll A, B;

void input(){
  cin >> A >> B;
}

void solve(){
  input();
  ll ans;
  if(a <= 9 && b <= 9){
    ans = -1;
  } else {
    ans = a*b;
  }
  cout << ans << endl;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:16:6: error: 'a' was not declared in this scope
   16 |   if(a <= 9 && b <= 9){
      |      ^
a.cc:16:16: error: 'b' was not declared in this scope
   16 |   if(a <= 9 && b <= 9){
      |                ^
Language: C++

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

typedef long long int ll

int main(){
 int A,B;
 cin >> A >> B;
 if(1 <= A && A <= 9 && 1 <= B && B <= 9){
     cout << A * B << endl;
 }else{
     cout  << -1 << endl;
 }
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(){
      | ^~~
Language: C++

//------------------------------------------------------------------------------MANAS UNIYAL---------------------------------------------------------
//																				NEVER GIVE UP
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false);	cin.tie(NULL);	cout.tie(NULL);
#define ll long long
#define pb push_back
#define fi first
#define se second
#define pii pair<ll,ll>
#define INF 0x3f3f3f3f
#define mod 100000007
#define testcases() ll t; cin>>t; while(t--)
#define debug1(x) cout<<#x<<" "<<x<<"\n";
#define debug2(x,y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<"\n";
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<"\n";
#define rep(i,start,end) for(ll i=start;i<end;i++)
 
//----------------------------------------------------------------------------------------------------------------------------------------------------

int main()
{
	fast;
	cin>>a>>b;
	if(a<=9 && b<=9)
		cout<<a*b;
	else 
		cout<<"-1";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'a' was not declared in this scope
   24 |         cin>>a>>b;
      |              ^
a.cc:24:17: error: 'b' was not declared in this scope; did you mean 'pb'?
   24 |         cin>>a>>b;
      |                 ^
      |                 pb
Language: C++

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

int main(){
    int n ,k;
    cin >> n >> k;
    if(k<10 %% n<10){
        cout << n*k;
    }else{
        cout << "-1";
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '%' token
    8 |     if(k<10 %% n<10){
      |              ^
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<numeric>
#include<utility>
#include<unordered_map> //hash map
#include<cstring>

#define rep(i,a,n) for(int (i)=(a);(i)<(n);(i)++)
#define rrep(i,a,n) for(int (i)=(a);(i)>=(n);(i)--)

#define INF 1000000000
#define MOD 1000000007

typedef  long long ll;

using namespace std;

template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

double euclid_distance(double a,double b){
    return sqrt(a*a+b*b);
}

ll gcd(ll  a,ll b){
    ll r;
    if(a < b){
        ll tmp;
        tmp = a;
        a = b;
        b = tmp;
    }
    while(r = a % b){
        a = b;
        b = r;
    }
    return b;
}
/*
ll Integer_factorization(ll n){
    ll num = 0;
    ll ndash = n;
    if(n == 1) return 1;
    ll a = 2;
    while(ndash >= a*a){
        if(n % a  == 0){
            count++;
            n/=a;

        if(count % b == 0){
            ans *= a;
        }
        }else{a++;count = 0;}
    }

    return num;
}
*/

ll r_fuct[2000];
ll fuct[2000];

//MOD逆元
void conb(ll n,ll k){
    fuct[0] = 1;
    for(int i = 1;i < k+1;i++){
        fuct[i] *= fuct[i-1]%MOD;
        
        ll b = MOD, u = 1, v = 0;
        ll value = fuct[i];
        while (b) {
            ll t = value / b;
            value -= t * b;
            swap(value, b);
            u -= t * v;
            swap(u, v);
        }
        u %= MOD;
        if (u < 0) u += MOD;
        r_fuct[i] = u;
    }
}

ll factrial(ll n){
    if(n == 0) return 1;
    ll p = factrial(n-1)*n%MOD;
    return p;
}

//MOD逆元
ll farmat(ll n,ll p){    
    if(p == 0) return 1;
    else if(p == 1) return n%MOD;
    ll d = farmat(n,p/2);
    if(p%2 == 0){
        return (d*d)%MOD;
    }else{
        return ((n*d)%MOD*d)%MOD;
    }
}

ll conbination(ll n,ll k){
    ll a = factrial(n);
    ll b = factrial(k);
    ll c = factrial(n-k);
    return (a*farmat(b,MOD-2)%MOD*farmat(c,MOD-2))%MOD;
}

int memo[10000000];

int fib(int i){
    if(i <= 1) return i;
    if(memo[i] != 0) return memo[i];
    return memo[i] = fib(i-1)+fib(i-2);
}

ll dig(ll n){
    ll d = 0;
    while(n != 0){
        n/=10;
        d++;
    }
    return d;
}

void solve() {
    int a,b,c;
    cin >> a >> b;
    int n;
    //cin >> n;
    int a[n];
    //for(int i = 0;i < n;i++) cin >> a[i];
    if(a < 10 && b < 10) cout << a*b << endl;
    else cout << -1 << endl;
    
}




int main() {

	cin.tie(0);
	ios::sync_with_stdio(false);
	solve();
	return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:149:9: error: conflicting declaration 'int a [n]'
  149 |     int a[n];
      |         ^
a.cc:145:9: note: previous declaration as 'int a'
  145 |     int a,b,c;
      |         ^
Language: C++

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

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

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

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;

int main(){
  int n;
  cin>>n;
  bool answer=false;
  for(int i=1;i<=9;i++){
    for(int j=1;j<=9;j++){
    	if(n==i*j) anwer=true;
    } 
  }
  if(answer) printf("Yes");
  else printf("No");
}

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

#include <iostream>
using namespace std;

int main(){
	bool check = false;
	int n;
	cin >> n;
	for(int i=1;i < 10;i++){
		if(n % i ==0){
			if(n / i < 10)check = check || true;
		}
	}
	if(check) cout << "Yes" << endl;
	else cout << "No" << en

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'en' was not declared in this scope; did you mean 'n'?
   14 |         else cout << "No" << en
      |                              ^~
      |                              n
a.cc:14:32: error: expected '}' at end of input
   14 |         else cout << "No" << en
      |                                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

#define print cout <<
#define printl(s) cout << s << endl;
#define prif(s) cout << s << endl; return 0;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep2(i,n) for (int i = 1; i < (n)+1; ++i)
using ll = long long;

const ll modseed = pow(10,9) + 7;

template <typename T>
vector<T> getValues(ll num){
    vector<T> values(num);
    for(ll i=0;i<num;i++){
        cin >> values.at(i);
    }
    return values;
}

const string yes = "Yes";
const string no = "No";

string S;
int N, cnt;

int main(){
  cin >> N;
  rep2(i, 9){
    rep2(j,9){
        prif(yes);
      }
    }
  }
  prif(no);
}


Compiler output:
a.cc:6:17: error: 'cout' does not name a type
    6 | #define prif(s) cout << s << endl; return 0;
      |                 ^~~~
a.cc:36:3: note: in expansion of macro 'prif'
   36 |   prif(no);
      |   ^~~~
a.cc:6:36: error: expected unqualified-id before 'return'
    6 | #define prif(s) cout << s << endl; return 0;
      |                                    ^~~~~~
a.cc:36:3: note: in expansion of macro 'prif'
   36 |   prif(no);
      |   ^~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

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

#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep2(i,n) for (int i = 1; i < (n)+1; ++i)
using ll = long long;

const ll modseed = pow(10,9) + 7;

template <typename T>
vector<T> getValues(ll num){
    vector<T> values(num);
    for(ll i=0;i<num;i++){
        cin >> values.at(i);
    }
    return values;
}

String S;
int N, cnt;

int main(){
  cin >> N;
  rep2(i, 9){
    rep2(j,9){
      if(i*j==N){
        cnt++;
      }
    }
  }
  printl(cnt);
}


Compiler output:
a.cc:21:1: error: 'String' does not name a type
   21 | String S;
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int X,s=0,i,j;
    bool t=0;

    cin>>X;
    for( i=1; i<10; i++)
    {
        for(j=1; j<10; j++)
        {
            s=i*j;
            if(X==s)
            {
                t++;
            }
        }


    }

    if(t==1)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   16 |                 t++;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  for(int i = 1;i <= 9;i++){
    for(int j = 1;j <= 9;j++){
      if(i * j == n){
        ans = "Yes";
        break;
      }
    }
  }
  if(ans != "Yes"){
    ans = "No";
  }
  cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         ans = "Yes";
      |         ^~~
      |         abs
a.cc:15:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   if(ans != "Yes"){
      |      ^~~
      |      abs
a.cc:18:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |   cout << ans;
      |           ^~~
      |           abs
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
using ll=long long;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)
using P=pair<int,int>;

//auto

int main(){
int n;
bool ok=false;
for(int i=1;i<=9;i++){
  for(int j=1j<=9;j++){
    if(n==j*i)ok=true;
  }
}
if(ok)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<='
   17 |   for(int j=1j<=9;j++){
      |             ~~^~~
      |             |   |
      |             |   int
      |             __complex__ int
a.cc:17:22: error: expected ';' before ')' token
   17 |   for(int j=1j<=9;j++){
      |                      ^
      |                      ;
Language: C++

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

using ll = long long;
using P = pair<int, int>;

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

    bool isExists = false;
    for (int i = 1; i <= 9; i++)
    {
        for (int j = 1; j <= 9; j++)
        {
            if (i * j == n)
            {
                isExists = true;
                break;
            }
        }
    }
    if (isExists)
        cout << "Yes\n";
    else
        cout << "No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'n' was not declared in this scope
   18 |             if (i * j == n)
      |                          ^
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();
        for(int i=1; i<10; i++;){
            if(N%i==0 && N/i<9){
                System.out.println("Yes");
                return;

            }
        }

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

Compiler output:
Main.java:6: error: ')' expected
        for(int i=1; i<10; i++;){
                              ^
Main.java:6: error: illegal start of expression
        for(int i=1; i<10; i++;){
                               ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int n;

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

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

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

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


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) can=true;
      |          ~^~
Language: C

#include<stdio.h>

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

}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 |   for(int i=1, i < 10, i++){
      |                  ^
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
main.c:17:1: error: expected expression before '}' token
Language: C++

#include <iostream>
using namespace std;

int main()
{
  double n;
  string res = "No";
  cin >> n;
  for(int i=1; i<10; i++)
  {
    if(n % i == 0)
    {
      n /= i;
      for(int j=1; j<10; j++)
      {
        if(n % j == 0)
        {
          res = "Yes";
          break;
        }
      }
    }
  }
  cout << res << endl;
  return 0;
}

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

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

int main(){
  int n;
  cin >> n;
  bool ans = false;
  rep(i, 9){
    rep(j, 9){
      if(ans==i*j) ans = true;
    }
  }
  
  if(flg)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
    
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: 'flg' was not declared in this scope
   18 |   if(flg)
      |      ^~~
Language: C++

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

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

Compiler output:
a.cc:18:1: error: expected unqualified-id before 'if'
   18 | if(sum==1){
      | ^~
a.cc:21:2: error: expected unqualified-id before 'else'
   21 |  else{
      |  ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int N,i,j,sum=1;


int main()
{
    cin>>N;
    for(j=1;j<=9;j++){
    for(i=1;i<=9;i++){
    if(N==i*j){
        sum=0;
    }
    }
    }
    if(sum==0){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }

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

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	String ans = "No"
      	int num = 0;
		for(int i=1; i<10; i++){
			for(int j=1; j<10; j++){
              num = i*j;
              if(num==n) ans = "Yes";
            }
		}
      	System.out.println(ans);
	}
}

Compiler output:
Main.java:7: error: ';' expected
      	String ans = "No"
      	                 ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
    9 |       ans=i*j;
      |             ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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


Compiler output:
a.cc: In function 'int main()':
a.cc:62:35: error: expected ')' before numeric constant
   62 |     if (n % i == 0 && (n / i) < 50 10)
      |        ~                          ^~~
      |                                   )
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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

Compiler output:
a.cc:71:1: error: extended character 　 is not valid in an identifier
   71 | 　
      | ^
a.cc: In function 'int main()':
a.cc:62:34: error: expected ')' before numeric constant
   62 |     if (n % i == 0 && (n / i) <50 10)
      |        ~                         ^~~
      |                                  )
a.cc: At global scope:
a.cc:71:1: error: '\U00003000' does not name a type
   71 | 　
      | ^~
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  cin >> a >> b;
  int a, b;
  if (a >= 10 || b >= 10)
    pr(-1);
  else
    pr(a * b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:10: error: 'a' was not declared in this scope
   58 |   cin >> a >> b;
      |          ^
a.cc:58:15: error: 'b' was not declared in this scope
   58 |   cin >> a >> b;
      |               ^
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: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);
  if(N<100);
   printf("NO");
  else
    printf("Yes");
 return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i += 2)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i += 2)
int main() {
  vector<int> vec = {1, 2, 3, 4, 5, 6, 7, 8, 9};
  int X;
  cin >> X;
  int c = 0;
  rep(i, 9) {
    rep(j, 9) {
      if(vec.at(i) * vec2.at(j) == X) {
        c++;
      }
    }
  }
  if(c == 0) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: 'vec2' was not declared in this scope; did you mean 'vec'?
   13 |       if(vec.at(i) * vec2.at(j) == X) {
      |                      ^~~~
      |                      vec
Language: C++

#include <stdio.h>
int main(){
int input;

scanf("%d", &input);

if(input%10==0 && i ==0){
puts("No");
}
else{
puts("Yes");
}
return 0;
}

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

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

int main() {
  int A;
  cin >> A;
  int count = 0;
  rep(i,10){
    rep(n,10){
      if(i * n == A){
        count++;
      }
    }
  }
  if(count > 0){
    cout << "Yes" << endl;
  }
else{
  cout << "No" << endl;
}
}
        
 
}


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

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

	puts("No")	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |         puts("No")
      |                   ^     
      |                        ;
   16 | }
      | ~
Language: C++

#include <stdio.h>

int main() {
	int n;
    scanf("%d", &n);
    int temp = 0;
    for(int i = 1; i <= 9; i++){
        for(int j = 1; j <= 9; j++){
            if(i * j == n){
                temp = 1;
                break;
            }
        }
    }
    if(temp == 1){
        puts("Yes");
    }else{
        puts("No");
    }
    */
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: expected primary-expression before '/' token
   20 |     */
      |      ^
a.cc:21:5: error: expected primary-expression before 'return'
   21 |     return 0;
      |     ^~~~~~
Language: C++

#include <stdio.h>

int main() {

    int n;
    scanf("%d", &n);
    int temp = 0;
    for(int i = 1; i <= 9; i++){
        if((double)n/i <= 9 && (double)n/i >= 1 && n%i == 0){
            temp = 1;
            break;
        }
    }
    if(temp == 1){
        puts("YES");
    }else{
        puts("NO");
    }

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

#include <stdio.h>

main() {
	int n; scanf("%d", &n);
	for(int i=1; i<=9 && n%i!=0; i++);
  	if(n%i==0 && i<=9 && i>=1) printf("YES");
  	else printf("NO");
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main() {
      | ^~~~
main.c: In function 'main':
main.c:6:14: error: 'i' undeclared (first use in this function)
    6 |         if(n%i==0 && i<=9 && i>=1) printf("YES");
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

main() {
	int n; scanf("%d%d", &n);
	for(int i=1; i<=9 && n%i!=0; i++);
  	if(n%i==0 && i<=9 && i>=1) {
    	printf("YES");
    }
  	else printf("NO");
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main() {
      | ^~~~
main.c: In function 'main':
main.c:6:14: error: 'i' undeclared (first use in this function)
    6 |         if(n%i==0 && i<=9 && i>=1) {
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
  int n;
  cin>>n;
  bool f=false;
  for(int i=1;i<10;i++)
  {
    if(n%i==0)
    {
      if(n/i<10)
      {
        cout<<"Yes";
        f=true;
      }
    }
  }
  if(!f)
  cout<<"No";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         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:21:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |   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;
  int count=0;
  cin >> N;
  for(int i=1; i<=9; i++)
  {
    for(int k=1; k<=9; k++)
    {
      if(N == i*k)
        count = 1;
      else
        count = 2;
    }
  }
  if(count == 1)
    cout << "YES" << endl;
  if else
    cout << "NO" << endl;
  return 0;
}

  

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

// I make this just for fun because i'm done
// Aimi Haraguni >> Konomi Suzuki >> Yui >>  Ikimono Gakari >> Garnidelia >> Kalafina >> Eir Aoi.   .. dude? 
// problems that involves any kind of persistent data structures are the best of the best, are not them?
 
// #pragma GCC optimize ("Ofast,unroll-loops")
// #pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
 
#include <bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
 
#define pb push_back
#define ff  first
#define ss second
#define tm1 first
#define tm2 second.first
#define tm3 second.second
#define sz(x) ll(x.size())
#define all(v) (v).begin(), (v).end()
// #define fill(x, v) memset(x, v, sizeof(x))
#define FER(i,a,b) for(int i=int(a); i< int(b); ++i)
#define IFR(i,a,b) for(int i=int(a); i>=int(b); --i )
#define fastio ios_base::sync_with_stdio(0); cin.tie(0)
/*
// #define N 21000000
// #define M 19
// #define mod3 9
#define mod  998244353
#define mod1 1000000007
#define mod2 1000000009
*/
#define mody 998244353
#define bas 987625403
#define sqr(x) (x)*(x)  
#define INF 3000000000000000000
 
using namespace std;
using namespace __gnu_pbds;
 
typedef int ll;
typedef pair<ll, ll> ii;
typedef pair<ll, ii > tri;
typedef vector<ll> vi;
typedef vector<vi> vv;
typedef vector<ii> vii;
typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> S_t;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());

#define trace(...) fff(#__VA_ARGS__, __VA_ARGS__)
template<typename t> void fff(const char* x, t&& val1) { cout<<x<< " : "<<val1<<"\n";}
template<typename t1, typename... t2> void fff(const char* x, t1&& val1, t2&&... val2){
    const char* xd=strchr(x+1, ',');
    cout.write(x, xd-x)<<" : "<<val1<<" | ";
    fff(xd+1, val2...);
}
/*
inline ll add(ll a, ll b) { return a+b < mod? a+b : a+b-mod;}
inline ll rem(ll a, ll b) { return a >= b? a - b: a- b + mod;}
inline ll mul(ll a, ll b) { return (long long) a*b%mod;}
inline void Mul(ll &a, ll b) { a = (long long) a*b%mod;}
inline ll bp(ll a, ll p){
    ll ret;
    for(ret = 1; p; p>>=1, Mul(a, a)) (p & 1) && (Mul(ret, a), 1);
    return ret;
}
*/

inline void read(ll &x){cin>>x;}

int main(){
	fastio;
	ll n; read(n);
	ll top = sqrt(n) + 1;
	FER(i, 1, top){
		if(n%i == 0){
			tnt.pb(n/i);
			tnt.pb(i);
		}
	}
	for(auto xd: tnt){
		ll a= xd, b = n/xd;
		if(a >= 1 and a <= 9 and b >= 1 and b <= 9){
			cout<<"Yes\n";
			return 0;
		}
	}
	cout<<"No\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:75:25: error: 'tnt' was not declared in this scope; did you mean 'int'?
   75 |                         tnt.pb(n/i);
      |                         ^~~
      |                         int
a.cc:79:22: error: 'tnt' was not declared in this scope; did you mean 'int'?
   79 |         for(auto xd: tnt){
      |                      ^~~
      |                      int