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

#include <iostream>
using namespace std;
 
int main() {
    int a, b;
    cin << N;
  	for(int a=1;a<=9;a++)for(int b=1;b<=9;b++){
  		if(a * b = N){
          	cout << "Yes";
          	return;
        }
    } 
  			cout << "No";
  			return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'N' was not declared in this scope
    6 |     cin << N;
      |            ^
a.cc:10:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |                 return;
      |                 ^~~~~~
a.cc:14:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |                         return;
      |                         ^~~~~~
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 if (10<=a<=20 || 10<=b<=20);
    printf("-1/n");
  }
    return 0;
}

Compiler output:
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
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 if (10<=A<=20 || 10<=B<=20);
    printf("-1/n");
}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'A' undeclared (first use in this function)
    5 |   if(1<=A<=9 && 1<=B<=9){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:20: error: 'B' undeclared (first use in this function)
    5 |   if(1<=A<=9 && 1<=B<=9){
      |                    ^
main.c: At top level:
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
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 if (10<=A<=20 || 10<=B<=20);
    printf("-1/n");
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '}' before 'else'
    7 |   else if (10<=A<=20 || 10<=B<=20);
      |   ^~~~
Language: C++

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




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

#include <iostream>
int main(){
  int A,B;
  cin >> A >> B;
  if (A > 0 && A <10 && B > 0 && B < 10){
    cout << A * B << endl;
  }
  else{
    cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 0 << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << 0 << 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 > 0 && A <10 && B > 0 && B < 10){
    cout << A * B << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:7:4: error: expected '}' at end of input
    7 |   }
      |    ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

ifstream cin("in.txt");
ofstream cout("out.txt");

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: reference to 'cin' is ambiguous
   10 | cin>>a>>b;
      | ^~~
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: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:10: note:                 'std::ifstream cin'
    4 | ifstream cin("in.txt");
      |          ^~~
a.cc:12:17: error: reference to 'cout' is ambiguous
   12 |                 cout<<a*b;
      |                 ^~~~
/usr/include/c++/14/iostream:63:18: note: candidates are: 'std::ostream std::cout'
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:10: note:                 'std::ofstream cout'
    5 | ofstream cout("out.txt");
      |          ^~~~
a.cc:15:9: error: reference to 'cout' is ambiguous
   15 |         cout<<-1;
      |         ^~~~
/usr/include/c++/14/iostream:63:18: note: candidates are: 'std::ostream std::cout'
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:10: note:                 'std::ofstream cout'
    5 | ofstream cout("out.txt");
      |          ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected ';' before 'if'
    5 |         scanf("%d%d",&A,&B)
      |                            ^
      |                            ;
    6 |     if(A<=9&&B<=9){
      |     ~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'con' was not declared in this scope; did you mean 'cos'?
    8 |         con>>b;
      |         ^~~
      |         cos
Language: C++

#includ <stdio.h>
int main(void){
int A;
int B;
int c;
if (A>=10) or (B>=10){
	c=-1;
 }
c=A*B;
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before 'or' token
    6 | if (A>=10) or (B>=10){
      |            ^~
Language: C++

#includ <stdio.h>
int main(void){
int A;
int B;
int c;
if (A>=10) or (B>=10){
	c=-1
 }
c=A*B
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before 'or' token
    6 | if (A>=10) or (B>=10){
      |            ^~
a.cc:9:6: error: expected ';' before 'return'
    9 | c=A*B
      |      ^
      |      ;
   10 | return 0;
      | ~~~~~~
Language: C++

#includ <stdio.h>
int main(void){
  int A;
  int B;
  int c;
  if A>=10 or B>=10{
    c=-1
  }
  c=A*B
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:6: error: expected '(' before 'A'
    6 |   if A>=10 or B>=10{
      |      ^
      |      (
a.cc:9:8: error: expected ';' before '}' token
    9 |   c=A*B
      |        ^
      |        ;
   10 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main()
{
int a,b ;
cin >>a>>b;
{
cout << -1<< endl ;
}
else {
    ccout<<a*b<<endl;

}


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else {
      | ^~~~
a.cc:11:5: error: 'ccout' was not declared in this scope
   11 |     ccout<<a*b<<endl;
      |     ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
int a,b ;
cin >>a>>b;
{
cout << -1<< endl ;
}
else {
    ccout<<a*b<<endl;
}

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else {
      | ^~~~
a.cc:11:5: error: 'ccout' was not declared in this scope
   11 |     ccout<<a*b<<endl;
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  int A, B;
  cin >> A;
  cin >> B;
  if (A > 9||B > 9){
    cout << -1 << endl;
  } else {
    cout << A*B << endl;
}

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

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner();
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    if (A>=10||B>=10) return -1;
    return A*B;
  }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner sc = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:9: error: incompatible types: unexpected return value
    if (A>=10||B>=10) return -1;
                             ^
Main.java:10: error: incompatible types: unexpected return value
    return A*B;
            ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {

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

}

Compiler output:
Main.java:6: error: ';' expected
        Scanner sc = new java.util.Scanner(System.in)
                                                     ^
1 error
Language: Java

import java.util.Scanner;

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

        var a = scanner.nextInt();
        var b = scanner.nextInt();
        
        if (a > 9 || b > 9) {
            System.out.println(-1);
        } else {
            System.out.println(a * b);
        }
        scanner.close();
    }
}

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

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

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>A>>B;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(A||B>9)
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else
      | ^~~~
Language: C++

#include <bits/stdc++.h>
int A,B;
cin>>A>>B;
if(A||B>9)
  cout<<"-1"<<endl;
else
  cout<<A*B<<endl;

Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>A>>B;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(A||B>9)
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define max1 1000005
#define sz1 100001
#define mod 1000000007
#define moda 421412341324321ll
#define inf 1e18
#define ll long long int
#define debug(x) cout<<#x<<" "<<x<<endl
typedef pair<ll,ll> pr;
#define rte cout<<"Correct";exit(0);
int intlog(double x) {
    return (int)(log(x) / log(2));
}
double max(double x,double y)
{
    if(x>=y)
    {
        return x;
    }
    else
    {
        return y;
    }
}
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  #ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
  #endif
  cin>>l>>r;
  if(l>=1&&l<=9)
  {
    if(r>=1&&r<=9)
    {
        cout<<l*r;
        return 0;
    }
  }
  cout<<-1<<endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:35:8: error: 'l' was not declared in this scope; did you mean 'll'?
   35 |   cin>>l>>r;
      |        ^
      |        ll
a.cc:35:11: error: 'r' was not declared in this scope; did you mean 'pr'?
   35 |   cin>>l>>r;
      |           ^
      |           pr
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+201C>%d%d<U+201D>,&a,&b);
      |       ^~~~~~~~
main.c:5:8: error: expected expression before '%' token
    5 | scanf(“%d%d”,&a,&b);
      |        ^
main.c:5:12: error: stray '\342' in program
    5 | scanf(<U+201C>%d%d<U+201D>,&a,&b);
      |                   ^~~~~~~~
main.c:6:22: error: stray '\342' in program
    6 | if(a<=9&b<=9) printf(<U+201C>&d/n<U+201D>,a*b);
      |                      ^~~~~~~~
main.c:6:24: error: 'd' undeclared (first use in this function)
    6 | if(a<=9&b<=9) printf(“&d/n”,a*b);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: stray '\342' in program
    6 | if(a<=9&b<=9) printf(<U+201C>&d/n<U+201D>,a*b);
      |                                  ^~~~~~~~
main.c:6:26: error: 'n' undeclared (first use in this function)
    6 | if(a<=9&b<=9) printf(“&d/n”,a*b);
      |                          ^
main.c:7:13: error: stray '\342' in program
    7 | else printf(<U+201C>-1/n<U+201D>);
      |             ^~~~~~~~
main.c:7:18: error: stray '\342' in program
    7 | else printf(<U+201C>-1/n<U+201D>);
      |                         ^~~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+201C>%d%d<U+201D>,&a,&b);
      |       ^~~~~~~~
main.c:5:12: error: stray '\342' in program
    5 | scanf(<U+201C>%d%d<U+201D>,&a,&b);
      |                   ^~~~~~~~
main.c:6:22: error: stray '\342' in program
    6 | if(a<=9&b<=9) printf(<U+201C>&d/n<U+201D>,a*b);
      |                      ^~~~~~~~
main.c:6:27: error: stray '\342' in program
    6 | if(a<=9&b<=9) printf(<U+201C>&d/n<U+201D>,a*b);
      |                                  ^~~~~~~~
main.c:7:13: error: stray '\342' in program
    7 | else printf(<U+201C>-1/n<U+201D>);
      |             ^~~~~~~~
main.c:7:18: error: stray '\342' in program
    7 | else printf(<U+201C>-1/n<U+201D>);
      |                         ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'Yes' undeclared (first use in this function)
    6 |     n=Yes;
      |       ^~~
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:7: error: 'No' undeclared (first use in this function)
    8 |     n=No;
      |       ^~
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before '{' token
    6 |   (1<=b&&b<=9){
      |               ^
      |               ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected ';' before '{' token
    5 |   if(1<=a&&a<=9)(1<=b&&b<=9){
      |                             ^
      |                             ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected expression before '<' token
    5 |   if(1=<a<=9&&1<=b<=9){
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected expression before '<' token
    5 |   if(1=<a<=9&&1=<b<=9){
      |        ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a;
      |          ^
a.cc:6:10: error: 'b' was not declared in this scope
    6 |   cin >> b;
      |          ^
Language: Java


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


Compiler output:
Main.java:2: error: illegal character: '#'
#include<stdio.h>
^
Main.java:2: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
	scanf("%d %d",&a, &b);
	^
Main.java:6: error: class, interface, enum, or record expected
	if (a < 1 || a>9||b<1||b>9) {
	^
Main.java:8: error: class, interface, enum, or record expected
		return 0;
		^
Main.java:9: error: class, interface, enum, or record expected
	}
	^
Main.java:11: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:12: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

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

Compiler output:
Main.java:11: error: not a statement
      System.out.println -1;
                         ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
Language: C

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

Compiler output:
main.c:2:1: error: unknown type name 'ian'
    2 | ian main()
      | ^~~
Language: C++

#include<stdio.h>
typedef long long int ll;
int main() {
	ll n;
	scanf("%lld", &n);
	int sosuu[1000000];
	int c = 0;
	int yakusuu[1000000];
	int q = 0;
	for (int i = 2; i < 100000; i++) {
		int k=0;
		for (int j = 1; j <= i / 2; j++) {
			int p;
			p = i % j;
			if (p == 0) {
				k = k + 1;
			}
		}
		if (k == 1) {
			sosuu[c] = i;
			c = c + 1;
		}
	}
	for (int i; i <= c; i++) {
		while (1) {
			int y = n;
			y = y / sosuu[i];
			if (y % sosuu[i] == 0) {
				yakusuu[q] = sosuu[i];
				q = q + 1;
			}
			else{
				break;
			}
		}
	}
	int tate=1;
	int yoko=1;
	for (int i = 0; i <= q; i = i + 2) {
		tate = tate * yakusuu[i];
	}
	tate = tate - 1;
	for (int i = 1; i <= q; i = i + 2) {
		yoko = yoko * yakusuu[i];
	}
	yoko = yoko - 1;
	int kotae = tate  yoko;
	printf("%d", kotae);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:27: error: expected ',' or ';' before 'yoko'
   47 |         int kotae = tate  yoko;
      |                           ^~~~
Language: Java

import java.util.*;

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


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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     puts(a*b);
      |          ~^~
      |           |
      |           int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     puts(a*b);
      |          ~^~
      |           |
      |           int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
Language: C++

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

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |     printf(-1);
      |            ^~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:5: error: expected declaration or statement at end of input
   12 |     printf(-1);
      |     ^~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |     printf(-1);
      |            ^~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:5: error: expected declaration or statement at end of input
   12 |     printf(-1);
      |     ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:18: error: expected ')' before 'a'
   12 |     printf("%d\n"a*b);
      |           ~      ^
      |                  )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected ';' before ':' token
   12 |     printf("%d\n",a*b):
      |                       ^
      |                       ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected ';' before ':' token
   12 |     printf("%d,a*b\n"):
      |                       ^
      |                       ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ';' before ':' token
   12 |     printf("a*b\n"):
      |                    ^
      |                    ;
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 |   printf((9<a || 9<b) ? -1 : a*b);
      |          ~~~~~~~~~~~~~^~~~~~~~~~
      |                       |
      |                       int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

main(){
  int a,b;
  scanf("%d%d",&a,&b);
  
  printf((9<a || 9<b) ? -1 : a*b);
}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d%d",&a,&b);
      |   ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf((9<a || 9<b) ? -1 : a*b);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){
Language: C++

main(){
  return (9<A||9<B) ? -1: A*B;
}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:13: error: 'A' was not declared in this scope
    2 |   return (9<A||9<B) ? -1: A*B;
      |             ^
a.cc:2:18: error: 'B' was not declared in this scope
    2 |   return (9<A||9<B) ? -1: A*B;
      |                  ^
Language: Java

import java.util.Scanner;

public class a{
  public static void main(String args[]) throws Exception{
    Scanner scan=new Scanner(System.in);
    int A=scan.nextInt();
    int B=scan.nextInt();
    if ((1<=A && A<=9)&&(1<=B && B<=9)){
      System.out.println(A*B);
    }
    else{
      System.out.println(-1);
    }
  }
}


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

import java.util.Scanner;

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


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

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


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includee; did you mean #include?
    1 | #includee<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includee<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("%d\n",a*b);
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("-1\n");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includee; did you mean #include?
    1 | #includee<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includee<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("%d\n",a*b);
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("-1\n");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includee; did you mean #include?
    1 | #includee<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includee<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("-1\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("%d\n",a*b);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includee; did you mean #include?
    1 | #includee<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includee<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: stray '\' in program
    5 |   if(a>9\\b>9){
      |         ^
main.c:5:10: error: stray '\' in program
    5 |   if(a>9\\b>9){
      |          ^
main.c:5:9: error: expected ')' before 'b'
    5 |   if(a>9\\b>9){
      |     ~   ^ ~
      |         )
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("-1\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("%d\n",a*b);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();
      int b = scan.nextInt();
      int seki = a*b;
      System.out.println(seki);
    }
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main {
  int N, M;
  cin >> N >> M;
  if(N < 0 | M < 0) cout << -1 << endl;
  else cout << N*M << endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N, M;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> N >> M;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(N < 0 | M < 0) cout << -1 << endl;
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else cout << N*M << endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:6:9: warning: missing terminating " character
    6 |   scanf("%d %d,&a,&b);
      |         ^
a.cc:6:9: error: missing terminating " character
    6 |   scanf("%d %d,&a,&b);
      |         ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'if'
    7 |   if((a>9) || (b>9)){
      |   ^~
Language: C++

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

int main(void)
{
	int a, b;
	scanf_s("%d %d", &a, &b);
	if (a > 10||b>10) {
		cin >> a >> b ;
	}
	else {
		printf("%d\n", a * b);
	}
	return 0;
}

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

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

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

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'a\U0000ff0ab' was not declared in this scope
   10 |   else cout << a＊b << endl;
      |                ^~~~
Language: C++

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

	return 0;
>

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '>' token
   12 | >
      | ^
a.cc:12:2: error: expected primary-expression at end of input
   12 | >
      |  ^
a.cc:12:2: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>

int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  ans = a * b;
  printf("%d", ans);
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    a>9 || b>9?cout<<-1<:cout<<a*b;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:35: error: expected ']' before ';' token
    6 |     a>9 || b>9?cout<<-1<:cout<<a*b;
      |                                   ^
      |                                   ]
a.cc:6:24: error: no match for 'operator[]' (operand types are 'int' and 'std::basic_ostream<char>')
    6 |     a>9 || b>9?cout<<-1<:cout<<a*b;
      |                        ^~
a.cc:6:35: error: expected ':' before ';' token
    6 |     a>9 || b>9?cout<<-1<:cout<<a*b;
      |                                   ^
      |                                   :
a.cc:6:35: error: expected primary-expression before ';' token
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << ans << endl;
      |   ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout << ans << endl;
      |                  ^~~~