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

#include <stdio>

int main(void){
	int seisuu1,seisuu2;
	int answer;
        scanf(”%d", ＆seisuu1)
        scanf(”%d", ＆seisuu2)
          
          if (seisuu1<=9 && seisuu2<=9){
	answer = seisuu1*seisuu2;
         }
	else{
anser=-1;
}

Printf(“%d”,answer);

}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
if(N!=50 && N!=60 && N!=70 && N!=80){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}


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

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

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:4: error: expected '}' before 'else'
   16 |    else{
      |    ^~~~
a.cc:9:14: note: to match this '{'
    9 |  if(a>0&&a<9){
      |              ^
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include<iostream>

using  namespace std;

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

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' before 'else'
   15 |    else
      |    ^~~~
a.cc:9:14: note: to match this '{'
    9 |  if(a>0&&a<9){
      |              ^
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
Scanner sc=new Scanner(sytem.in);
int A=sc.nextInt();
int B=sc.nextInt();
if(int A<=9 && B<=9){
  int c=A*B;
  System.out.println(c);
}else{
System.out.println("-1");
 }
  }
}


Compiler output:
Main.java:7: error: '.class' expected
if(int A<=9 && B<=9){
       ^
Main.java:7: error: not a statement
if(int A<=9 && B<=9){
            ^
Main.java:7: error: ';' expected
if(int A<=9 && B<=9){
                   ^
Main.java:10: error: 'else' without 'if'
}else{
 ^
4 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
Scanner sc=new Scanner(Sytem.in);
int A=sc.nextInt();
int B=sc.nextInt();
  int c=A*B;
  System.out.println(A*B);
 
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(Sytem.in);
                       ^
  symbol:   variable Sytem
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
Scanner sc=new Scanner(Sytem.in);
int A=sc.nextInt();
int B=sc.nextInt();
  int c=A*B;
  System.out.println(c);
 
  }
}


Compiler output:
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(Sytem.in);
                       ^
  symbol:   variable Sytem
  location: class Main
1 error
Language: Java

public class Main{
import java.util.*;
  public static void main(String[] args){
Scanner sc=new Scanner(Sytem.in);
int A=sc.nextInt();
int B=sc.nextInt();
  int c=A*B;
  System.out.println(A*B);
 
  }
}


Compiler output:
Main.java:2: error: illegal start of type
import java.util.*;
^
Main.java:2: error: <identifier> expected
import java.util.*;
                 ^
2 errors
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:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner.*;
import static java.lang.System.*;

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<=9){
        if(B<=9){
        out.println(A*B);
        }else
        out.println("-1");
        }else
        out.println("-1");
}
}


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

import java.util.Scanner.*;
import static java.lang.System.*;

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<=9){
        if(B<=9){
        out.println(A*B);
        }else
        out.println("-1");
        }else
        out.println("-1");
}
}


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

import java.util.Scanner.*;
import static java.lang.System.*;

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<=9){
        if(B<=9){
        out.println(A*B);
        }else
        out.println("-1")
        }else
        out.println("-1");
}
}


Compiler output:
Main.java:8: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
Main.java:16: error: ';' expected
        out.println("-1")
                         ^
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
            int a = stdIn.nextInt;
                         ^
  symbol:   variable nextInt
  location: variable stdIn of type Scanner
Main.java:6: error: cannot find symbol
            int b = stdIn.nextInt;
                         ^
  symbol:   variable nextInt
  location: variable stdIn of type Scanner
2 errors
Language: Java

    java.util.Scanner;
    public class Main{
      public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt;
        int b = stdIn.nextInt;
        int c = a*b;
        if((a<1)||(a>9)||(b<1)||(b>9)){
          System.out.println("-1");
        }else{
          System.out.println(c);
        }
      }
    }

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
    java.util.Scanner;
    ^
1 error
Language: Java

java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner;
    int a = stdIn.nextInt;
    int b = stdIn.nextInt;
    int c = a*b
    if((a<1)||(a>9)||(b<1)||(b>9)){
      System.out.println("-1");
    }else{
      System.out.println(c);
    }
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
java.util.Scanner;
^
Main.java:4: error: '(' or '[' expected
    Scanner stdIn = new Scanner;
                               ^
Main.java:7: error: ';' expected
    int c = a*b
               ^
3 errors
Language: C++

#include <stdio.h>

