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

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

Compiler output:
main.c:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
main.c: In function 'main':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |   scanf("%d%d",&a&b);
      |   ^~~~~
main.c:6:15: error: 'b' undeclared (first use in this function)
    6 |   if (a<=9 && b<=9) printf("%d\n",a*b);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   if (a<=9 && b<=9) printf("%d\n",a*b);
      |                     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #include stdio.h
main.c:6:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   if (a<=9 && b<=9) printf("%d\n",a*b);
      |                     ^~~~~~
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |   else printf("\n",-1);
      |        ^~~~~~
main.c:7:8: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 | ans=a*b;
      | ^~~
      | abs
Language: Java

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

public static void main(String arg[]){

	Scanner s = new Scanner(System.in);
	int a = s.nextInt();
	int b = s.nextInt();

	if(a+b>19){
	System.out.println(a*b);
	}else{
	System.out.println("-1");
	}
}
}

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

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

public static void main(String arg[]){

	Scanner s = new Scanner(System.in);
	int a = s.nextInt();
	int b = s.nextInt();

	if(a+b>19)
	System.out.println(a*b);
	else
	System.out.println("-1");
	}
}



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

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

public static void main(String arg[]){

	Scanner s = new Scanner(System.in);
	int a = s.nextInt();
	int b = s.nextInt();

	if((a>=1 && a<=9 )&&(b>=1 && b<=9))
	System.out.println(a*b);
	else
	System.out.println("-1");
	}
}



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

using namespace std;

