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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <bits/stdctt.h>
      |  ^~~~~~~
      |  include
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:3: 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 | #inculde <bits/stdctt.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<3*r^2<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |   cout<<3*r^2<<endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde <bits/stdctt.h>
Language: C++

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

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

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

Compiler output:
a.cc:2:21: error: expected ';' before 'int'
    2 | using namespace  std
      |                     ^
      |                     ;
    3 | int main()
      | ~~~
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:6:22: error: expected ')' before ';' token
    6 |   printf("%d",3*(r*r);
      |         ~            ^
      |                      )
main.c:8:4: error: expected ';' at end of input
    8 |   )
      |    ^
      |    ;
main.c:8:3: error: expected declaration or statement at end of input
    8 |   )
      |   ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: warning: missing terminating " character
    5 |   scanf("%ld, &r);
      |         ^
main.c:5:9: error: missing terminating " character
    5 |   scanf("%ld, &r);
      |         ^~~~~~~~~~
main.c:6:31: error: expected ')' before ';' token
    6 |         printf("%ld\n", 3*r*r);
      |                               ^
      |                               )
main.c:5:8: note: to match this '('
    5 |   scanf("%ld, &r);
      |        ^
main.c:6:9: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |         printf("%ld\n", 3*r*r);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         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:7:18: error: expected ';' before '}' token
    7 |         return 0;
      |                  ^
      |                  ;
    8 |         }
      |         ~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: found ':' in nested-name-specifier, expected '::'
    6 |   std::cout << (3*r*r) << std:endl;
      |                              ^
      |                              ::
Language: Java

import java.util.Scanner;

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

		System.out.println(3 * a * a);
		sc.close();
	}
}

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

#include<stdio.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: 'cin' was not declared in this scope
    6 |   cin>>r;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<< 3*r*r<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:17: error: 'endl' was not declared in this scope
    7 |   cout<< 3*r*r<<endl;
      |                 ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: Java

import java.util.*;
public class Main{
  public static void main(){
    Scanner r = new Scanner(System.in);
    int r = scanner.nextInt();
    int answer;
    answer = 3 * r * r;
    System.out.println(answer);
	}
}


Compiler output:
Main.java:5: error: variable r is already defined in method main()
    int r = scanner.nextInt();
        ^
Main.java:5: error: cannot find symbol
    int r = scanner.nextInt();
            ^
  symbol:   variable scanner
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(){
    Scanner r = new Scanner(System.in);
    int answer;
    answer = r * r;
    System.out.println(answer * 3);
	}
}


Compiler output:
Main.java:6: error: bad operand types for binary operator '*'
    answer = r * r;
               ^
  first type:  Scanner
  second type: Scanner
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(){
    Scanner r = new Scanner(System.in);
    int t = r;
    int answer;
    answer = 3 * t * t;
    System.out.println(answer);
	}
}


Compiler output:
Main.java:5: error: incompatible types: Scanner cannot be converted to int
    int t = r;
            ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

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

import java.util.*;
public class Main{
  public static void main(){
    Scanner r = new Scanner(System.in);
    int answer;
    answer = 3 * r * r;
    System.out.println(answer);
	}
}


Compiler output:
Main.java:6: error: bad operand types for binary operator '*'
    answer = 3 * r * r;
               ^
  first type:  int
  second type: Scanner
1 error
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int r;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> r;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 3*pow(r, 2) << endl;
      |   ^~~~
a.cc:8:3: error: expected unqualified-id before 'return'
    8 |   return 0;
      |   ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: Java

