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

public class Main {

	static Scanner sc = new Scanner(System.in);

	static int res = 0;
	static List<int[]> l = new ArrayList<int[]>();

	public static void main(String[] args) throws Exception {

		// setOut();
		String str1=sc.nextLine();
		String str2=sc.nextLine();
		System.out.println(helper(str1,str2));

	}

	private static String helper(String str1, String str2) {
		// TODO Auto-generated method stub
		for(int i=0;i<str1.length();i++){
			if(str1.charAt(i)!=str2.charAt(str2.length()-1-i))
				return "NO";
		}
		return "YES";
	}



}

Compiler output:
Main.java:3: error: cannot find symbol
	static Scanner sc = new Scanner(System.in);
	       ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
	static List<int[]> l = new ArrayList<int[]>();
	       ^
  symbol:   class List
  location: class Main
Main.java:3: error: cannot find symbol
	static Scanner sc = new Scanner(System.in);
	                        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
	static List<int[]> l = new ArrayList<int[]>();
	                           ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: C++


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

#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()

typedef long long ll;

#ifdef LOCAL
  #define debug_echo(e) cin << "L" << __LINE__ << ": " << e
  #define debug_repr(e) cin << "L" << __LINE__ << ": " << #e << " = " << e
#else
  #define debug_echo(e)
  #define debug_repr(e)
#endif

