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

int main(){
  int N,a,b,i,d,n;
  scanf("%ld",&N);
  d=N;
  int c;
  for(i=1;i<=N;++i){
  a=N%i;
    if(a==0){
      b=N/i;
      c=labs(b+i-2);
      if(d>=c){
      d=c;
    }
      }
  }
 
  printf("%d\n",d);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%ld",&N);
      |   ^~~~~
a.cc:10:9: error: 'labs' was not declared in this scope
   10 |       c=labs(b+i-2);
      |         ^~~~
a.cc:17:3: error: 'printf' was not declared in this scope
   17 |   printf("%d\n",d);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include<iostream.h>
using namespace std;
int main()
{
  int n,m;
  cin>>n>>m;
  if(n<10 and m<10)
    cout<<m*n;
  else
    cout<<"-1";
  return 0;
}
    

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: 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;
  }
}

Compiler output:
a.cc:8:15: error: extended character 　 is not valid in an identifier
    8 |   if(A > 10 ||　B > 10){
      |               ^
a.cc: In function 'int main()':
a.cc:8:15: error: '\U00003000B' was not declared in this scope
    8 |   if(A > 10 ||　B > 10){
      |               ^~~
Language: C++

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

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

  if {（double）（N%1==0|| N%2==0|| N%3==0|| N%4==0|| N%5==0|| N%6==0|| N%7==0|| N%8==0|| N%9==0||）{
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected '(' before '{' token
    8 |   if {（double）（N%1==0|| N%2==0|| N%3==0|| N%4==0|| N%5==0|| N%6==0|| N%7==0|| N%8==0|| N%9==0||）{
      |      ^
      |      (
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostream>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'a' was not declared in this scope
    7 | cout<<a*b<<endl;
      |       ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<endl;
      |         ^
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostream>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<"-1"<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:13: error: 'endl' was not declared in this scope
   10 | cout<<"-1"<<endl;
      |             ^~~~
a.cc:10:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

int main(void)
{
  int a;
  int b;
  scanf("%d",&a);
  scanf("%d",&b);
  
  if(a > 9 || b > 9){
    print("%d",-1);
  }
  else{
    print("%d",a * b);
  }
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     print("%d",-1);
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected '}' at end of input
   11 |     cout << a*b << endl;
      |                         ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include <stdlib.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d%d", &a,&b);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <stdlib.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d%d", &a,&b);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: error: 'r' undeclared (first use in this function)
    7 |     r = -1;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%d", r);
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

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

}


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostream>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'a' was not declared in this scope
    7 | cout<<a*b<<endl;
      |       ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<endl;
      |         ^
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostream>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:7: error: '\U0000ff9e' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      |       ^
a.cc:10:9: error: unable to find numeric literal operator 'operator""\U0000ff9e'
   10 | cout<<ﾞ-1ﾞ<<endl;
      |         ^~
a.cc:10:13: error: 'endl' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      |             ^~~~
a.cc:10:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#icnlude<iostyeam>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A=<9&&B=<9){
cout<<a*b<<endl;
}
else{
cout<<ﾞ-1ﾞ<<endl;
}
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostyeam>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostyeam>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'a' was not declared in this scope
    7 | cout<<a*b<<endl;
      |       ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<endl;
      |         ^
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostyeam>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:7: error: '\U0000ff9e' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      |       ^
a.cc:10:9: error: unable to find numeric literal operator 'operator""\U0000ff9e'
   10 | cout<<ﾞ-1ﾞ<<endl;
      |         ^~
a.cc:10:13: error: 'endl' was not declared in this scope
   10 | cout<<ﾞ-1ﾞ<<endl;
      |             ^~~~
a.cc:10:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#icnlude<iostyeam>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A=<9&&B=<9){
cout<<a*b<<endl;
}
else{
cout<ﾞ-1ﾞ<<endl;
}
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostyeam>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostyeam>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'a' was not declared in this scope
    7 | cout<<a*b<<endl;
      |       ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<endl;
      |         ^
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostyeam>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:6: error: '\U0000ff9e' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |      ^
a.cc:10:8: error: unable to find numeric literal operator 'operator""\U0000ff9e'
   10 | cout<ﾞ-1ﾞ<<endl;
      |        ^~
a.cc:10:12: error: 'endl' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |            ^~~~
a.cc:10:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#icnlude<iostyeam>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A=<9&&B=<9){
cout<<a*b<<endl;
  }
else{
cout<ﾞ-1ﾞ<<endl;
}
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostyeam>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostyeam>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(A=<9&&B=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'a' was not declared in this scope
    7 | cout<<a*b<<endl;
      |       ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<endl;
      |         ^
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostyeam>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:6: error: '\U0000ff9e' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |      ^
a.cc:10:8: error: unable to find numeric literal operator 'operator""\U0000ff9e'
   10 | cout<ﾞ-1ﾞ<<endl;
      |        ^~
a.cc:10:12: error: 'endl' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |            ^~~~
a.cc:10:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

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

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

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]){
  int a,b,c;
  scanf("%d,%d",&a,&b);
  if(1=<a=<9,1=<b=<9){
    c=a*b;
  }
  else{
    c=-1;
  }
  printf("%d¥n",c);
}
return 0;

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:8: error: expected primary-expression before '<' token
    6 |   if(1=<a=<9,1=<b=<9){
      |        ^
a.cc:6:11: error: expected primary-expression before '<' token
    6 |   if(1=<a=<9,1=<b=<9){
      |           ^
a.cc:6:16: error: expected primary-expression before '<' token
    6 |   if(1=<a=<9,1=<b=<9){
      |                ^
a.cc:6:19: error: expected primary-expression before '<' token
    6 |   if(1=<a=<9,1=<b=<9){
      |                   ^
a.cc: At global scope:
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<iostyeam>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<iostyeam>
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(a=<9&&b=<9){
      |      ^
a.cc:6:12: error: expected primary-expression before '<' token
    6 | if(a=<9&&b=<9){
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a*b<<endl;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a*b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude<iostyeam>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:6: error: '\U0000ff9e' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |      ^
a.cc:10:8: error: unable to find numeric literal operator 'operator""\U0000ff9e'
   10 | cout<ﾞ-1ﾞ<<endl;
      |        ^~
a.cc:10:12: error: 'endl' was not declared in this scope
   10 | cout<ﾞ-1ﾞ<<endl;
      |            ^~~~
a.cc:10:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.*;
public class Main {
    public static void main(String[]args){
        // 標準入力
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A <= 9 && B <= 9)  System.out.println(A*B);
        else System.out.println('-1');
    }   
       
}       

Compiler output:
Main.java:11: error: unclosed character literal
        else System.out.println('-1');
                                ^
Main.java:11: error: unclosed character literal
        else System.out.println('-1');
                                   ^
2 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
Language: C++

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

int main() {
  int A, B;
  cin>>A>>B;
  if((A<10)&&(B<10)){
    printf("%d",(A*B));
  }
  else{
    printf("-1",);
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected ';' before ':' token
   10 |   else {cout<<a*b<<endl;return 0:}
      |                                 ^
      |                                 ;
a.cc:10:33: error: expected primary-expression before ':' token
a.cc:10:35: error: expected '}' at end of input
   10 |   else {cout<<a*b<<endl;return 0:}
      |                                   ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
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:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:22: note: to match this '{'
    7 |   if (a <= 9||b <= 9){
      |                      ^
Language: C++

#include<bits/stdc++.h>
vector <string> c;
using namespace std;
int main()
{
    int a,e;
 	cin>>a>>e;
  	cout<<a*e;
}

Compiler output:
a.cc:2:1: error: 'vector' does not name a type
    2 | vector <string> c;
      | ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b,c;
    printf ("please input two integers between 1 and 9(inclusive) together\n");
    if (scanf ("%d %d",&a,&b) == 1);
    {
        
    
    if(a<1||a>9||b<1||b>9)

        {
            printf("-1\n");
        }
    else
        {
            c=a*b;
            printf("%d",c);
        }
    }
    else
    {
        printf("Failed to read integer.\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:5: error: 'else' without a previous 'if'
   23 |     else
      |     ^~~~
Language: C++

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

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

#include <iostream>
using namespase std;
int main()
{
	int 1=<A,B<=20
     cin>>A>>B>>,endl;
  
  if(A*B=<81){cout<<A*B<<endl;}

	else if{cout<<-1<<endl;}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before numeric constant
    5 |         int 1=<A,B<=20
      |             ^
a.cc:8:6: error: 'A' was not declared in this scope
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |      ^
a.cc:8:8: error: 'B' was not declared in this scope
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |        ^
a.cc:8:10: error: expected primary-expression before '<' token
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |          ^
a.cc:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |               ^~~~
      |               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:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(A*B=<81){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:10:16: error: expected '(' before '{' token
   10 |         else if{cout<<-1<<endl;}
      |                ^
      |                (
Language: C

#include<stdio.h>

int main(){
    int A, B;
    scanf("%d %d", &A, &B);
    if(A<9 && B <9){
        2printf("%d\n", A *B);
    } else {
        printf("-1\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: invalid suffix "printf" on integer constant
    7 |         2printf("%d\n", A *B);
      |         ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'if'
    9 |         if(N<=9 && B<=9){
      |         ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C++

#inlclude<iostream>
using namespace std ;

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:1:2: error: invalid preprocessing directive #inlclude; did you mean #include?
    1 | #inlclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlclude<iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<-1<<endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |     cout<<-1<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlclude<iostream>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<a*b<<endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:16: error: 'endl' was not declared in this scope
   11 |     cout<<a*b<<endl;
      |                ^~~~
a.cc:11:16: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespase std;
int main()
{
	int 1=<A,B<=20
     cin>>A>>B>>,endl;
  
  if(A*B=<81){cout<<A*B<<endl;}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before numeric constant
    5 |         int 1=<A,B<=20
      |             ^
a.cc:8:6: error: 'A' was not declared in this scope
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |      ^
a.cc:8:8: error: 'B' was not declared in this scope
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |        ^
a.cc:8:10: error: expected primary-expression before '<' token
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |          ^
a.cc:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(A*B=<81){cout<<A*B<<endl;}
      |               ^~~~
      |               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:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(A*B=<81){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 <iostream>
#include <vector>
#include <math.h>
using namespace std;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin<<A<<B<<endl;
      |   ^~~
      |   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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cin<<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:8:6: error: 'a' was not declared in this scope
    8 |   if(a<=9 && b<=9 ){
      |      ^
a.cc:8:14: error: 'b' was not declared in this scope
    8 |   if(a<=9 && b<=9 ){
      |              ^
a.cc:9:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |      cout>>p>>endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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
      |                  ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <math.h>
using namespace std;

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


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


#include <algorithm>
#include <functional>
#include <iostream>
#include <list>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#include <cmath>
#include <cctype>

using namespace std;

// rep(i, 100) { cout << i << endl; } => 0 1 2 ... 99
#define rep(i, n) for(int i = 0, i##_len = (n); i < (int)n; i++)

// std::sort(all(v));
#define all(x) (x).begin(), (x).end()

// long long int
using ll = long long;

// utility to cast return value of size function to int
#define SZ(x) ((int)(x).size())

// VS defines "_DEBUG" macro when debug configuration.
#if _DEBUG
#define dump(x) cerr << #x << " = " << (x) << endl
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl
#else
#define dump(x)
#define debug(x)
#endif

// update max
template<class T>bool chmax(T & prov, const T & cur)
{
	if (cur > prov)
	{
		prov = cur;
		return true;
	}
	return false;
}

// update min
template<class T>bool chmin(T & prov, const T & cur)
{
	if (cur < prov)
	{
		prov = cur;
		return true;
	}
	return false;
}

ll gmin = LONG_MAX;

void df(ll x, ll y, const vector<ll> & n, int index)
{
	if (index == n.size())
	{
		chmin(gmin, x + y);
		return;
	}

	if (gmin <= x + y)
	{
		return;
	}

	df(x * n[index], y, n, index + 1);
	df(x, y * n[index], n, index + 1);
}

int main()
{
	ll N;
	cin >> N;
	vector<ll> yaku;
	ll n = N;
	ll ans;
	ll sq = sqrt(N);
	for (ll i = 2; n > 1 && i <= sq; i++)
	{
		while (n % i == 0 && i != 1)
		{
			yaku.push_back(i);
			n /= i;
		}
	}

	if (yaku.size() == 0)
	{
		ans = N - 1;
	}
	else
	{
		df(1, 1, yaku, 0);

		ans = gmin - 2;
	}

	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc:58:11: error: 'LONG_MAX' was not declared in this scope
   58 | ll gmin = LONG_MAX;
      |           ^~~~~~~~
a.cc:12:1: note: 'LONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   11 | #include <cctype>
  +++ |+#include <climits>
   12 |
Language: C++

#include <stdc++.h>
int main(){
   int A,B,p;
  1<=A<=20;
   1<=B<=20;
   p=A*B;
  cin<<A<<B<<endl;
  if(a<=9 && b<=9 ){
     cout>>p>>endl;
    }
  else{
    cout>>"-1">>endl;
     }
}

    
  

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

#include<iostream>
using namespace std;

int main(){
	int n,a,i;
	cin >> n

	for(i=9;i>0;i--){
		a=n/i;
		if(a<10){
			cout << "Yes" << endl;
			break;
		}

		if(i==1){
			cout << "No" << endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'for'
    6 |         cin >> n
      |                 ^
      |                 ;
    7 | 
    8 |         for(i=9;i>0;i--){
      |         ~~~      
a.cc:8:24: error: expected ';' before ')' token
    8 |         for(i=9;i>0;i--){
      |                        ^
      |                        ;
Language: C++

#include <iostream>
using namespace std;

int main(){
    int A, B; cin >> A >> B;
    int result;
    result = -1;
    if(0<A<10 and 0<B<10){
        result = A*B;
    }
}

    cout << result << endl;
}

Compiler output:
a.cc:13:5: error: 'cout' does not name a type
   13 |     cout << result << endl;
      |     ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>

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

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

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

Compiler output:
a.cc:1:121: warning: extra tokens at end of #include directive
    1 | #include <stdc++.h>                                                                                                     using namespace std;                                                                                                    int main(){
      |                                                                                                                         ^~~~~
a.cc:1:10: fatal error: stdc++.h: No such file or directory
    1 | #include <stdc++.h>                                                                                                     using namespace std;                                                                                                    int main(){
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

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

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

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


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

#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=a;i<=b;i++) 
using namespace std;
typedef long long ll;

ll n, ans = 1e15;
int main() {
    ios::sync_with_stdio(false);
    cin >> a >> b;
  	if (a < 10 and b < 10) cout << a*b; else cout <<"-1";
	return 0;
}


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

#include <bits/stdc++.h>
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
using namespace std;
 
 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  int A;
  cin >> A;
  if (A<=9||(A<=18&&A%2==0)||(A<=27&&A%3==0)||(A<=36&&A%4==0)||(A<=45&&A%5==0)||(A<=54&&A%6==0)||(A<=63&&A%7==0)||(A<=72&&A%8==0)||(A<=81&&A%9==0)){
    cout << "Yes" << endl;
  }
  else { 
  	cout << "No" << endl;
}
#include <bits/stdc++.h>
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
using namespace std;
 
 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  int A;
  cin >> A;
  if (A<=9||(A<=18&&A%2==0)||(A<=27&&A%3==0)||(A<=36&&A%4==0)||(A<=45&&A%5==0)||(A<=54&&A%6==0)||(A<=63&&A%7==0)||(A<=72&&A%8==0)||(A<=81&&A%9==0)){
    cout << "Yes" << endl;
  }
  else { 
  	cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   55 | int main() {
      |         ^~
a.cc:55:9: note: remove parentheses to default-initialize a variable
   55 | int main() {
      |         ^~
      |         --
a.cc:55:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:55:12: error: a function-definition is not allowed here before '{' token
   55 | int main() {
      |            ^
a.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
a.cc:23:12: note: to match this '{'
   23 | int main() {
      |            ^
Language: C++

int a,b,c;

if(a<10){
  if(b<10){
    printf(a*b);
  }
  else printf(-1);
}
else printf(-1);


Compiler output:
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if(a<10){
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else printf(-1);
      | ^~~~
Language: C

#include<stdio.h>

int main{
    int A, B, C;
    scanf{"%d, %d", A, B};

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

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

#include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <vector>
#include <string>
using namespace std;

int main() {
  int a;
  int b;
  int ans;
  cin >> a >> b;
  int ans=a*b;

  if(a>9 or b>10) ans=-1;

  cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: redeclaration of 'int ans'
   14 |   int ans=a*b;
      |       ^~~
a.cc:12:7: note: 'int ans' previously declared here
   12 |   int ans;
      |       ^~~
Language: C++

#include<algorithm>
#include<string>
#include<stdio.h>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<utility>
#include<functional>
#include<cassert>

using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
typedef vector<int> vint;
typedef vector<vint> vvint;

int main(void) {
	ll n;
	cin >> n;
	ll ans = n;
	for (ll i = 1; i < sqrt(n);i++ ){
		if (n%i == 0) {
			ll a;
			a = n / i;
			if (a  + i - 2 < ans) {
				ans = a - 1 + i - 1;
			}
		}
	}
	cout << ans << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:22:28: error: 'sqrt' was not declared in this scope
   22 |         for (ll i = 1; i < sqrt(n);i++ ){
      |                            ^~~~
Language: C++

#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=a;i<=b;i++) 
using namespace std;
typedef long long ll;

ll n, ans = 1e15;
int main() {
    ios::sync_with_stdio(false);
    cin >> a >> b;
    if (a == 10 or a == 20 or b == 10 or b ==20) cout << "-1"; else cout << a*b;
	return 0;
}


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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:14: error: stray '\' in program
   11 |   printf("%d"\n,a);
      |              ^
main.c:11:14: error: expected ')' before 'n'
   11 |   printf("%d"\n,a);
      |         ~    ^~
      |              )
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;
  

  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
  int a,b;
  int ans;
  cin >> a >> b;
  int ans=a*b;

  if(a>9 or b>10) ans=-1;

  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: redeclaration of 'int ans'
   10 |   int ans=a*b;
      |       ^~~
a.cc:8:7: note: 'int ans' previously declared here
    8 |   int ans;
      |       ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << a * b << endl;
      |         ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |         cout << a * b << endl;
      |                          ^~~~
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout << -1 << endl;
      |          ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |     else cout << -1 << endl;
      |                        ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
  int a,b;
  int ans;
  int ans=a*b;

  if(a>9 or b>10) ans=-1;

  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: redeclaration of 'int ans'
    9 |   int ans=a*b;
      |       ^~~
a.cc:8:7: note: 'int ans' previously declared here
    8 |   int ans;
      |       ^~~
Language: C++

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

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

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


Compiler output:
main.c: In function 'main':
main.c:9:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
    9 |         return 0;
      |                ^
main.c:2:6: note: declared here
    2 | void main()
      |      ^~~~
main.c:13:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   13 |     return 0;
      |            ^
main.c:2:6: note: declared here
    2 | void main()
      |      ^~~~
Language: C

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


Compiler output:
main.c:1:10: fatal error: A.h: No such file or directory
    1 | #include "A.h"
      |          ^~~~~
compilation terminated.