int main()
{

    int a,b;
    cin>>a>>b;
    if(a!=0 && b!=0 && a<10 && b<10)
        cout<< a*b;
    else
        cout<<-1;



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<< a*b;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<-1;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: expected '}' at end of input
   11 |         cout<<-1;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>a>>b;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if(a!=0 && b!=0 && a<10 && b<10 )
      | ^~
a.cc:6:2: error: expected unqualified-id before 'else'
    6 | }else
      |  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
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: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A <= 9 & 1 =< B & B <= 9) {
      |          ^
a.cc:6:28: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A <= 9 & 1 =< B & B <= 9) {
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
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: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A =< 9 & 1 =< B & B =< 9) {
      |          ^
a.cc:6:19: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A =< 9 & 1 =< B & B =< 9) {
      |                   ^
a.cc:6:28: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A =< 9 & 1 =< B & B =< 9) {
      |                            ^
a.cc:6:37: error: expected primary-expression before '<' token
    6 |   if (1 =< A & A =< 9 & 1 =< B & B =< 9) {
      |                                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 |   else {cout << "-1"}
      |                     ^
      |                     ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before '}' token
    9 |                 cout<<"Yes"
      |                            ^
      |                            ;
   10 |     }
      |     ~
Language: C++

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

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

#include <bits/stdc++.h>
#include <cstdint>
using namespace std;
 
 
long long N;
long long mindist = UINT64_MAX;
int main() {
  ios::sync_with_stdio(false);
  cin >> N;
  for(auto i = 1; i <= sqrt(N); ++i) {
    if((N % i) == 0 && (i + N/i -2) < mindist) {
      mindist = i + N/i -2;
    }
  }
  cout << mindist;
 
 
  return 0;

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

#include<bits/stdc++.h>
#include <stdio.h>
#include <math.h>
int main(void){
    long int i,j,n;
    scanf ("%d",&n);
  long int ans = 0;
    for (i = 1;i <= n;i++)
    {
        for (j = 1;j <= i;j++)
        {
     
        if (i*j == n)max(ans,i+j-2);
  
        }
    }
 printf("%d",ans);
    return 0;
}


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

#include <stdio.h>
#include <math.h>
int main(void){
    int i,j,n;
    scanf ("%d",&n);
    for (i = 1;i < n;i++)
    {
        for (j = 1;j < i;j++)
        {        
        if (i*j == n)
        break;
        ptintf("%d %d",i,j);
        }
    if (i*j == n)
    break;
    }
    if (j == 0);
    {printf ("%d",i)
    }else{
    printf("%d",i+j-2);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |         ptintf("%d %d",i,j);
      |         ^~~~~~
      |         printf
main.c:18:21: error: expected ';' before '}' token
   18 |     {printf ("%d",i)
      |                     ^
      |                     ;
   19 |     }else{
      |     ~                
main.c:19:6: error: 'else' without a previous 'if'
   19 |     }else{
      |      ^~~~
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <cmath>
#include <algorithm>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <deque>
#include <numeric>
#include <string>
#include <random>
typedef long long ll;
#define pb push_back
#define pf push_front
#define mii map <int, int>
#define mll map <ll, ll>
#define pii pair <int, int>
#define pll pair <ll, ll>
#define vi vector <int>
#define vll vector <ll>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define sz(x) (int)x.size()


using namespace std;
const ll INFLL = 1e18;
const int MAXN = 3e5;
const ll INF = 1e9;
const ll kek=998244353;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int a,b;
    cin>>a>>b;
    vector <int> c(401,0);
    for (int i=1;i<10;i++)
    {
        (int j=1;j<10;j++)
        c[i*j]=1;
    }
    if (c[a*b]==1)
        cout<<a*b;
    else
        cout<<-1;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:44:10: error: expected primary-expression before 'int'
   44 |         (int j=1;j<10;j++)
      |          ^~~
a.cc:44:10: error: expected ')' before 'int'
   44 |         (int j=1;j<10;j++)
      |         ~^~~
      |          )
a.cc:44:18: error: 'j' was not declared in this scope
   44 |         (int j=1;j<10;j++)
      |                  ^
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <cmath>
#include <algorithm>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <deque>
#include <numeric>
#include <string>
#include <random>
typedef long long ll;
#define pb push_back
#define pf push_front
#define mii map <int, int>
#define mll map <ll, ll>
#define pii pair <int, int>
#define pll pair <ll, ll>
#define vi vector <int>
#define vll vector <ll>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define sz(x) (int)x.size()


using namespace std;
const ll INFLL = 1e18;
const int MAXN = 3e5;
const ll INF = 1e9;
const ll kek=998244353;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int a,b;
    cin>>a>>b;
    vector <int> c(401,0);
    for (int i=1;i<10;i++)
    {
        int (int j=1;j<10;j++)
        c[i*j]=1;
    }
    if (c[a*b]==1)
        cout<<a*b;
    else
        cout<<-1;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:44:9: error: expected primary-expression before 'int'
   44 |         int (int j=1;j<10;j++)
      |         ^~~
a.cc:44:22: error: 'j' was not declared in this scope
   44 |         int (int j=1;j<10;j++)
      |                      ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc:13:2: error: stray '#' in program
   13 | }#include <bits/stdc++.h>
      |  ^
a.cc:13:3: error: 'include' does not name a type
   13 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:16:5: error: redefinition of 'int main()'
   16 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

/*
  1   2   3   4   5   6   7   8   9  10
 10   9   8   7   6   5   4   3   2   1
 10  18  24  28  30  30  28  24  18  10
     28  52  80 110 140 168 192 210 220
*/

#include<algorithm>
#include<cmath>
#include<iostream>
#include<cstdio>
using namespace std;
#define int long long
const int LINF=1e18;

int main(void){
	//N人の入力と修行の最大回数の入力
	int N,K;cin>>N>>K;
	//a[N]消化コストとf[N]（食べ物の食べにくさ
	vector<int> a(N),f(N);
	for(int i=0;i<N;i++)cin>>a[i];
	for(int i=0;i<N;i++)cin>>f[i];
	sort(a.begin(),a.end());
	sort(f.rbegin(),f.rend());
	int l=-1,r=LINF;
	while(r-l>1)
	{
		int m=(r+l)>>1;
		int cnt=0;
		for(int i=0;i<N;i++){
			if(a[i]*f[i]>m){
				cnt+=(a[i]*f[i]-m)/f[i];
				if((a[i]*f[i]-m)%f[i])cnt++;
			}
		}
		if(cnt>K)l=m;
		else r=m;
	}
	cout<<r<<endl;
	return 0;
}
/*
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int LINF=1e18;
 
signed main(){
  int N,K;cin>>N>>K;
  vector<int> a(N),f(N);
  for(int i=0;i<N;i++)cin>>a[i];
  for(int i=0;i<N;i++)cin>>f[i];
  sort(a.begin(),a.end());
  sort(f.rbegin(),f.rend());
  int l=-1,r=LINF;
  while(r-l>1){
    int m=(r+l)>>1;
    int cnt=0;
    for(int i=0;i<N;i++){
      if(a[i]*f[i]>m){
        cnt+=(a[i]*f[i]-m)/f[i];
        if((a[i]*f[i]-m)%f[i])cnt++;
      }
    }
    if(cnt>K)l=m;
    else r=m;
  }
  cout<<r<<endl;
}
*/

Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:20:9: error: 'vector' was not declared in this scope
   20 |         vector<int> a(N),f(N);
      |         ^~~~~~
a.cc:12:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
   11 | #include<cstdio>
  +++ |+#include <vector>
   12 | using namespace std;
a.cc:13:13: error: expected primary-expression before 'long'
   13 | #define int long long
      |             ^~~~
a.cc:20:16: note: in expansion of macro 'int'
   20 |         vector<int> a(N),f(N);
      |                ^~~
a.cc:21:34: error: 'a' was not declared in this scope
   21 |         for(int i=0;i<N;i++)cin>>a[i];
      |                                  ^
a.cc:22:34: error: 'f' was not declared in this scope
   22 |         for(int i=0;i<N;i++)cin>>f[i];
      |                                  ^
a.cc:23:14: error: 'a' was not declared in this scope
   23 |         sort(a.begin(),a.end());
      |              ^
a.cc:24:14: error: 'f' was not declared in this scope
   24 |         sort(f.rbegin(),f.rend());
      |              ^
Language: C++

/*
  1   2   3   4   5   6   7   8   9  10
 10   9   8   7   6   5   4   3   2   1
 10  18  24  28  30  30  28  24  18  10
     28  52  80 110 140 168 192 210 220
*/

#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
#define int long long
const int LINF=1e18;

int main(void){
	//N人の入力と修行の最大回数の入力
	int N,K;cin>>N>>K;
	//a[N]消化コストとf[N]（食べ物の食べにくさ
	vector<int> a(N),f(N);
	for(int i=0;i<N;i++)cin>>a[i];
	for(int i=0;i<N;i++)cin>>f[i];
	sort(a.begin(),a.end());
	sort(f.rbegin(),f.rend());
	int l=-1,r=LINF;
	while(r-l>1)
	{
		int m=(r+l)>>1;
		int cnt=0;
		for(int i=0;i<N;i++){
			if(a[i]*f[i]>m){
				cnt+=(a[i]*f[i]-m)/f[i];
				if((a[i]*f[i]-m)%f[i])cnt++;
			}
		}
		if(cnt>K)l=m;
		else r=m;
	}
	cout<<r<<endl;
	return 0;
}
/*
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int LINF=1e18;
 
signed main(){
  int N,K;cin>>N>>K;
  vector<int> a(N),f(N);
  for(int i=0;i<N;i++)cin>>a[i];
  for(int i=0;i<N;i++)cin>>f[i];
  sort(a.begin(),a.end());
  sort(f.rbegin(),f.rend());
  int l=-1,r=LINF;
  while(r-l>1){
    int m=(r+l)>>1;
    int cnt=0;
    for(int i=0;i<N;i++){
      if(a[i]*f[i]>m){
        cnt+=(a[i]*f[i]-m)/f[i];
        if((a[i]*f[i]-m)%f[i])cnt++;
      }
    }
    if(cnt>K)l=m;
    else r=m;
  }
  cout<<r<<endl;
}
*/

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>

using namespace std;
typedef long long int ll;

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

int main(){
    ll n;  cin >> n;

    ll x,y;
  	ll max=0;

    for(ll i=9;i>0;i--){
        if(n%i==0){
            x=n/i;
            y=i;    //printf("%d,%d\n",x,y);
        }
      	if(max<x+y-2)[
          max=x+y-2;
          }
    }

    cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: expected ',' before ';' token
   23 |           max=x+y-2;
      |                    ^
      |                    ,
a.cc:23:20: error: expected identifier before ';' token
a.cc:23:20: error: expected ']' before ';' token
   23 |           max=x+y-2;
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:23:20: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:27:5: error: 'cout' does not name a type
   27 |     cout << max << endl;
      |     ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

#define ASC(vec) vec.begin(), vec.end()		// 昇順ソート 例：sort(ASC(vec));
#define DESC(vec) vec.rbegin(), vec.rend()	// 降順ソート 例:sort(DESC(vec));
#define rep(i, n) for(int i = 0; i < n; i++)
#define Rep(i, n) for(int i = 1; i < n; i++)
#define In(vec) rep(i, n) cin>>vec[i];
#define ANS(s) cout << s << endl
#define inc(a, b) cin >> a >> b;

const int mod = 1000000007;
const int inf = (int)1e9 + 7;
const long long INF = 1LL << 60;

using ii = pair<int, int>;
using ll = long long;
using vi = vector<int>;
using vd = vector<double>;
using vb = vector<bool>;
using vl = vector<ll>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
using vii = vector<pair<int, int>>;

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; }

ll GCD(ll a, ll b) { return b ? GCD(b, a % b) : a; }
ll LCM(ll a, ll b) { return (a * b) / GCD(a, b); }
int round_int(int a, int b) { return (a + (b - 1)) / b; }


// 4,8方向に探索する際に用いる配列
int dx[4] = { 0,  0, 1, -1 };
int dy[4] = { 1, -1, 0,  0 };
//int dx[8] = { 1, 0, -1,  0, 1, -1, -1,  1 };
//int dy[8] = { 0, 1,  0, -1, 1,  1, -1, -1 };

constexpr auto MAX = 100010;

// ────────────────────────────────────────────────────

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


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

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

if 0<a and a<10 and 0<b and b<10:
 a=a*b
 print(a)
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++

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

if 9>=a and a>=1 and 9>=b and b>=1:
  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() {
    cin >> a >> b >> endl;
    if (a < 10 && b < 10) {
        cout << a * b;
    }
    else {
        cout << -1;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> b >> endl;
      |            ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |     cin >> a >> b >> endl;
      |                 ^
Language: C++

#include<iostream>

using namescape std;

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

  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namescape'
    3 | using namescape 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 >> A >> B;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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.*;

public class Main
{
	public static void main(String[] args)
	{
		//variables
		int num1, num2;

		//scanner
		Scanner sc = new Scanner(System.in);

		//deciding output
		System.out.println("");
		if(((num1 <= 9) && (num1 >=1)&&((num2 <= 9) && (num2 >=1))))
		{

			System.out.println(num1*num2);
		}
		else

			System.out.println("-1");

	}
}

Compiler output:
Main.java:16: error: variable num1 might not have been initialized
		if(((num1 <= 9) && (num1 >=1)&&((num2 <= 9) && (num2 >=1))))
		     ^
Main.java:16: error: variable num2 might not have been initialized
		if(((num1 <= 9) && (num1 >=1)&&((num2 <= 9) && (num2 >=1))))
		                                 ^
2 errors
Language: Java

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

        int a, b, answer;
        
        System.out.print("Enter a number: ");
        a = sc.nextInt();
        System.out.print("\nEnter another number: ");
        b = sc.nextInt();
        

        if(a>=10||b>=10)
            answer = -1;
        else
            answer = a*b;
        
        System.out.println(answer);
    }
}

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

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

        int a, b, answer;
        
        System.out.print("Enter a number: ");
        a = sc.nextInt();
        System.out.print("\nEnter another number: ");
        b = sc.nextInt();
        

        if(a>=10||b>=10)
            answer = -1;
        else
            answer = a*b;
        
        System.out.println("The product is "+answer);
    }
}

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

import java.util.Scanner;


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

		//User Input
			System.out.print("Insert an integer to multiply: ");
			int firstNum = sc.nextInt();

			System.out.print("Inset an integer to multiply by the first one: ");
			int secondNum = sc.nextInt();

		//If statement
			if(firstNum <= 9 && secondNum <= 9)
			{
				int product = firstNum * secondNum;
				System.out.println("Takahashi found that product is " + product);
			}
			else
				System.out.println("-1");
	}

}

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

