criyle/codenet-compile-errors huggingface dataset:
Language: Java

package ABC;

import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;

public class Maine {

    public static void main(String args[]) {
        int n = sc.nextInt();
        pw.println(Math.pow(n,3));
        pw.flush();
    }

    static FastScanner sc = new FastScanner();
    static PrintWriter pw = new PrintWriter(System.out);

    static class FastScanner {
        private final InputStream in = System.in;
        private final byte[] buffer = new byte[1024];
        private int ptr = 0;
        private int buflen = 0;

        private boolean hasNextByte() {
            if (ptr < buflen) {
                return true;
            } else {
                ptr = 0;
                try {
                    buflen = in.read(buffer);
                } catch (Exception e) {
                    e.printStackTrace();
                }
                if (buflen <= 0) {
                    return false;
                }
            }
            return true;
        }

        private int readByte() {
            if (hasNextByte()) return buffer[ptr++];
            else return -1;
        }

        private static boolean isPrintableChar(int c) {
            return 33 <= c && c <= 126;
        }

        public boolean hasNext() {
            while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
            return hasNextByte();
        }

        public String next() {
            if (!hasNext()) throw new NoSuchElementException();
            StringBuilder sb = new StringBuilder();
            int b = readByte();
            while (isPrintableChar(b)) {
                sb.appendCodePoint(b);
                b = readByte();
            }
            return sb.toString();
        }

        public long nextLong() {
            if (!hasNext()) throw new NoSuchElementException();
            long n = 0;
            boolean minus = false;
            int b = readByte();
            if (b == '-') {
                minus = true;
                b = readByte();
            }
            if (b < '0' || '9' < b) {
                throw new NumberFormatException();
            }
            while (true) {
                if ('0' <= b && b <= '9') {
                    n *= 10;
                    n += b - '0';
                } else if (b == -1 || !isPrintableChar(b)) {
                    return minus ? -n : n;
                } else {
                    throw new NumberFormatException();
                }
                b = readByte();
            }
        }

        public int nextInt() {
            long nl = nextLong();
            if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
            return (int) nl;
        }