import java.util.*
public class Main{
  public static void main{
    Scanner r = new Scanner(System.in);
    int answer;
    answer = 3 * r * r;
    System.out.println(answer);
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:3: error: '(' expected
  public static void main{
                         ^
2 errors
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

import java.util.*
public class Main{
  public static void main{
    Scanner r = new Scanner(System.in);
    int answer;
    answer = 3 * r * r;
    System.out.println(answer);

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:3: error: '(' expected
  public static void main{
                         ^
Main.java:7: error: reached end of file while parsing
    System.out.println(answer);
                               ^
3 errors
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author KharYusuf
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastRead in = new FastRead(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, FastRead s, PrintWriter w) {
            int n = s.nextInt();
            w.println(3 * n * n);
        }
    }
  class FastRead {
            BufferedReader b;
            StringTokenizer st;

            FastRead() {
                b = new BufferedReader(new InputStreamReader(System.in));
            }

            String next() {
                while (st == null || !st.hasMoreTokens()) {
                    try {
                        st = new StringTokenizer(b.readLine());
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

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

        }
}

Compiler output:
Main.java:20: error: non-static variable this cannot be referenced from a static context
        FastRead in = new FastRead(inputStream);
                      ^
1 error
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author KharYusuf
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastRead in = new FastRead(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, FastReader s, PrintWriter w) {
            int n = s.nextInt();
            w.println(3 * n * n);
        }
    }
  class FastRead {
            BufferedReader b;
            StringTokenizer st;

            FastRead() {
                b = new BufferedReader(new InputStreamReader(System.in));
            }

            String next() {
                while (st == null || !st.hasMoreTokens()) {
                    try {
                        st = new StringTokenizer(b.readLine());
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

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

        }
}

Compiler output:
Main.java:28: error: cannot find symbol
        public void solve(int testNumber, FastReader s, PrintWriter w) {
                                          ^
  symbol:   class FastReader
  location: class Task
Main.java:20: error: non-static variable this cannot be referenced from a static context
        FastRead in = new FastRead(inputStream);
                      ^
2 errors
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author KharYusuf
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, FastReader s, PrintWriter w) {
            FastRead in = new FastRead();
            int n = in.nextInt();
            w.println(3 * n * n);
        }

        class FastRead {
            BufferedReader b;
            StringTokenizer st;

            FastRead() {
                b = new BufferedReader(new InputStreamReader(System.in));
            }

            String next() {
                while (st == null || !st.hasMoreTokens()) {
                    try {
                        st = new StringTokenizer(b.readLine());
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

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

        }

    }
}

Compiler output:
Main.java:28: error: cannot find symbol
        public void solve(int testNumber, FastReader s, PrintWriter w) {
                                          ^
  symbol:   class FastReader
  location: class Task
Main.java:20: error: cannot find symbol
        FastReader in = new FastReader(inputStream);
        ^
  symbol:   class FastReader
  location: class Main
Main.java:20: error: cannot find symbol
        FastReader in = new FastReader(inputStream);
                            ^
  symbol:   class FastReader
  location: class Main
3 errors
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: expected '}' at end of input
    6 |   std::cout << 3*r*r*r << std::endl;
      |                                     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int mian()
{int a;
 cin>>a;
 cout <<3*a*a;
}

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

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

int main(){
  int a;
  while(cin >> a){
	printf("%d\", a*a*3);
    }
    return 0;
           }

Compiler output:
a.cc:7:16: warning: missing terminating " character
    7 |         printf("%d\", a*a*3);
      |                ^
a.cc:7:16: error: missing terminating " character
    7 |         printf("%d\", a*a*3);
      |                ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before '}' token
    8 |     }
      |     ^
Language: C++

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

Compiler output:
a.cc:2:1: error: extended character 　 is not valid in an identifier
    2 | int　main(void){
      | ^
a.cc:2:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
    2 | int　main(void){
      | ^~~~~~~~~
a.cc: In function 'int int\U00003000main()':
a.cc:7:3: warning: no return statement in function returning non-void [-Wreturn-type]
    7 |   }
      |   ^
Language: C

#include <stdio.h>

int main(){
	int n;
    int a[200000];
    int i;
    int k;
    int max,second_max;
  
  	scanf("%d",&n);
  	for(i=0; i<n; i++){
  		scanf("%d",&a[i]);
  	}
  
   	max = a[0];
    second_max = a[0];
  	for(i=0; i<n; i++){
        if (max < a[i]) {
            second_max = max;
            max = a[i];
        }else if(second_max == a[i]){
            second_max = a[i];
    }
   
  
    for(i=0; i<n; i++){
        if(max == a[i]){
           printf("%d\n",second_max);
        }else{
           printf("%d\n",max);
        }
    }
  
   	return 0;
}

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

#include<stdio.h>
int main(void){
	int n,a[],max,i,j;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
		max=-1;
		for(j=0;j<n;j++){
			if(!a[i]){
				if(max>a[j]){
					max=a[j];
				}
			}
		}
		printf("%d\n",max);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: array size missing in 'a'
    3 |         int n,a[],max,i,j;
      |               ^
Language: C++

    #include <iostream>
    using namespace std;
    int main(void){
        // Your code here!
        int counter; // 要素の数（1オリジン）
        std::cin >> counter;
        int* a = new int[counter];
        int* b = new int[counter];
     
        for (int i = 0; i < counter; i++) {
            std::cin >> a[i];
          	b[i] = 0;
        }
        
        int tmp;
        for (int i = counter-1; i > 0; i--) {
            tmp = counter / i + 1;
            // *1のメンバーたち
            if (2*(i+1)>counter){
                b[i] = a[i];
            }else if(tmp*(i+1)>counter){
                b[i] = a[i] ^ b[2*i];
            }
        }
        
        b[0] = a[0] ^ b[1];
        
        bool iszero = true;
        for (int i = 0; i < counter; i++) {
            if (b[i]==1){
                iszero = false;
                cout<<i+1;
            }
        }
        if(iszero){
            cout << 0;
        }
        cout << endl;
        delete[] a;
        delete[] b;
    }

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int counter; // 要素の数（1オリジン）
    std::cin >> counter;
    int* a = new int[counter];
    int* b = new int[counter];

    for (int i = 0; i < counter; i++) {
        std::cin >> a[i];
      	o >> b[i];
    }
    
    int tmp;
    for (int i = counter-1; i > 0; i--) {
        tmp = counter / i + 1;
        // *1のメンバーたち
        if (2*(i+1)>counter){
            b[i] = a[i];
        }else if(tmp*(i+1)>counter){
            b[i] = a[i] ^ b[2*i];
        }
    }
    
    b[0] = a[0] ^ b[1];
    
    bool iszero = true;
    for (int i = 0; i < counter; i++) {
        if (b[i]==1){
            iszero = false;
            cout<<i+1;
        }
    }
    if(iszero){
        cout << 0;
    }
    cout << endl;
    delete[] a;
    delete[] b;
}

Compiler output:
a.cc:45:5: error: redefinition of 'int main()'
   45 | int main(void){
      |     ^~~~
a.cc:3:9: note: 'int main()' previously defined here
    3 |     int main(void){
      |         ^~~~
a.cc: In function 'int main()':
a.cc:54:9: error: 'o' was not declared in this scope
   54 |         o >> b[i];
      |         ^
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:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << 3*r^2 << endl;
      |               ~~^~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'r' was not declared in this scope
    5 |   cin >> r;
      |          ^
a.cc:6:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout << 3*r^2 << endl;
      |               ~~^~~~~~~
Language: C++

import java.util.Scanner;

public class Main {

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

}

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


#include <stdio.h>
using namespace std;
 
int main()
{
int r;
cin >> r;
cout << 3*r*r << endl;
return 0;
}


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

#include<iostream>
#include<string>
#include<string.h>
#include<map>
#include<set>
#include<vector>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<queue>
using namespace std;
int n;
int a[200001];
int x=0;
int main(){
	ios::sync_with_stdio(false);
   cin.tie(NULL); cout.tie(NULL);
   cin >> N;
   for (int i = 0; i < N; i ++) cin >> A[i];
   for (int i = 0; i < N; i ++) B[i] = A[i];
	sort(A, A + N); reverse(A, A + N);
	for (int i = 0; i < N; i ++) 
	{
		if (B[i] == A[0]) cout << A[1];
		else cout << A[0];
		cout << endl;
	}
   return 0;
}

system ("pause");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'N' was not declared in this scope
   18 |    cin >> N;
      |           ^
a.cc:19:40: error: 'A' was not declared in this scope
   19 |    for (int i = 0; i < N; i ++) cin >> A[i];
      |                                        ^
a.cc:20:33: error: 'B' was not declared in this scope
   20 |    for (int i = 0; i < N; i ++) B[i] = A[i];
      |                                 ^
a.cc:20:40: error: 'A' was not declared in this scope
   20 |    for (int i = 0; i < N; i ++) B[i] = A[i];
      |                                        ^
a.cc:21:14: error: 'A' was not declared in this scope
   21 |         sort(A, A + N); reverse(A, A + N);
      |              ^
a.cc:24:21: error: 'B' was not declared in this scope
   24 |                 if (B[i] == A[0]) cout << A[1];
      |                     ^
a.cc: At global scope:
a.cc:31:8: error: expected constructor, destructor, or type conversion before '(' token
   31 | system ("pause");
      |        ^
a.cc:32:1: error: expected unqualified-id before 'return'
   32 | return 0;
      | ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++


#include <stdio.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:8:1: error: 'cin' was not declared in this scope
    8 | cin >> r;
      | ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << 3*r*r;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
int a = sc.nextInt;
          ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error
Language: C++


#include <stdio.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:8:2: error: 'cin' was not declared in this scope
    8 |  cin >> r;
      |  ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:2: error: 'cout' was not declared in this scope
    9 |  cout << 3*r*r;
      |  ^~~~
a.cc:9:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++


#include <stdio.h>
 
int main( )
{
 int r;
 cin >> r;
 cout << 3*r*r ;
  return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected initializer before '*' token
    9 |   int a*a=c;
      |        ^
a.cc:10:8: error: 'c' was not declared in this scope
   10 |   cin>>c;
      |        ^
Language: C++


#include <stdio.h>
 
int main( )
{
 int r ;
 cin >> r;
 cout << 3*r*r ;

 
 
  return 0;
}


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

#include <stdio.h>
  

int main(void){
  int n,ma;
  scanf("%d",&n);
  int num[n];
  for(int i=0;i<n;i++){
    scanf("%d",&num[i]);
  }
  for(int j = 0;j<n;j++){
    if(j!=0){ma = num[0];
           }else{
    ma = num[1];
  }
  for(int l = 0;l<j;l++){
    if(ma<num[l]){
      ma = num[l];
    }
  }
  for(int l = j+1;l<n;l++){
    if(ma<num[l]){
      ma = num[l];
    }
  }
  }
}
  return 0;


Compiler output:
a.cc:28:3: error: expected unqualified-id before 'return'
   28 |   return 0;
      |   ^~~~~~
Language: C++


#include <stdio.h>
 
int main( )
{
 int r ;
 cin >> r;
 cout << 3*r*r << endl;

 
 
  return 0;
}


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


#include <stdio.h>
using namespace std;
  
int main( )
{
 int r ;
 cin >> r;
 cout << 3*r*r << endl;

 
 
  return 0;
}


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

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

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

#include<bits/stdc++.h>
using namespace  std;
int  n , a[200020];
int maxx1[200020];
int maxx2[200020];
int main ( ) {
	scanf("%d" ,&n);
	for(int  i = 1 ; i <= n; i++){
	    scanf("%d" ,&a[i]);
	    maxx1[i] = max(maxx1[i - 1] , a[i]);
	}
	for(int i = n; i >= 1 ; i--){
		maxx2[i] = max(maxx2[i + 1] , a[i]);
	}
	for(int i = 1; i <= n ;i++){
 		int ans = max(maxx1[i - 1] , maxx2[i + 1]);
		cout << ans << endl;
	}
}

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


#include <stdio.h>
using namespace std;
  
int main( )
{
 int r ;
 cin >> r;
 cout << "3*r*r" << endl ;
 
 
  return 0;
}


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

#include <stdio.h>
#include <stdlib.h>
 
int main(void)
{
  int *a;
  int N;
  scanf("%d",&N);
  a = (int*)malloc(sizoof(int)*N);
  int i,m1= 0,m2=0;
  for(i = 0; i<N;i++){
    scanf("%d",a+i);
    m1 = (m1>a[i]) ? m1:a[i];
    m2 = (m1> a[i] && a[i] > m2) ? a[i]:m2;
  }
  for(i = 0;i<N;i++){
    if(m1 != a[i]) printf("%d",m1);
    else  printf("%d",m2);
  }
  return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:9:20: error: implicit declaration of function 'sizoof' [-Wimplicit-function-declaration]
    9 |   a = (int*)malloc(sizoof(int)*N);
      |                    ^~~~~~
main.c:9:27: error: expected expression before 'int'
    9 |   a = (int*)malloc(sizoof(int)*N);
      |                           ^~~
Language: C++


#include <stdio.h>
using namespace std;
  
int main( )
{
 int r ;
 cin >> r;
 cout << "3*r*r" << endl;
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:2: error: 'cin' was not declared in this scope
    8 |  cin >> r;
      |  ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:2: error: 'cout' was not declared in this scope
    9 |  cout << "3*r*r" << endl;
      |  ^~~~
a.cc:9:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |  cout << "3*r*r" << endl;
      |                     ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <stdio.h>
  +++ |+#include <ostream>
    3 | using namespace std;
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:16: error: invalid type argument of unary '*' (have 'int')
    7 |   cout << 3*(r**2) << endl;
      |                ^~
Language: C++


#include <stdio.h>
using namespace std;
  
int main( )
{
int r ;
cin >> r;
cout << "3*r*r" << endl;
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> r;
      | ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << "3*r*r" << endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 | cout << "3*r*r" << endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <stdio.h>
  +++ |+#include <ostream>
    3 | using namespace std;
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:15: error: invalid type argument of unary '*' (have 'int')
    7 |   cout << 3*r**2 << endl;
      |               ^~
Language: C

#include <stdio.h>

int main(void) {
        printf("文字列を入力してEnterボタンを押してください\n");
        int result;
        int d;
        scanf("%d", &d);

        result =d*d*3;
        printf("%d\n", result);

        return result;
}
~               

Compiler output:
main.c:14:1: error: expected identifier or '(' before '~' token
   14 | ~
      | ^
Language: C++


#include <stdio.h>
using namespace std;
  
int main( )
{
int r ;
cin >> r;
cout<< "3*r*r" << endl;
 
 
  return 0;
}


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


#include <stdio.h>
using namespace std;
  
int main( )
{
  int r ;
  cin >> r;
  cout<< "3*r*r" << endl;
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> r;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<< "3*r*r" << endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |   cout<< "3*r*r" << endl;
      |                     ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <stdio.h>
  +++ |+#include <ostream>
    3 | using namespace std;
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:8:15: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << 3*r**2 << endl;
      |               ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: '\U0000ff4e' was not declared in this scope
    6 |         cin >>ｎ;
      |               ^~
Language: C++

#include 
using namespace std;

int main() {
  // ここにプログラムを追記
  int r;
  cin >> r;
  cout << 3*r**2 << endl;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #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 | #include
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << 3*r**2 << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:15: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << 3*r**2 << endl;
      |               ^~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   cout << 3*r**2 << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
Language: C++


#include <stdio.h>
using namespace std;
  
int main( )
{
  int r ;
  cin >> r;
  cout<< "3*r*r"; << endl;
 
 
  return 0;
}


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

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

int main() {
  // ここにプログラムを追記
  int r;
  cin >> r;
  cout << 3*r**2 << endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: '\U0000ff4e\U0000ff1b' was not declared in this scope
    6 |         cin >>ｎ；
      |               ^~~~
Language: C

#include <stdio.h>
int TestFunc() __attribute__((warn_unused_result));
int func(){
        printf("文字列を入力してEnterボタンを押してください\n");
        int result;
        int d;
        scanf("%d", &d);
        d = d*d*3;
        printf("%d",d);
        return d;
}
int main(void) {
        int result = func();
        return result;
}
~                    

Compiler output:
main.c:16:1: error: expected identifier or '(' before '~' token
   16 | ~
      | ^
Language: C++

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
#include <complex>
#include <stack>
#include <queue>
#include <unordered_map>
#include <map>
 
#define INF 10e9
#define rep(i, a) for (int i = 0; i < (a); i++)
using namespace std;
 
int main() {
    int r;
    cin >> r;

    cout << 3 * r * r << endl
}

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae 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>>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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<3*(r*r);
      |   ^~~~
      |   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<iosteam>
using namespcae std;
int main()
{
  int r;
  cin>>r;
  cout<<3*(r*r);
  return 0;
}

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


#include <stdio.h>
  
int main( )
{
  int r ;
  cin >> r;
  cout<< "3*r*r" << endl;
 
 
  return 0;
}


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

import java.util.Scanner;

Scanner scan = new Scanner(System.in);
String rStr = scan.next();
int r = Integer.parseInt(rStr);
 
int S = 3*r*r;
System.out.println(S);

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


#include <stdio.h>
  
int main( )
{
  int r ;
  cin >> r;
  cout<< "3*r*r" <<endl;
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> r;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<< "3*r*r" <<endl;
      |   ^~~~
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |   cout<< "3*r*r" <<endl;
      |                    ^~~~