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

#include <iostream>
#include <string>
int main(){
  int n = x*x*x;
  cout << "n" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'x' was not declared in this scope
    4 |   int n = x*x*x;
      |           ^
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << "n" <<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:5:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << "n" <<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++

// Example program
#include <iostream>
#include <string>

int main()
{
  int n;
  cin >>n;
  
  cout << n*n*n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >>n;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << n*n*n << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << n*n*n << 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 <string>
int main(){
  int n ;
  cin >>???n;
  cout << "n*n*n" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >>???n;
      |   ^~~
      |   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:9: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |         ^
a.cc:5:10: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |          ^
a.cc:5:11: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |           ^
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << "n*n*n" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << "n*n*n" << 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 <string>
int main(){
  int n ;
  cin >>???n;
  cout << n*n*n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >>???n;
      |   ^~~
      |   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:9: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |         ^
a.cc:5:10: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |          ^
a.cc:5:11: error: expected primary-expression before '?' token
    5 |   cin >>???n;
      |           ^
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???n;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << n*n*n << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << n*n*n << 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 <string>
int main(){
  int x ;
  cin >>???x;
  cout << x*x*x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >>???x;
      |   ^~~
      |   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:9: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |         ^
a.cc:5:10: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |          ^
a.cc:5:11: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |           ^
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << x*x*x << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << x*x*x << 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>
using namespace std;
int main(){
  int x ;
  cin >>???x;
  cout << x*x*x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |         ^
a.cc:5:10: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |          ^
a.cc:5:11: error: expected primary-expression before '?' token
    5 |   cin >>???x;
      |           ^
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
a.cc:5:13: error: expected ':' before ';' token
    5 |   cin >>???x;
      |             ^
      |             :
a.cc:5:13: error: expected primary-expression before ';' token
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x ;
  cin >>???x;
  cout << x*x*x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '?' token
    6 |   cin >>???x;
      |         ^
a.cc:6:10: error: expected primary-expression before '?' token
    6 |   cin >>???x;
      |          ^
a.cc:6:11: error: expected primary-expression before '?' token
    6 |   cin >>???x;
      |           ^
a.cc:6:13: error: expected ':' before ';' token
    6 |   cin >>???x;
      |             ^
      |             :
a.cc:6:13: error: expected primary-expression before ';' token
a.cc:6:13: error: expected ':' before ';' token
    6 |   cin >>???x;
      |             ^
      |             :
a.cc:6:13: error: expected primary-expression before ';' token
a.cc:6:13: error: expected ':' before ';' token
    6 |   cin >>???x;
      |             ^
      |             :
a.cc:6:13: error: expected primary-expression before ';' token
Language: C++

#include <iostream>

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

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

#include <stdio.h>

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'scanf'
    5 |         scanf("%d", &x);
      |         ^~~~~
a.cc:6:23: error: 'x' was not declared in this scope
    6 |         printf("%d\n",x*x*x);
      |                       ^
Language: C++

import java.util.Scanner;

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

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

import java.util.Scanner;
public class Main { 
public static void main(String[] args) { 
	// ?¨??????\??????????????????????????????????????? 
	Scanner sc = new Scanner(System.in);
	// ????????????????????????????????´??°?????¨????????????????????????
	int x = sc.nextInt();
	int answer = x*x*x;
	System.out.println(answer);   
	}
}
}

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

import java.util.Scanner;

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

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

#include <stdio.h>

int main()
{
  int a;

  scanf("%d ,&a);

  printf("%d", a * a * a );

  return 0;
}

Compiler output:
a.cc:7:9: warning: missing terminating " character
    7 |   scanf("%d ,&a);
      |         ^
a.cc:7:9: error: missing terminating " character
    7 |   scanf("%d ,&a);
      |         ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:27: error: expected ')' before ';' token
    9 |   printf("%d", a * a * a );
      |                           ^
      |                           )
a.cc:7:8: note: to match this '('
    7 |   scanf("%d ,&a);
      |        ^
Language: C++

include<iostream>
using namespace std;

int main()
{  
   int i;
   cin>>i;
   cout<<i*i*i<<"\n";
  return 0;
}
   

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope
    7 |    cin>>i;
      |    ^~~
a.cc:8:4: error: 'cout' was not declared in this scope
    8 |    cout<<i*i*i<<"\n";
      |    ^~~~
Language: C++

#include "stdafx.h"
#include<iostream>
using namespace std;

int main()
{  
   int i;
   cin>>i;
   cout<<i*i*i<<"\n";
  return 0;
}
   

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

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{  
   int i;
   cin>>i;
   cout<<i*i*i<<"\n";
  return 0;
}
   

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

#include<cstdio>

int main(){
	int x;
	std::cin >> x;
	std::cout << x ^ 3 << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::cin >> x;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:6:14: error: 'cout' is not a member of 'std'
    6 |         std::cout << x ^ 3 << "\n";
      |              ^~~~
a.cc:6:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:28: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    6 |         std::cout << x ^ 3 << "\n";
      |                          ~ ^~ ~~~~
      |                          |    |
      |                          int  const char [2]
Language: C++

#include<iostream>

int main(){
	int x;
	std::cin >> x;
	std::cout << x ^ 3 << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    6 |         std::cout << x ^ 3 << "\n";
      |                          ~ ^~ ~~~~
      |                          |    |
      |                          int  const char [2]
Language: C++

#include<stdio.h>

int main(void)


{


int=x;


scanf("%d", &x);


printf("%d", x*x*x\n);


return 0;


}

Compiler output:
a.cc:15:19: error: stray '\' in program
   15 | printf("%d", x*x*x\n);
      |                   ^
a.cc: In function 'int main()':
a.cc:9:4: error: expected unqualified-id before '=' token
    9 | int=x;
      |    ^
a.cc:12:14: error: 'x' was not declared in this scope
   12 | scanf("%d", &x);
      |              ^
Language: C++

#include<stdio.h>

int main(void)


{


int=x;


scanf("%d", &x);


printf("%d\n", x*x*x);


return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected unqualified-id before '=' token
    9 | int=x;
      |    ^
a.cc:12:14: error: 'x' was not declared in this scope
   12 | scanf("%d", &x);
      |              ^
Language: C++

#include<stdio.h>


int main(void){


int  x ,kekka;


printf("??°????????\???>>");


scanf("%d",&x);


kekka = x * x * x;


printf("?????????%d??§???\n"kekka);


return 0;


}

Compiler output:
a.cc:10:22: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
   10 | printf("??°????????\???>>");
a.cc: In function 'int main()':
a.cc:19:8: error: unable to find string literal operator 'operator""kekka' with 'const char [20]', 'long unsigned int' arguments
   19 | printf("?????????%d??§???\n"kekka);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h)
int main (void){
    int x;
    scanf ("%d" &x);
    x=x*x*x;
    printf ("%d\n", x);
return 0;
}
    

Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include <stdio.h)
      |                   ^
a.cc:1:10: fatal error: stdio.h): No such file or directory
    1 | #include <stdio.h)
      |          ^
compilation terminated.
Language: C++

#include <stdio.h>

int main(void)
{
  int a;
  printf("??´??°x?????\???>>");
  scanf("%d",&a);
  
  a = a*a*a;
  printf("3???????????????%d\n,a")
return 0;
}

Compiler output:
a.cc:6:25: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |   printf("??´??°x?????\???>>");
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before 'return'
   10 |   printf("3???????????????%d\n,a")
      |                                   ^
      |                                   ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include <stdio.h>

int main (void){
    int x;
    scanf ("%d" &x);
    x=x*x*x;
    printf ("%d\n", x);
return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |     scanf ("%d" &x);
      |            ~~~~ ^~
      |            |     |
      |            |     int
      |            const char [3]
Language: C++

#include <stdio.h>
int main(){
    int X,kekka
    printf("X???????????\???>>");
    scanf("%d",&X);
    kekka = X*X*X;
    printf("?????????%d??§??????\n",kekka);
    return 0;
}

Compiler output:
a.cc:4:27: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    4 |     printf("X???????????\???>>");
a.cc: In function 'int main()':
a.cc:4:5: error: expected initializer before 'printf'
    4 |     printf("X???????????\???>>");
      |     ^~~~~~
a.cc:6:5: error: 'kekka' was not declared in this scope
    6 |     kekka = X*X*X;
      |     ^~~~~
Language: C++

class Main
{
	public static void main ( String[] args ) throws IOException{
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		String str = br.Lead.Line();  

		int a = Integer.parseInt(str);
	}
}

Compiler output:
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main ( String[] args ) throws IOException{
      |               ^~~~~~~
      |               :
a.cc:3:35: error: 'String' has not been declared
    3 |         public static void main ( String[] args ) throws IOException{
      |                                   ^~~~~~
a.cc:3:44: error: expected ',' or '...' before 'args'
    3 |         public static void main ( String[] args ) throws IOException{
      |                                            ^~~~
a.cc:3:49: error: expected ';' at end of member declaration
    3 |         public static void main ( String[] args ) throws IOException{
      |                                                 ^
      |                                                  ;
a.cc:3:51: error: 'throws' does not name a type
    3 |         public static void main ( String[] args ) throws IOException{
      |                                                   ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
Language: C++

include<iostrem>
using namespace std;
 int main (){  
 int a,b; 
 b=a*a*a; 
 cout<<b<<;

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostrem>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cout' was not declared in this scope
    6 |  cout<<b<<;
      |  ^~~~
a.cc:6:11: error: expected primary-expression before ';' token
    6 |  cout<<b<<;
      |           ^
a.cc:6:12: error: expected '}' at end of input
    6 |  cout<<b<<;
      |            ^
a.cc:3:13: note: to match this '{'
    3 |  int main (){
      |             ^
Language: C++

#include <stdio.h>
int main()
{
  int x;
  scanfa("a=x*x*x");
 printf("a");
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanfa' was not declared in this scope; did you mean 'scanf'?
    5 |   scanfa("a=x*x*x");
      |   ^~~~~~
      |   scanf
Language: C++

#include <stdio.h>
int main()
{
int x
  scanf("%d",&x     );

 printf("%d\n",x*x*x);
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'scanf'
    5 |   scanf("%d",&x     );
      |   ^~~~~
a.cc:7:16: error: 'x' was not declared in this scope
    7 |  printf("%d\n",x*x*x);
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'scanf'
    5 |   scanf("%d",&x     );
      |   ^~~~~
a.cc:6:16: error: 'x' was not declared in this scope
    6 |  printf("%d\n",x*x*x);
      |                ^
Language: C++

#include<stdio.h>

int main()
{
int x =3;
printf("%d\n",x*x*x)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before '}' token
    6 | printf("%d\n",x*x*x)
      |                     ^
      |                     ;
    7 | }
      | ~
Language: C++

#include <math.h>
#math

using namespace std;

int main() {
    int sum;
    cin >> sum;
    cout << pow(sum, 3)  << endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #math
    2 | #math
      |  ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> sum;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <math.h>
  +++ |+#include <iostream>
    2 | #math
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << pow(sum, 3)  << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:29: error: 'endl' was not declared in this scope
    9 |     cout << pow(sum, 3)  << endl;
      |                             ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <math.h>
  +++ |+#include <ostream>
    2 | #math
Language: C++

#include <math.h>
#math

using namespace std;

int main() {
    double sum;
    cin >> sum;
    cout << pow(sum, 3.0)  << endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #math
    2 | #math
      |  ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> sum;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <math.h>
  +++ |+#include <iostream>
    2 | #math
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << pow(sum, 3.0)  << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |     cout << pow(sum, 3.0)  << endl;
      |                               ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <math.h>
  +++ |+#include <ostream>
    2 | #math
Language: C++

#include <math.h>
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
    long sum;
    cin >> sum;
    printf("%d", pow(sum, 3))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before '}' token
   10 |     printf("%d", pow(sum, 3))
      |                              ^
      |                              ;
   11 | }
      | ~
Language: C++

class Main {
	public static void main (String args[]){
		int x = 0;
		DataInputStream d = new DataInputStream(System.in)
		x = d;
		x = x^3;
		System.out.println(x);
	}
}

Compiler output:
a.cc:2:15: error: expected ':' before 'static'
    2 |         public static void main (String args[]){
      |               ^~~~~~~
      |               :
a.cc:2:34: error: 'String' has not been declared
    2 |         public static void main (String args[]){
      |                                  ^~~~~~
a.cc:9:2: error: expected ';' after class definition
    9 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:17: error: 'DataInputStream' was not declared in this scope
    4 |                 DataInputStream d = new DataInputStream(System.in)
      |                 ^~~~~~~~~~~~~~~
a.cc:7:17: error: 'System' was not declared in this scope
    7 |                 System.out.println(x);
      |                 ^~~~~~
Language: C++

import java.io*

public class Main {
 public static void main(String args[]) throws IOException {
  BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
  int x=Math.pow(b, 3);
  System.out.println(x);
 }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io*
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |         scanf("%d"&x);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
Language: C++

#include<stdio.h>
int main(void)
{
	int x=2;
	print("%d\n",x*x*x);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'print' was not declared in this scope; did you mean 'printf'?
    5 |         print("%d\n",x*x*x);
      |         ^~~~~
      |         printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |         scanf("%d"&x);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
Language: C++

#include<iostream>

int main(){
    
    int x;
    
    cin >> x;  
    cout << x;
}

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

#include<iostream>

int main(){
    
    int x;
    
    cin >> x;  
    x =X*X*X;
    cout << x;
}

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

#include<iostream>

int main(){
    
    int x;
    
    cin >> x;  
    x =X*X*X;
    cout << x;
    
    return 0;
}

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

#include<iostream>

int main(){
    
    int x;
    
    cin >> x;  
    x =x*x*x;
    cout << x;
    
    return 0;
}

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

#include<iostream>

int main(){
    
    int x;
    int y;
    
    cin >> x;  
    y =x*x*x;
    cout << y;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> x;
      |     ^~~
      |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << y;
      |     ^~~~
      |     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>

void main(){
    
    int x;
    
    cin >> x;  
    cout << x*x*x << endl;
}

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

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

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

int main{
int x;
cin >> x;
cout << x*x*x << endl
return 0;
};

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int x;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> x;
      | ^~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout << x*x*x << endl
      | ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | };
      | ^
Language: C++

main = do
    ch <- getChar
    print $ pow c 3

pow :: Int -> Int -> Int
pow x 0 = 1
pow x 1 = x
pow x y = x * $ pow x (y - 1)

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C++

import Data.Char

main = do
    ch <- getChar
    print $ (digitToInt ch) ^ 3

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.Char
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <stdio.h>
int main(void)
{
int a;
scanf("%d", &a)


a = a*a*a

printf("%d", a);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected ';' before 'a'
    5 | scanf("%d", &a)
      |                ^
      |                ;
......
    8 | a = a*a*a
      | ~
Language: C++

#include <stdio.h>
int main(void)
{
int a;
scanf("%d", &a)


a = a*a*a

printf("%d",a);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected ';' before 'a'
    5 | scanf("%d", &a)
      |                ^
      |                ;
......
    8 | a = a*a*a
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before '}' token
    6 | return 0
      |         ^
      |         ;
    7 | }
      | ~
Language: C++

#include<stdio.h>
int main(void){
int x,kekka;
scanf("%d",&x);
kekka = x * x * x
printf("%d\n",kekka);
return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before 'printf'
    5 | kekka = x * x * x
      |                  ^
      |                  ;
    6 | printf("%d\n",kekka);
      | ~~~~~~            
a.cc:7:9: error: expected ';' before '}' token
    7 | return 0
      |         ^
      |         ;
    8 | }
      | ~
Language: C++

#include<stdio.h>
int main(void){
int x;
imt kekka;
scanf("%d",&x);
kekka = x * x * x
printf("%d\n",kekka);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'imt' was not declared in this scope; did you mean 'int'?
    4 | imt kekka;
      | ^~~
      | int
a.cc:6:1: error: 'kekka' was not declared in this scope
    6 | kekka = x * x * x
      | ^~~~~
Language: C++

#include<stdio.h>
int main(void){
int x;
imt kekka;
scanf("%d",&x);
kekka=x*x*x;
printf("%d\n",kekka);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'imt' was not declared in this scope; did you mean 'int'?
    4 | imt kekka;
      | ^~~
      | int
a.cc:6:1: error: 'kekka' was not declared in this scope
    6 | kekka=x*x*x;
      | ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){

    int x,i=0;

    cin >> x;
 
    for(i;i<3;++i){
        x=x*x;
    }



    return 0

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |     return 0
      |             ^
      |             ;
   18 | 
   19 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

int main(){

    int x,i=0;

    cin >> x;
 
    for(i;i<3;++i){
        x=x*x;
    }

    cout << x << endl;



    return 0

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before '}' token
   19 |     return 0
      |             ^
      |             ;
   20 | 
   21 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

int main(){

    int x,i=0;

    cin >> x ;
 
    for(int i=0;i<3;++i){
        x=x*x;
    }

    cout << x << endl;



    return 0

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before '}' token
   19 |     return 0
      |             ^
      |             ;
   20 | 
   21 | }
      | ~
Language: C++

#include<stdio.h>
int main()
{
	int x = 0;
	scanf_s("%d",&x);
	printf("%d\n",x*x*x);
	return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
    int a,b;	

    cin >> a;

    y = a*a*a;   

	cout << y << endl;
}

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

int main(void){
int x;
scanf("%d",&x);
printf("%d*%d*%d\n",x,x,x);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d",&x);
      | ^~~~~
a.cc:4:1: error: 'printf' was not declared in this scope
    4 | printf("%d*%d*%d\n",x,x,x);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
Language: C++

#include "iostream"
using namespace std;

int main(){
    int x << cin;
    cout << x * x * x << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '<<' token
    5 |     int x << cin;
      |           ^~
a.cc:6:13: error: 'x' was not declared in this scope
    6 |     cout << x * x * x << endl;
      |             ^
Language: C++

#include <stdio.h>
int main(void){
	int x,h;
	scanf("%d%d",&x&h);
	h=x*x*x
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 |         scanf("%d%d",&x&h);
      |                      ~~^~
      |                      |  |
      |                      |  int
      |                      int*
a.cc:5:16: error: expected ';' before 'return0'
    5 |         h=x*x*x
      |                ^
      |                ;
    6 | return0;
      | ~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
	int x,h;
	scanf("%d",&x);
	printf("%d",&h);

	h=x*x*x
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'return0'
    7 |         h=x*x*x
      |                ^
      |                ;
    8 | return0;
      | ~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
	int x,h;
	scanf("%d",&x);
	printf("h\n");
h=x*x*x
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'return0'
    6 | h=x*x*x
      |        ^
      |        ;
    7 | return0;
      | ~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
	int x,h;
	scanf("%d",&x);
	printf("%dx*x*x");
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'return0' was not declared in this scope
    6 | return0;
      | ^~~~~~~
Language: C++

#include <iostream>

int triple(int n) {
  return n * n * n;
}


int main() {
  int input;
  std::cin >>input;
  std::cout << triple(input) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   std::cout << triple(input) << 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 <iostream>

int triple(int n) {
  return n * n * n;
}


int main() {
  int input;
  std::cin >>input;
  std::cout << triple(input) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   std::cout << triple(input) << 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<iostream>

int main() {
int n;
std::cin >> n;
std::cout << n * n * n << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | std::cout << n * n * n << 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<iostream>

int main(){
  int x, S;
  std::cin >> n;
  S = x*x*x;
  std::cout << S << "\n";

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'n' was not declared in this scope
    5 |   std::cin >> n;
      |               ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main(){

	cout<<
		int x,y;
	x=2;
	y=x*x*x;
		
        << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before 'int'
    6 |                 int x,y;
      |                 ^~~
a.cc:7:9: error: 'x' was not declared in this scope
    7 |         x=2;
      |         ^
a.cc:8:9: error: 'y' was not declared in this scope
    8 |         y=x*x*x;
      |         ^
a.cc:10:9: error: expected primary-expression before '<<' token
   10 |         << endl;
      |         ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
	  int x,y;
	 cin>> x;
	  y=x*x*x;
      scanf("%d",&x);
		
        << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before '<<' token
    9 |         << endl;
      |         ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
	  int x,y;
	 cin>> x;
	  y=x*x*x;
      scanf("%d",&x);
		
        >> endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before '>>' token
    9 |         >> endl;
      |         ^~
Language: C++

#include<iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    cout << n^3 << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |     cout << n^3 << endl;
      |               ~~^~~~~~~