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

#include <iostream>
using namespace std;

int main() {
	int a,b;
  	cin >>a>>b;
  	if(a>9){
      cout<<-1<<endl:
    }
  	else if(b>9){
      cout<<-1<<endl;
    }
  	else{
      int c=a*b;
      cout<<c<<endl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before ':' token
    8 |       cout<<-1<<endl:
      |                     ^
      |                     ;
a.cc:15:20: error: expected ';' before 'return'
   15 |       cout<<c<<endl
      |                    ^
      |                    ;
   16 |         return 0;
      |         ~~~~~~      
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

include <iostream>

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int a,b;
  cin>>a>>b;
  if(a<=9 && a>=1){
    if(b>=1 && b<=9){
		cout<<a*b;
  	}
    else{
      count<<"-1";
    }
  }
  else{
    count<<"-1";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'count' was not declared in this scope
   12 |       count<<"-1";
      |       ^~~~~
a.cc:16:5: error: 'count' was not declared in this scope
   16 |     count<<"-1";
      |     ^~~~~
Language: C

#include<stdio.h>

int main()
{
	int x, y,z;
	char c;
	scanf_s("%d %d", &x, &y);
	scanf_s("%c", &c);
	if ( c!= '\n')
	{
		printf("-1");
	}
	else
	{
		z = x * y;

			printf("%d", z );

	}
}

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

#include <bits/stdc++.h>
using namespace std;
 
#define mod 1000000000
#define ll long long
#define ull unsigned long long
#define vi vector<ll>
#define vs vector<string>
#define psi pair<string,ll>
#define pii pair<ll,ll>
#define vsi vector<psi>
#define vii vector<pii>
#define mp make_pair
#define pb push_back
#define rep(n) for(long i=0;i<n;i++)
#define repr(n) for(long i=(n-1);i>=0;i--)
#define fori(i,a,b) for(auto i=a;i<=b;i++)
#define ford(i,b,a) for(auto i=b;i>=a;i--)
#define mset(a,i) memset(a,i,sizeof(a))
#define minv(a) min_element(a.begin(),a.end())
#define maxv(a) max_element(a.begin(),a.end())
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define sotit(a) sort(a.begin(),a.end());
#define sot(a) sort(a,a+n);
#define ff first
#define maxheap(v) priority_queue<v>
#define minheap(v) priority_queue<v, vector<v>, greater<v>>
#define ss second
#define endl "\n"
#define NL cout<<endl;
#define printmat(a,m,n) for(int i=0;i<m;i++){       \
                            for(int j=0;j<n;j++){   \
                                cout<<a[i][j]<<" "; \
                            }                       \
                            cout<<endl;             \
                        }
#define dbgn(x) cout<<" $ "<<x<<" $ "<<endl;
#define dbg(x) cout<<" $ "<<x<<" $ ";
#define all(v) v.begin(),v.end()
#define show(a,n) for(int i=0;i<n;i++){ cout<<a[i]<<" "; } NL
#define fast_io() cin.sync_with_stdio(false);cout.sync_with_stdio(false);cin.tie(NULL);
 
// lower_bound - which does not compare less than val
// upper_bound - which compares greater than val
int main() {
    fast_io()
 
    ll a,b,x;
    cin>>a>>b>>x;
    ll m=ceil(sqrt(n));
    for(int i=m;i>=1;i--){
        if(n%i==0){
            cout<<(n/i)-2+i;
            return 0;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:20: error: 'n' was not declared in this scope
   51 |     ll m=ceil(sqrt(n));
      |                    ^
Language: Java

import java.util.*;
import java.io.*;
public class HelloWorld{

    public static void main (String[] args) throws java.lang.Exception
{
    BufferedReader inp = new BufferedReader (new InputStreamReader(System.in));
    String[] s1 = inp.readLine().split(" ");
    int A = Integer.parseInt(s1[0]);
    int B = Integer.parseInt(s1[1]);
    if(A<=9 && A>=0 && B<=9 && B>=0){
        System.out.println(A*B);
    }else{
        System.out.println(-1);
    }

    
}
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:11: warning: missing terminating " character
    6 |     scanf("%d
      |           ^
main.c:6:11: error: missing terminating " character
    6 |     scanf("%d
      |           ^~~ 
main.c:7:1: error: expected expression before '%' token
    7 | %d",&m,&n);
      | ^
main.c:7:3: warning: missing terminating " character
    7 | %d",&m,&n);
      |   ^
main.c:7:3: error: missing terminating " character
    7 | %d",&m,&n);
      |   ^~~~~~~~~
main.c:12:18: error: expected ';' before '}' token
   12 |   printf("%d",a);
      |                  ^
      |                  ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
#include<conio.h>
int main()
{
  int a,b;
  cin>>a>>" ">>b;
  if(a<10&&a>0&&b<10&&b>0)
  {
    cout<<a*b;
  }
  else
  {
    cout<<"-1";
  }
  return 0;

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl '\n'
#define ninf -2147483648
#define INF 1e9    

#define fastio(); ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
 





int a[300005];
bool b[105];
char c[1000005];



int main() {
    fastio();
    //int t;cin>>t;
  
    
    int x,y;
  	cin>>x>>y;
  	if(x>9 || y>9)
      cou<<"-1";
    else 
      cout<<x*y;
    
    
    
    
return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: 'cou' was not declared in this scope; did you mean 'cos'?
   29 |       cou<<"-1";
      |       ^~~
      |       cos
Language: C++

#include <bits/stsdc++.h>
using namespace std;
int check(int v) {
	return v >= 1 && v <= 9;
}
int main() {
	int a, b;
	cin >> a >> b;
	if(check(a) && check(b)) cout << (a*b) << endl;
	else cout << "-1" << endl;
	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ')' before ';' token
   11 |     cout << -1 << endl;
      |                       ^
      |                       )
a.cc:10:7: note: to match this '('
   10 |   else(
      |       ^
a.cc:12:3: error: expected primary-expression before ')' token
   12 |   )
      |   ^
Language: C++

#include<iostream.h>
#include<conio.h>
int main()
{
  int a,b;
  cin>>a>>" ">>b;
  if(a<10&&a>0&&b<10&&b>0)
  {
    cout<<a*b;
  }
  else
  {
    cout<<"-1";
  }
  return 0;
}

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


import java.io.BufferedInputStream;
import java.math.BigInteger;
import java.util.*;

public class abc {
    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedInputStream(System.in));
        int a = in.nextInt();
        int b = in.nextInt();
        for (int i = 0; ; i++) {
            if (1 <= a && a <= 9 && b >= 1 && b <= 9) {
                System.out.println(a + b);
                a = in.nextInt();
                b = in.nextInt();
            }
            else{
                System.out.println(-1);
                break;
            }
        }
    }
}





Compiler output:
Main.java:6: error: class abc is public, should be declared in a file named abc.java
public class abc {
       ^
1 error
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int a,b;
  cin>>a>>b;
  if(a<=9 && a>=1){
    if(b>=1 && b<=9){
		cout<<a*b;
  	}
  }
  else{
    count<<"-1";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'count' was not declared in this scope
   13 |     count<<"-1";
      |     ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b;
  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:8:12: error: expected '}' at end of input
    8 |   return 0;
      |            ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

import sys

a,b=map(int,input().split())
if a>=10 or b>=10:
    print(-1)
    sys.exit()
print(a*b)


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: Java

arr=input().split(" ")
a,b=int(arr[0]),int(arr[1])

if 0<a and a<10 and 0<b and b<10:
    print(a*b)
else:
    print(-1)


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
arr=input().split(" ")
^
1 error
Language: C

int main
{
int A,B,C;
int C = 0;
 scanf("%d %d", &A &B);
 printf("入力値 A=%d,B=%d",A,B);

 if(0 < A < 10 && 0 < B < 10){
     C = A * B;
     printf("%d",C);
 }
 else{
     C = -1;
     printf("%d",C);
 }
 return 0;
}

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | {
      | ^
Language: C++

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

//template
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define rrep(i,a,b) for(int i=(a);i>(b);i--)
#define ALL(v) (v).begin(),(v).end()
typedef long long int ll; typedef pair<ll, ll> P;
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; }
template<typename A,size_t N,typename T>void Fill(A(&array)[N],const T &val){fill((T*)array, (T*)(array+N), val);}
const int inf = 0x3fffffff; const ll INF = 0x3fffffffffffffff;
//template end



int main(){
    int a,b; scanf("%d%d",&a,&b);
    bool f=1;
    if(a>9||b>9)f=0;
    printf(f?"%d\n",a*b:"-1\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: operands to '?:' have different types 'int' and 'const char*'
   22 |     printf(f?"%d\n",a*b:"-1\n");
      |            ~^~~~~~~~~~~~~~~~~~
Language: Java

import java.util.*;

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

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    for (int i = 1; i < n; i++) {
    }
    
    System.out.println(a > 9 && b > 9 ? "-1" : a * b);
  }
}


Compiler output:
Main.java:10: error: cannot find symbol
    for (int i = 1; i < n; i++) {
                        ^
  symbol:   variable n
  location: class Main
1 error
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'n'
    5 |         int m n a;
      |               ^
main.c:5:15: error: unknown type name 'n'
main.c:6:20: error: 'm' undeclared (first use in this function)
    6 |     scanf("%d %d",&m,&n);
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:23: error: 'n' undeclared (first use in this function)
    6 |     scanf("%d %d",&m,&n);
      |                       ^
Language: C

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

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

//I read the news today, oh boy
//About a lucky man who made the grade
 
#include <vector>
#include <iostream>
#include <set>
#include <map>
#include <algorithm>
#include <queue>
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define sz(x) int((x).size())
#define all(v) (v).begin(),(v).end()
#define trace(x) cerr << #x << " = " << x << endl
#define fastio ios_base::sync_with_stdio(0);cin.tie(0)
#define For(i,a,b) for(int i = int(a); i < int(b); ++i)
#define roF(i,a,b) for(int i = int(a); i >= int(b); i--)
using namespace std;

typedef long long ll;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

const int N=1e6;


int main(){
	fastio;
	int ans; cin>>a>>b;
	int ans = a*b;
	if(a<10 && b<10){
		cout<<ans<<endl;
		return 0;
	}
	cout<<-1<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: 'a' was not declared in this scope
   32 |         int ans; cin>>a>>b;
      |                       ^
a.cc:32:26: error: 'b' was not declared in this scope
   32 |         int ans; cin>>a>>b;
      |                          ^
a.cc:33:13: error: redeclaration of 'int ans'
   33 |         int ans = a*b;
      |             ^~~
a.cc:32:13: note: 'int ans' previously declared here
   32 |         int ans; cin>>a>>b;
      |             ^~~
Language: C++

fun main(args: Array<String>) {
    val (x, y) = readLine()!!.split(" ").map{ it.toInt() }
    (if(x < 10 && y < 10) x * y else -1).let{println(it)}
}

Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(a <= 9 && b <= 9?a*b:-1)
    }
}

Compiler output:
Main.java:8: error: ';' expected
        System.out.println(a <= 9 && b <= 9?a*b:-1)
                                                   ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>a>>" ">>b;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<a*b;
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"-1";
      |     ^~~~
Language: Java

import java.util.*;

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

    int a = sc.nextInt();
    int n = sc.nextInt();
    
    for (int i = 1; i < n; i++) {
    }
    
    System.out.println(a > 9 && b > 9 ? "-1" : a * b);
  }
}


Compiler output:
Main.java:13: error: cannot find symbol
    System.out.println(a > 9 && b > 9 ? "-1" : a * b);
                                ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
    System.out.println(a > 9 && b > 9 ? "-1" : a * b);
                                                   ^
  symbol:   variable b
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class kuku{
  public static void main(String[] args){
    Scanner stdIn=new Scanner(System.in);

    int a=stdIn.nextInt();
    int b=stdIn.nextInt();
    if(0<a && a<10 && 0<b && b<10){
      System.out.println(a*b);
    }else{
      System.out.println(-1);
    }
  }
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected identifier before '(' token
   11 |         if ((a<=9)&&(a>=1))&&((b<=9)&&(b>=1)){
      |                              ^
Language: C++

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


if(a < 10 and b < 10) :
    print(a*b)
else :
    print('-1')


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

#include <stdio.h>

int main(int argc, char const *argv[]) {
  int a, int b;
  scanf("%d %d\n",&a,&b );
  if (a>20 || a<1 || b>20 || b<1)
    printf("-1\n");
  else
    printf("%d\n",a*b );
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:10: error: expected identifier or '(' before 'int'
    4 |   int a, int b;
      |          ^~~
main.c:5:23: error: 'b' undeclared (first use in this function)
    5 |   scanf("%d %d\n",&a,&b );
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if(1<=A&&A<=9&&1<=B&&B<=9){
          out.println(A*B);
        }
        else{
          out.println(-1);
        }
		

		out.flush();
	}

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

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

Compiler output:
main.c:1:239: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>                                                                                                                                                                                                                            int main(){                                                                                                                    int a,b;                                                                                                               scanf("%d %d",&a,&b);                                                                                                  if(a>9 || b>9) puts("-1");                                                                                             else printf("%d\n",a*b);                                                                                               return 0;                                                                                                      }
      |                                                                                                                                                                                                                                               ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected identifier before '(' token
   11 |         if ((a>=9)&&(a<=1))&&((b>=9)&&(b<=1)){
      |                              ^
Language: C++

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

#define F first
#define S second
#define PB push_back
#define MP make_pair
#define mod 1000000007;

typedef long long ll; 
typedef pair<int, int> ii; 
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<ll> vll;

// Print fn to print array

int main(){
	int n,m;
	cin >> n >> m;
	if(n<=9 && m<=9){
		cout << n*m << endl;
	}
	else out << -1 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'out' was not declared in this scope
   24 |         else out << -1 << endl;
      |              ^~~
Language: C

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


int main(void)
{
	int a, b;
	scanf("%d", &a);
	scanf("%d", &b);
	if (1 < a&&a < 10 && 1 < b&&b < 10)
	{
		printf("%d", a*b);
	}
	else
		printf("-1");

	
	return 0;
}

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

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

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

  if(A>9||B>9){
    printf("-1\n");
    return;
  }
  printf("%d\n",A*B);
}


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

#include"bits/stdc++.h"
#include "prettyprint.hpp"

using namespace std;

#define rep(i, n) for(ll i=0; i<n; i++)
#define repr(i, n) for(ll i=n; i>=0; i--)
#define reps(i, s, e) for(ll i=s; i<e; i++)
#define all(x) x.begin(),x.end()


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

	if(A >= 1&& A <= 9 && B >= 1&& B <= 9 ){
		cout << A*B << endl;
	}

	else cout << -1 << endl;

	return 0;
}

Compiler output:
a.cc:2:10: fatal error: prettyprint.hpp: No such file or directory
    2 | #include "prettyprint.hpp"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A, B;
  cin >> A >> B;
  if(A>9 || B>9){
    cout << -1;
    return;
  }
  cout << A*B;
  return 0;
}

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

#include <bits/stdc++.h>
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
using namespace std;


#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  int A,B;
  cin >> A >> B;
  
  if ( A >= 10 || B >= 10 ){
    cout << -1 << endl;
  }
  else{
    cout << A*B << endl;
}


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

include<iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<a*b;
      |                 ^~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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 = 1 <= a && a <= 9;
  bool canB = 1 <= b && b <= 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 = 1 <= a && a <= 9;
      |                    ^
a.cc:78:20: error: 'b' was not declared in this scope
   78 |   bool canB = 1 <= b && b <= 9;
      |                    ^
Language: C++

#include<stdio.h>

int main()
{
  int a, b, c;
  scanf(%d %d, &a,&b);
  if((0<a<10)&&(0<b<10))
    c=a*b;
  else
    c=-1;
  printf("%d",c);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
    6 |   scanf(%d %d, &a,&b);
      |         ^
a.cc:6:10: error: 'd' was not declared in this scope
    6 |   scanf(%d %d, &a,&b);
      |          ^
Language: C++

Having learned the multiplication table, Takahashi can multiply two integers between 
1
 and 
9
 (inclusive) together. He cannot do any other calculation.

Given are two integers 
A
 and 
B
.

If Takahashi can calculate 
A
×
B
, print the result; if he cannot, print -1 instead.

Constraints
1
≤
A
≤
20
1
≤
B
≤
20
All values in input are integers.
Input
Input is given from Standard Input in the following format:

A
 
B

Output
If Takahashi can calculate 
A
×
B
, print the result; if he cannot, print -1.

Sample Input 1 
Copy
2 5
Sample Output 1 
Copy
10
2
×
5
=
10
.

Sample Input 2 
Copy
5 10
Sample Output 2 
Copy
-1
5
×
10
=
50
, but Takahashi cannot do this calculation, so print -1 instead.



Compiler output:
a.cc:15:1: error: extended character × is not valid in an identifier
   15 | ×
      | ^
a.cc:21:1: error: extended character ≤ is not valid in an identifier
   21 | ≤
      | ^
a.cc:23:1: error: extended character ≤ is not valid in an identifier
   23 | ≤
      | ^
a.cc:26:1: error: extended character ≤ is not valid in an identifier
   26 | ≤
      | ^
a.cc:28:1: error: extended character ≤ is not valid in an identifier
   28 | ≤
      | ^
a.cc:41:1: error: extended character × is not valid in an identifier
   41 | ×
      | ^
a.cc:52:1: error: extended character × is not valid in an identifier
   52 | ×
      | ^
a.cc:65:1: error: extended character × is not valid in an identifier
   65 | ×
      | ^
a.cc:1:1: error: 'Having' does not name a type
    1 | Having learned the multiplication table, Takahashi can multiply two integers between
      | ^~~~~~
a.cc:17:21: error: expected unqualified-id before 'if'
   17 | , print the result; if he cannot, print -1 instead.
      |                     ^~
a.cc:43:21: error: expected unqualified-id before 'if'
   43 | , print the result; if he cannot, print -1.
      |                     ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(A =< 9 && B <= 9)
      |         ^
Language: C++

#include <iostream>
std::cout;
std::cin;
std::endl;

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

    if (A < 10 && B < 10)
    {
        cout << A * B << endl;
    }
    cout << "-1" << endl;

    return 0;
}

Compiler output:
a.cc:2:6: error: 'cout' in namespace 'std' does not name a type
    2 | std::cout;
      |      ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:3:6: error: 'cin' in namespace 'std' does not name a type
    3 | std::cin;
      |      ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:6: error: 'endl' in namespace 'std' does not name a type
    4 | std::endl;
      |      ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> A >> B;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << A * B << 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 << A * B << 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:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout << "-1" << 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:15:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout << "-1" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();
        System.out.println((a<=9&&b<=9)?a*b:-1);
    }
}


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

import java.util.Scanner;

public class A 
{
	public static void main(String[] args) 
	{
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		
		int a  = sc.nextInt();
		int b  = sc.nextInt();
		
		if(a < 1 || a > 9)
		{
			System.out.println("-1");
		}
		
		if(b < 1 || b > 9)
		{
			System.out.println("-1");
		}
		
		System.out.println(a * b);
		

	}

}


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

#include<stdio.h>
int main(void){
	int A,B;
  	scanf(%d,&A);
  	scanf(%d,&B);
	if(A>=10||B>=10){
    	printf("-1");
    }
  	else printf("%d",A*B);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected primary-expression before '%' token
    4 |         scanf(%d,&A);
      |               ^
a.cc:4:16: error: 'd' was not declared in this scope
    4 |         scanf(%d,&A);
      |                ^
a.cc:5:15: error: expected primary-expression before '%' token
    5 |         scanf(%d,&B);
      |               ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <cmath>

using namespace std;


int main() {
    size_t a, b;
    if (0 < a && a < 10 && 0 < b && b < 10)
        cout << a * b << endl;
    else
        cout << -1 << endl;
    return 0;


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

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

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


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

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

int main() {
  int A,B;
  cin >>A>>B;
  bool pos = true;
  if(A>9||B>9){
    pos = false;
  }
  if(pos){
    cout<<A*B<<endl;
  }else{
    cout<<-1<<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<bits/stdc++.h>
int main()
{
	int a,b;
	cin >> a >> b;
	if(a>9&&a<=0)
		cout << -1 << endl;
	else if(b>9&&b<=0)
		cout << -1 << endl;
	else
		cout << a*b << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a >> b;
      |         ^~~
      |         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:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 cout << -1 << 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:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |                 cout << -1 << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << -1 << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout << -1 << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << a*b << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |                 cout << a*b << endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

/

//qsort(pa,n,sizeof(int),(int(*)(const void* ,const void*))cmp);

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


Compiler output:
main.c:3:1: error: expected identifier or '(' before '/' token
    3 | /
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
   ll a,b;
  cin>>a>>b;
  if(a<10&&b<10)couT<<a*b<<endl;
  else cout<<"-1"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'couT' was not declared in this scope
    7 |   if(a<10&&b<10)couT<<a*b<<endl;
      |                 ^~~~
Language: C

#include<bits/stdc++.h>
#include<stdlib.h>
#define ll long long
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(a>0&&a<10&&b>0&&b<10)
        cout<<a*b<<endl;
    else
        cout<<"-1"<<endl;
    return 0;
}

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

def run(A, B):
    ret = A * B
    if A > 9:
        ret = -1
    if B > 9:
        ret = -1
    return ret


def main():
    A, B = map(int, input().split())
    print(run(A, B))


if __name__ == '__main__':
    main()


Compiler output:
a.cc:15:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   15 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def run(A, B):
      | ^~~
Language: C++

A, B = map(int, input().split())
if 1 <= A <= 9 and 1 <= 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>
using namespace std;
 
int main() {
 int N,M;
 cin >> N >> M;
  
 if (N >= 1 && N <= 9) &&  (M >= 1 && M <= 9){
 	cout << M*N;
 }
  else {
    cout << -1;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected identifier before '(' token
    8 |  if (N >= 1 && N <= 9) &&  (M >= 1 && M <= 9){
      |                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
vector<int>vec;
int main()
{

    int t,i,j,n,a,b;
    string s,s1
    cin>>a>>b;
    if((a>=0&&a<=9)&&(b>=0&&b<=9))
    cout<<a*b<<"\n";
    else
        cout<<"-1"<<"\n";



return 0;
}


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

#include<iostrem>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a>9||b>9)
    cout<<"-1";
  else
    cout<<a*b;
}

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

lst = list(map(int, input().split()))

ok = True

if not 1 <= lst[0] <= 9:
    ok = False
if not 1 <= lst[1] <= 9:
    ok = False

if ok:
    print(lst[0] * lst[1])
else:
    print(-1)

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int A,B;
    cin >>A>>B;
    if((A/10==0)&&(B/10==0)){
        cout<<A*B<<endl;
    }
    else{
        cout<<-1<<endl;
    }

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

import java.util.Scanner;

public class Main1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans = 0;
		if (a < 10 && b < 10) {
			ans = a * b;
		} else {
			ans = -1;
		}
		System.out.println(ans);

	}

}

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

import java.util.*;

public class main {
    final static int MOD = 1000000007;
    
    public static void main(String[] args) {
        MyScanner in = new MyScanner();
        int a = in.nextInt();
        int b = in.nextInt();
        int ans = -1;
        
        if (0 < a && a < 10 && 0 < b && b < 10) {
            System.out.println(a * b);
        } else {
            System.out.println(ans);
        }
        
    }
    
    static class MyScanner {
        static Scanner sc = new Scanner(System.in);
        
        String next() {
            return sc.next();
        }
        
        String nextLine() {
            return sc.nextLine();
        }
        
        int nextInt() {
            return Integer.parseInt(sc.next());
        }
        
        double nextDouble() {
            return Double.parseDouble(next());
        }
        
        long nextLong() {
            return Long.parseLong(next());
        }
        
        int[] nextIntArray(int n) {
            int[] array = new int[n];
            for (int i = 0; i < n; i++) {
                array[i] = nextInt();
            }
            return array;
        }
        
        double[] nextDoubleArray(int n) {
            double[] array = new double[n];
            for (int i = 0; i < n; i++) {
                array[i] = nextDouble();
            }
            return array;
        }
        
        long[] nextLongArray(int n) {
            long[] array = new long[n];
            for (int i = 0; i < n; i++) {
                array[i] = nextLong();
            }
            return array;
        }
        
        String[] nextLineArray(int n) {
            String[] array = new String[n];
            for (int i = 0; i < n; i++) {
                array[i] = nextLine();
            }
            return array;
        }
        
        int[][] nextIntMatrix(int n, int m) {
            int[][] matrix = new int[n][m];
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < m; j++) {
                    matrix[i][j] = nextInt();
                }
            }
            return matrix;
        }
        
        double[][] nextDoubleMatrix(int n, int m) {
            double[][] matrix = new double[n][m];
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < m; j++) {
                    matrix[i][j] = nextDouble();
                }
            }
            return matrix;
        }
        
        long[][] nextLongMatrix(int n, int m) {
            long[][] matrix = new long[n][m];
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < m; j++) {
                    matrix[i][j] = nextLong();
                }
            }
            return matrix;
        }
    }
}

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

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

#define FOR(i, m, n) for(int (i) = (m); (i) < (n); (i)++)
#define rep(i, n) FOR(i, 0, n)
#define co(n) cout << (n) << endl
#define cosp(n) cout << (n) << ' '
#define all(s) (s).begin(), (s).end()
#define pb push_back
#define mp make_pair
#define fs first
#define sc second
typedef long long ll;
typedef pair<int, int> P;

const ll INF = 1e9+1;
const ll LINF = 1e18+1;
const ll MOD = 1e9+7;
//const ll MOD = 998244353;

int main(void){
	int a, b;
	cn >> a >> b;
	if(a < 10 && b < 10){
		co(a*b);
	}else{
		co(-1);
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'cn' was not declared in this scope; did you mean 'yn'?
   23 |         cn >> a >> b;
      |         ^~
      |         yn