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

#include(stdio.h)
int main(){
int r;
  scanf("%d",&r);
  printf("%d",3*r*r);
  return 0;
}


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&r);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&r);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d",3*r*r);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<queue>
#include<vector>
using namespace std;
int main(){
  int n;
  cin >> n;
  int a[n];
  int i;
  priority_que<int> b;
  for(i=0;i<n;i++){
    cin >> a[i];
    b.push(a[i]);
  }
  
  for(i=0;i<n;i++){
    if(b.top() == a[i]){
      int tmp = b.top();
      b.pop();
      cout << b.top();
      b.push(tmp);
    }else
      cout << b.top();
  }
}
        
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'priority_que' was not declared in this scope
   10 |   priority_que<int> b;
      |   ^~~~~~~~~~~~
a.cc:10:16: error: expected primary-expression before 'int'
   10 |   priority_que<int> b;
      |                ^~~
a.cc:13:5: error: 'b' was not declared in this scope
   13 |     b.push(a[i]);
      |     ^
a.cc:17:8: error: 'b' was not declared in this scope
   17 |     if(b.top() == a[i]){
      |        ^
a.cc: At global scope:
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: Java

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

      int r = sc.nectInt();

      System.out.println(3*r*r);

                   }
      }

Compiler output:
Main.java:6: error: cannot find symbol
      int r = sc.nectInt();
                ^
  symbol:   method nectInt()
  location: variable sc of type Scanner
1 error
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int r; cin >> r;
  cout << 3*r*r << endl;
  return 0;
}

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

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

int main()
{
    int n;
    cin>>n;
    cout<<3*r*r;
    return 0;
}

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

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

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

#include <bits/stdc++>
using namespace std;
int main(){
  int r;
  cin >> r ;
  cout << 3*r**2<< endl;
}

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

#include <iostream>
int main(){
  int N,ans;
  std::cin>>N;
  ans=3*a*a
  std::cout<<ans<<std::endl;
}


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

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;

