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

#include <bits/stdc++.h>
#define FASTIO ios::sync_with_stdio(false);cin.tie(0);
#define ADD +
#define SUBTRACT -
#define MULTIPLY *
#define DIVIDE /
#define MOD %
#define INCREMENT(x) ++x
#define DECREMENT(x) --x
#define in(a,b) cin>>a>>b;
#define out(a,b) cout<<a<<endl<<b<<endl;
#define scan(a) scanf("%d",&a);
#define print(a) printf("%d\n",a);
#define scanii(a,b) scanf("%d %d",&a,&b);
#define printii(a,b) printf("%d\n%d\n",a,b);
#define scaniii(a,b,c) scanf("%d %d %d",&a,&b,&c);
#define pub push_back
#define pob pop_back
#define puf push_front
#define pof pop_front
#define ll long long
#define ull unsigned long long
#define sll signed long long
#define pi acos(-1)
#define mod 1000000007
#define TRUE 1
#define FALSE 0
#define ZERO 0
#define MP make_pair
#define F first
#define S second
#define f1(i,a) for(int i=0;i<a;++i)
#define f2(i,a) for(int i=a-1;i>=0;--i)
#define en puts("");
#define elif else if
typedef ll int lli;
typedef sll int slli;
typedef ull int ulli;
const int sz=10000;
using namespace std;

int clue();
int result();
void show();
bool check(int n) {
    for(int i=2;i*i<=n;++i) {
        if(n%i==0)
        return false;
    }
    return true;
}


// bool cmp(pair<int,int>p,pair<int,int>q) {
//     // return p.first>q.first;//descending by first
//     // return p.first<q.first;//ascending by first
//     // return p.second>q.second;//descending by second
//     return p.second<q.second;//ascending by second
// }

bool cmp(int p,int q) {
    return p>q;//descending
    // return p<q;//ascending
}


int main() {

    int t;
    // cin>>t;
    t=1;
    while(t-->0) {
        clue();
    }

    return 0;
}
int clue() {

    int n;
    cin>>n;
    cout<<3*a*a<<endl;
    // ()?cout<<"YES"<<endl:cout<<"NO"<<endl;
    
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std; 
typedef long long ll;
#define pb push_back
#define fi first
#define se second
const ll mod = 1e9+7;
const int N = 2e5+6;
void solve(){
	int r; 
	cin>>r; 
	cout<3*r*r<<endl;
}
int main(){
	ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	int t=1; 
//	cin>>t; 
	while(t--){
		solve();
	}
	return 0;
}


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

a = []
t = int(input())
for i in range(t):
    a.append(int(input()))

for i in range(t):
    b = a[i]
    del a[i]
    print(max(a))
    a.insert(i,b)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
a = []
^
1 error
Language: Java

a = []
t = int(input())
s = ""
for i in range(t):
    a.append(int(input()))

for i in range(t):
    b = a[i]
    del a[i]
    print(max(a))
    a.insert(i,b)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
a = []
^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout < 3*r*r << endl;
      |          ~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cmath>
#include<set>

using namespace std;

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

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




}


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

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef double db;

#define endl "\n"

const int MOD = 1000000007;


int main()
{
    ios::sync_with_stdio(0);cin.tie(0);
    int a;
    cin >> a;
    cout << 3*a*a << endl;		
		
	}
}

Compiler output:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
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:20: error: expected ';' before '}' token
    6 |   cout<<3*r*r<<endl
      |                    ^
      |                    ;
    7 | }
      | ~
Language: C++

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>r;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<ans<<endl;
      |   ^~~~
a.cc:8:14: error: 'endl' was not declared in this scope
    8 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>r;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<ans<<endl;
      |   ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

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

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

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

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

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

#include <stdio.h>