        public double nextDouble() {
            return Double.parseDouble(next());
        }
    }
}



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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: warning: missing terminating " character
    5 |   scanf("%d,&N);
      |         ^
main.c:5:9: error: missing terminating " character
    5 |   scanf("%d,&N);
      |         ^~~~~~~~
main.c:6:10: error: expected ')' before ';' token
    6 |   a=N*N*N;
      |          ^
      |          )
main.c:5:8: note: to match this '('
    5 |   scanf("%d,&N);
      |        ^
main.c:6:4: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |   a=N*N*N;
      |   ~^~~~~~
      |    |
      |    int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:12: error: expected ';' before '}' token
    8 |   return 0;
      |            ^
      |            ;
    9 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: warning: missing terminating " character
    5 |   scanf("%d%,&N);
      |         ^
main.c:5:9: error: missing terminating " character
    5 |   scanf("%d%,&N);
      |         ^~~~~~~~~
main.c:6:10: error: expected ')' before ';' token
    6 |   a=N*N*N;
      |          ^
      |          )
main.c:5:8: note: to match this '('
    5 |   scanf("%d%,&N);
      |        ^
main.c:6:4: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |   a=N*N*N;
      |   ~^~~~~~
      |    |
      |    int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:12: error: expected ';' before '}' token
    8 |   return 0;
      |            ^
      |            ;
    9 | }
      | ~
Language: C++

// atcoderC++.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include <iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;

	n = pow(n, 3);

	cout << n << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'pow' was not declared in this scope
   13 |         n = pow(n, 3);
      |             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> P1;
typedef pair<P,P> P2;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 1000000000
#define mod 1000000007
#define fi first
#define sc second
#define rep(i,x) for(int i=0;i<x;i++)
#define repn(i,x) for(int i=1;i<=x;i++)
#define SORT(x) sort(x.begin(),x.end())
#define ERASE(x) x.erase(unique(x.begin(),x.end()),x.end())
#define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin())
#define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin())
int main(){
	cin>>n;cout<<n*n*n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   22 |         cin>>n;cout<<n*n*n<<endl;
      |              ^
      |              yn
Language: C++

# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 出力
print("{}".format(a*a*a))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: error: invalid preprocessing directive #\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # 整数の入力
      |   ^~~~~~~~~~
a.cc:4:3: error: invalid preprocessing directive #\U000051fa\U0000529b
    4 | # 出力
      |   ^~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a = int(input())
      | ^
Language: Java

import java.util.Scanner;
     
  class Password{
    public static void Password(String[] args){
       Scanner stdIn = new Scanner(System.in);
       N = stdIn.nextInt();
       if(N >= 1 && N <= 9){
        System.out.println(N*N*N);
        }
   }
}

Compiler output:
Main.java:6: error: cannot find symbol
       N = stdIn.nextInt();
       ^
  symbol:   variable N
  location: class Password
Main.java:7: error: cannot find symbol
       if(N >= 1 && N <= 9){
          ^
  symbol:   variable N
  location: class Password
Main.java:7: error: cannot find symbol
       if(N >= 1 && N <= 9){
                    ^
  symbol:   variable N
  location: class Password
Main.java:8: error: cannot find symbol
        System.out.println(N*N*N);
                           ^
  symbol:   variable N
  location: class Password
Main.java:8: error: cannot find symbol
        System.out.println(N*N*N);
                             ^
  symbol:   variable N
  location: class Password
Main.java:8: error: cannot find symbol
        System.out.println(N*N*N);
                               ^
  symbol:   variable N
  location: class Password
6 errors
Language: Java

import java.util.Scanner;

  public static void Password(String[] args){
   Scanner stdIn = new Scanner(System.in);
    N = stdIn.nextInt();
    if(N >= 1 && N <= 9){
    System.out.println(N*N*N);
    }
  }

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  public static void Password(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>
int main(){
  
  int N;
  
 	std::cin >> N;


	std::cout << (pow(N,3.0));


	return(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'pow' was not declared in this scope
    9 |         std::cout << (pow(N,3.0));
      |                       ^~~
Language: C

#include <stdio.h>

int main(void)
{
    int N;

    scanf("%d", %N);

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before '%' token
    7 |     scanf("%d", %N);
      |                 ^
Language: C++

a=int(input());
if 1<=a and a<=9
  print(a*a*a)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=int(input());
      | ^
a.cc:2:1: error: expected unqualified-id before 'if'
    2 | if 1<=a and a<=9
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespcestd;
int main()
{
int n;
cin>>n;
cout<<n*n*n;
return 0;
}

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

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	int n, ans = 0;
	cin >> n;
	
	ans = pow(n, 3.0);
	
	cout << ans << endll;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'endll' was not declared in this scope
   13 |         cout << ans << endll;
      |                        ^~~~~
Language: C++

//使える文字が1以上N以下の数字のみである
//3桁のパスワードのみ使用可能
#include <iostream>

int main(){

  int input = 0;
  int pass = 0;

  cin >> input;
  pass = input*input*input;

  cout << pass << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin >> input;
      |   ^~~
      |   std::cin
In file included from a.cc:3:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << pass << 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:13:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << pass << 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 input = 0;
  int pass = 0;

  std::cin >> input;
  pass = input*input*input;

  std::cout << pass << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   std::cout << pass << 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/stdio++.h>
using namespace std;
int main()
{
  
  cin>>N;
  cout<<N*N*N<<endl;
}


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

#include<iostream>
using namespace std;
int main()
{
  cin>>N;
  cout<<N*N*N<<endl;
  return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  int n;
  for(int i=0;i<=9;i++)
  {
    cout<<n<<endl;
    return 0;
  }

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

#include <stdio.h>

int main(void) {

  int N;
  int num;
  
  scanf("%d",&N);
  
  int num = N*N*N;
  
  printf("%d/n",num);
  
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: redeclaration of 'num' with no linkage
   10 |   int num = N*N*N;
      |       ^~~
main.c:6:7: note: previous declaration of 'num' with type 'int'
    6 |   int num;
      |       ^~~
Language: C

#include <stdio.h>

int main(void) {

  int N;
  int num;
  
  scanf("%d",N);
  
  int num = N*N*N;
  
  printf("%d/n",num);
  
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: redeclaration of 'num' with no linkage
   10 |   int num = N*N*N;
      |       ^~~
main.c:6:7: note: previous declaration of 'num' with type 'int'
    6 |   int num;
      |       ^~~
Language: C++

#include<iostraem>
#include<string>
#include<cmath>
#include<vector>
#include<algorithm>
#include<map>
#deifne REP(i,m,n) for(int i=(int)(m);i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)

using namespace std;
 
int main(){
int N;
cin>>N;
cout<<N*N*N<<endl;

return 0;
}

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

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

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

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

#include <bins/stdc++.h?
using namespace std;

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

Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bins/stdc++.h?
      |                         ^
a.cc:1:10: fatal error: bins/stdc++.h?: No such file or directory
    1 | #include <bins/stdc++.h?
      |          ^
compilation terminated.
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
	    int n=s.nextInt();
		
		System.out.println(n*n*n);
	}		
	













Compiler output:
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args){
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
public class test{
	static double res=0;
	public static void help(int p,int r,int n){
		double tmp=p;
		for(int i=1;i<=n;i++){
			double x=1+(double)r/1200 ;
			tmp*=x;
		}
		res+=tmp;
		int k=100000,m=360;
		for(int i=m;i>0;i--){
			help(k,5,i);
		}
		System.out.println("paid amount "+k*m+" ");
		System.out.println((long)res);
	}
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
	    int n=s.nextInt();
		
		System.out.println(Math.pow(n,3));
	}
}			
	













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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N;
  cin >> N;
  
  cout << N*N*N << ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'ednl' was not declared in this scope
    9 |   cout << N*N*N << ednl;
      |                    ^~~~
Language: Java

import java.util.Scanner;

public class Solution {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        System.out.println(n*n*n);
    }
}

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

import math
i=input()
print(math.factorial(i))

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    2 | i=input()
      | ^
Language: Java

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

Compiler output:
Main.java:9: error: ';' expected
    a=a*a*a
           ^
1 error
Language: C++

int solve(int inp) {
    return std::pow(inp, 3);
}

int main() {
    int n;
    cin >> n;
   // string str;
    //cin >> str;
    cout << solve(n);
//    vector<string> res = problems::solve(str);
//    cout << res.size() << endl;
//    for (int i = 0; i < res.size(); ++i) {
//        cout << res[i] << ' ';
//    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int solve(int)':
a.cc:2:17: error: 'pow' is not a member of 'std'
    2 |     return std::pow(inp, 3);
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> n;
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << solve(n);
      |     ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec.at(i+j+k).at(k)=i+j+k;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: request for member 'at' in 'vec.std::vector<int>::at(((std::vector<int>::size_type)((i + j) + k)))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   11 |         vec.at(i+j+k).at(k)=i+j+k;
      |                       ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec.at(i).at(j).at(k)=i+j+k;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: request for member 'at' in 'vec.std::vector<int>::at(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   11 |         vec.at(i).at(j).at(k)=i+j+k;
      |                   ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=i+j+k;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
   11 |         vec=i+j+k;
      |                 ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<char> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=i j k;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: no match for 'operator=' (operand types are 'std::vector<char>' and 'int')
   11 |         vec=i j k;
      |             ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = char; _Alloc = std::allocator<char>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<char>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = char; _Alloc = std::allocator<char>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<char>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = char; _Alloc = std::allocator<char>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<char>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=i j k;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
   11 |         vec=i j k;
      |             ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec="i"" j ""k";
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'const char [6]')
   11 |         vec="i"" j ""k";
      |                     ^~~
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'const char [6]' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'const char [6]' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'const char [6]' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=ijk;
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'ijk' was not declared in this scope
   11 |         vec=ijk;
      |             ^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=ijk
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'ijk' was not declared in this scope
   11 |         vec=ijk
      |             ^~~
Language: C++

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

int main() {
  vector<int> vec(N*N*N);
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      for(int k=0;k<N;k++){
        vec=ijk
      }
    }
  }
  cout << vec.size() << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'N' was not declared in this scope
    5 |   vector<int> vec(N*N*N);
      |                   ^
a.cc:9:13: error: 'ijk' was not declared in this scope
    9 |         vec=ijk
      |             ^~~
Language: C

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


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 <iostream>;
#include <cmath>;
using namespace std;
int main(){
  int n;
  cin >> n;
  cout << n.pow(3);
  return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:2:17: warning: extra tokens at end of #include directive
    2 | #include <cmath>;
      |                 ^
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'pow' in 'n', which is of non-class type 'int'
    7 |   cout << n.pow(3);
      |             ^~~
Language: C

#include<stdio.h>
#include<math.h>
 
int main(void){
	int N;
  	int M
  	printf("N?");
  	scanf("%d",&N);
  	M=N*N*N;
  	printf("%d",M);
  	return -1;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'printf'
    7 |         printf("N?");
      |         ^~~~~~
main.c:9:9: error: 'M' undeclared (first use in this function)
    9 |         M=N*N*N;
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cstdio>
using namespaced std;
int main()
{
  int n;
  scanf("%d", &n);
  printf("%d\n", n*n*n);
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaced'
    2 | using namespaced std;
      |       ^~~~~~~~~~
Language: C++

#include<iostream>

using namespace std;

int main() {
	int N;
	cin >> N;

	double a = pow(N, 3);

	if (N == 1) {
		cout << 1 << endl;
	}
	else cout << a << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'pow' was not declared in this scope
    9 |         double a = pow(N, 3);
      |                    ^~~
Language: C++

#include<iostream>

using namespace std;

int main() {
	int N;
	cin >> N;

	int A = pow(N, 3);

	if (N == 1) {
		cout << 1 << endl;
	}
	else cout << A << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'pow' was not declared in this scope
    9 |         int A = pow(N, 3);
      |                 ^~~
Language: C++

#include <iostream>
int main()
{
	int n;
	scanf_s("%d", &n);
	printf("%d", n * n * n);
	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", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
 int N;
 cin>>N;
 int a;
 a=N*N*N;
 cout<< a << endl;
  
 }
 

  
}

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

#include<bits/stdc++.h>

include namespace std;

int main()
{
 int N;
 cin>>N;
 int a;
 a=N*N*N;
 cout<< a << endl;
  
 }
 

  
}

Compiler output:
a.cc:3:1: error: 'include' does not name a type
    3 | include namespace std;
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |  cin>>N;
      |  ^~~
      |  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:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |  cout<< a << 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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |  cout<< a << endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>

include namespace std;

int main()
{
 int N;
 cin<<N;
 int a;
 a=N*N*N;
 cout>> a >> endl;
  
 }
 

  
}

Compiler output:
a.cc:3:1: error: 'include' does not name a type
    3 | include namespace std;
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |  cin<<N;
      |  ^~~
      |  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:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |  cout>> a >> 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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |  cout>> a >> endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] ai = sc.nextLine();
		String[] bi = sc.nextLine();
		String[] ci = sc.nextLine();
		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n-1];
		int sum = 0;
		
		for(int i = 0; i < n; i++){
			a[i] = Integer.parseInt(ai[i]);
		}
		
		for(int i = 0; i < n; i++){
			b[i] = Integer.parseInt(bi[i]);
		}
		
		for(int i = 0; i < n-1; i++){
			c[i] = Integer.parseInt(ci[i]);
		}
		
		for(int i = 0; i < n; i++){
			sum += b[a[i]];
			if(a[i+1] - a[i] == 1){
				sum += c[a[i]];
			}
		}
	
		System.out.println(sum);
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to String[]
		String[] ai = sc.nextLine();
		                         ^
Main.java:7: error: incompatible types: String cannot be converted to String[]
		String[] bi = sc.nextLine();
		                         ^
Main.java:8: error: incompatible types: String cannot be converted to String[]
		String[] ci = sc.nextLine();
		                         ^
3 errors
Language: Java

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

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){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int res = n * n * n;
		System.out.println(res);
	}
	
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public class Main{
^
1 error
Language: C++

    #inlude<iostream>
    using namespace std;
    int main(){
    	int N;
    	cin>>N;
    	cout<<N*N*N<<endl;
    }

Compiler output:
a.cc:1:6: error: invalid preprocessing directive #inlude; did you mean #include?
    1 |     #inlude<iostream>
      |      ^~~~~~
      |      include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>N;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 |     #inlude<iostream>
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<N*N*N<<endl;
      |         ^~~~
a.cc:6:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |         cout<<N*N*N<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |     #inlude<iostream>
Language: C++

#inluce<iostream>
using namespace std;
int main(){
	int N;
	cin>>N;
	cout<<N*N*N<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inluce; did you mean #include?
    1 | #inluce<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>N;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inluce<iostream>
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<N*N*N<<endl;
      |         ^~~~
a.cc:6:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |         cout<<N*N*N<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inluce<iostream>
Language: C

   int x,y,count=1;
    scanf("%d %d",&x,&y);
    int n=1;
    n=x+(n-1);
    while(n<y)
    {
        count=count+1;
        n=x+(n-1);
    }
    printf("%d",count);
    return 0;
}


Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%d %d",&x,&y);
      |           ^~~~~~~
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d",&x,&y);
      |                   ^
main.c:2:22: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d",&x,&y);
      |                      ^
main.c:4:5: warning: data definition has no type or storage class
    4 |     n=x+(n-1);
      |     ^
main.c:4:5: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:4:5: error: redefinition of 'n'
main.c:3:9: note: previous definition of 'n' with type 'int'
    3 |     int n=1;
      |         ^
main.c:4:7: error: initializer element is not constant
    4 |     n=x+(n-1);
      |       ^
main.c:5:5: error: expected identifier or '(' before 'while'
    5 |     while(n<y)
      |     ^~~~~
main.c:10:12: error: expected declaration specifiers or '...' before string constant
   10 |     printf("%d",count);
      |            ^~~~
main.c:10:17: error: expected declaration specifiers or '...' before 'count'
   10 |     printf("%d",count);
      |                 ^~~~~
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<string>
#include<stdio.h>
#include<stdlib.h>
#include<float.h>
#include<tuple>
#include<string.h>
#include<iomanip>
#include<stack>
#include<queue>

using namespace std;
#define ll long long
#define rep(i,n) for(ll i=0;i<n;i++)
#define ALLOF(c) (c).begin(), (c).end()
#define Pa pair<ll,ll>
const ll mod=10e9+7;
const ll INF=10e12;
const ll inf=-1;
ll ABS(ll a){return max(a,-a);}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: invalid type argument of unary '*' (have 'int')
   28 |     cout<<N**3<<endl;
      |             ^~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N;
      |   ^~~
      |   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 << 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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << N * N * N << 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 namespase std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin << N;
      |   ^~~
      |   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 << 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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << N * N * N << 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 namespase std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin << N;
      |   ^~~
      |   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 << 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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << N * N * N << 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)
      |     ^~~~