import java.util.*;

public class Comp {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        if(A < 10 && B < 10 && A > 0 && B > 0) {
            System.out.println(A*B);
        } else {
            System.out.println(-1);
        }
        
    }
}

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

import java.util.*;

public class main
{
	public static void main(String[] args)
	{
	Scanner scan = new Scanner(System.in);
	System.out.println("First number");
	int a = scan.nextInt();

	System.out.println("Second number");
	int b = scan.nextInt();

	if( a >= 1 && a <= 9 && b>= 1 && b <=9)
		System.out.println(a * b);
	else
		System.out.println("-1");


	}


}

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

import java.util.*;

public class main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        if(A < 10 && B < 10 && A > 0 && B > 0) {
            System.out.println(A*B);
        } else {
            System.out.println(-1);
        }
        
    }
}

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++

#inclde<bits/stdc++.h>

using namespace std;

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

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

#inclde<bits/stcd++.h>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stcd++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >>  a >> b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<bits/stcd++.h>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << a * b << "\n";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "-1\n";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inclde<bits/stcd++.h>

usign namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stcd++.h>
      |  ^~~~~~
      |  include
a.cc:3:1: error: 'usign' does not name a type
    3 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >>  a >> b;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << a * b << "\n";
      |         ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "-1\n";
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
	int a, b, ;
	if (a < 10 && b < 10) {
    	printf("%d\n", a * b);
    } else {
		printf("%d\n", -1);
    }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: expected unqualified-id before ';' token
    4 |         int a, b, ;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