int main(){
  int r;a
  cin >> r;
  cout<< 3*r*r;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |   int r;a
      |         ^
Language: C

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

	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before 'printf'
    6 |         r=3*a*a
      |                ^
      |                ;
    7 |         printf("r");
      |         ~~~~~~  
main.c: At top level:
main.c:10:9: error: expected identifier or '(' before 'return'
   10 |         return 0;
      |         ^~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: 'itn' does not name a type; did you mean 'int'?
    3 | itn main(){
      | ^~~
      | int
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'a' was not declared in this scope
    9 |   cout << 3 * a * a<<endl;
      |               ^
Language: C

#include<stdio.h>

int main()
{
	int r;
	scanf("%d",&r);
	printf("%d",3*r*r);
	
	return 0;''
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: empty character constant
    9 |         return 0;''
      |                  ^~
main.c:9:20: error: expected ';' before '}' token
    9 |         return 0;''
      |                    ^
      |                    ;
   10 | }
      | ~
Language: Java

import java.util.*;
import java.io.*;

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

Compiler output:
Main.java:10: error: cannot find symbol
		System.out.println(3*a*a);
		                     ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
		System.out.println(3*a*a);
		                       ^
  symbol:   variable a
  location: class Main
2 errors
Language: C++

import java.util.*;
import java.io.*;

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

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

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

int main(int argc, char const *argv[])
{
	int r;
	cin>>r;
	cour<<3*r*r<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:9: error: 'cour' was not declared in this scope
    8 |         cour<<3*r*r<<endl;
      |         ^~~~
Language: C++

using namespace std;
 
int main()
{
int r;
cin >> r;
cout << 3*r*r << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> r;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << 3*r*r << endl ;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 | cout << 3*r*r << endl ;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

using namespace std;
 
int main()
{
int r;
cin >> r;
cout << 3*r*r << ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> r;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << 3*r*r << ;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: expected primary-expression before ';' token
    7 | cout << 3*r*r << ;
      |                  ^
Language: C++

using namespace std;

int main
{
int r;
cin >> r;
cout << 3*r*r << endl
}

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

using namespace std;

int main()
{
  return 3*(r^2)
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'r' was not declared in this scope
    5 |   return 3*(r^2)
      |             ^
a.cc:5:17: error: expected ';' before '}' token
    5 |   return 3*(r^2)
      |                 ^
      |                 ;
    6 | 
    7 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
    int r,result;
    scanf("%d",&r);
    result = 3*(r*r);
    printf("%d",result);
    getch();
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
    8 |     getch();
      |     ^~~~~
      |     getc
Language: C

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

    int A,area;
    scanf("%d",&A);
    area= 3*pow(A,2);
    printf("%d",area);
return 0;
}


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

#include<stdio.h>
int main()
{
    int r,result;
    scanf("%d",&r);
    result = 3*(r*r);
    printf("%d\n",result);
    getch();
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
    8 |     getch();
      |     ^~~~~
      |     getc
Language: C++

using System;
class Program
{
  static void Main(string[] args)
  {
    int r = int.Parse(Console.ReadLine());
    Console.WriteLine(3*(r*r));
  }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:20: error: 'string' has not been declared
    4 |   static void Main(string[] args)
      |                    ^~~~~~
a.cc:4:29: error: expected ',' or '...' before 'args'
    4 |   static void Main(string[] args)
      |                             ^~~~
a.cc:9:2: error: expected ';' after class definition
    9 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:6:13: error: expected primary-expression before 'int'
    6 |     int r = int.Parse(Console.ReadLine());
      |             ^~~
a.cc:7:5: error: 'Console' was not declared in this scope
    7 |     Console.WriteLine(3*(r*r));
      |     ^~~~~~~
Language: C++

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

int main(void){
    int r;
    cin >> r;
    cout << 3*pow(a,2);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'a' was not declared in this scope
    8 |     cout << 3*pow(a,2);
      |                   ^
Language: C++

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

int main() {
  int r:
  cin >> r;
  cout << 3*r*r << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: found ':' in nested-name-specifier, expected '::'
    5 |   int r:
      |        ^
      |        ::
a.cc:5:7: error: 'r' has not been declared
    5 |   int r:
      |       ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> r;
      |       ^~
a.cc:7:13: error: 'r' was not declared in this scope
    7 |   cout << 3*r*r << endl;
      |             ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    cin >> n;
    cout << 4 * n * n;
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
	int n;cin>>n
	cout<<n*n*3;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected ';' before 'cout'
    5 |         int n;cin>>n
      |                     ^
      |                     ;
    6 |         cout<<n*n*3;
      |         ~~~~
Language: Java

package src.AtCoder.abc134;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.*;

public class abc134_a {
    public static void main(String[] args) {
        FastReader sc = new FastReader();
        System.out.println(3*Math.pow(sc.nextInt(),2));
    }
    static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

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

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


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

$s = <>;
printf (3 * $s ** 2) . "\n";


Compiler output:
a.cc:1:1: error: '$s' does not name a type
    1 | $s = <>;
      | ^~
a.cc:2:8: error: expected constructor, destructor, or type conversion before '(' token
    2 | printf (3 * $s ** 2) . "\n";
      |        ^
Language: C++

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

  cin >> r;
  
  cout << 3 * r　* r * r << endl;
}

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   cout << 3 * r　* r * r << endl;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'r\U00003000' was not declared in this scope
    9 |   cout << 3 * r　* r * r << endl;
      |               ^~~
Language: C++

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

int main(){
  int r;
  cin >> r;
  cout << 3 * r * r
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '}' token
    7 |   cout << 3 * r * r
      |                    ^
      |                    ;
    8 | }
      | ~
Language: Java


public class Main {

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

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

#include <stdio.h>

int main(){
  int n;
  scnaf("%d ",&n);
  printf("%d",n*n*3);
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ',' token
    6 |   cout<<3*r*r<,endl;
      |               ^
Language: C++

//templates
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <unordered_map>
#include <map>
#include <math.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ALL(x) (x).begin(),(x).end()
#define pb push_back
#define SZ(x) ((int)(x).size())
typedef long long ll;

using namespace std;

int main(){
  int r;
  cin >> r;
  cout << 3*(r**2) << endl;
}


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

#include<iostream>
using namespace std;
int main(void){
	cin>>r;
  	cout<<3*r**2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'r' was not declared in this scope
    4 |         cin>>r;
      |              ^
a.cc:5:19: error: invalid type argument of unary '*' (have 'int')
    5 |         cout<<3*r**2;
      |                   ^~
Language: C++

#include<iostream>

int main(void){
	cin>>r;
  	cout<<3*r**2;
}

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

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


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

#include<iostream>
using namespace std;

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

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

#include <bits/stdc++.h>
#include <stdio.h>
#include <numeric>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define repone(i,n) for(int i=1;i<(int)(n);++i)
#define repo(i,o,n) for(int i=o;i<(int)(n);++i)
#define Rep(j,n) for(int j=0;j<(int)(n);++j)
#define Repo(j,o,n) for(int j=o;j<(int)(n);++j)
#define Repone(j,n) for(int j=1;j<(int)(n);++j)
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define int long long
#define pb(a) push_back(a)
#define pbpair(a,b) push_back(make_pair(a,b))
#define MOD 1000000007
#define INF 9223372036854775807
#define pairint pair<int,int>
typedef pair< int , int> P;
int num[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
bool uru(int checkyear){
  if(checkyear%4==0){
    if(checkyear%100!=0||checkyear%400==0)
    return true;
  }
  return false;
}
int gcd( int x, int y ){return y ? gcd(y, x%y) : x;}
bool pairCompare(const P& firstElof, const P& secondElof)
{
  if(firstElof.second!= secondElof.second)    return firstElof.second> secondElof.second;
  else return firstElof.first< secondElof.first;
}
signed main() {
int x=0,y=0,z=0,w=0,n=0,m=0;
int a=0,b=0;
std::cin >> x;
std::cout << x*x*3 << '\n';
}
}


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

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

  

Compiler output:
main.c: In function 'main':
main.c:5:23: error: invalid type argument of unary '*' (have 'int')
    5 |   printf("%d", 3 * r ** 2);
      |                       ^~~
Language: C++

#include <stdio.h>
#include <queue>
#include <climits>
#include <map>
#include <set>
const int mod = 1e9 + 7;
const int inf = 1 << 20;
const long long INF = 1LL << 60;
using namespace std;
typedef long long ll;
typedef pair<int, int> P;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope
   16 |     cin >> r;
      |     ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <set>
  +++ |+#include <iostream>
    6 | const int mod = 1e9 + 7;
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << r * r * 3 << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:26: error: 'endl' was not declared in this scope
   17 |     cout << r * r * 3 << endl;
      |                          ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include <set>
  +++ |+#include <ostream>
    6 | const int mod = 1e9 + 7;
Language: C

/*
# C++
clang++ -std=c++17 filename.cpp -o outname
# C
clang filename.c -o outname
*/

#ifdef __linux__
    #define gcd __gcd
#endif

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

int main() {
    long long a, b, c, k;
    scanf("%d %d", a, b);
    c = (a+b)/2;
    if (abs(a-k) == abs(b-k)) {
        printf("&lld\n", c);
    } else (
        printf("IMPOSSIBLE\n")
    )
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:6: error: expected ';' before 'return'
   25 |     )
      |      ^
      |      ;
   26 |     return 0;
      |     ~~~~~~
Language: C++

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

int main(){
  int a;
  cin >> a;
  cout << 3a^2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""a'
    7 |   cout << 3a^2;
      |           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int r;
  cin>>r;
  int S=3*r**2;
  cout << S<<endl:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid type argument of unary '*' (have 'int')
    7 |   int S=3*r**2;
      |             ^~
a.cc:8:18: error: expected ';' before ':' token
    8 |   cout << S<<endl:
      |                  ^
      |                  ;
Language: C++

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

int main() {
    int a; cin >> a;
    cout << a*a*3 << endl;

    return 0;
}

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

#include <iostream>

int main() {
  int x;
  cin >> x;
  cout << 3 * x * x <<  '\n';
  return 0;
}

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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << 3 * x * x <<  '\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 <bits/stdc++.h> 
using namespace std;

int main(){
  int r; cin >> r;
  
  cout << 3*r*r;
  
	return 0
}


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

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

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

#include <bits/stdc++.h>
#define for(i, a, b) for(int i=(a); i<(b); i++)
#define rep(i, n) for(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define bit(x) (1l << (x))
using ll = long long;
using namespace std;

template<typename t>
vector<t> make_v(size_t a,t b){return vector<t>(a,b);}
 
template<typename... ts>
auto make_v(size_t a,ts... ts){
    return vector<decltype(make_v(ts...))>(a,make_v(ts...));
}

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

    cout << 3 * r * r << endl;

    return 0;
}


Compiler output:
a.cc:13:24: error: declaration of 'ts ... ts' shadows template parameter
   13 | auto make_v(size_t a,ts... ts){
      |                      ~~^~~~~~
a.cc:12:10: note: template parameter 'ts' declared here
   12 | template<typename... ts>
      |          ^~~~~~~~
a.cc: In function 'auto make_v(size_t, ts ...)':
a.cc:13:24: error: declaration of 'ts ... ts' shadows template parameter
   13 | auto make_v(size_t a,ts... ts){
      |                      ~~^~~~~~
a.cc:12:10: note: template parameter 'ts' declared here
   12 | template<typename... ts>
      |          ^~~~~~~~
Language: C

#include<stdio.h>
int main()
{
  int S, r;
  scanf("%d",&r);
  S = 3*r*r;
  printf("%d",S)
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before '}' token
    7 |   printf("%d",S)
      |                 ^
      |                 ;
    8 | }
      | ~
Language: C++

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

  cin >> r;
  
  cout << 3*(r**2);
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: invalid type argument of unary '*' (have 'int')
   10 |   cout << 3*(r**2);
      |                ^~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;

int main(){
  int N;
  int[] A = new int[N];
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> A[i];
  }
  int[] B = A;
  sort(A.begin(), A.end(), greater<int>());
  int M = A[0];
  for(int i=0;i<N;i++){
    if(B[i] != M){
      cout << M << endl;
    }
    else{
      cout << A[1] << endl;
    }
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: structured binding declaration cannot have type 'int'
   20 |   int[] A = new int[N];
      |      ^~
a.cc:20:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:20:6: error: empty structured binding declaration
a.cc:20:9: error: expected initializer before 'A'
   20 |   int[] A = new int[N];
      |         ^
a.cc:23:12: error: 'A' was not declared in this scope
   23 |     cin >> A[i];
      |            ^
a.cc:25:6: error: structured binding declaration cannot have type 'int'
   25 |   int[] B = A;
      |      ^~
a.cc:25:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:25:6: error: empty structured binding declaration
a.cc:25:9: error: expected initializer before 'B'
   25 |   int[] B = A;
      |         ^
a.cc:26:8: error: 'A' was not declared in this scope
   26 |   sort(A.begin(), A.end(), greater<int>());
      |        ^
a.cc:29:8: error: 'B' was not declared in this scope
   29 |     if(B[i] != M){
      |        ^
a.cc:35:4: error: expected '}' at end of input
   35 |   }
      |    ^
a.cc:18:11: note: to match this '{'
   18 | int main(){
      |           ^
Language: C++

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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d\n",3*i*i);
      |   ^~~~~~
      |   printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'i' undeclared (first use in this function)
    4 |   scanf("%d",&i);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d\n",3*i*i);
      |   ^~~~~~
      |   printf
Language: Java



public class Main {

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

		
		

		
		
	}	

}

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

package main
 
import (
	"fmt"
)
 
func main() {
	var r int
	fmt.Scan(&r)
	ans := 3 * r * r
	fmt.Println(ans)
}

Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package main
      | ^~~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import (
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
 
  // 変数aで入力を受け取る
  cin >> a;
 
  cout << (3 * a)^2  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << (3 * a)^2  << endl;
      |                   ~~~^~~~~~~
Language: Java

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


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

#include <iostream>

using namespace std;

int r, s;

int main() {

	cin >> r;

	s = 3 * r*r;

	cout << s << endl;

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected '}' at end of input
   15 |         return 0;
      |                  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C

include <stdio.h>

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



Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include<iostream>
     using namespace std; 
    int main(){
      int r;
      cin >> r;
      int a
      a = 3*r*r;
      cout  << a << endl;
      
   }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected initializer before 'a'
    7 |       a = 3*r*r;
      |       ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |       cout  << a << endl;
      |                ^
Language: C++

#include<iostream>
     using namespace std; 
    int main(){
      int r;
      cin >> r;
      int a
      a = 3*r*r;
      cout  << a << endl;
      
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected initializer before 'a'
    7 |       a = 3*r*r;
      |       ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |       cout  << a << endl;
      |                ^
Language: C++

    #inclde<iostream>
     using namespace std; 
    int main(){
      int r;
      cin >> r;
      a = 3*r^2;
      
      cout  << a << endl;
      
    }

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

inclde<iostream>
 using namespace std; 
int main(){
  int r;
  cin >> r;
  a = 3*r^2;
  
  cout  << a << endl;
  
}

Compiler output:
a.cc:1:1: error: 'inclde' does not name a type
    1 | inclde<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> r;
      |   ^~~
a.cc:6:3: error: 'a' was not declared in this scope
    6 |   a = 3*r^2;
      |   ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout  << a << endl;
      |   ^~~~
a.cc:8:17: error: 'endl' was not declared in this scope
    8 |   cout  << a << endl;
      |                 ^~~~
Language: C++

#inclde<iostream>

int main(){
  int r;
  cin >> r;
  a = 3*r^2;
  
  cout  << a << endl;
  
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> r;
      |   ^~~
a.cc:6:3: error: 'a' was not declared in this scope
    6 |   a = 3*r^2;
      |   ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout  << a << endl;
      |   ^~~~
a.cc:8:17: error: 'endl' was not declared in this scope
    8 |   cout  << a << endl;
      |                 ^~~~
Language: C++

#include <iostream>

using namespace std;

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


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

#incldue <iostream>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> r;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <iostream>
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << 3 * r * r; << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: expected primary-expression before '<<' token
    8 |   cout << 3 * r * r; << endl;
      |                      ^~
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |   cout << 3 * r * r; << endl;
      |                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <iostream>
Language: C++

include <iostream>

int sum = 0;

int addr(int a, int b, int cin)	//return cout
{
  if (a <= cin){
    sum += a;
    return b;
  }
  else if (a <= cin+b){
    sum += a;
    return cin + b - a;
  }
  else{
    sum += cin + b;
    return 0;
  }
}
 
int main() 
{
  int n;
  std::cin >> n;
  int a[n+1], b[n+1];
  for (int i = 0; i < n+1; i++) std::cin >> a[i];
  for (int i = 0; i < n; i++) std::cin >> b[i];
  b[n] = 0;
  
  int cin = 0;
  for (int i = 0; i < n+1; i++) cin = addr(a[i], b[i], cin);
  
  std::cout << sum;
  return 0;
}
  


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int addr(int, int, int)':
a.cc:8:5: error: 'sum' was not declared in this scope
    8 |     sum += a;
      |     ^~~
a.cc:12:5: error: 'sum' was not declared in this scope
   12 |     sum += a;
      |     ^~~
a.cc:16:5: error: 'sum' was not declared in this scope
   16 |     sum += cin + b;
      |     ^~~
a.cc: In function 'int main()':
a.cc:24:8: error: 'cin' is not a member of 'std'
   24 |   std::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 | include <iostream>
a.cc:26:38: error: 'cin' is not a member of 'std'
   26 |   for (int i = 0; i < n+1; i++) std::cin >> a[i];
      |                                      ^~~
a.cc:26:38: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:36: error: 'cin' is not a member of 'std'
   27 |   for (int i = 0; i < n; i++) std::cin >> b[i];
      |                                    ^~~
a.cc:27:36: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:8: error: 'cout' is not a member of 'std'
   33 |   std::cout << sum;
      |        ^~~~
a.cc:33:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:16: error: 'sum' was not declared in this scope
   33 |   std::cout << sum;
      |                ^~~
Language: C++

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

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

#include <iostream>

using namespace std;
int main(void){
    int a;

    r >> a;
    
    cout << 3*a*a << endl;

    return 0;
}

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

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

int main()
{
  int r,a;
  cin>>r/n;
  
  a=3*r*r;
  
  cout<<a;
  
}

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

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

int main()
{
  int r,a;
  cin>>r\n;
  
  a=3*r*r;
  
  cout<<a;
  
}

Compiler output:
a.cc:7:9: error: stray '\' in program
    7 |   cin>>r\n;
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'n'
    7 |   cin>>r\n;
      |         ^~
      |         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: expected initializer before '>>' token
    4 |   int r,cin>>r;
      |            ^~
Language: C++

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


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

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


int main()
{
  int a;
  scanf("%d",&a);
  printf("%d",&a*a*3);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'int*' and 'int' to binary 'operator*'
    9 |   printf("%d",&a*a*3);
      |               ~~^~
      |               |  |
      |               |  int
      |               int*
Language: C++

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

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

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

public class Main1 {
	public static void main(String[] args) {
		int a = Integer.parseInt(args[0]);
		System.out.println(3 * a * a);
	}
}


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

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

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


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

import java.util.*;
class Main {
	Scanner sc = new Scanner(System.in);
  	int n = sc.nextInt();
  	int[] arr = new int[n];
    int max = 0;
  	int sec = 0;
  	for(int i=0;i<n;i++) {
    	arr[i] = sc.nextInt();
    	if(arr[i] > max) {
        	sec = max;
          	max = arr[i];
        }
      	else if(arr[i] > sec){
      		sec = arr[i];
      	}
    }
  	for(int i=0;i<n;i++) {
    	if(a[i] == max) {
        	System.out.println(sec);
        }
      	else System.out.println(max);
    }
}


Compiler output:
Main.java:8: error: illegal start of type
  	for(int i=0;i<n;i++) {
  	^
Main.java:8: error: > or ',' expected
  	for(int i=0;i<n;i++) {
  	               ^
Main.java:8: error: <identifier> expected
  	for(int i=0;i<n;i++) {
  	                 ^
Main.java:18: error: illegal start of type
  	for(int i=0;i<n;i++) {
  	^
Main.java:18: error: > or ',' expected
  	for(int i=0;i<n;i++) {
  	               ^
Main.java:18: error: <identifier> expected
  	for(int i=0;i<n;i++) {
  	                 ^
6 errors
Language: C++

#include<iostream.h>
using namespace std;
int main()
{ int a,r;
 cin>>a;
 r=3*a*a;
 cout<<r;
 return 0;}

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

#include<string>
#include<iostream>
using namespace std;

int main(){
  int r;
  int s;
  cin >> r;
  s = 3 * pow(r, 2,0)
  cout << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'pow' was not declared in this scope
    9 |   s = 3 * pow(r, 2,0)
      |           ^~~
Language: C++

#include <iostream>

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

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

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

int main(){
  int r;
  cin >> r;
  cour << (3*r*r) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cour' was not declared in this scope
    7 |   cour << (3*r*r) << endl;
      |   ^~~~
Language: Java

import java.util.Scanner;

public class Mian {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int d = sc.nextInt();
		
		int a = 0;
		
		do {
			a++;
            n--;
		} while (a * 2 * d < n);
		
		System.out.println(a);
		
		sc.close();
		
	}

}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: 'a' undeclared (first use in this function)
    6 |   printf("%d\n", 3*a*a);
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main()
{
  return 3*r*r;
}


Compiler output:
main.c: In function 'main':
main.c:3:12: error: 'r' undeclared (first use in this function)
    3 |   return 3*r*r;
      |            ^
main.c:3:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(int argc, int argv[])
{
  printf("%s %s\n",argv[0],argv[1]);
  a = atoi(argv[1]);
  return 3*a*a;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'a' undeclared (first use in this function)
    6 |   a = atoi(argv[1]);
      |   ^
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: passing argument 1 of 'atoi' makes pointer from integer without a cast [-Wint-conversion]
    6 |   a = atoi(argv[1]);
      |            ~~~~^~~
      |                |
      |                int
In file included from main.c:2:
/usr/include/stdlib.h:105:30: note: expected 'const char *' but argument is of type 'int'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C

#include <stdion.h>
#include <stdlib.h>
int main(int argc, int argv[])
{
  printf("%s %s\n",argv[0],argv[1]);
  a = atoi(argv[1]);
  return 3*a*a;
}

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