int main () {
	int N;
	scanf("%d", &N);
	
	for(int J = 0; J < N; J++) {
		double b; 
		double p;
		double BP;
		double ABPM;
		scanf("%lf %lf", &b, &p);
		BPM = (60*b)/p;
		ABPM = 60/p;
		printf("%.4lf %.4lf %.4lf\n", BPM-ABPM, BPM, BPM+ABPM);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'BPM' was not declared in this scope; did you mean 'ABPM'?
   14 |                 BPM = (60*b)/p;
      |                 ^~~
      |                 ABPM
Language: C++

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

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

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

mport 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((int)Math.pow(r, 2) * 3);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:7: error: ';' expected
    System.out.println(3*r*r)l
                             ^
Main.java:7: error: ';' expected
    System.out.println(3*r*r)l
                              ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using ii=pair<ll,ll>;
using vi=vector<ll>;

#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define INF (ll)1e18
#define all(x) (x).begin(),(x).end()
#define print(a); for(auto x:a)cout<<x<<" "; cout<<"\n";
#define mset(a); memset(a,0,sizeof(a));

int main(){
	ios_base::sync_with_stdio(0);cin.tie(0);
    ll n;cin>>n;
    cout<<3*a*a<<"\n";
}


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

#include <bits/stdc++.h>
using namespace std;
constexpr long long MOD = 1000000007;
using ll = long long;
int main() {
ll r;
cin >> r;
cout << 3 * a * a << endl;
}


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

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


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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before '}' token
   10 |     cout << 3 * pow(r, 2)
      |                          ^
      |                          ;
   11 | 
   12 | }
      | ~
Language: C++

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



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

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

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

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

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

#include<iostream>
using namespace std;

int main{

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

}

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

#include<stdio.h>
using namespace std;

int main{

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

}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int r;
      |         ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin>>r;
      |         ^~~
a.cc:8:9: error: 'cout' does not name a type
    8 |         cout<<3*r*r<<endl;
      |         ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
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:14: error: expected ')' before numeric constant
    5 | printf("%d\n"3*r*r);
      |       ~      ^
      |              )
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:5:17: error: expected ';' before '{' token
    5 |   scanf("%d",&r){
      |                 ^
      |                 ;
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:7:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <time.h>
#include <iostream>
int main(void)
{

  int a;
  cin >> a;

  cout << a * a * 3 << endl;
}

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

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

Compiler output:
Main.java:6: error: ';' expected
    int sum *= 3;
           ^
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
using ll=long long;
using namespace std;
const int mod=1e9+7;
const ll inf = 1LL << 60;
const ld pi = (acos(-1));
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  
  int  r; cin >> r;
  cout << 3*r*r << endl;
}

Compiler output:
a.cc:6:9: error: 'pair' does not name a type
    6 | typedef pair<int,int> pii;
      |         ^~~~
a.cc:7:9: error: 'pair' does not name a type
    7 | typedef pair<ll,ll> pll;
      |         ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

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

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

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

    for (int i=0; i < N ;i++) {
      a[i] =  sc.nextInt();
      b[i] =  a[i];
    }
    Array.sort(a);

    for (int i=0; i < N ;i++) {
      if(b[i] == a[N-1]){
        System.out.println(a[N-2]);
      }else{
        System.out.println(a[N-1]);
      }
    }
  }
}




Compiler output:
Main.java:13: error: cannot find symbol
    Array.sort(a);
    ^
  symbol:   variable Array
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   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: C++

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

int r;

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


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

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


Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    3 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:3:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    3 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<3*a*a<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<3*a*a<<endl;
      |                ^~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before ':' token
    4 |   int r:
      |        ^
a.cc:6:11: error: 's' was not declared in this scope
    6 |   cout << s <<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:8:18: error: expected primary-expression before ',' token
    8 |   cout << 3*r*r <, endl;
      |                  ^
Language: C++

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

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



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

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;


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


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

#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <utility>
#include <typeinfo>
#include <tuple>
using namespace std;

#define MOD 1000000007
#define INF 1e9+7
#define INF_LONG 1e18
#define rep(i, n) for(int i=0; i<n; ++i)
#define rep1(i, n) for(int i=1; i<=n; ++i)
#define rrep(i, m, n) for(int i=m; i<n; ++i)
#define countof(array) (sizeof(array) / sizeof(array[0]))
typedef long long ll;

#define MAX_N 200000
#define MAX_M 100000
#define MAX_V 100
#define MAX_E 100
#define MAX_Q 100000

int dx[] = {-1, 0, 1, 0};
int dy[] = {0, -1, 0, 1};

int ddx[] = {-1, 0, 1, 0, -1, 1, -1, 1};
int ddy[] = {0, -1, 0, 1, 1, 1, -1, -1};

string as = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
string ab = {"abcdefghijklmnopqrstuvwxyz"};

ll gcd(ll x, ll y) {
  if(y==0) return x;
  else return gcd(y, x%y);
}

ll lcm(ll x, ll y) {
  return (x*y)/gcd(x, y);
}

void yes() {
  cout << "Yes" << endl;
}

void no() {
  cout << "No" << endl;
}

void print_array(int array[], int len) {

  for(int i=0; i<len; ++i) {
    cout << array[i] << endl;
  }

}

ll absolute(ll x) {
  return (x<0)? (-1)*x : x;
}

//g++ AtCoder.cpp -o AtCoder
//AtCoder

//--------------------------



int main() {

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

  return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ')' before 's'
    7 |     printf("%d\n"s);
      |           ~      ^
      |                  )
Language: Java

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


