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

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

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

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

Compiler output:
Main.java:17: error: 'else' without 'if'
		}else{
		 ^
Main.java:21: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:16: error: 'else' without 'if'
		}else{
		 ^
Main.java:20: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:16: error: 'else' without 'if'
            }else{
             ^
1 error
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'a' was not declared in this scope
    8 |         scanf("%d %d",&a,&b);
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typdef long long ll;
int main()
{
  ll N,M;
  cin>>N>>M;
  if(N>=1&&N<=9&&M>=1&&M<=9)
    cout<<N*M<<"\n";
  else
    cout<<-1<<"\n";
  return 0;
}

Compiler output:
a.cc:3:1: error: 'typdef' does not name a type; did you mean 'typedef'?
    3 | typdef long long ll;
      | ^~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll N,M;
      |   ^~
a.cc:7:8: error: 'N' was not declared in this scope
    7 |   cin>>N>>M;
      |        ^
a.cc:7:11: error: 'M' was not declared in this scope
    7 |   cin>>N>>M;
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ')' before 'c'
   11 |     printf("-1"c);
      |           ~    ^
      |                )
Language: C++

#include <bits/stdc++.h>

using namespace std;

int n, t;

int main() {
  int a, b;
  bool flag = true;
  string s = to_string(a);
  for (auto& c : s) {
    if (c < '1' || c > '9') flag = false;
  }
  s = to_string(b);
  for (auto& c : s) {
    if (c < '1' || c > '9') flag = false;
  }
  if (flag) {
    cout << a * b << '\n';
  else {
    cout << "-1\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected '}' before 'else'
   20 |   else {
      |   ^~~~
a.cc:18:13: note: to match this '{'
   18 |   if (flag) {
      |             ^
Language: C++

//shara's here
#include <bits/stdc++.h>
using namespace std;
typedef int q;
typedef double w;
typedef string s;
typedef long long ll;
int main(){
    int x,y;
    cin>>x>>y;
    if(x>9||y>9){cout<<-1}
    else cout<<x*y;



















return 0;}
/*
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⠿⠿⠿⣷⣦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡟⠁⠀⠀⠀⠀⠹⣷
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡇⠀⠀⠀⠀⠀⢀⣿⠂
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣦⣀⣀⣀⣤⣾⠏
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡟⠀⢙⣿⣿⡟⠋
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⠏⠀⢀⣾⣿⣿⣿⣦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⠋⠀⢠⣿⣿⣿⣿⣿⡟⠿⣦⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⣠⣿⠟⠹⣿⣿⠟⠀⠀⠈⠙⠻⢶⣤⣄⣀⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡿⠁⠀⣰⣿⠏⠀⠀⢙⣏⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⣿⡿⠿⠿⠷⠶⣶⣶⣤⣄⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠁⠀⣼⣿⡇⠀⠀⢀⣾⣿⣿⣦⣄⡀⣴⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⣶⣄⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡟⠀⢀⣼⣿⣿⣿⡄⢠⣿⣿⣿⣿⣿⣿⠏⠉⠛⠻⠿⢿⣿⣏⡀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⡿⠁⠙⢿⣦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⠏⠀⢀⣾⣿⣿⣿⣿⡟⠙⢿⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣷⡶⠛⠿⢿⣿⣿⡟⠁⠀⠀⠀⠙⣷
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⠋⠀⢠⣾⠏⠈⢿⣿⡟⠀⠀⠀⠈⠙⢻⣇⣀⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠈⣽⣄⡀⠀⠀⢠⡾⠋
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⣠⣿⠋⠀⠀⠈⣏⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⣷⡶⠛⠛⠻⠿⠿⣿⠏⠀⠀⠀⠀⢀⣼⣿⣿⣿⣦⣰⡟⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡿⠁⠀⣰⣿⣿⣆⠀⢀⣾⣿⣷⣤⣀⠀⣰⣿⣿⣿⣿⣿⣿⡟⠁⠀⠀⠀⠀⢀⣾⣿⣿⣶⣤⣀⣾⣿⣿⣿⣿⣿⠏
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠁⠀⣴⣿⣿⣿⣿⣦⣾⣿⣿⣿⣿⣿⡟⠙⠛⠿⠿⣿⣿⣟⣀⡀⠀⠀⠀⢠⣾⣿⣿⣿⣿⣿⠃⠉⠻⣿⣿⡿⠃
⠀⠀⠀⠀⠀⠀⠀⠀⣼⡟⠀⢀⣼⣿⣿⣿⣿⡿⠁⠙⠻⣿⣿⣿⠏⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⡶⠛⠻⢿⣿⣿⡿⠁⠀⠀⠀⢹⡿⠁
⠀⠀⠀⠀⠀⠀⢀⣼⠏⠀⢀⣾⠏⠀⠻⣿⡟⠁⠀⠀⠀⠈⢙⣯⣤⣀⡀⠀⠀⢀⣾⣿⣿⣿⣿⣿⡟⠁⠀⠀⠀⠈⣹⣅⡀⠀⠀⣰⡿⠁
⠀⠀⠀⠀⠀⢀⣾⠋⠀⢠⣾⠏⠀⠀⠀⠙⢷⣄⡀⠀⠀⢠⣿⣿⣿⣿⣿⣿⡿⠋⠙⠛⠛⠻⠿⣏⣀⠀⠀⠀⠀⣴⣿⣿⣿⣆⣰⡟
⠀⠀⠀⠀⢠⣿⠃⠀⢠⣿⠃⠀⠀⠀⠀⠀⠀⠉⠛⠷⣶⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⢀⣾⣿⣿⣿⣶⣤⣼⣿⣿⣿⣿⣿⡟
⠀⠀⠀⣠⡿⠁⠀⣰⡿⣷⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣾⣿⣿⣿⣿⠿⠷⢶⣴⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⣿⣿⠆⠀⠀⢰⣶⣶⣶⣶⡶
⠀⠀⣰⡟⠁⠀⣴⡿⣱⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⢠⣿⣿⣿⣿⣿⠃
⠀⣼⡟⠀⠀⣼⡟⢠⣿⣿⣿⣿⣿⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⢠⣿⣿⣿⣿⣿⠋⠉⠉⠙⠻⣯⣉⠉⢉⣿⠏⠉⠀⠀⢀⣾⣿⣿⣿⣿⠇
⣾⠏⠀⢀⣾⠟⢀⣿⣿⣿⣿⣿⠃⠀⢠⣶⣶⣶⣶⣶⣶⣶⣶⡦⠀⠀⢀⣾⣿⣿⣿⣿⠇⠀⢠⣶⣶⣶⣾⣿⣶⣾⣷⡶⠀⠀⠀⣼⣿⣿⣿⣿⡏
⢿⣷⣤⣾⠏⢀⣾⣿⣿⣿⣿⠏⠀⠠⠿⠿⠿⣿⣿⣿⣿⣿⣿⠁⠀⠀⣼⣿⣿⣿⣿⡏⠀⠀⠿⠿⠿⢿⣿⣿⣿⣿⣿⠃⠀⠀⠼⠿⠿⠿⠿⠟
⠀⠉⠉⠀⠀⣼⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⠃⠀⠀⣸⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⠇
⠀⠀⠀⠀⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⢠⣿⣿⣿⣿⣿⠃
⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⢀⣾⣿⣿⣿⣿⠇
*/


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before '}' token
   11 |     if(x>9||y>9){cout<<-1}
      |                          ^
      |                          ;
Language: C++

#include <bits/stdc++.h>
int main (){
  int 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:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << -1 << endl;
      |     ^~~~
      |     std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     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 <iostream>
#include <string>
#include <algorithm>

int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     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:15: error: unable to find numeric literal operator 'operator""$$B'
    9 |     if(A>0&&A<10$$B>0$$B<<10) cout << A*B;
      |               ^~~~~
a.cc:9:21: error: unable to find numeric literal operator 'operator""$$B'
    9 |     if(A>0&&A<10$$B>0$$B<<10) cout << A*B;
      |                     ^~~~
a.cc:9:31: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     if(A>0&&A<10$$B>0$$B<<10) cout << A*B;
      |                               ^~~~
      |                               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     else cout << -1;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(a<10 && b<10)
    cout<<a*b;
    elsecout<<"-1";


}


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

#include <iostreamn>

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

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

int Main(void)
{
#include <math.h>
#include <stdio.h>
    int int_n;
    double s;
    scanf("%d",&int_n);
    s = sqrt(
        int_n
    );
    int i;
    i = s;
    while(i >= 1)
    {
          if (int_n % i == 0){
            int j;
            j = int_n/i;
            printf(math.floor((i - 1) + (j - 1)))
            break;
          }
              i = i - 1;
    }
    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:18:20: error: 'math' undeclared (first use in this function)
   18 |             printf(math.floor((i - 1) + (j - 1)))
      |                    ^~~~
main.c:18:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:50: error: expected ';' before 'break'
   18 |             printf(math.floor((i - 1) + (j - 1)))
      |                                                  ^
      |                                                  ;
   19 |             break;
      |             ~~~~~
Language: C

Main()
{    
#include <math.h>
#include <stdio.h>
    int int_n;
    scanf("%d",&int_n);
    double sqrt(
        double int_n
    );
    int i;
    i = s;
    while(i >= 1)
    {
          if (int_n % i == 0){
            int j = int_n/i;
            printf(math.floor((i - 1) + (j - 1)))
            break;
          }
              i = i - 1;
    }
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | Main()
      | ^~~~
main.c: In function 'Main':
main.c:11:9: error: 's' undeclared (first use in this function)
   11 |     i = s;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:20: error: 'math' undeclared (first use in this function)
   16 |             printf(math.floor((i - 1) + (j - 1)))
      |                    ^~~~
main.c:16:50: error: expected ';' before 'break'
   16 |             printf(math.floor((i - 1) + (j - 1)))
      |                                                  ^
      |                                                  ;
   17 |             break;
      |             ~~~~~
Language: C

Main()
{    
    int int_n;
    int_n = int(input();
    double s;
    s =  sqrt(int_n);
    int i;
    i = s;
    while(i >= 1)
    {
          if (int_n % i == 0){
            int j = int_n/i
            printf(math.floor((i - 1) + (j - 1)))
            break;
          }
              i = i - 1
    }
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | Main()
      | ^~~~
main.c: In function 'Main':
main.c:4:13: error: expected expression before 'int'
    4 |     int_n = int(input();
      |             ^~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

int int_n = int(input();
double s =  sqrt(int_n);
int i = s
while(i >= 1)
{
      if (int_n % i == 0){
        int j = int_n/i
        print(math.floor((i - 1) + (j - 1)))
        break;
      }
          i = i - 1
}


Compiler output:
main.c:1:13: error: expected expression before 'int'
    1 | int int_n = int(input();
      |             ^~~
main.c:2:13: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    2 | double s =  sqrt(int_n);
      |             ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'sqrt'
  +++ |+#include <math.h>
    1 | int int_n = int(input();
main.c:2:13: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
    2 | double s =  sqrt(int_n);
      |             ^~~~
main.c:2:13: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:2:13: error: initializer element is not constant
main.c:3:9: error: initializer element is not constant
    3 | int i = s
      |         ^
main.c:4:1: error: expected ',' or ';' before 'while'
    4 | while(i >= 1)
      | ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	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: In function 'int main()':
a.cc:6:16: error: 'A' was not declared in this scope
    6 |         cin >> A >> B;
      |                ^
a.cc:6:21: error: 'B' was not declared in this scope
    6 |         cin >> A >> B;
      |                     ^
a.cc:7:23: error: 'a' was not declared in this scope
    7 |         if (A >= 1 && a <= 9 && B >= 1 && B >= 9) cout << A * B << endl;
      |                       ^
Language: Java

import java.util.Scanner;

/**
 *
 * @author ahaah
 */
public class Tester {

  
   public static void main(String[] args) {
     // System.out.println(new Tester().message());
Scanner in =new Scanner(System.in);
byte n1=in.nextByte();
byte n2=in.nextByte();
if ((n1>0&&n1<=9)&&(n2>0&&n2<=9)){
 System.out.println(n1*n2);
}
else {
 System.out.println("-1");

}
   
  
   }}

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

import java.util.Scanner;


public class Tester {

  
   public static void main(String[] args) {
     // System.out.println(new Tester().message());
Scanner in =new Scanner(System.in);
byte n1=in.nextByte();
byte n2=in.nextByte();
if ((n1>0&&n1<=9)&&(n2>0&&n2<=9)){
 System.out.println(n1*n2);
}
else {
 System.out.println("-1");

}
   
  
   }

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

import java.util.Scanner;

/**
 *
 * @author ahaah
 */
public class Tester {

  
   public static void main(String[] args) {
     // System.out.println(new Tester().message());
Scanner in =new Scanner(System.in);
byte n1=in.nextByte();
byte n2=in.nextByte();
if ((n1>0&&n1<=9)&&(n2>0&&n2<=9)){
 System.out.println(n1*n2);
}
else {
 System.out.println("-1");

}
   
  
   }

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


#include <iostrem>

int main()
{
  int A, B;
  std::cin >> A >> B;
  if (9 < A || 9 < B)
    std::cout << "-1" << std::endl;
  else
  {
    std::cout << A*B << std::endl;
  }
  return 0;
}


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

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected '}' before 'else'
   14 |       else{
      |       ^~~~
a.cc:12:21: note: to match this '{'
   12 |     if(a<10 && b<10){
      |                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: request for member 'size' in 'a', which is of non-class type 'int'
   12 |     if(a.size == 1 && b.size == 1){
      |          ^~~~
a.cc:12:25: error: request for member 'size' in 'b', which is of non-class type 'int'
   12 |     if(a.size == 1 && b.size == 1){
      |                         ^~~~
a.cc:14:7: error: expected '}' before 'else'
   14 |       else{
      |       ^~~~
a.cc:12:35: note: to match this '{'
   12 |     if(a.size == 1 && b.size == 1){
      |                                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: request for member 'size' in 'a', which is of non-class type 'int'
   12 |     if(a.size == 1 && b.size == 1){
      |          ^~~~
a.cc:12:25: error: request for member 'size' in 'b', which is of non-class type 'int'
   12 |     if(a.size == 1 && b.size == 1){
      |                         ^~~~
a.cc:13:13: error: 's' was not declared in this scope
   13 |       res = s*b;
      |             ^
a.cc:14:7: error: expected '}' before 'else'
   14 |       else{
      |       ^~~~
a.cc:12:35: note: to match this '{'
   12 |     if(a.size == 1 && b.size == 1){
      |                                   ^
Language: C++

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

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

		int a = in.nextInt();
		int b = in.nextInt();

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



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<(1<=a&&a<=9&&1<=b&&b<=9)?a*b:-1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<(1<=a&&a<=9&&1<=b&&b<=9)?a*b:-1<<endl;
      |                                      ~~^~~~~~
Language: C++

#include <iostream>
   
   int main()
   {
    int n;
    bool f = false;
  
    std::cin >> n;
  
    for (int x = 1; x <= 9; ++x){
      for (int y = 1; y <= 9; ++y){
        if ( n == x*y){
            f = true;
          }
  
      }
    }
  
    if (f == true){
     std::cout << "Yes" << std::endl;
    }else{
    std::cout << "No" << std::endl;
  }
                                                              1,1          先頭
 
include <iostream>
   
   int main()
   {
    int n;
    bool f = false;
  
    std::cin >> n;
  
    for (int x = 1; x <= 9; ++x){
      for (int y = 1; y <= 9; ++y){
        if ( n == x*y){
            f = true;
          }
  
      }
    }
  
    if (f == true){
     std::cout << "Yes" << std::endl;
    }else{
    std::cout << "No" << std::endl;
  }
                                                              }

Compiler output:
a.cc: In function 'int main()':
a.cc:24:66: error: expected ';' before '\U00005148\U0000982d'
   24 |                                                               1,1          先頭
      |                                                                  ^         ~~~~
      |                                                                  ;
a.cc:49:64: error: expected '}' at end of input
   49 |                                                               }
      |                                                                ^
a.cc:4:4: note: to match this '{'
    4 |    {
      |    ^
Language: C++

#include <stdio.h>
using namespace std;
int main () {
    int a,b,job=0;
    cin << a << b;
    if ((a<1 || a>20) ||  (b<1 || b>20)) {
        cout << -1;
    } else {
        for (int i=1;i<=9;i++) {
            for (int j=1;j<=9;j++) {
                if (a*b==i*j) {job=1;break;}
            }
        }
        if (job==1) cout << a*b;
        else cout << -1;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin << a << b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << -1;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:21: error: 'cout' was not declared in this scope
   14 |         if (job==1) cout << a*b;
      |                     ^~~~
a.cc:14:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:14: error: 'cout' was not declared in this scope
   15 |         else cout << -1;
      |              ^~~~
a.cc:15:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using bamespace std;
int main(){
int A,B,p;
  cin>>A>>B;
  if(A<1|B<1|A>9|B>9){
    cout<<p<<endl;
  }else{
   p=A*B;
  }
cout<<p;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'bamespace'
    2 | using bamespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<p<<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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<p<<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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<p;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc:9:10: warning: missing terminating " character
    9 |     puts("-1);
      |          ^
a.cc:9:10: error: missing terminating " character
    9 |     puts("-1);
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before 'return'
   10 |   return 0;
      |   ^~~~~~
Language: C++

#include <iostream>

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:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: Java

import java.util.Scanner;

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


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

#include <iostream>
#include <vector>

using namespace;

int main(){
  int A;
  int B;
  cin >> A;
  cin >> B;
  int result = A * B;
  if(A < 10 && B < 10){
    return A*B;
  }
  return -1;
}


Compiler output:
a.cc:4:16: error: expected identifier before ';' token
    4 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> A;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		//In
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		//Process Out
		if(a>9 && b>9) {
			System.out.println(-1);
		}else {
			System.out.println(a*b);
		}
		
	}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin >> x >> y;
  if(x<=9 && x>=1 && y<=9 && y>=1){
  cout << x*y
  }else cout << -1;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '}' token
    7 |   cout << x*y
      |              ^
      |              ;
    8 |   }else cout << -1;
      |   ~
Language: C

#include<stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before '%' token
    4 |   scanf("%d %d",&a,%b);
      |                    ^
Language: C

#include<stdio.h>

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

    return 0;
} 
  

Compiler output:
main.c: In function 'main':
main.c:12:19: error: lvalue required as left operand of assignment
   12 |             a * b = c;
      |                   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before '%' token
    4 |   scanf("%d %d",&A,%B);
      |                    ^
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |       printf("%d\n",a*b);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:23: error: 'b' undeclared (first use in this function)
    6 |       printf("%d\n",a*b);
      |                       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before '%' token
    4 |   scanf("%d %d",&A,%B);
      |                    ^
main.c:7:21: error: 'a' undeclared (first use in this function)
    7 |       printf("%d\n",a*b);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function)
    7 |       printf("%d\n",a*b);
      |                       ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected identifier before '(' token
    7 |   if (x>9)&&(y>9){
      |             ^
Language: C

#include<stdio.h>
int main(void) {
  int A,B;
  if(A<=9) {
    if(B<=9) {
      int C;
      C=A*B;
     # printf("%d\n",C);
    }
  }
  else {
    return -1;
  }
  return C;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: invalid preprocessing directive #printf
    8 |      # printf("%d\n",C);
      |        ^~~~~~
main.c:14:10: error: 'C' undeclared (first use in this function)
   14 |   return C;
      |          ^
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void) {
  int A,B;
  if(A<=9) {
    if(B<=9) {
      int C;
      C=A*B;
     # printf("%d\n",C);
    }
  }
  else {
    printf("-1");
  }
  return C;
}


Compiler output:
main.c: In function 'main':
main.c:8:8: error: invalid preprocessing directive #printf
    8 |      # printf("%d\n",C);
      |        ^~~~~~
main.c:14:10: error: 'C' undeclared (first use in this function)
   14 |   return C;
      |          ^
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

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


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

#include<stdio.h>

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

  printf("%d\n",c);

  return 0;
} 
  

Compiler output:
main.c: In function 'main':
main.c:13:17: error: lvalue required as left operand of assignment
   13 |           a * b = c;
      |                 ^
Language: C

#include<stdio.h>

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

  printf("%d\n",c);

  return 0;
} 
  

Compiler output:
main.c: In function 'main':
main.c:13:17: error: lvalue required as left operand of assignment
   13 |           a * b = c;
      |                 ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:13:13: error: lvalue required as left operand of assignment
   13 |       a * b = c;
      |             ^
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int a, b; 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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'elseif' was not declared in this scope
   10 |   }elseif(A > 10 and B > 10){
      |    ^~~~~~
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else{
      |    ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int A,B;
  cin>>A,B;
  if(A<10 and B<10){cout<<A*B<<endl}
else{cout<<-1<<endl}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before '}' token
    7 |   if(A<10 and B<10){cout<<A*B<<endl}
      |                                    ^
      |                                    ;
a.cc:8:20: error: expected ';' before '}' token
    8 | else{cout<<-1<<endl}
      |                    ^
      |                    ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: unable to find numeric literal operator 'operator""a'
    6 |         if (A&&B>=1,A&&B<=9a) {
      |                           ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'cin'
    8 |     cin>>a>>b;
      |     ^~~
a.cc:10:15: error: 'b' was not declared in this scope
   10 |     if(a>9 || b > 9 || a < 1 || b<1)
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define M 1000000007
typedef long long ll;
int main() { 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t,a,b,n,i;
    cin>>a>>b;
    if(a==10 || a==20 || b=10 ||b=20)
    cout<<"-1";
    else
    cout<<a*b<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: lvalue required as left operand of assignment
   14 |     if(a==10 || a==20 || b=10 ||b=20)
      |                            ~~~^~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     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:7:9: 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:23: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     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<iostream>
using name std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> 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:5: 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:20: 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:5: 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:19: 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: C++

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

int main()
{
  int a, b;
  cin >> a >> b;
  cout << a * b << endl;
}

Compiler output:
a.cc:1:24: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++>h>
      |                        ^
a.cc:1:10: fatal error: bits/stdc++>: No such file or directory
    1 | #include <bits/stdc++>h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

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

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

#include"stdio.h"
using namespace std;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin << a;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include"stdio.h"
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout >> a*b;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout >> "-1";
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected '(' before 'a'
    7 |     if a < 10 && b < 10{
      |        ^
      |        (
a.cc:9:6: error: 'else' without a previous 'if'
    9 |     }else{
      |      ^~~~
Language: C++

#include <iostream>

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'endl'
    8 |     cout << -1 endl;
      |               ^~~~~
      |               ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'b' was not declared in this scope
   10 |         cout<<a*b;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  
	int k, l;
  	cin >> k >> l;
  
  	int total = k * l;
  
  	if( k > 9 || l > 9){
      cout << -1 << endl;
    }else{
      cout << total << endl;
    }
    
  	

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

#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:8:22: error: extended character “ is not valid in an identifier
    8 |         else cout << “-1” << endl;
      |                      ^
a.cc:8:24: error: extended character ” is not valid in an identifier
    8 |         else cout << “-1” << endl;
      |                        ^
a.cc: In function 'int main()':
a.cc:8:22: error: '\U0000201c' was not declared in this scope
    8 |         else cout << “-1” << endl;
      |                      ^
a.cc:8:24: error: unable to find numeric literal operator 'operator""\U0000201d'
    8 |         else cout << “-1” << endl;
      |                        ^~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = nuw Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt();
    System.out.println(A < 10 && B < 10 ? A * B: -1);
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner sc = nuw Scanner(System.in);
                    ^
1 error
Language: C++

include<iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(((a>=1)&&(a<=9))&&((b>=1)&&(b<=9)))
		cout<<a*b;
	else
		cout<<"-1";
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:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout<<a*b;
      |                 ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<"-1";
      |                 ^~~~