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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << a*b << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << a*b << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

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

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 /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:6:9: 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:24: 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/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)
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:29: error: expected ';' before 'printf'
    4 |         scanf("%d %d",&a,&b)
      |                             ^
      |                             ;
    5 |         printf("%d",a*b);
      |         ~~~~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a, b;
      |   ^~
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   std::cin >> a >> b;
      |               ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   std::cin >> a >> b;
      |                    ^
a.cc:6:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   std::cout << a*b << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define MOD 1000000007ULL;
#define rep(i,n) for(ll i=0;i<n;i++)

}


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

Compiler output:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main (void){
  int a,b,c;
  cin >> ａ >> b;
  c = a * b;
  cout << c << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: '\U0000ff41' was not declared in this scope
    5 |   cin >> ａ >> b;
      |          ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '}' token
    7 |         cout << a*b
      |                    ^
      |                    ;
......
   10 | }
      | ~
Language: C++

#include <iostream>
 
using namespace std;
 

	int a;
	int b;
 
	cin >> a;
	cin >> b;
 
	cout << a*b;


Compiler output:
a.cc:9:9: error: 'cin' does not name a type
    9 |         cin >> a;
      |         ^~~
a.cc:10:9: error: 'cin' does not name a type
   10 |         cin >> b;
      |         ^~~
a.cc:12:9: error: 'cout' does not name a type
   12 |         cout << a*b;
      |         ^~~~
Language: C++


 
using namespace std;
 
int main() {
	int a;
	int b;
 
	cin >> a;
	cin >> b;
 
	cout << a*b;
}

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

#include <iostream>

using namespace std;

int main() {
	int a;
	int b;

	cin >> a
	cin >> b;

	cout << a*b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'cin'
    9 |         cin >> a
      |                 ^
      |                 ;
   10 |         cin >> b;
      |         ~~~
Language: C++

#include <iostream>

using namespace std;

int a;
int b;

cin >> a
cin >> b;

cout << a*b;


Compiler output:
a.cc:8:1: error: 'cin' does not name a type
    8 | cin >> a
      | ^~~
a.cc:11:1: error: 'cout' does not name a type
   11 | cout << a*b;
      | ^~~~
Language: C++

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

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




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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int man()':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using nmaespace std;
int main()
{
    int a,b;
    cin >> a >> b;
    cout << a*b << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nmaespace'
    2 | using nmaespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << a*b << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << a*b << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

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

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

import java.util.Scanner;

class Main{
 
  public static void main(String args[]){
   
    Scanner input=new Scanner(System.in);
    
    int a[]=new int[2];
    
    for(int a=0;i<a.length;i++)
      a[0]=input.nextInt();
    
    System.out.println(a[0]*a[1]);
    
  }
  
  
}

Compiler output:
Main.java:11: error: variable a is already defined in method main(String[])
    for(int a=0;i<a.length;i++)
            ^
Main.java:11: error: cannot find symbol
    for(int a=0;i<a.length;i++)
                ^
  symbol:   variable i
  location: class Main
Main.java:11: error: int cannot be dereferenced
    for(int a=0;i<a.length;i++)
                   ^
Main.java:11: error: cannot find symbol
    for(int a=0;i<a.length;i++)
                           ^
  symbol:   variable i
  location: class Main
Main.java:12: error: array required, but int found
      a[0]=input.nextInt();
       ^
5 errors
Language: C++

ios_base::sync_with_stdio(false);cin.tie(0);
  int a;
  int b;
  cin>>a;
  cin>>b;
  cout<<a * b<<'\n';

Compiler output:
a.cc:1:1: error: 'ios_base' does not name a type
    1 | ios_base::sync_with_stdio(false);cin.tie(0);
      | ^~~~~~~~
a.cc:1:34: error: 'cin' does not name a type
    1 | ios_base::sync_with_stdio(false);cin.tie(0);
      |                                  ^~~
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin>>a;
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>b;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<a * b<<'\n';
      |   ^~~~
Language: C++

int multiplication(int a, int b) {
	a=2;
  	b=5;
  return a*b;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>

int main()
{
    int A,B,c;
    scanf("%d",&A);
    scanf("%d",&B);
    c=A*B;
    printf("%d",c);
    
    return 0
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | }
      | ~
Language: Java


import java.util.Scanner;

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

		//コンソールに入力した値を取得
		int a = sc.nextInt();
		int b = sc.nextInt();

		System.out.println(a*b);

		sc.close();
	}
}


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

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

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected declaration or statement at end of input
    7 |   printf("%d",c);
      |   ^~~~~~
Language: C

#include<stadio.h>
int main(){
  int a,b,c;
  scanf("%d",&a);
  scanf("%d",&b);
  c=a*b;
  printf("%d",c);
}

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

int multiplication(int a, int b) {
	return a*b;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>

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

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using P = pair<int, int>
      |           ^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

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

	cout << a*b << endl;
}




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 /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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << a*b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << a*b << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

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

	cout << a*b <<;
}




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 /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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << a*b <<;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:23: error: expected primary-expression before ';' token
    7 |         cout << a*b <<;
      |                       ^