Compiler output:
Main.java:6: error: ';' expected
    System.out.println(n*n*3)
                             ^
1 error
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
using ll long long
const int INF=0x3fffffff;
const ll MOD=1000000007;
const ll MODD=998244353;
#define rrep(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
template<typename T> bool chmax(T &m, const T q) { if (m < q) {m = q; return true;} else return false; }
template<typename T> bool chmin(T &m, const T q) { if (m > q) {m = q; return true;} else return false; }


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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'll'
    3 | using ll long long
      |       ^~
a.cc:5:7: error: 'll' does not name a type
    5 | const ll MOD=1000000007;
      |       ^~
a.cc:6:7: error: 'll' does not name a type
    6 | const ll MODD=998244353;
      |       ^~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  cout<<3*n*nendl;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected unqualified-id before '=' token
    7 |   int and = 3*r*r;
      |           ^
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

import sys

r = int(sys.stdin.readline().rstrip())

def main():
    print(3*r**2)

if __name__ ==  '__main__':
    main()

Compiler output:
a.cc:8:17: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 | if __name__ ==  '__main__':
      |                 ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
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:9: error: expected ';' before 'cout'
    6 |   cin>>r
      |         ^
      |         ;
    7 |     cout<<3*r*r<<endl;
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'cout'
    8 |         e = r*r
      |                ^
      |                ;
    9 |         cout << 3*e;
      |         ~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(s,i, n) for (int i = (int)s; i < (int)(n); i++)
#define pb push_back
typedef long long ll;
  
int main(){
    int r;
    cin>>r;
    cout<<3*r*r<<endl;
    return 0;
}

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

fn read_stdin() -> String {
    use std::io::Read;
    let mut input = String::new();
    std::io::stdin().read_to_string(&mut input).unwrap();
    input
}

fn scan<'a, I: Iterator<Item = &'a str>, T: std::str::FromStr>(tokens: &mut I) -> T {
    tokens.next().unwrap().parse().ok().unwrap()
}

fn main() {
    let input = read_stdin();
    let tokens = &mut input.split_whitespace();
    let r: usize = scan(tokens);
    println!("{}", 3 * r * r);
}