int main(int argc, char const *argv[])
{
	int A, B;
	scanf("%d", &A);
	scanf("%d", &B);

	if (A <= 9 && B <= 9)
	{
		printf("%d\n", A*B);
	}

	else
	{
		printf("%d", -1)
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:16:33: error: expected ';' before '}' token
   16 |                 printf("%d", -1)
      |                                 ^
      |                                 ;
   17 |         }
      |         ~
Language: C++

#include <stdio.h>

int main(int argc, char const *argv[])
{
	int A, B;
	scanf("%d", &A);
	scanf("%d", &B);

	if (A <= 9 && B <= 9)
	{
		printf("%f\n", A*B);
	}

	else
	{
		printf("%d", -1)
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:16:33: error: expected ';' before '}' token
   16 |                 printf("%d", -1)
      |                                 ^
      |                                 ;
   17 |         }
      |         ~
Language: Java

import java.util.Scanner.*;
import static java.lang.System.*;

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<=9){
        if{(B<=9){
        out.println(A*B);
        }else
        break;
        }else
        out.println("-1");
}
}

Compiler output:
Main.java:8: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
Main.java:13: error: '(' expected
        if{(B<=9){
          ^
Main.java:13: error: not a statement
        if{(B<=9){
           ^
Main.java:13: error: ';' expected
        if{(B<=9){
                 ^
Main.java:15: error: 'else' without 'if'
        }else
         ^
Main.java:20: error: reached end of file while parsing
}
 ^
6 errors
Language: Java

import java.util.Scanner.*;
import static java.lang.System.*;

public class Main{

public static void main{

Scanner sc = new Scanner(System.in)
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    if(A<=9){
        if{(B<=9){
        out.println(A*B);
        }else
        break;
        }else
        out.println("-1");
}
}

Compiler output:
Main.java:6: error: '(' expected
public static void main{
                       ^
Main.java:8: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
Main.java:13: error: '(' expected
        if{(B<=9){
          ^
Main.java:13: error: not a statement
        if{(B<=9){
           ^
Main.java:13: error: ';' expected
        if{(B<=9){
                 ^
Main.java:15: error: 'else' without 'if'
        }else
         ^
Main.java:20: error: reached end of file while parsing
}
 ^
7 errors
Language: Java

import java.util.Scanner.*;
import static java.lang.System.*

public class Main{

public static void main{

Scanner sc = new Scanner(System.in)
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    if(A<=9){
        if{(B<=9){
        out.println(A*B);
        }else
        break;
        }else
        out.println("-1");
}
}

Compiler output:
Main.java:2: error: ';' expected
import static java.lang.System.*
                                ^
Main.java:6: error: '(' expected
public static void main{
                       ^
Main.java:8: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
Main.java:13: error: '(' expected
        if{(B<=9){
          ^
Main.java:13: error: not a statement
        if{(B<=9){
           ^
Main.java:13: error: ';' expected
        if{(B<=9){
                 ^
Main.java:15: error: 'else' without 'if'
        }else
         ^
Main.java:20: error: reached end of file while parsing
}
 ^
8 errors
Language: C++

#include <iostream>
using namespace std;

int main()
  int a,b
  if (a > 10 && b > 10) {
    printf(0);
  else {
    printf(a*b)
  }
  }

Compiler output:
a.cc:5:3: error: expected initializer before 'int'
    5 |   int a,b
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define ALL(v) v.begin(),v.end()
typedef long long ll;
int main() {
  int a,b;
  cin >> a >> b;
  if(a<10||b<10){
  	cout << ab << endl;
  }else{
  	cout << -1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'ab' was not declared in this scope; did you mean 'b'?
   11 |         cout << ab << endl;
      |                 ^~
      |                 b
Language: Java

public class Multiplication{
  public static void main(String[] args){
int A=5,B=4;
  int c=A*B;
  System.out.println(A*B);
 
  }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:6: error: 'A' undeclared (first use in this function)
    4 |   if(A<=9&&B<=9){
      |      ^
main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:12: error: 'B' undeclared (first use in this function)
    4 |   if(A<=9&&B<=9){
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:6: error: 'A' undeclared (first use in this function)
    4 |   if(A<=9&&B<=9){
      |      ^
main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:12: error: 'B' undeclared (first use in this function)
    4 |   if(A<=9&&B<=9){
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <xmath.h>


#define long long long int

using namespace std;


typedef vector<int> vi;
typedef pair<int, int> pi;

void print(const vector<long> &a) {
    for (auto item : a) {
        cout << item << " ";
        flush(cout);
    }
}



int main() {

    int a, b;
    cin >> a >> b;

    if (a > 9 or b > 9){
        cout << a * b;
    } else {
        cout << -1;
    }


    return 0;
}

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

#include <unistd.h>
#include <sys/types.h>

int tes(char *str) {
  cout << str << endl;
}

int main(int argc, char *argv[]) {
  char *data[2];
  char *exe = "/bin/sh";

  tes(exe);
}


Compiler output:
a.cc: In function 'int tes(char*)':
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << str << endl;
      |   ^~~~
a.cc:5:18: error: 'endl' was not declared in this scope
    5 |   cout << str << endl;
      |                  ^~~~
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
a.cc: In function 'int main(int, char**)':
a.cc:10:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |   char *exe = "/bin/sh";
      |               ^~~~~~~~~
Language: C++

#include<iostream>
main(){
  int a,b;
  std::cin>>a>>b;
  if(a<10&&b<10)cout<<a*b;
  else cout<<-1;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(a<10&&b<10)cout<<a*b;
      |                 ^~~~
      |                 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:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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>

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

Compiler output:
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 >> x >> y;
      |   ^~~
      |   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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << x* y << 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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << x* y << 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 nmaespace std;
int a,b;
int main(){
  cin>>a>>b;
  if(1<=a&&a<=9&&1<=b&&b<=9){
    cout<<a*b<<endl;
  }
  else{
    cout<<-1<<endl;}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nmaespace'
    2 | using nmaespace 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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7: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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<a*b<<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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     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 nmaespace std;
int a,b;
int main(){
  cin>>a>>b;
  if(1<=a&&a<=9&&1<=b&&b<=9){
    cout<<a*b<<endl;
  }
  else{
    cout<<-1<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nmaespace'
    2 | using nmaespace 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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7: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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<a*b<<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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<-1<<endl;
      |               ^~~~
      |               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define len(v) ll(v.size())

template <class T>
void cout_vec(const vector<T> &vec1){
  rep(i,len(vec1)){
    cout<<vec1[i]<<' ';
  }
  cout<<'\n';
}

typedef pair<ll,ll> P;

const ll mod=1e9+7;

ll gcd(ll a, ll b){
    ll r;
    while((r =a%b)){
        a = b;
        b = r;
    }
    return b;
}


int main(){

  int A,B;
  cin >> A >> B;

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

  return 0;

}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define len(v) ll(v.size())

template <class T>
void cout_vec(const vector<T> &vec1){
  rep(i,len(vec1)){
    cout<<vec1[i]<<' ';
  }
  cout<<'\n';
}

typedef pair<ll,ll> P;

const ll mod=1e9+7;

ll gcd(ll a, ll b){
    ll r;
    while((r =a%b)){
        a = b;
        b = r;
    }
    return b;
}


int main(){

  int A,B;
  cin >> A >> B;

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

  return 0;

}


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

#include<iostream>
using namespace std;

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


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^
      |         |
      |         char *
main.c:9:17: warning: multi-character character constant [-Wmultichar]
    9 |     printf("%c",'-1');
      |                 ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^
      |         |
      |         char *
Language: Java

import java.util.Scanner;
public class A{
    public static void main(String[] args){
	int i,j,a;
	Scanner scanner = new Scanner(System.in);
	i = scanner.nextInt();
	j = scanner.nextInt();
	if((i >= 1 && i <= 9) && (j >= 1 && j <= 9))
	    System.out.printf("%d",i * j);
	else
	    System.out.printf("-1");
	scanner.close();
    }
}   


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

#include <iostream>
using anemspace std;
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:2:7: error: expected nested-name-specifier before 'anemspace'
    2 | using anemspace std;
      |       ^~~~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int a,b;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin>>a>>b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a<10&&b<10)
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using anemspace 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 'anemspace'
    2 | using anemspace std;
      |       ^~~~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int a,b;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin>>a>>b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a<10&&b<10)
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

int A,B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:37: error: expected ';' before '}' token
   11 |                 cout << "-1" << endl
      |                                     ^
      |                                     ;
   12 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'ii' undeclared (first use in this function); did you mean 'i'?
    7 |     for(ii=1;i<=9;i++)
      |         ^~
      |         i
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

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


Compiler output:
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:6:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if((a> 9 || b > 9)) cout << -1 << endl;
      |                       ^~~~
      |                       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if((a> 9 || b > 9)) 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else 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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else 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>

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

Compiler output:
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:3: 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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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)
      |     ^~~~
Language: C

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

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

#include <stdio.h>

int main(void){
  int i,j;
  scanf("%d%d",&i,&j);
  if(i<=9&&j<=9){
	printf("%d",i*j);
  }else{
	printf("-1");
}

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

#include <stdio.h>

int main(void){
  int i,j;
  scanf("%d","%d",&i,&j);
  if(i<=9&&j<=9){
	printf("%d",i*j);
  }else{
	printf("-1");
}

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

#include <stdio.h>

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

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

#include <stdio.h>

int main(void){
  int i,l;
  scanf("%d",&i);	scanf("%d",&j);
  if(i<9&&j<9&&i>0&&j>0){
	printf("%d",i*j);
  }else{
	printf("-1");
}

Compiler output:
main.c: In function 'main':
main.c:5:37: error: 'j' undeclared (first use in this function)
    5 |   scanf("%d",&i);       scanf("%d",&j);
      |                                     ^
main.c:5:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int i,j;
  scnaf("%d",&i);
  scanf("%d",&j);
  
  if(i > 9){
    rerurn -1;
  } else if (j > 9){
    return -1;
  } else if (i > 9 && j > 9){
    return -1;
  } else {
    return i*j;
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |   scnaf("%d",&i);
      |   ^~~~~
      |   scanf
main.c:10:5: error: 'rerurn' undeclared (first use in this function)
   10 |     rerurn -1;
      |     ^~~~~~
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'return'
    9 |     cout<<-1
      |             ^
      |             ;
   10 |   return 0;
      |   ~~~~~~
Language: Java

str = input()
data = "".split(str)
n1 = int(data[0])
n2 = int(data[1])
if (n1 >9 or n2 > 9):
    print(-1)
else:
    print(n1*n2)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
str = input()
^
1 error
Language: Java

import java.util.Scanner
public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextLine();
    String[] data = str.split(" ");
    int[] score = new int[2];
    score[0] = Integer.parseInt(data[0]);
    score[1] = Integer.parseInt(data[1]);
    if (score[0] > 9 || score[1] >9){
      System.out.println(-1);
    }else{
      System.out.println(score[0] * score[1]);
    }
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner;
public class T{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextline();
    String[] data = str.split(" ");
    int[] score = new int[2];
    score[0] = Integer.parseInt(data[0]);
    score[1] = Integer.parseInt(data[1]);
    if (score[0] > 9 || score[1] >9){
      System.out.println(-1);
    }else{
      System.out.println(score[0] * score[1]);
    }
  }
}

Compiler output:
Main.java:2: error: class T is public, should be declared in a file named T.java
public class T{
       ^
Main.java:5: error: cannot find symbol
    String str = scanner.nextline();
                        ^
  symbol:   method nextline()
  location: variable scanner of type Scanner
2 errors
Language: Java

import java.util.Scanner
public class T{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextline();
    String[] data = str.split(" ");
    int[] score = new int[2];
    score[0] = Integer.parseInt(data[0]);
    score[1] = Integer.parseInt(data[1]);
    if (score[0] > 9 || score[1] >9){
      System.out.println(-1);
    }else{
      System.out.println(score[0] * score[1]);
    }
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

public class T{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextline();
    String[] data = str.split(" ");
    int[] score = new int[2];
    score[0] = Integer.parseInt(data[0]);
    score[1] = Integer.parseInt(data[1]);
    if (score[0] > 9 || score[1] >9){
      System.out.println(-1);
    }else{
      System.out.println(score[0] * score[1]);
    }
  }
}

Compiler output:
Main.java:1: error: class T is public, should be declared in a file named T.java
public class T{
       ^
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class T
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class T
3 errors
Language: Java

public class T{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextline();
    String[] data = str.split(" ");
    int[] score = new int[2];
    score[0] = Integer.parseInt(data[0]);
    score[1] = Integer.parseInt(data[1]);
    if (score[0] > 9 || score[1] >9){
      System.out.println(-1);
    }else{
      System,out.println(score[0] * score[1]);
    }
  }
}

Compiler output:
Main.java:12: error: not a statement
      System,out.println(score[0] * score[1]);
      ^
Main.java:12: error: ';' expected
      System,out.println(score[0] * score[1]);
            ^
2 errors
Language: Java

public class T{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String str = scanner.nextline();
    String[] data = str.split(" ");
    int[] score = new int[2];
    int[0] = Integer.parseInt(data[0]);
    int[1] = Integer.parseInt(data[1]);
    if (int[0] > 9 || int[1] >9){
      System.out.println(-1);
    }else{
      System,out.println(int[0] * int[1]);
    }
  }
}
    

Compiler output:
Main.java:7: error: ']' expected
    int[0] = Integer.parseInt(data[0]);
        ^
Main.java:7: error: not a statement
    int[0] = Integer.parseInt(data[0]);
       ^
Main.java:8: error: ']' expected
    int[1] = Integer.parseInt(data[1]);
        ^
Main.java:8: error: not a statement
    int[1] = Integer.parseInt(data[1]);
       ^
Main.java:9: error: ']' expected
    if (int[0] > 9 || int[1] >9){
            ^
Main.java:9: error: ';' expected
    if (int[0] > 9 || int[1] >9){
             ^
Main.java:9: error: ']' expected
    if (int[0] > 9 || int[1] >9){
                          ^
Main.java:9: error: not a statement
    if (int[0] > 9 || int[1] >9){
                         ^
Main.java:12: error: not a statement
      System,out.println(int[0] * int[1]);
      ^
Main.java:12: error: ';' expected
      System,out.println(int[0] * int[1]);
            ^
Main.java:12: error: ']' expected
      System,out.println(int[0] * int[1]);
                             ^
Main.java:12: error: ']' expected
      System,out.println(int[0] * int[1]);
                                      ^
Main.java:12: error: not a statement
      System,out.println(int[0] * int[1]);
                                     ^
Main.java:11: error: 'else' without 'if'
    }else{
     ^
14 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:18: error: package Syste does not exist
      Syste.out.println(ans);
           ^
1 error
Language: Java

Scanner sc = new Scanner(System.in);
		int input1 = sc.nextInt();
		int input2 = sc.nextInt();
		sc.close();

		if (input1 > 9 || input2 > 9) {
			System.out.println(-1);
		}else {
			System.out.println(input1*input2);
		}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
		sc.close();
		^
Main.java:6: error: class, interface, enum, or record expected
		if (input1 > 9 || input2 > 9) {
		^
Main.java:8: error: class, interface, enum, or record expected
		}else {
		^
Main.java:10: error: class, interface, enum, or record expected
		}
		^
5 errors
Language: Java

package atcoder.begineer;

import java.util.Scanner;

public class Main10_1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int input1 = sc.nextInt();
		int input2 = sc.nextInt();
		sc.close();

		if (input1 > 9 || input2 > 9) {
			System.out.println(-1);
		}else {
			System.out.println(input1*input2);
		}
	}

}


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

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

int main() {
  int a , b;

  cin >> a >> b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ')' before '$$'
    9 |   if(a / 10 >= 1 $$ b / 10 >= 1){
      |     ~           ^~~
      |                 )
Language: C++

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

int N;
int j=0;

void input(){
    cin >> N;
}



void solve(){
    
    int ans = 1000000000000000000000;
    for (ll i = 2;i*i<N;i++){
        if (0 == N % i){
          j = N/i;
          ans = min(ans, j+i-2);
        }
    }
    cout << ans << endl;
    return;
}



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

Compiler output:
a.cc:18:15: warning: integer constant is too large for its type
   18 |     int ans = 1000000000000000000000;
      |               ^~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'void solve()':
a.cc:18:15: warning: overflow in conversion from 'long int' to 'int' changes value from '3875820019684212736' to '-559939584' [-Woverflow]
a.cc:22:20: error: no matching function for call to 'min(int&, ll)'
   22 |           ans = min(ans, j+i-2);
      |                 ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:22:20: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   22 |           ans = min(ans, j+i-2);
      |                 ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:22:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   22 |           ans = min(ans, j+i-2);
      |                 ~~~^~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
	// test();

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



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

int main(int argc, char* argv[])
{
	// test();

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



Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B;
      |         ^~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << A * B;
      |                 ^~~~
a.cc:10:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |                 return;
      |                 ^~~~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "-1";
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '}' before 'else'
    7 |         else  printf("-1\n");
      |         ^~~~
main.c: At top level:
main.c:9:9: error: expected identifier or '(' before 'return'
    9 |         return 0;
      |         ^~~~~~
main.c:10:1: error: expected identifier or '(' before '}' token
   10 | }
      | ^
Language: Java

import java.util.Scanner;

public class Q1 {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans = -1;

		if(a < 10 && b < 10){
			ans = a * b;
		}

		System.out.println(ans);
	}
}


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