Language: Java

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

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

import java.util.Scanner; 

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

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

#include <bits/stdc++.h> 
using namespace std; 
  
int main() 
{ 
    int n , k;
    cin>>n;
    cin>>k;
    sum=n*k;
    
    cout<<sum;
    return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum=n*k;
      |     ^~~
Language: C++

#include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std;
long long array [10010];
int main()
{
	int n = 0;
	cin >> n;
	long long int max = pow(10, 18);
	for (int i = 0; i < n; i++)
	{
		cin >> array[i];
	}
  	int zero = 0;
  	for (int i = 0; i < n; i++)
	{
		if(array[i] == 0)
        {
			zero++;
        }
	}
  	if(zero > 0)
    {
		cout<<"0"<<endl;
        return 0;
    }
    long long int res = 1;
	for (long int i = 0; i < n; i++)	
    {
		res = res * vect[i]
        if (res > max)
		{
			cout << "-1"<<endl;				
            return 0;
		}
	}
	cout << res << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: reference to 'array' is ambiguous
   14 |                 cin >> array[i];
      |                        ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_pair.h:99:12: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
   99 |     struct array;
      |            ^~~~~
a.cc:6:11: note:                 'long long int array [10010]'
    6 | long long array [10010];
      |           ^~~~~
a.cc:19:20: error: reference to 'array' is ambiguous
   19 |                 if(array[i] == 0)
      |                    ^~~~~
/usr/include/c++/14/bits/stl_pair.h:99:12: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
   99 |     struct array;
      |            ^~~~~
a.cc:6:11: note:                 'long long int array [10010]'
    6 | long long array [10010];
      |           ^~~~~
a.cc:32:29: error: 'vect' was not declared in this scope
   32 |                 res = res * vect[i]
      |                             ^~~~
Language: C

#include<stdio.h>
signed main(){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d\n",a*b]);
    return(0);
}

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

#include <iostream>

using namespace std;

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

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

#include <iostream>
int main() int a,b;std::cin>>a>>b;std::cout<<a*b;

Compiler output:
a.cc:2:12: error: expected initializer before 'int'
    2 | int main() int a,b;std::cin>>a>>b;std::cout<<a*b;
      |            ^~~
a.cc:2:25: error: 'cin' in namespace 'std' does not name a type
    2 | int main() int a,b;std::cin>>a>>b;std::cout<<a*b;
      |                         ^~~
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:2:40: error: 'cout' in namespace 'std' does not name a type
    2 | int main() int a,b;std::cin>>a>>b;std::cout<<a*b;
      |                                        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
int main(){
int a,b;
std::cin>>a>>b;
cout<<a*b;
}


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

#include <iostream>
int main(){
int a,b;
cin>>a>>b;
cout<<a*b;
}


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

#include <iostream>
int main(){int a,b;
cin>>a>>b;
cout<<a*b;
}

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

#include <iostream>
int main(){int a,b;
cin>>a>>b;
cout<<a*b;}

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

#include <iostream>
int main(){int a,b;cin>>a>>b;cout<<a*b;}

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

#include <iostream>
int main() int a,b;cin>>a>>b;cout<<a*b;

Compiler output:
a.cc:2:12: error: expected initializer before 'int'
    2 | int main() int a,b;cin>>a>>b;cout<<a*b;
      |            ^~~
a.cc:2:20: error: 'cin' does not name a type
    2 | int main() int a,b;cin>>a>>b;cout<<a*b;
      |                    ^~~
a.cc:2:30: error: 'cout' does not name a type
    2 | int main() int a,b;cin>>a>>b;cout<<a*b;
      |                              ^~~~
Language: C++

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

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

#include<stdio.h>

int main(void)
{
  int A,B;
  scanf("%d%d",&A,&B);
  printf("%d\n"A * B);

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ')' before 'A'
    7 |   printf("%d\n"A * B);
      |         ~      ^
      |                )
main.c:7:3: error: expected declaration or statement at end of input
    7 |   printf("%d\n"A * B);
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{

  ll n;
  cin>>n;
  ll arr[n];
  for(ll i=0;i<n;i++)
  {cin>>arr[i];
    if(arr[i]==0)
    {
      cout<<0<<endl;
      exit(0);
      
      
    }

    
  }
  ll t=1;
  ll comp=pow(10,18);
  for(ll i=0;i<n;i++)
  {
    if(arr[i] <=1000000000000000000/t )
// This condition is equivalent to prod*a[i] <=10ˆ18
t*=arr[i]
  else
  {
    cout<<-1<<endl;
    exit(0);
    
    
  }
    
    
  }
    cout<<t<<endl;
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:10: error: expected ';' before 'else'
   28 | t*=arr[i]
      |          ^
      |          ;
   29 |   else
      |   ~~~~
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~
Language: Java

#include <iostream>

using namespace std;


int main() {
    long long a;
    long long b;
    cin >> a;
    cin >> b;
    cout << a * b;

    return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:7: error: not a statement
    long long a;
    ^
Main.java:8: error: not a statement
    long long b;
    ^
Main.java:9: error: not a statement
    cin >> a;
        ^
Main.java:10: error: not a statement
    cin >> b;
        ^
Main.java:11: error: not a statement
    cout << a * b;
         ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: ';' expected
    long long a;
        ^
Main.java:8: error: ';' expected
    long long b;
        ^
10 errors
Language: C++

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

#define N ((ll)1e18)

int main(int argc, char const *argv[])
{
	int n;
	cin >> n;
	ll x;
  	unsigned ll ans = 0;
	for (int i = 0; i < n; ++i)
	{
		cin >> x;
		ans += x;
		if(ans > N)
		{
			ans = -1
			break;
		}
	}

	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:21: error: expected initializer before 'ans'
   12 |         unsigned ll ans = 0;
      |                     ^~~
a.cc:16:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                 ans += x;
      |                 ^~~
      |                 abs
a.cc:24:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

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

#define N ((ll)1e18)

int main(int argc, char const *argv[])
{
	int n;
	cin >> n;
	ll x
    unsigned ll ans = 0;
	for (int i = 0; i < n; ++i)
	{
		cin >> x;
		ans += x;
		if(ans > N)
		{
			ans = -1
			break;
		}
	}

	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:5: error: expected initializer before 'unsigned'
   12 |     unsigned ll ans = 0;
      |     ^~~~~~~~
a.cc:15:24: error: 'x' was not declared in this scope
   15 |                 cin >> x;
      |                        ^
a.cc:16:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                 ans += x;
      |                 ^~~
      |                 abs
a.cc:24:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

#include <stdio.h>
int main() {

	int a, b;
	scanf_s("%d%d", &a, &b);
	printf("%d\n", a*b);
}

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

int main() {

	int a, b;
	scanf_s("%d%d", &a, &b);
	printf("%d\n", a*b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf_s' was not declared in this scope
    4 |         scanf_s("%d%d", &a, &b);
      |         ^~~~~~~
a.cc:5:9: error: 'printf' was not declared in this scope
    5 |         printf("%d\n", a*b);
      |         ^~~~~~
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++

int szorzas(int a, int b)
{
	return a * b;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

int function()
{
  
}

Compiler output:
a.cc: In function 'int function()':
a.cc:4:1: warning: no return statement in function returning non-void [-Wreturn-type]
    4 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b;
  int c=a*b;
  cout<<c<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int c'
    7 |   int c=a*b;
      |       ^
a.cc:5:11: note: 'int c' previously declared here
    5 |   int a,b,c;
      |           ^
Language: C++

#include<bits/stdc++.>
using namespace std;
int main()
{
  long long a,b;
  cin>>a>>b;
  long long c=a*b;
  cout<<c<<endl;
  return 0;
}

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

#include <bots/stdc++.h>
using namespace std;
int main(){
  int x,y;
  cin>>x>>y;
  cout<<x*y<<endl;}

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

public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int x = Integer.parseInt(sc.next());
        int y = Integer.parseInt(sc.next());
        System.out.println(x*y);
    }
}

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

public class Main {
    public static void Main(String[] args) {
        int x = Integer.parseInt(args[0]);
        int y = Integer.parseInt(args[1]);
        system.out.println(x*y);
    }
}

Compiler output:
Main.java:5: error: package system does not exist
        system.out.println(x*y);
              ^
1 error
Language: Java

import java.util.Scanner;
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
Mul= a*b;
System.out.println(Mul)

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
Mul= a*b;
^
Main.java:6: error: class, interface, enum, or record expected
System.out.println(Mul)
^
3 errors
Language: C

#include<iostream>
using namespace std;
int main()
{
    #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
    #endif
  int a,b;
  cin>>a>>b;
  cout<<a*b;
  return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
    #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
    #endif

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

#include<iostream.h>
using namespace std;
int main()
{
    #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
    #endif
  int a,b;
  cin>>a>>b;
  cout<<a*b;

Compiler output:
main.c: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()
{
    #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
    #endif
  int a,b;
  cin>>a>>b;
  cout<<a*b;
  
  
  
  
  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>
using namespace std;

int main() {
  intA,B;
  cin>>A>>B;
  cout<<A*B<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'intA' was not declared in this scope; did you mean 'int'?
    5 |   intA,B;
      |   ^~~~
      |   int
a.cc:5:8: error: 'B' was not declared in this scope
    5 |   intA,B;
      |        ^
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>B;
      |        ^
Language: C++

#include<iostream>
uisng namespace std;
int main(){
  int a,b,c;
  cin>>a>>b;
  c=a*b;
  cout<<c;
  return 0;
}

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<c;
      |   ^~~~
      |   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<iostram>
uisng namespace std;
int main(){
  int a,b,c;
  cin>>a>>b;
  c=a*b;
  cout<<c;
  return 0;
}

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

#include<iostram>
uisng namespace std;
int main(){
  int a,b,c;
  cin>>a>>b;
  c=a*b;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n,m;
	cin>>n>>m;
	cout>>n*m;
}

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

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      int n = in.nextInt();
      long a = in.nextLong();
      int b = 0;
      int over = -1;
      long prod = 1;
      
      for(int i=0;i<n-1; i++){
        if(a>=1000000000000000000/prod){
          System.out.println(over);
        }else{
          b = in.nextInt();
       	  a = a*b;
        }
      }
      System.out.println(a);
    }
}

Compiler output:
Main.java:13: error: integer number too large
        if(a>=1000000000000000000/prod){
              ^
1 error
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      int n = in.nextInt();
      int a = in.nextInt();
      int b = 0;
      int over = -1;
      long limit = 1000000000000000000;
      
      for(int i=0;i<n-1; i++){
        if(a>=limit){
          System.out.println(over);
        }else{
          b = in.nextInt();
       	  a = a*b;
        }
      }
      System.out.println(a);
    }
}

Compiler output:
Main.java:10: error: integer number too large
      long limit = 1000000000000000000;
                   ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '>>' token
    6 |   cin >> a >> b;
      |       ^~
Language: Java

public class Main {

	public static void main(String[] args) {
      int a;
      int b;
      System.out.println(a*b);
    }
}

Compiler output:
Main.java:6: error: variable a might not have been initialized
      System.out.println(a*b);
                         ^
Main.java:6: error: variable b might not have been initialized
      System.out.println(a*b);
                           ^
2 errors
Language: C++

#include <iostream>
int main(){
 int A;
 int B;
 cin>>A;
 cin>>B;
 cout<<A*B<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin>>A;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |  cout<<A*B<<endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |  cout<<A*B<<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main () {
  int A, B 
  cin >> A >> B;
  cout << A * B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> A >> B;
      |   ^~~
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   cout << A * B << endl;
      |               ^
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 | itn a ,b;
      | ^~~
      | int
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b;
      |           ^
Language: C++

#include<iostream>
int main(){
int a,b;
  cin>>a>>b;
  cout<<a*b;

return 0;
}

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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<a*b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>;
using namespace std;
int main(){
   int a,b;
  cin >> a >> b;
  cout << a*b << "\n"'
    return 0;
  
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc:6:22: warning: missing terminating ' character
    6 |   cout << a*b << "\n"'
      |                      ^
a.cc:6:22: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before 'return'
    6 |   cout << a*b << "\n"'
      |                      ^
      |                      ;
    7 |     return 0;
      |     ~~~~~~
Language: C++

#inclued <iostream>

int main() {
  int A, B;
  std::cin >> A >> B;
  std::cout << A * B << std::endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::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 | #inclued <iostream>
a.cc:6:8: error: 'cout' is not a member of 'std'
    6 |   std::cout << A * B << std::endl;
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:30: error: 'endl' is not a member of 'std'
    6 |   std::cout << A * B << std::endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclued <iostream>
Language: C++

#inclue <iostream>

int main() {
  int A, B;
  std::cin >> A >> B;
  std::cout << A * B << std::endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::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 | #inclue <iostream>
a.cc:6:8: error: 'cout' is not a member of 'std'
    6 |   std::cout << A * B << std::endl;
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:30: error: 'endl' is not a member of 'std'
    6 |   std::cout << A * B << std::endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue <iostream>
Language: C++

#include <bits/stdc++.h>
 using namepace std;
 int main(){
   int A,B;
   cin>>A>>B;
   cout<<A*B<<endl;
 }

   

Compiler output:
a.cc:2:8: error: expected nested-name-specifier before 'namepace'
    2 |  using namepace std;
      |        ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    cin>>A>>B;
      |    ^~~
      |    std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:4: 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:15: 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/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)
      |     ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  cin >> A >> B;
  cout << A*B << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> A >> B;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << A*B << endl;
      |   ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |   cout << A*B << endl;
      |                  ^~~~
Language: C++

#include <iostream>

int main(){
  int A, B;
  std::cin >> A >> B;
  std::cout << A*B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   std::cout << A*B << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~