Compiler output:
a.cc:8:9: warning: multi-character literal with 23 characters exceeds 'int' size of 4 bytes
    8 | fn scan<'a, I: Iterator<Item = &'a str>, T: std::str::FromStr>(tokens: &mut I) -> T {
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'fn' does not name a type
    1 | fn read_stdin() -> String {
      | ^~
a.cc:8:1: error: 'fn' does not name a type
    8 | fn scan<'a, I: Iterator<Item = &'a str>, T: std::str::FromStr>(tokens: &mut I) -> T {
      | ^~
a.cc:12:1: error: 'fn' does not name a type
   12 | fn main() {
      | ^~
Language: C++


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

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

<?php
list($A)=sscanf(trim(fgets(STDIN)),"%d");
printf(($A**2)*3);

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:7: error: expected constructor, destructor, or type conversion before '(' token
    3 | printf(($A**2)*3);
      |       ^
Language: Java

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

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

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

int main() {
    
    int a , b; 
    cin >> a >> b;
    cout << int((a　+ 2*b ) / (2* b + 1))<< endl;
    return 0;
}


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

#define rep(i, n) for(int i=0; i < n; i++)
#define reps(i, n) for(int i=1; i <= n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()

using namespace std;
using ll=long long;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   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 | #define rep(i, n) for(int i=0; i < n; i++)
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << 3*r*r;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

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


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

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

    return 0;
}


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

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

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


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

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define yes(n) cout << ((n) ? "yes" : "no"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define VSUM(V) accumulate(ALL(V), 0)
#define MID(a,b,c) (a) < (b) && (b) < (c)
#define MIDe(a,b,c) (a) <= (b) && (b) <= (c)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define Vd vector<double>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b != 0 ? gcd(b, a % b) : a;} //最大公約数
int lcm(int a, int b){return a * b / gcd(a, b);}
string toStrUp(string str){char diff = 'A'-'a';REP(i,str.size()) str[i] += diff;return str;}
string gCh(string str, int key){return str.substr(key,1);}

signed main() {
  RAPID;
  // デフォルト変数定義
  int n=0,m=0,a=0,b=0,d=0,x=0,y=0,z=0;
  double c = 0;
  string s="",t="";
  //

  // ここから
  IN(n);
  OUT(3*r*r);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:9: error: 'r' was not declared in this scope
   68 |   OUT(3*r*r);
      |         ^
a.cc:31:24: note: in definition of macro 'OUT'
   31 | #define OUT(n) cout << n << endl
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    int r;
    cin>>r;
    double ans=3*pow(r,2);
    cout<<ans;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'pow' was not declared in this scope
    6 |     double ans=3*pow(r,2);
      |                  ^~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d", &R);
      |         ^~~~~~~
      |         scanf
Language: C++

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

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

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |   return ;
      |   ^~~~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'r' was not declared in this scope
    6 |   std::cout << 3*r*r << std::endl;
      |                  ^
a.cc:7:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |   return ;
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
#define tii tuple<int,int,int>
signed main(){
  int N; cin>>N;
  int ans==N*N*N*3;
  cout<<ans<<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected initializer before '==' token
   17 |   int ans==N*N*N*3;
      |          ^~
a.cc:18:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

//C
#include <cassert>
//#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>

//ここまで標準include

using namespace std;

long aCb(long a, long b) {
	long out = 1;
	for (long i = 1; i <= b; i++) {
		out = out * (a + 1 - i) / i;
	}
	return out;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:93:9: error: 'in' was not declared in this scope; did you mean 'yn'?
   93 |         in t r;
      |         ^~
      |         yn
a.cc:94:16: error: 'r' was not declared in this scope
   94 |         cin >> r;
      |                ^
Language: C++

#include<iostream<
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 |   int r:
      |        ^
      |        ::
a.cc:4:7: error: 'r' has not been declared
    4 |   int r:
      |       ^
a.cc:5:6: error: qualified-id in declaration before '>>' token
    5 |   cin>>r:
      |      ^~
Language: C

#include <stdio.h>

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


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before 'ans'
    6 |   scanf("%d", &r)
      |                  ^
      |                  ;
    7 | 
    8 |   ans = 3 * r * r;
      |   ~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before 'ans'
    6 |   scanf("%d", &r)
      |                  ^
      |                  ;
    7 | 
    8 |   ans = 3 * r ** 2;
      |   ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:63: error: 'return0' was not declared in this scope
    2 | using namespace std;int main(){int n;cin>>n;cout<<3*n*n<<endl;return0;}
      |                                                               ^~~~~~~
Language: Java

import java.util.*;
public class A_Dodecagon {

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

}


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

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

Compiler output:
main.c: In function 'main':
main.c:2:24: error: 'r' undeclared (first use in this function)
    2 | int main(){scanf("%d",&r);int r;printf("%d",3*r*r);}
      |                        ^
main.c:2:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:24: error: 'r' undeclared (first use in this function)
    2 | int main(){scanf("%d",&r)int r;printf("%d",3*r*r);}
      |                        ^
main.c:2:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:26: error: expected ';' before 'int'
    2 | int main(){scanf("%d",&r)int r;printf("%d",3*r*r);}
      |                          ^~~
      |                          ;
Language: C++

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

int main() {
 int a,b;
  cin>>a;
  cout<<3*a*a
}


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

#include <iostream>

using namespace std;

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

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

r = gets.chomp.to_i
puts 3*r**2

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | r = gets.chomp.to_i
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
main.c:1:5: error: 'gets' undeclared here (not in a function)
    1 | r = gets.chomp.to_i
      |     ^~~~
main.c:2:1: error: expected ',' or ';' before 'puts'
    2 | puts 3*r**2
      | ^~~~
Language: C++

#include <iostream>
#include <cmath >
using namespace std ;
int main (){
int x;
cin >> x;
int  y;
y= pow (x,2)*3;
cout << y;








return 0;
}


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

#include <iostream>
#include <cmath >
using namespace std ;
int main (){
int x;
cin >> x;
double y;
y= pow (x,2)*3;
cout << y;








return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n ; ++i)
#define REP(i,a,b) for(int i=a; i<b; ++i)
using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
//プロトタイプ宣言
int gcd(int , int);
void often(void);
int get_digent(int);


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








































//以下、ライブラリ

int gcd(auto a, auto b) {
  return b ? gcd(b, a%b) : a;
}  //ユークリッドの互除法

void often(void){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}

int get_digent(int x){
  string s;
  s = to_string(x);
  int digent = s.size();
  return digent;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'a' was not declared in this scope
   20 |   cout << 3*a*a << endl;
      |             ^
a.cc: At global scope:
a.cc:64:9: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   64 | int gcd(auto a, auto b) {
      |         ^~~~
a.cc:64:17: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   64 | int gcd(auto a, auto b) {
      |                 ^~~~
Language: C++

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

int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	int a; cin >> r;
	cout << 3*r*r << "\n";
	return 0;
}

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

#include <iostream>
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 <iostream>

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

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

#include<iostream>
using namespace std;

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

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

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

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

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*r*r <<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^