int main() {
  string a, b; cin >> a A>> b;
  if (a[0] == b[2] && a[1] == b[1] && a[2] == b[0]) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: expected ';' before 'A'
   19 |   string a, b; cin >> a A>> b;
      |                        ^~
      |                        ;
Language: C++

//         Jai Saraswati Maa       Om Namah Shivaay        Jai Bhawani
// You have to work hard and keep coding till you get correct output never quit! :-)
// May the force be with you
// Ganpatai Bappa Morya! Mangal Murti Morya!
#include<bits/stdc++.h>
#define sc(x) scanf("%d",&x);
#define scc(x,y) scanf("%d %d",&x,&y);
#define sccc(x,y,z) scanf("%d %d %d",&x,&y,&z);
#define sl(x) scanf("%lld",&x);
#define sll(x,y) scanf("%lld %lld",&x,&y);
#define slll(x,y,z) scanf("%lld %lld %lld",&x,&y,&z);
#define pf(x) printf("%d",x);
#define pfn(x) printf("%d\n",x);
#define pl(x) printf("%lld",x);
#define pln(x) printf("%lld\n",x);
#define st(s) scanf("%s",s);
using namespace std;
int main()
{
    char a,b,c,d,e,f;
    scanf("%c %c %c",&a,&b,&c)
    scanf("%c %c %c",&d,&e,&f)
    if(a==d&&b==e&&c==f)
        printf("YES\n");
    else
        printf("NO\n");
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before 'scanf'
   21 |     scanf("%c %c %c",&a,&b,&c)
      |                               ^
      |                               ;
   22 |     scanf("%c %c %c",&d,&e,&f)
      |     ~~~~~                      
a.cc:25:5: error: 'else' without a previous 'if'
   25 |     else
      |     ^~~~
Language: Java

import core.bitop;
import std.algorithm;
import std.array;
import std.ascii;
import std.container;
import std.conv;
import std.format;
import std.math;
import std.random;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
  string f = readln.chomp;
  string s = readln.chomp;
  auto n = f.length;
  bool flag = true;
  foreach (i; 0..n) {
    flag &= f[i] == s[$ - 1 - i];
  }
  writeln = flag ? "YES" : "NO";
}


Compiler output:
Main.java:21: error: not a statement
  foreach (i; 0..n) {
                ^
Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
void main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:21: error: ')' or ',' expected
  foreach (i; 0..n) {
            ^
Main.java:21: error: ';' expected
  foreach (i; 0..n) {
                  ^
4 errors
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
using ll = long long;

int main(){
  int N;
  cin >> N;
  cout << (int)(floor(sqrt(N))*floor(sqrt(N))) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:23: error: 'sqrt' was not declared in this scope
   24 |   cout << (int)(floor(sqrt(N))*floor(sqrt(N))) << endl;
      |                       ^~~~
a.cc:24:17: error: 'floor' was not declared in this scope
   24 |   cout << (int)(floor(sqrt(N))*floor(sqrt(N))) << endl;
      |                 ^~~~~
Language: C++

#include<iostream>
//#include<CastingInterop.h>
#include<string>
#include<array>
#include<math.h>
#include<sstream>
using namespace std;

int main()
{

	int num1,num3;
	int num2;
	cin >> num1;
	/*num2 = sqrt(num1);
	cout << num2;*/
	/*for (int i = num1; i <= num1;num1-- )*/
	{
		num3 = sqrt(num1);
			if (num3 % 10 != 0)
			{
				
				num3 = sqrt(num1);
				cout << num3 * num3;

			}
			else
			{
				cout << num3 * num3;
			}
}

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

#include <bits/stdc++.h>

typedef long long ll;

using namespace std;

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

    int now = 1;

    for (int i = 1; i < n; i++) {
        if (i * i > n) {
            break;
        }

        now = i * i;
    }

    cout << now << endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: expected '}' at end of input
   21 |     cout << now << endl;
      |                         ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

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

int main() {
  ll n;
  cin>>n;
  ll res=-1;
  for (int i=1; i*i<=n; i++) {
    res=max(res,i*i);
  }
  cout<<res<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'max(ll&, int)'
   10 |     res=max(res,i*i);
      |         ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:10:12: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   10 |     res=max(res,i*i);
      |         ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:10:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   10 |     res=max(res,i*i);
      |         ~~~^~~~~~~~~
Language: C++

#include <iostream> 
#include <stdlib.h> 
#include <string.h> 
using namespace std;
int main() {
    long long x;
    cin >> x;
    long long y = sqrt(x);
    cout << y * y;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'sqrt' was not declared in this scope
    8 |     long long y = sqrt(x);
      |                   ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};

/*  嘘解法
bool squareNumber(int n){
  for (int i = 1; i <= sqrt(n); i++){
    if (i * i == n) return true;
  }
  return false;
}
int main(void){
  int N;
  cin >> N;

  for (int i = N; i >= 1; i--){
    if (squareNumber(i)){
      cout << i << endl;
      return 0;
    }
  }
*/

int main(void){
  int N;
  cin >> N;

  for (int i = 1; i++){
    if (i * i > N){
      cout << (i - 1) * (i - 1) << endl;
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:22: error: expected ';' before ')' token
   32 |   for (int i = 1; i++){
      |                      ^
      |                      ;
Language: C++

#include <iostream>
using namespace;
int main()
{
  int N;
  cin >> N;
  int ans = 0;
  for (int i = 0; i <= N; i++) {
    if (i*i <= N) {
      ans = i;
    } else {
      break;
    }
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
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 >> N;
      |   ^~~
      |   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:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   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:15:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout << ans << 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;

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
template <class T>
T GCD(T a, T b)
{
    T r;
    while (a)
        r = b, b = a, a = r % a;
    return b;
}
template <class T>
T LCM(T a, T b) { return a / GCD(a, b) * b; }

#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repd(i, n) for (ll i = n; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<vi> vvi;
typedef vector<ll> vl;
#define ERASE(x) x.erase(unique(ALL(x)), x.end()); // erase same elements
#define VEC(type, c, n)     \
    std::vector<type> c(n); \
    for (auto &i : c)       \
        std::cin >> i;

// input
#define INIT                          \
    std::ios::sync_with_stdio(false); \
    std::cin.tie(0);
#define VAR(type, ...) \
    type __VA_ARGS__;  \
    MACRO_VAR_Scan(__VA_ARGS__);
template <typename T>
void MACRO_VAR_Scan(T &t)
{
    std::cin >> t;
}
template <typename First, typename... Rest>
void MACRO_VAR_Scan(First &first, Rest &... rest)
{
    std::cin >> first;
    MACRO_VAR_Scan(rest...);
}

// output
template <typename T>
void MACRO_OUT(const T t) { std::cout << t; }

#define OUT(...) MACRO_OUT(__VA_ARGS__);
#define SP std::cout << " ";
#define TAB std::cout << "\t";
#define BR std::cout << "\n";
#define ENDL std::cout << std::endl;

#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define yes() printf("yes\n")
#define no() printf("no\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
    cout << a;
    ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
    cout << a << ' ';
}

ll ans = 0;
bool check = 0;
string s, t;
int N = 3;
vector<int> v(N);
long long a, b, c, d, n;
int x, y;1010
int sum;
char ch;

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// cout << (conditon ? (result:  == 1 ): (==0)) << endl; <- output result of if
// long long 型が表せる値の上限はおよそ 9 × 10＾18 です．
int main()
{
    INIT;
    cin >> n;
    rep(i, n)
    {
        if (i * i <= n)
            ans = i * i;
        else
            break;
    }
    pr(ans);
    return 0;
}


Compiler output:
a.cc:108:10: error: expected unqualified-id before numeric constant
  108 | int x, y;1010
      |          ^~~~
Language: C

#include<stdio.h>
Int main(){
long int n;
Scanf("%ld",&n);
for(int i=0;i<=n;i++){
if(i*i>=n){
If(i*i==n){
Printf("%ld",i*i);
}
else{
Printf("%ld",(i-1)*(i-1));
}
break
}
}
return 0;
}


Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main(){
      | ^~~
      | int
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | Scanf("%ld",&n);
      | ^~~~~
      | scanf
main.c:7:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration]
    7 | If(i*i==n){
      | ^~
main.c:7:11: error: expected ';' before '{' token
    7 | If(i*i==n){
      |           ^
      |           ;
Language: C++

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

int main(){
  cin >> n;
  cout << pow((int)sqrt(n),2) << endl;
}

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

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define res(i,n) for(int i=n;;i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define REV(i,n) for(int i=n-1;i>0;i--)
#define req(i,n,m) for(int i=n;i<m;i++)
#define REQ(i,n,m,l) for(int i=n;i<m;i+=l) 
#define _GLIBCXX_DEBUG
int INF = 1e9 + 7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
    unsigned day;
    if (dow < dow1) dow += 7;
    day = dow - dow1;
    day += 7 * n - 6;
    return day;
}
signed gcd(long long x, long long y) {
    if (y == 0)return x;
    return gcd(y, x % y);
}
signed lcm(long long x, long long y) {
    return x / gcd(x, y) * y;
}
unsigned DayToWeekNumber(unsigned day)
{
    return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
    return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main() {
    int N; cin >> N;
    for (long double i = N; i > 0; i--) {
        if (sqrt(i) == int(sqrt(i))) {
            cout << long long(i) << endl;
            return 0;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:73:21: error: expected primary-expression before 'long'
   73 |             cout << long long(i) << endl;
      |                     ^~~~
Language: C++

import math
def main():
  n = int(input())
  for i in reversed(range(1,n+1)):
    if math.sqrt(i) %1==0:
      print(i)
      break;
main()


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:7: error: expected constructor, destructor, or type conversion at end of input
    8 | main()
      |       ^
Language: C++


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

int main(){
    int n; cin >> n;
    n = sqrt(n);
    cout << n*n << endl;
    
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++


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

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

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++


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

int main(){
    int n; cin >> n;
    cout << sqrt(n) /1 << endl;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

/*
 * cpp_filepath
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> ostream & operator << (ostream & out, vector<T> const & v) {
  for (auto &&a: v) out << a << " "; out << endl; return out;
}
template <class T> void dump(T &a) { cout << a << endl; }
void solve();
int main() { solve(); return 0; }

#include <set>
void solve() {
  int n;
  cin >> n;
  set<int> S;
  for (int i=1,1,33000) {
    S.insert(i*i);
  }
  
  auto it = S.lower_bound(n);
  if (it == S.end()) it--;
  else while (it != S.begin() and *it > n) it--;
  cout << *it << endl;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:27:16: error: expected unqualified-id before numeric constant
   27 |   for (int i=1,1,33000) {
      |                ^
a.cc:27:16: error: expected ';' before numeric constant
   27 |   for (int i=1,1,33000) {
      |                ^
      |                ;
a.cc:27:23: error: expected ';' before ')' token
   27 |   for (int i=1,1,33000) {
      |                       ^
      |                       ;
Language: C++

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

int main(){
  long long;
  cin >> n;
  long long ans=0;
  long long i=1;
  while(ans+i<=n){
    ans+=i;
    i+=2;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: declaration does not declare anything [-fpermissive]
    5 |   long long;
      |        ^~~~
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace std;
using namespace __gnu_pbds;

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define fbo find_by_order
#define ook order_of_key

typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<int> vi;
typedef long double ld;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;

const long long mod = 1000000007;
const long long inf = 1e18;

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);
    ll n;
    cin>>n;
    for(int i=1;;i++){
        if(i*i=n){
            cout<<i*i<<endl;
        }
        else if(i*i>n){
            cout<<(i-1)*(i-1)<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: lvalue required as left operand of assignment
   29 |         if(i*i=n){
      |            ~^~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
 double a;
  cin>>a;
  out((floor(sqrt(a))*floor(sqrt(a)));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:98:38: error: expected ')' before ';' token
   98 |   out((floor(sqrt(a))*floor(sqrt(a)));
      |      ~                               ^
      |                                      )
Language: C

#include <stdio.h>
int main(){
  int N;
  scanf("%d", &N);
  long long i = 1;
  long long ans = 0;
  while(i * i <= N){
    ans = i * i;
    i++
  }
  printf("%lld\n", ans);
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |   }
      |   ~
Language: C

#include <stdio.h>
int main(){
  int N;
  scanf("%d", &N);
  long long i = 1;
  long long ans = 0;
  while(i * i <= N){
    ans = i * i;
    i++
  }
  printf("%d\n", ans);
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |   }
      |   ~
Language: C++

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

int main(){
  long long n,at=-1;
  cin>>n;
  for(int i=1;i<=n;i++){
    if(i*i<=n){
      at=max(at,i*i);
    }
  }
  cout<<at<<endl;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no matching function for call to 'max(long long int&, int)'
    9 |       at=max(at,i*i);
      |          ~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:9:13: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |       at=max(at,i*i);
      |          ~~~^~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:9:13: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |       at=max(at,i*i);
      |          ~~~^~~~~~~~
Language: C++

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

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

  int Ans = 0;

  rep (i, 1, N) {
    if (i*i > N) {
      Ans = (i-1)*(i-1);
      break;
  }

  cout << Ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

int main() {
  ll N;
  cin >> N;
  for (ll i = N; i >= 0; i--) {
    if (i % (sqrt(i) * sqrt(i)) == 0) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid operands of types 'll' {aka 'long long int'} and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
   10 |     if (i % (sqrt(i) * sqrt(i)) == 0) {
      |         ~ ^ ~~~~~~~~~~~~~~~~~~~
      |         |            |
      |         |            __gnu_cxx::__enable_if<true, double>::__type {aka double}
      |         ll {aka long long int}
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  ll N;
  cin >> N;
  for (ll i = N; i >= 0; i--) {
    if (i % (sqrt(i) * sqrt(i)) == 0) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll N;
      |   ^~
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:6:10: error: expected ';' before 'i'
    6 |   for (ll i = N; i >= 0; i--) {
      |          ^~
      |          ;
a.cc:6:18: error: 'i' was not declared in this scope
    6 |   for (ll i = N; i >= 0; i--) {
      |                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'sqrt' was not declared in this scope
    7 |         cout << floor(sqrt(n))*floor(sqrt(n)) << endl;
      |                       ^~~~
a.cc:7:17: error: 'floor' was not declared in this scope
    7 |         cout << floor(sqrt(n))*floor(sqrt(n)) << endl;
      |                 ^~~~~
Language: C++

#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 <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 <regex>
#define REP(i,n) for(int i = 0; i <= n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
#define YesorNo(a) printf(a?"Yes\n":"No\n")
#define _LIBCPP_DEBUG 0
using namespace std;
int64_t MOD = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  REP(i,n) {
    if(i*i > n) { rcout << (i-1)*(i-1) << endl; return 0; }
  }
  return 0;
}
//templete by private_yusuke

Compiler output:
a.cc: In function 'int main()':
a.cc:66:19: error: 'rcout' was not declared in this scope
   66 |     if(i*i > n) { rcout << (i-1)*(i-1) << endl; return 0; }
      |                   ^~~~~
Language: C++

#include<iosream>
using namespace std;
int main(){
  long long int n,i=1,ans=0;
  cin>>n;
  while(1){
    long long int s=i*i;
    if(s>n) break;
    else ans=s;
    i++;
  }
  cout<<ans<<endl;
  return 0;
}

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

#include <stdio.h>
 
int main(void)
{
    int n,a={0},x,maxi;
      
    scanf("%d",&n);
   
    max=0;
    for(i=0;i<n;i++){
        a=i*i;
        if(max<=a) {x=max; max=a;}
    }
  
    printf("%d\n",max);
    
    return 0;
}  

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'max' undeclared (first use in this function); did you mean 'maxi'?
    9 |     max=0;
      |     ^~~
      |     maxi
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<n;i++){
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected identifier or '(' before ',' token
    5 |     int n,a={0},,maxi;
      |                 ^
main.c:9:5: error: 'max' undeclared (first use in this function)
    9 |     max=0;
      |     ^~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<n;i++){
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'max' undeclared (first use in this function)
    9 |     max=0;
      |     ^~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int ans = 1;
  while (ans * ans <= n) {
    ans++;
  }
  ans--;
  cout << ans * ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   while (ans * ans <= n) {
      |                       ^
      |                       yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long N;
   for (int i=0;i<100000) {if (i*2<=N && (i+1)*2>N) {cout << i*2 << endl;}} 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before ')' token
    6 |    for (int i=0;i<100000) {if (i*2<=N && (i+1)*2>N) {cout << i*2 << endl;}}
      |                         ^
      |                         ;
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	int n;
	cin >> n;
	for (int i = n;i > 0;--i) {
		double i2 = sqrt(i) * 10;
		if (i2 % double(10) == 0) {
			cout << i << endl;
			return 0;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:24: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   65 |                 if (i2 % double(10) == 0) {
      |                     ~~ ^ ~~~~~~~~~~
      |                     |    |
      |                     |    double
      |                     double
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	int n;
	cin >> n;
	for (int i = n;i > 0;--i) {
		double i2 = sqrt(i) * 10;
		if (i2 % 10 == 0) {
			cout << i << endl;
			return 0;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:24: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   65 |                 if (i2 % 10 == 0) {
      |                     ~~ ^ ~~
      |                     |    |
      |                     |    int
      |                     double
Language: C++

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

int main()
{
int sq, N;
cout<<"Enter N value"<<endl;
cin>>N;
sq=int sqrt(N);
return sq*sq;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: expected primary-expression before 'int'
   10 | sq=int sqrt(N);
      |    ^~~
Language: C

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

     float n;

    scanf("%f",&n);
    
    
if(n>=1 && n<=pow(10,9) && n=(long long int)n){
    for(int i=1; i<(long long int)n;i++){
            
        if((long long int)n==2){
            printf("1");
            exit(0);
        }
        if(i==sqrt((long long int)n)){
            printf("%d",(int)pow(i,2));
            exit(0);
        }

        else if(i>sqrt((long long int)n)){
            printf("%d",(int)pow(i-1,2));
            exit(0);
        }
    }
}

}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: lvalue required as left operand of assignment
   11 | if(n>=1 && n<=pow(10,9) && n=(long long int)n){
      |                             ^
Language: C

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

     long long int n;
float m;
    scanf("%f",&m);
    
    n = (long long int)m;
    
if(n>=1 && n<=pow(10,9) && m=(float)n){
    for(int i=1; i<n;i++){
            
        if(n==2){
            printf("1");
            exit(0);
        }
        if(i==sqrt(n)){
            printf("%d",(int)pow(i,2));
            exit(0);
        }

        else if(i>sqrt(n)){
            printf("%d",(int)pow(i-1,2));
            exit(0);
        }
    }
}

}


Compiler output:
main.c: In function 'main':
main.c:12:29: error: lvalue required as left operand of assignment
   12 | if(n>=1 && n<=pow(10,9) && m=(float)n){
      |                             ^
Language: C

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(){
{
     int n,max=1;
    scanf("%d",&n);
    
    for(int i=1; i<n;i++){
        if(pow(i,2)>max)
            max= pow(i,2);
        
        if(pow(i,2)>n){
            max=  pow(i-1,2);
            exit(0);
        
        }
    }

}


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


import java.util.*;
public class Solution{

public static void main(String []a)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N");
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}
}

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


public static void main(String []a)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N);
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}


Compiler output:
Main.java:5: error: unclosed string literal
System.out.println("Enter the number N);
                   ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String []a)
              ^
  (use --enable-preview to enable unnamed classes)
2 errors
Language: Java


int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);



Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
int num=0;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
for(int i=0;i<=N/2;i++)
^
Main.java:3: error: class, interface, enum, or record expected
for(int i=0;i<=N/2;i++)
            ^
Main.java:3: error: class, interface, enum, or record expected
for(int i=0;i<=N/2;i++)
                   ^
Main.java:7: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

public class Solution{

public static void main(String []a)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N");
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}
}

Compiler output:
Main.java:1: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Solution
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class Solution
3 errors
Language: Java

Public class Solution{

public static void main(String []a)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N");
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public class Solution{
^
1 error
Language: Java

import java.util.*;
public class Solution{

public static void main(String []arg)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N);
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}
}

Compiler output:
Main.java:7: error: unclosed string literal
System.out.println("Enter the number N);
                   ^
1 error
Language: Java

Public class Solution{

public static void main(String []a)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number N);
int N = sc.nextInt();
int num=0;
for(int i=0;i<=N/2;i++)
{
if(i*i<=N)
num=i*i;
}
System.out.println("The maximun square is "+num);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public class Solution{
^
Main.java:6: error: unclosed string literal
System.out.println("Enter the number N);
                   ^
2 errors
Language: C++

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

int main() {
	ll n;
	ll temp;
	ll ans;
	ll max=0;
	cin>>n;
	for(double i=1;i<=n;i++)
	{
	    double square = sqrt(i);
	    ans = square*10;
	    //cout<<ans<<" ";
	    
	    if((ans)%10 ==0)
	    {
	        temp = i;
	    }
	    if(temp>max){
	        max = temp;
	        
	        
	    }
	}
	cout<<endl<<max<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: 'sqrt' was not declared in this scope
   14 |             double square = sqrt(i);
      |                             ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int a=floor(sqrt(n));
    cout<<a*a;
    return 0;\\
11


Compiler output:
a.cc:9:14: error: stray '\' in program
    9 |     return 0;\\
   10 | 11
a.cc: In function 'int main()':
a.cc:10:3: error: expected ';' at end of input
   10 | 11
      |   ^
      |   ;
a.cc:10:3: error: expected '}' at end of input
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
int i,n,g;
float f;
scanf("%d",&n);
for(i=n;i>0;i--)
{
f=sqrt(i)
g=(int)f;
if(f==g)
{
printf("%d",i);
break;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:10: error: expected ';' before 'g'
   10 | f=sqrt(i)
      |          ^
      |          ;
   11 | g=(int)f;
      | ~
Language: C

#include <stdio.h>
#include <math.h>
 
int main()
{
    int num;
    int iVar;
    float fVar;
  
    printf("Enter an integer number: ");
    scanf("%d",&num);
  for(i=num;i<=1;i--)
{
    fVar=sqrt((double)num);
    iVar=fVar;
 
    if(iVar==fVar)
   {
        printf("%d ",num);
   break;
   }
 }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:7: error: 'i' undeclared (first use in this function)
   12 |   for(i=num;i<=1;i--)
      |       ^
main.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
int i=0, n,f=0;
cin>>n;
while(f==0)
{
if(((i*i)<=n)&&((i+1)*(i+1)>n))
{
cout<<i*i;
f=1;
goto x;
}
}
x:
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<stdio.h>
#include<math.h>
int main()
{

int a,i;
scanf("%d",&a);
float fvar;
int ivar;
for(i=a;i<=1;i--)
{
fVar=sqrt((double)i);
ivar=fvar;
if(fvar=ivar)
printf("%d",i);
break;
}

}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: 'fVar' undeclared (first use in this function); did you mean 'fvar'?
   12 | fVar=sqrt((double)i);
      | ^~~~
      | fvar
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int a;
scanf("%d",&a);
float fvar;
int ivar;
for(i=a;i<=1;i--)
{
fVar=sqrt((double)i);
ivar=fvar;
if(fvar=ivar)
printf("%d",i);
break;
}

}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'i' undeclared (first use in this function)
   10 | for(i=a;i<=1;i--)
      |     ^
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:1: error: 'fVar' undeclared (first use in this function); did you mean 'fvar'?
   12 | fVar=sqrt((double)i);
      | ^~~~
      | fvar
Language: C


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

int a;
scanf("%d",a);
float fvar;
int ivar;
for(i=a;i<=1;i--)
{
fVar=sqrt((double)i);
ivar=fvar;
if(fvar=ivar)
printf("%d",i);
break;
}

}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'i' undeclared (first use in this function)
   11 | for(i=a;i<=1;i--)
      |     ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:1: error: 'fVar' undeclared (first use in this function); did you mean 'fvar'?
   13 | fVar=sqrt((double)i);
      | ^~~~
      | fvar
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
int i=0, n,f=0;
cin>>n;
while(f==0)
{
if(((i*i)<=n)&&((i+1)*(i+1)>n))
{
cout<<i*i;
f=1;
goto x;
}
i++;
}
x:
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()
{ 
     long int n;s
      scanf("%ld",&n);
     long int i,ans=0,num=0;
  for(i=n;i>=1;--i)
  {
     ans=sqrt(i);
     if((ans*ans)==i)
     { num=i;
        break;
     }
  }
  
  printf("%ld",num);
                
}

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

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{ 
     long int n;s
      scanf("%ld",&n);
     long int i,ans=0,num=0;
  for(i=1;i<=n;++i)
  {
     ans=sqrt(i);
     if((ans*ans)==i)
         num=i;
  }
  
  printf("%ld",num);
                
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 's' was not declared in this scope
    7 |      long int n;s
      |                 ^