int main()
{
	ll a,b;
  	cin >> a >> b;
  	if(a>9 || b>9)
      cout << -1;
 	else
      cout << pro;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'pro' was not declared in this scope
   11 |       cout << pro;
      |               ^~~
Language: C++

#include <stdio.jp>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'A' was not declared in this scope
    4 |   cin >> A >> B;
      |          ^
a.cc:4:15: error: 'B' was not declared in this scope
    4 |   cin >> A >> B;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'A' was not declared in this scope
    4 |   cin >> A >> B;
      |          ^
a.cc:4:15: error: 'B' was not declared in this scope
    4 |   cin >> A >> B;
      |               ^
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^
Language: C++

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

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back

typedef long long ll;
typedef pair<int,int> pii;
typedef vector<int> vi;

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

	if(a>=10 || b>=10){
		cout<<-1<<enmdl;
	}else{
		cout<<a*b<<endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: 'enmdl' was not declared in this scope
   17 |                 cout<<-1<<enmdl;
      |                           ^~~~~
Language: C++

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

 
  
  



Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '<' token
   13 |   if (A =< 9 && B =< 9){
      |          ^
a.cc:13:20: error: expected primary-expression before '<' token
   13 |   if (A =< 9 && B =< 9){
      |                    ^
a.cc:15:14: error: expected ';' before '}' token
   15 |     cout << X
      |              ^
      |              ;
   16 |   }
      |   ~           
a.cc:19:15: error: expected ';' before '}' token
   19 |     cout << -1
      |               ^
      |               ;
   20 |   }
      |   ~
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <iostream>
#include <sstream>

#include <string>
#include <vector>
#include <queue>
#include <list>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <deque>
#include <algorithm>
#include <random>
using namespace std;


int main(int argc, char *argv[]) {
    int a, b;
    cin >> a >> b;
    if (a <= 9 && b <= 9)
        cout << a * b << endl;
    else
        cout << -1 << enel;
}




Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:28:23: error: 'enel' was not declared in this scope
   28 |         cout << -1 << enel;
      |                       ^~~~
Language: C++

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

Compiler output:
a.cc:1:7: error: 'input' was not declared in this scope; did you mean 'int'?
    1 | int a=input()
      |       ^~~~~
      |       int
Language: C++

#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <bitset>
#include <limits>
#include <random>
#include <complex>
#include <cmath>
#include <cstdio>
#include <cstdlib>
using namespace std;
typedef long long ll;
#define REP(i,n) for (int i = 0; i < n; i++)
template <class T> using reversed_priority_queue = priority_queue<T, vector<T>, greater<T> >;

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:31:17: error: empty character constant
   31 |     if (A >= 10 ''|| B >= 10) {
      |                 ^~
a.cc: In function 'int main()':
a.cc:31:16: error: expected ')' before '\x0'
   31 |     if (A >= 10 ''|| B >= 10) {
      |        ~       ^~~
      |                )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x,y;
  cin>>x>>y;
  if(x>10||y>10)
    cout<<-1:
  else
    cout<<x*y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before ':' token
    7 |     cout<<-1:
      |             ^
      |             ;
Language: C++

#include <stdio.h>


int main()
{

	int A, B;

	scanf_s("%d %d", &A, &B);

	if (A >9) {
		printf("-1");
	}
	else if (B >9) {
		printf("-1");
	}
	else {

printf("%d",A*B);
	}
}

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

#include<iostream>
using namespace std;
int main（）{
  int m,n;
  cin>>m>>n;
  if(m>9 || n>9)
    cout<<-1;
  else
    cout<<m*n;
  return 0
}

Compiler output:
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int m,n;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:13: note: to match this '{'
    3 | int main（）{
      |             ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>m>>n;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(m>9 || n>9)
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C

#include <stdio.h>
int main(void) {
  int x,y;
  scanf("%d %d",&x,&y);
  if (x*y<=81 && x*y>0=) {
    printf("%d\n",x*y);
  } else {
    printf("-1\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected expression before ')' token
    5 |   if (x*y<=81 && x*y>0=) {
      |                        ^
Language: Java

import java.util.Scanner;
class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    
    if (n=10 || n=11||n=13||n=17||n=19||n=22||n=23||n=26||n=29||n=31||n=33||n=34||n=37||n=38||n=39||n=41||n=43||n=44||n=46||n=47||n=50||n=51||n=52||n=53||n=55||n=57||n=58||n=59||n=60||n=61||n=62||n=65||n=66||n=67||n=68||n=69||n=70||n=71||(n>72 && n<81)||(n<100 && n>81)) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
      
    }
    

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



import java.util.*;

public class A9x9 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		if(a <10 && b < 10) {
			System.out.println(a*b);
		} else {
			System.out.println(-1);
		}
	}

}


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

import java.util.Scanner;

public class A9x9 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		if(a <10 && b < 10) {
			System.out.println(a*b);
		} else {
			System.out.println(-1);
		}
	}

}


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

package abc144;

import java.util.Scanner;

public class A9x9 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		if(a <10 && b < 10) {
			System.out.println(a*b);
		} else {
			System.out.println("-1");
		}
	}

}


Compiler output:
Main.java:5: error: class A9x9 is public, should be declared in a file named A9x9.java
public class A9x9 {
       ^
1 error
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 < 10  && < 10){
      System.out.println(a * b);
    }else{
      System.out.println(-1);
    }
  }
}

