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

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:3:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |   printf("%s %s\n",argv[0],argv[1]);
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, int argv[])
main.c:3:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    3 |   printf("%s %s\n",argv[0],argv[1]);
      |   ^~~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:3: error: 'a' undeclared (first use in this function)
    4 |   a = atoi(argv[1]);
      |   ^
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:7: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    4 |   a = atoi(argv[1]);
      |       ^~~~
Language: C++

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

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

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

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

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

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

import java.util.Scanner;

public class Main {

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

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

Compiler output:
Main.java:11: error: reached end of file while parsing
	}
	 ^
1 error
Language: C


//https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8 より
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

macro_rules! input_inner {
    ($iter:expr) => {};
    ($iter:expr, ) => {};

    ($iter:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($iter, $t);
        input_inner!{$iter $($r)*}
    };
}

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };

    ($iter:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
    };

    ($iter:expr, chars) => {
        read_value!($iter, String).chars().collect::<Vec<char>>()
    };

    ($iter:expr, usize1) => {
        read_value!($iter, usize) - 1
    };

    ($iter:expr, $t:ty) => {
        $iter.next().unwrap().parse::<$t>().expect("Parse error")
    };
}

// ここまで

fn run() {
    input! {
        r: i32,
    }
    let ans = 3 * r * r;
    println!("{}", ans);
}

fn main() {
    run();
}


