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

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


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


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


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


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

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

int main() {
  int r;
  cin >> r;
  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: Java

Scanner scan = new Scanner(System.in);
String rStr = scan.next();
int r = Integer.parseInt(rStr);

int S = 3*r*r;
System.out.println(S);

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


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


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

#include<stdio.h>
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
    5 |   cin >> r;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << 3*r**2 << endl;
      |   ^~~~
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
    6 |   cout << 3*r**2 << endl;
      |                     ^~~~
Language: C++


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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'r' was not declared in this scope
    6 |   int p=r ;
      |         ^
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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
      |                  ^~~
Language: C

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

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

#include <stdio.h>

int main(void){
  int n,d;
  scanf("%d %d",&n,&d);
  int m = n/(2d+1);
  if(n%(2d+1)!=0)m++;
  printf("%d",m);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: unable to find numeric literal operator 'operator""d'
    6 |   int m = n/(2d+1);
      |              ^~
a.cc:7:9: error: unable to find numeric literal operator 'operator""d'
    7 |   if(n%(2d+1)!=0)m++;
      |         ^~
Language: C++

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

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

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> r; cout << 3*r*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:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cin >> r; 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 <iostream>
  
int main( )
{
 
  int r;
  cin >> r
  cout<< 3*r*r <<endl;
 
 
  return 0;
}


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

//#define NDEBUG
#include <cstddef>
#include <cstdint>
#include <vector>

namespace n91 {

using i8 = std::int_fast8_t;
using i32 = std::int_fast32_t;
using i64 = std::int_fast64_t;
using u8 = std::uint_fast8_t;
using u32 = std::uint_fast32_t;
using u64 = std::uint_fast64_t;
using isize = std::ptrdiff_t;
using usize = std::size_t;

constexpr usize operator"" _z(unsigned long long x) noexcept {
  return static_cast<usize>(x);
}

class rep {
  const usize f, l;

public:
  class itr {
    friend rep;
    usize i;
    constexpr itr(const usize x) noexcept : i(x) {}

  public:
    void operator++() noexcept { ++i; }
    constexpr usize operator*() const noexcept { return i; }
    constexpr bool operator!=(const itr x) const noexcept { return i != x.i; }
  };
  constexpr rep(const usize first, const usize last) noexcept
      : f(first), l(last) {}
  constexpr itr begin() const noexcept { return itr(f); }
  constexpr itr end() const noexcept { return itr(l); }
};
class revrep {
  const usize f, l;

public:
  class itr {
    friend revrep;
    usize i;
    constexpr itr(usize x) noexcept : i(x) {}

  public:
    void operator++() noexcept { --i; }
    constexpr usize operator*() const noexcept { return i; }
    constexpr bool operator!=(const itr x) const noexcept { return i != x.i; }
  };
  constexpr revrep(usize first, usize last) noexcept : f(--first), l(--last) {}
  constexpr itr begin() const noexcept { return itr(l); }
  constexpr itr end() const noexcept { return itr(f); }
};
template <class T> using vec_alias = std::vector<T>;
template <class T> auto md_vec(const usize n, const T &value) {
  return std::vector<T>(n, value);
}
template <class... Args> auto md_vec(const usize n, Args... args) {
  return std::vector<decltype(md_vec(args...))>(n, md_vec(args...));
}
template <class T> constexpr T difference(const T &a, const T &b) {
  return a < b ? b - a : a - b;
}
template <class T> T scan() {
  T ret;
  std::cin >> ret;
  return ret;
}

} // namespace n91

#include <algorithm>
#include <iostream>
#include <utility>

namespace n91 {

void main_() {
  u32 r;
  std::cin >> r;
  std::cout << static_cast<u32>(3) * r * r << std::endl;
}

} // namespace n91

int main() {
  n91::main_();
  return 0;
}


Compiler output:
a.cc: In function 'T n91::scan()':
a.cc:70:8: error: 'cin' is not a member of 'std'
   70 |   std::cin >> ret;
      |        ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <vector>
  +++ |+#include <iostream>
    5 |
Language: Java

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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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
      |                  ^~~
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:9: error: stray '\342' in program
    5 |   scanf(<U+201C>%d<U+201D>, &r);
      |         ^~~~~~~~
main.c:5:10: error: expected expression before '%' token
    5 |   scanf(“%d”, &r);
      |          ^
main.c:5:12: error: stray '\342' in program
    5 |   scanf(<U+201C>%d<U+201D>, &r);
      |                   ^~~~~~~~
main.c:6:10: error: stray '\342' in program
    6 |   printf(<U+201C>%d<U+201D>, 3*r*r);
      |          ^~~~~~~~
main.c:6:11: error: expected expression before '%' token
    6 |   printf(“%d”, 3*r*r);
      |           ^
main.c:6:13: error: stray '\342' in program
    6 |   printf(<U+201C>%d<U+201D>, 3*r*r);
      |                    ^~~~~~~~
Language: C++


#include <stdio.h>
  
int main(void)
{
 
  float r;
 
  /* 2つ整数を入力 */
 
  /* 掛け算の計算・出力 */
  printf>> =3*r*r >>endl;
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '=' token
   12 |   printf>> =3*r*r >>endl;
      |            ^
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |   printf>> =3*r*r >>endl;
      |                     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  int N,D;
  cin >> N >> D;
  int k = N / (2*D + 1);
  int l = floor(((N % (2*D + 1))+2*D) / (2*D + 1));
  cout << k+l << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'floor' was not declared in this scope
    9 |   int l = floor(((N % (2*D + 1))+2*D) / (2*D + 1));
      |           ^~~~~
Language: Java

import java.util.*;

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

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

#include <iostream>
#include <math.h>
#include <cmath>

using namespace std;

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

   cout << 3*r^2 << endl;

   return 0;
}


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

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


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

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

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

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

Compiler output:
a.cc:7:16: warning: missing terminating ' character
    7 |   cout<<3*r*r<<'\n;
      |                ^
a.cc:7:16: error: missing terminating ' character
    7 |   cout<<3*r*r<<'\n;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: stray '\342' in program
    5 |  scanf(<U+201D>%d<U+201D>,&r);
      |        ^~~~~~~~
main.c:5:9: error: expected expression before '%' token
    5 |  scanf(”%d”,&r);
      |         ^
main.c:5:11: error: stray '\342' in program
    5 |  scanf(<U+201D>%d<U+201D>,&r);
      |                  ^~~~~~~~
main.c:6:9: error: stray '\342' in program
    6 |  printf(<U+201D>%d<U+201D>,3*r*r);
      |         ^~~~~~~~
main.c:6:10: error: expected expression before '%' token
    6 |  printf(”%d”,3*r*r);
      |          ^
main.c:6:12: error: stray '\342' in program
    6 |  printf(<U+201D>%d<U+201D>,3*r*r);
      |                   ^~~~~~~~
Language: C

#include<stdio.h>

int main(int i, char** c){

  int r;
  scanf("%d",%r);
  printf("%d", 3*r*r);
  
  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before '%' token
    6 |   scanf("%d",%r);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: stray '\342' in program
    5 |  scanf(<U+201D>%d<U+201D>,&r);
      |        ^~~~~~~~
main.c:5:9: error: expected expression before '%' token
    5 |  scanf(”%d”,&r);
      |         ^
main.c:5:11: error: stray '\342' in program
    5 |  scanf(<U+201D>%d<U+201D>,&r);
      |                  ^~~~~~~~
main.c:6:9: error: stray '\342' in program
    6 |  printf(<U+201D>%d<U+201D>,3*r*r);
      |         ^~~~~~~~
main.c:6:10: error: expected expression before '%' token
    6 |  printf(”%d”,3*r*r);
      |          ^
main.c:6:12: error: stray '\342' in program
    6 |  printf(<U+201D>%d<U+201D>,3*r*r);
      |                   ^~~~~~~~
Language: C

#include <stdio.h>

int mian()
{
  int r;
  
 scanf("%d",&r);
  
  printf("%d",r*r*3);
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 "pch.h"
#include <iostream>
#include <string>
using namespace std;

int main()
{
	int a,r;
	cin >> r;
	a = 3 * r*r;
	cout << a << 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<bits/stdc++>
using namespace std;
long long n;
int main()
{
  cin>>n;
  n*=n;
  n*=3;
  cout<<n<<endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before '=' token
    5 |   ios_base=sync_with_stdio(false);
      |           ^
a.cc:6:10: error: no matching function for call to 'std::basic_istream<char>::tie(bool)'
    6 |   cin.tie(false);
      |   ~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:299:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]'
  299 |       tie() const
      |       ^~~
/usr/include/c++/14/bits/basic_ios.h:299:7: note:   candidate expects 0 arguments, 1 provided
/usr/include/c++/14/bits/basic_ios.h:311:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]'
  311 |       tie(basic_ostream<_CharT, _Traits>* __tiestr)
      |       ^~~
/usr/include/c++/14/bits/basic_ios.h:311:43: note:   no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'
  311 |       tie(basic_ostream<_CharT, _Traits>* __tiestr)
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

int main() {
	int n, d;
	cin >> n >> d;
	d = d * 2 + 1;
	int ret = n / d;
	if (n % d != 0) {
		ret++;
	}
	cout << ret << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> n >> d;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << ret << endl;
      |         ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |         cout << ret << endl;
      |                        ^~~~
Language: C++


#include "pch.h"
#include <iostream>
#include <string>
using namespace std;

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

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

#include<iostream>

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

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

#inlcude<iostream>

using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'cout'
    9 |   b = 3*a
      |          ^
      |          ;
   10 |   cout<<b<<endl;
      |   ~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <queue>
#include <algorithm>
#include <map>
#include <set>
#include <cmath>
#include <climits>
using namespace std;

#define MOD1097 1000000007

#define ll long long
#define pint pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define mp make_pair
#define pm(first, second) pb(mp(first, second))
#define SPACE " "
#define fpf first.first
#define fps first.second
#define spf second.first
#define sps second.second

#define all(X) (X).begin(), (X).end()

int main(){

	ll r;
	cin >> r;
	cout << a * r * r << endl;

	return 0;
}


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

include <bits/stdc++.h>
using namespace std;
int r,ans;
int main(){
cin>>r;
  cout<<r*r*3<<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:1: error: 'cin' was not declared in this scope
    5 | cin>>r;
      | ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<r*r*3<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<r*r*3<<endl;
      |                ^~~~
Language: C++

int n; 
cin>> n; 
return 3*n*n;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>> n;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'return'
    3 | return 3*n*n;
      | ^~~~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int r,ans;
int main(){
cin>>r;
  cout<<r*r*3<<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:1: error: 'cin' was not declared in this scope
    5 | cin>>r;
      | ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<r*r*3<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<r*r*3<<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:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << 3 * r ^ 2 << endl;
      |                   ~~^~~~~~~
Language: C++

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

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

#include<iostream>

int main(void){
int a;

cin >> a;

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

return 0;
}


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

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

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

var a:longint;
begin
  readln(a);
  write(a*a*3);
end.

Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var a:longint;
      | ^~~
a.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
a.cc:4:8: error: expected constructor, destructor, or type conversion before '(' token
    4 |   write(a*a*3);
      |        ^
a.cc:5:1: error: 'end' does not name a type
    5 | end.
      | ^~~
Language: C++

#include <iostream>
using namespace std;

int main(int argc, const char * argv[]) {
    int r;
    cin >> r;
    
    cout << 3 * a * a << endl;

    return 0;
}


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

include <iostream> 
using namespace std;
main int(){
int r, a ;
cin >> r ;
a = 3*r*r ;

cout << a << '\n' ;

return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc:3:1: error: 'main' does not name a type
    3 | main int(){
      | ^~~~
Language: C++

#include <bits/stdc++.h>
//#include<unordered_map>
#define debug(x) (cout << "#x = " << (x) << endl)
#define ls(x) (x << 1)
#define rs(x) (x << 1 | 1)
//#define mid (l + r >> 1)
#define lowbit(x) (x & -x)
#define Set(x, i) memset(x, i, sizeof x)
#define R register
#define For( i, j, k ) for(R int i = (j); i <= (k); ++i)
#define foR( i, j, k ) for(R int i = (j); i >= (k); --i)
#define Cross( i, j, k ) for(R int i = (j); i; i = (k))using namespace std;
typedef long long ll;
using namespace std;
const ll N = 100011;
const ll Inf = 0x3f3f3f3f3f3f;

namespace IO {

	#define dd ch = getchar()
	inline ll read() {
		ll x = 0; bool f = 0; char dd;
		for (; !isdigit (ch); dd) f ^= (ch == '-');
		for (; isdigit (ch); dd)  x = x * 10 + (ch ^ 48);
		return f? -x: x;
	}
	#undef dd

	inline void write ( ll x ) {
		if (x < 0) putchar ('-'), x = -x;
		if (x > 9) write (x / 10); putchar ( x % 10 | 48 );
	}

	inline void wrn ( ll x ) { write(x); putchar (' '); }

	inline void wln ( ll x ) { write(x); putchar ('\n'); }

	inline void wlnn ( ll x, ll y ) { wrn(x); wln (y); }

}

using namespace IO;

namespace Cesare {
	
	int main() {
		ll a = read();
		return wln(a * a * 3)， 0;
	}
	
}

int main()
{
	return Cesare::main();
}

/*

*/



Compiler output:
a.cc: In function 'int Cesare::main()':
a.cc:48:27: error: void value not ignored as it ought to be
   48 |                 return wln(a * a * 3)， 0;
      |                        ~~~^~~~~~~~~~~
a.cc:48:38: error: expected ';' before '\U0000ff0c'
   48 |                 return wln(a * a * 3)， 0;
      |                                      ^~
      |                                      ;
a.cc:48:38: error: '\U0000ff0c' was not declared in this scope
   48 |                 return wln(a * a * 3)， 0;
      |                                      ^~
Language: C++

#include<iostream>

void main(){
int a;
string b;

cin >> a;

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


}


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string b;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> a;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << 3*a*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:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << 3*a*a << endl;
      |                  ^~~~
      |                  std::endl
/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 mian(void)
{
	int r;
	cin >> r;
	cout << 3 * r*r << endl;
	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<bits/stdc++.h>

using namespace std;


typedef long long ll;

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


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

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

int main(){
	int n;
  cin>>n
    int ans=3*n*n;
  cout<<ans<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'int'
    6 |   cin>>n
      |         ^
      |         ;
    7 |     int ans=3*n*n;
      |     ~~~  
a.cc:8:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#define _GLIBCXX_DEBUG
#include<cmath>
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
vector<int> arr;
stack<int> st;
queue<int> qu;
queue<pair<int,int> > qu2;
priority_queue<int> pq;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define rep2(i,n) for(int i=1; i<=(int)(n); i++)
typedef set<int> set_t;
typedef set<string> set_g;
typedef complex<double> xy_t;
static const int NIL = -1;

int P[10010];
void init(int n){
    for(int i=0;i<n;++i)P[i]=i;
}
int root(int a) {
    if(P[a]==a)return a;
    return (P[a]=root(P[a]));
}
bool is_same_set(int a,int b){
    return root(a) == root(b);//代表元を求める
}
void unite(int a,int b){
    P[root(a)]=root(b);
}//対set,グラフ？

double dot_product(xy_t a, xy_t b) { return (conj(a)*b).real(); }//内積
double cross_product(xy_t a, xy_t b) { return (conj(a)*b).imag(); }//外積
xy_t projection(xy_t p, xy_t b) { return b*dot_product(p,b)/norm(b); }//投影
//対図形

#define mod 1000000007
ll f[2001];
//int n,k とかしておく

ll pw(ll x, ll y){//euclidの互除法より
    ll a= 1;
    while(y){
        if(y&1){//奇数なら
            a = a*x%mod;
        }
        x = x*x%mod;
        y /= 2;
    }
    return a;
}

ll modinv(ll x){//逆元を求める
    return pw(x, mod - 2 );
}

ll comb(int n,int r){
    if(n<r){
        return 0;
    }
    return f[n] * modinv(f[r])%mod*modinv(f[n-r])%mod;
}//対combination

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

Compiler output:
a.cc: In function 'int main()':
a.cc:69:15: error: expected ';' before '}' token
   69 |     return 0;3
      |               ^
      |               ;
   70 | }
      | ~
Language: C++

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

int main()
{
  int N,D;
  sacnf("%d %d",&N,&D);
  printf("%d",int(ceil(N/D)));
  return 0;
}


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

#include <iostrea,>

using namespace std;

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

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

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce 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 /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<<3*a*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:6:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<3*a*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 Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();

        int result = 3 * Math.pow(a);

        System.out.println(result);

    }
}


Compiler output:
Main.java:10: error: method pow in class Math cannot be applied to given types;
        int result = 3 * Math.pow(a);
                             ^
  required: double,double
  found:    int
  reason: actual and formal argument lists differ in length
1 error
Language: C++

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

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

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

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

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

#include <iostream>

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

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

#include<bits/stdc++.h>

using namespace std;

int main() {

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

    return 0;
}


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

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
namespace mp = boost::multiprecision;

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

	cout << 3 * n * n;15

	return 0;
}

Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    7 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Main{

    public static void main(String args[]){

        Scanner scan = new Scanner(System.in);
        Integer n = Integer.parseInt(scan.next());

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

    }
}

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

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


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  int i, j;
  int r;

  cin >> r
  long long int ans = 3 * r * r;

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'long'
    9 |   cin >> r
      |           ^
      |           ;
   10 |   long long int ans = 3 * r * r;
      |   ~~~~     
a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: Java

import java.util.*;
public class Solution{
  public static void main(String s[]){
    Scanner sc = new Scanner(System.in);
 	int r = sc.nextInt();
    long val = 2*r*r;
    System.out.println(val);
    
  }
}

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

#include <iostream>

using namespace std;

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

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

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

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

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

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


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

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

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

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <queue>
#include <stack>

typedef long long ll;

using namespace std;

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:18:21: error: invalid type argument of unary '*' (have 'int')
   18 |         cout << 3*r**2;
      |                     ^~
Language: Java

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

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

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


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

#include <iostream>
#include <vector>
#include <math.h>
using namespace std;

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

    }

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

#include<iostream>
#include<numeric>
#include<math.h>
#include<vector>
#include<algorithm>
#include<set>
#include<map>
#include<queue>
#define fi first
#define se second
#define pb push_back
#define pii pair<int,int>
#define ll long long
#define pll pair<ll,ll>
#define rep(i,from,to) for(int i=from;i<to;i++)
#define repd(i,from,till) for(int i=from;i>=till;i--)
#define waste ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define inf 1e9+1
#define mod 1e9+7
#define inf1 1e18+1
#define pie 3.14159265358979323846
#define N 100005

using namespace std;

int solve(){
    int n;
    cin>>n;
	cout<<3*r*r<<endl;
	return 0;
}
int main(){
    waste;
    int t;
    //cin>>t;
    t=1;
    while(t--){
       	solve();
    }
}


Compiler output:
a.cc: In function 'int solve()':
a.cc:29:17: error: 'r' was not declared in this scope
   29 |         cout<<3*r*r<<endl;
      |                 ^