Compiler output:
Main.java:8: error: illegal start of type
    if(a < 10  && < 10){
                    ^
Main.java:8: error: ';' expected
    if(a < 10  && < 10){
                      ^
Main.java:10: error: 'else' without 'if'
    }else{
     ^
3 errors
Language: Java

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

public class Main {
    public static void main(String[] args) {
        FastScanner fs = new FastScanner();
        int A = fs.nextInt();
        int B = fs.nextInt();

        if(A<10 && B<10) {
            Sysytem.out.println(A*B);
        }else {
            System.out.println(-1);
        }
    }
}
class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
 
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        } else {
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
 
    private int readByte() {
        if (hasNextByte())
            return buffer[ptr++];
        else
            return -1;
    }
 
    private static boolean isPrintableChar(int c) {
        return 33 <= c && c <= 126;
    }
 
    public boolean hasNext() {
        while (hasNextByte() && !isPrintableChar(buffer[ptr]))
            ptr++;
        return hasNextByte();
    }
 
    public String next() {
        if (!hasNext())
            throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while (isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
 
    public long nextLong() {
        if (!hasNext())
            throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while (true) {
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            } else if (b == -1 || !isPrintableChar(b)) {
                return minus ? -n : n;
            } else {
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
 
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
            throw new NumberFormatException();
        return (int) nl;
    }
 
    public double nextDouble() {
        return Double.parseDouble(next());
    }
}


Compiler output:
Main.java:11: error: package Sysytem does not exist
            Sysytem.out.println(A*B);
                   ^
1 error
Language: Java

public class Main
{
    public int computeMultiplication(int a, int b)
    {
        if(a > 9 || b > 9 || a == 0 || b == 0)
        {
            return -1;
        }

        return a * b;
    }

    public static void main(String args[]) {
        int a, b;
        Scanner sc = new Scanner(System.in);
        Main m = new Main();
        //System.out.println("Enter a string");
        a = sc.nextInt();
        b = sc.nextInt();
        System.out.println(m.computeMultiplication(a, b));
    }
}

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

import java.util.Scanner;

public class Solution
{
    public int computeMultiplication(int a, int b)
    {
        if(a > 9 || b > 9 || a == 0 || b == 0)
        {
            return -1;
        }

        return a * b;
    }

    public static void main(String args[]) {
        int a, b, c;
        Scanner sc = new Scanner(System.in);
        Solution m = new Solution();
        //System.out.println("Enter a string");
        a = sc.nextInt();
        b = sc.nextInt();
        c = m.computeMultiplication(a, b);
        System.out.println(c);
    }
}


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

import java.util.Scanner;

public class Solution
{
    public int computeMultiplication(int a, int b)
    {
        if(a > 9 || b > 9 || a == 0 || b == 0)
        {
            return -1;
        }

        return a * b;
    }

    public static void main(String args[]) {
        int a, b, c;
        Scanner sc = new Scanner(System.in);
        Multiplication_table m = new Multiplication_table();
        //System.out.println("Enter a string");
        a = sc.nextInt();
        b = sc.nextInt();
        c = m.computeMultiplication(a, b);
        System.out.println(c);
    }
}


Compiler output:
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution
       ^
Main.java:18: error: cannot find symbol
        Multiplication_table m = new Multiplication_table();
        ^
  symbol:   class Multiplication_table
  location: class Solution
Main.java:18: error: cannot find symbol
        Multiplication_table m = new Multiplication_table();
                                     ^
  symbol:   class Multiplication_table
  location: class Solution
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:17: error: 'a' undeclared (first use in this function)
    3 |   scanf("%d%d",&a,&b);
      |                 ^
main.c:3:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:20: error: 'b' undeclared (first use in this function)
    3 |   scanf("%d%d",&a,&b);
      |                    ^
main.c:8:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |     printf(-1);
      |            ^~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include "pch.h"
#include <iostream>
using namespace std;

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


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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before '<<' token
    9 |         cout << a * << b;
      |                     ^~
Language: C

#include <stdio.h>

int main()
{
	int A,B;
  scanf("%d",&A);
  scanf(%d,&B);
  if(A>=1 && A<=9 || B>=1 && B<=9)
  {
  printf("%d",A*B);
  }
  else printf("%d",-1);
  
  
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%d,&B);
      |         ^
Language: C++

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

int main(){
int n,x;
  cin>>n>>x;
  
//vector<int> a(n);
 // rep(i,n) cin>>a.at(i);
  n<10 && x<10 ?
    cout <<x*n;
  : cout <<-1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ':' before ';' token
   13 |     cout <<x*n;
      |               ^
      |               :
a.cc:13:15: error: expected primary-expression before ';' token
a.cc:14:3: error: expected primary-expression before ':' token
   14 |   : cout <<-1;
      |   ^