Compiler output:
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
    3 | macro_rules! input {
      |            ^
main.c:20:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
   20 | macro_rules! input_inner {
      |            ^
main.c:30:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
   30 | macro_rules! read_value {
      |            ^
main.c:36:10: error: too many decimal points in number
   36 |         (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
main.c:54:1: error: unknown type name 'fn'
   54 | fn run() {
      | ^~
main.c: In function 'run':
main.c:55:5: error: 'input' undeclared (first use in this function); did you mean 'int'?
   55 |     input! {
      |     ^~~~~
      |     int
main.c:55:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:55:10: error: expected ';' before '!' token
   55 |     input! {
      |          ^
      |          ;
main.c:59:5: error: 'println' undeclared (first use in this function)
   59 |     println!("{}", ans);
      |     ^~~~~~~
main.c:59:12: error: expected ';' before '!' token
   59 |     println!("{}", ans);
      |            ^
      |            ;
main.c: At top level:
main.c:62:1: error: unknown type name 'fn'
   62 | fn main() {
      | ^~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
        
    #define ll long long int
     int main()
    {
          ll r,a,bs;
          cin>>r;
          b=sqrt(3);
          a=r/b;
          a=3*a*a;
          cout<<a<<endl;
          return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'b' was not declared in this scope; did you mean 'bs'?
    9 |           b=sqrt(3);
      |           ^
      |           bs
Language: C++

    #include<bits/stdc++.h>
    #define ll long long int
    int main()
    {
      ll r,a;
      cin>>r;
      a=1/2;
      a=a/sqrt(3);
      a=3*a*a;
      cout<<a<<endl;
      return 0;
    }

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

#include<bits/stdc++.h>
#ddefine ll long long int
int main()
{
  ll r,a;
  cin>>r;
  a=1/2;
  a=a/sqrt(3);
  a=3*a*a;
  cout<<a<<endl;
  return 0;
}

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

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


Compiler output:
Main.java:2: error: class sol is public, should be declared in a file named sol.java
public class sol
       ^
1 error
Language: Java

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


Compiler output:
Main.java:4: error: <identifier> expected
  public stataic void main(String[] args)
                ^
1 error
Language: C++

#include <bits/stdc++.h>

#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begin(), v.end()
#define INF 1e9

using namespace std;

/**
 * calculate GCD(greatest common divisor)
 * @param a
 * @param b
 * @return
 */
unsigned euclidean_gcd(unsigned a, unsigned b) {
    if (a < b) return euclidean_gcd(b, a);
    unsigned r;
    while ((r = a % b)) {
        a = b;
        b = r;
    }
    return b;
}

/**
 * change minimum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T> inline bool changeMinimum(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * change maximum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T> inline bool changeMaximum(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * output answer
 * @tparam T
 * @param answer
 * @return
 */
template<typename T>
T output(T answer) {
    cout << answer << endl;
    return 0;
}

/** ----from here ---------------------------------------------------------- */

int main() {


    int r ;cin >> r;

    cout<<3*power(r,3)<<endl;
}

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

#include<bits/stdc++.h>

using namespace std;

typedef long long int ll;
typedef long double ld;

const ll mod = 1e9+7;
const ll mod1 = 998244353;

#define fill(a)  memset(a, 0, sizeof(a))
#define fst first
#define snd second
#define mp make_pair
#define pb push_back

void fastscan(ll &number)
{
	bool negative = false;
	register int c;
	number = 0;
	c = getchar();
	if (c=='-') 
	{
		negative = true;
		c = getchar();
	}
	for (; (c>47 && c<58); c=getchar())
		number = number *10 + c - 48;
	if (negative)
		number *= -1;
}

bool isprime(ll n)
{
    if (n <= 1)  return false;
    if (n <= 3)  return true;
    if (n%2 == 0 || n%3 == 0) return false;

    for (ll i=5; i*i<=n; i=i+6)
        if (n%i == 0 || n%(i+2) == 0)
           return false;

    return true;
}

bool checkisTree(ll degree[],ll n) 
{
    ll deg_sum = 0; 
    for (ll i = 0; i < n; i++) 
        deg_sum += degree[i]; 
    return (2*(n-1) == deg_sum);
}

ll gcd(ll a, ll b) 
{
    
    if (b == 0)  return a;
    return gcd(b, a % b);

}
int main()
{
	cin.sync_with_stdio(0);
	cin.exceptions(cin.failbit);
	cin.tie(0);
	ll t=1;
	//cin>>t;
	while(t--)
	{
		ll n;
      	cin>>n;
      	cout<<3*a*a;
	}
	
}

Compiler output:
a.cc: In function 'void fastscan(ll&)':
a.cc:20:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   20 |         register int c;
      |                      ^
a.cc: In function 'int main()':
a.cc:73:17: error: 'a' was not declared in this scope
   73 |         cout<<3*a*a;
      |                 ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long int ll;
typedef long double ld;

const ll mod = 1e9+7;
const ll mod1 = 998244353;

#define fill(a)  memset(a, 0, sizeof(a))
#define fst first
#define snd second
#define mp make_pair
#define pb push_back

void fastscan(ll &number)
{
	bool negative = false;
	register int c;
	number = 0;
	c = getchar();
	if (c=='-') 
	{
		negative = true;
		c = getchar();
	}
	for (; (c>47 && c<58); c=getchar())
		number = number *10 + c - 48;
	if (negative)
		number *= -1;
}

bool isprime(ll n)
{
    if (n <= 1)  return false;
    if (n <= 3)  return true;
    if (n%2 == 0 || n%3 == 0) return false;

    for (ll i=5; i*i<=n; i=i+6)
        if (n%i == 0 || n%(i+2) == 0)
           return false;

    return true;
}

bool checkisTree(ll degree[],ll n) 
{
    ll deg_sum = 0; 
    for (ll i = 0; i < n; i++) 
        deg_sum += degree[i]; 
    return (2*(n-1) == deg_sum);
}

ll gcd(ll a, ll b) 
{
    
    if (b == 0)  return a;
    return gcd(b, a % b);

}
int main()
{
	cin.sync_with_stdio(0);
	cin.exceptions(cin.failbit);
	cin.tie(0);
	ll t=1;
	//cin>>t;
	while(t--)
	{
		ll n;
     	cin>>n;
      	cout<<3*a*a<<endl;
	}
	
}

Compiler output:
a.cc: In function 'void fastscan(ll&)':
a.cc:20:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   20 |         register int c;
      |                      ^
a.cc: In function 'int main()':
a.cc:73:17: error: 'a' was not declared in this scope
   73 |         cout<<3*a*a<<endl;
      |                 ^
Language: C++

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

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


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

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <ios> 
#include <iomanip>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)
#define INF 1e7

typedef long long ll;
typedef long long int lli;

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

Compiler output:
a.cc:26:17: error: extended character 　 is not valid in an identifier
   26 |     cout << 3  *　(int)pow((double)r, 2.0) << endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:26:20: error: expected primary-expression before 'int'
   26 |     cout << 3  *　(int)pow((double)r, 2.0) << endl;
      |                    ^~~
a.cc:26:17: error: '\U00003000' was not declared in this scope
   26 |     cout << 3  *　(int)pow((double)r, 2.0) << endl;
      |                 ^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cout'
    7 |     cout << area << endl;
      |     ^~~~
Language: C++

# incclude <bits/stdc++.h>

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

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
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 | #includde <bits/stdc++.h>
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << 3 * r * r << endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: 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 | #includde <bits/stdc++.h>
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   cout << 3r*r << endl;
      |   ^~~~
a.cc: In function 'int main()':
a.cc:7:11: error: fixed-point types not supported in C++
    7 |   cout << 3r*r << endl;
      |           ^~
Language: Java

import java.util.*;

public class M {
    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

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

    }
}


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

#include <bits/stdc++.h>

using namespace std;

long long r, ans;


int main(void)
{
	scanf("%lld", &r);
	printf("%lld\n", 3*r*r);
	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: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'printf'
    5 |   scanf("%d",&r)
      |                 ^
      |                 ;
    6 |   printf("%d\n",3*r*r);
      |   ~~~~~~
Language: C++

#include <iostream>
using namespace tsd;

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

Compiler output:
a.cc:2:17: error: 'tsd' is not a namespace-name
    2 | using namespace tsd;
      |                 ^~~
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 << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << 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 <stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  printf("%d",3*a**2);
  return 0;
}

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

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

int main() {
  inr S;
  cin >> S;

  cout << 3*S*S << endl;
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'inr' was not declared in this scope; did you mean 'int'?
    5 |   inr S;
      |   ^~~
      |   int
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int test[200001];
int main() {
	long long n, r; cin >> r;
	cout << 3 * r * r << endl;
	cin >> n;
}#include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int test[200001];
int main() {
	long long n, r; cin >> r;
	cout << 3 * r * r << endl;
	cin >> n;
}

Compiler output:
a.cc:11:2: error: stray '#' in program
   11 | }#include<iostream>
      |  ^
a.cc:11:3: error: 'include' does not name a type
   11 | }#include<iostream>
      |   ^~~~~~~
a.cc:16:5: error: redefinition of 'int test [200001]'
   16 | int test[200001];
      |     ^~~~
a.cc:6:5: note: 'int test [200001]' previously declared here
    6 | int test[200001];
      |     ^~~~
a.cc:17:5: error: redefinition of 'int main()'
   17 | int main() {
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main() {
      |     ^~~~
Language: Java

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

public class A {
	
	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:4: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C

#nclude<stdio.h>

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%d",&r);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #nclude<stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%d",&r);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("%d",3*(r*r));
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
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:16: error: expected primary-expression before ';' token
    6 |     cin >> r >>;
      |                ^
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:5: 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 <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:5: 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<bits/stdc++.h>
using namespace std;
int main()
{
   int r;
   cin>>r;
   
    int x=3*r*r;
   cout<<x;
  return 0;


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

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

Compiler output:
a.cc:5:3: error: stray '\10' in program
    5 |   <U+0008>int a = 0;
      |   ^~~~~~~~
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>
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:4: error: expected ';' before 'r'
    6 | cin r;
      |    ^~
      |    ;
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:4: error: expected ';' before 'r'
    5 | cin r;
      |    ^~
      |    ;
a.cc:6:15: error: 'r' was not declared in this scope
    6 | cout << 3 * ( r ^ 2 ) << endl;
      |               ^
Language: C++

#include<iostream>
using namespace std;

int r;

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

int r;

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

int r;

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

int r;

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

int r;

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

Compiler output:
a.cc:13:5: error: redefinition of 'int r'
   13 | int r;
      |     ^
a.cc:4:5: note: 'int r' previously declared here
    4 | int r;
      |     ^
a.cc:15:5: error: redefinition of 'int main()'
   15 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
a.cc:22:5: error: redefinition of 'int r'
   22 | int r;
      |     ^
a.cc:4:5: note: 'int r' previously declared here
    4 | int r;
      |     ^
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
a.cc:31:5: error: redefinition of 'int r'
   31 | int r;
      |     ^
a.cc:4:5: note: 'int r' previously declared here
    4 | int r;
      |     ^
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
a.cc:40:5: error: redefinition of 'int r'
   40 | int r;
      |     ^
a.cc:4:5: note: 'int r' previously declared here
    4 | int r;
      |     ^
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | 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:3:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    3 |   int r:
      |        ^
main.c:3:8: error: expected expression before ':' token
main.c:5:17: error: 'r' undeclared (first use in this function)
    5 |   printf("%d",3*r*r);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
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:3:6: error: expected identifier or '(' before ',' token
    3 |   int,r:
      |      ^
main.c:5:17: error: 'r' undeclared (first use in this function)
    5 |   printf("%d",3*r*r);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected unqualified-id before '>>' token
    6 |   int n; int >> n;
      |              ^~
Language: Java

import java.util.Scanner; 
public class Decagon {

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

}

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

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

import java.util.Scanner;
public class Decagon {

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

}

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

import java.util.Scanner;

public class Decagon {

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

}

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

using ll = long long;
struct m{
  ll a;
  const ll mod = 13;
  m(ll x=0):(a){
    x=(x%mod+mod)%mod;
  }
};

m a;

int main(){}


Compiler output:
a.cc: In constructor 'm::m(ll)':
a.cc:5:13: error: anachronistic old-style base class initializer [-fpermissive]
    5 |   m(ll x=0):(a){
      |             ^
a.cc:5:12: error: unnamed initializer for 'm', which has no base classes
    5 |   m(ll x=0):(a){
      |            ^
Language: C++

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

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

#include "pch.h"
#include <iostream>
#include<math.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main()
{
	int r;
	cin >> r;
	cout << 3 * pow(r, 2) << endl;

}


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

#include <iostream>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main()
{
	int r;
	cin >> r;
	cout << 3 * pow(r, 2) << endl;

}


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

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

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d",&a);
      |   ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("%d\n",a*a*3);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inclide<stdio.h>
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: invalid type argument of unary '*' (have 'int')
    6 |   a = a **3;
      |          ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: invalid type argument of unary '*' (have 'int')
    6 |   a == a **3;
      |           ^~
Language: C

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

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid type argument of unary '*' (have 'int')
    6 |   printf("%d",a**3);
      |                 ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,d;
    cin>>n>>d;
    d=2*d+1;
    if(n%d!=0)
        cout<<(n/d)+1<<endl;
    else if(n%d==0)
    {
        cout<<n/d<<endl;`
    }
}


Compiler output:
a.cc:12:25: error: stray '`' in program
   12 |         cout<<n/d<<endl;`
      |                         ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'r' undeclared (first use in this function)
    5 |   scanf("%d", &r);
      |                ^
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <algorithm>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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 <bits/stdc++.h>

using namespace std;

int main() {
  int r;
  cin >> r;
  int a = 3 * r * r;
  cout << a << '\n';1
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before 'return'
    9 |   cout << a << '\n';1
      |                      ^
      |                      ;
   10 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
using namaspace std;
int main() {
  int a, b;
  cin >> a >> b;
  int d = b * 2 + 1;
  cout << (a + (d-1)) / d << '\n';
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (a + (d-1)) / d << '\n';
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namaspace std;
int main() {
  int a;
  cin >> a;
  cout << a * a * 3 << '\n';
}


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

#include <iostream>

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

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 >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << a * a * 3 << '\n';
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++


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

Compiler output:
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include<iostream> using namespace std;
      |                    ^~~~~
a.cc: In function 'int main()':
a.cc:4:7: 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:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: At global scope:
a.cc:6:10: error: 'R' was not declared in this scope
    6 | int area=R * R * 3; cout<<area<<endl; return 0;
      |          ^
a.cc:6:14: error: 'R' was not declared in this scope
    6 | int area=R * R * 3; cout<<area<<endl; return 0;
      |              ^
a.cc:6:21: error: 'cout' does not name a type
    6 | int area=R * R * 3; cout<<area<<endl; return 0;
      |                     ^~~~
a.cc:6:39: error: expected unqualified-id before 'return'
    6 | int area=R * R * 3; cout<<area<<endl; return 0;
      |                                       ^~~~~~
Language: C++

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


Compiler output:
a.cc:2:11: error: expected initializer before '\U0000ff5b'
    2 | int main()｛
      |           ^~
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d",&r);
      |      ^
a.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
    5 | printf("%d",3＊r＊r);
      |       ^
a.cc:6:1: error: expected unqualified-id before 'return'
    6 | return 0;
      | ^~~~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

#include<stdio.h>
int main（）｛
int r;
scanf（"%d",&r）
printf（"%d",3＊r＊r）;
return 0;
}


Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int r;
      | ^~~
a.cc:4:1: error: 'scanf\U0000ff08' does not name a type
    4 | scanf（"%d",&r）
      | ^~~~~~~
a.cc:6:1: error: expected unqualified-id before 'return'
    6 | return 0;
      | ^~~~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include<iomanip>
#define mins(a,b) a=min(a,b)
#<;sadkljf maxs(a,b) a=max(a,b)
template < typename T > std::string to_string( const T& n )
  {
    std::ostringstream stm ;
    stm << n ;
    return stm.str() ;
  }
using namespace std;

const long long INF=9000000000000000;
const long long mod=1000000007;
typedef long long ll;

int main(){
  ll n,ans=0,k,m=0,x=0,y=0;
  cin>>n;
  cout<<4*n*n<<endl;
  
}


Compiler output:
a.cc:4:2: error: invalid preprocessing directive #<
    4 | #<;sadkljf maxs(a,b) a=max(a,b)
      |  ^
Language: C++

#include<stdio.h>
int main（）｛
int r;
scanf（"%d",&r）;
printf（"%d",3＊r＊r）;
return 0;
}

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int r;
      | ^~~
a.cc:4:1: error: 'scanf\U0000ff08' does not name a type
    4 | scanf（"%d",&r）;
      | ^~~~~~~
a.cc:5:1: error: 'printf\U0000ff08' does not name a type
    5 | printf（"%d",3＊r＊r）;
      | ^~~~~~~~
a.cc:6:1: error: expected unqualified-id before 'return'
    6 | return 0;
      | ^~~~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'cout'
    6 |   cin>>a
      |         ^
      |         ;
    7 |   cout<<3*a*a;
      |   ~~~~
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(){
  int r;
  cin >> r;
  cout<<3*r^2<<endl;
}


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

#inculde <bits/stdc++.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/stdc++.h>
      |  ^~~~~~~
      |  include
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/stdc++.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/stdc++.h>