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

import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int num = Integer.parseInt(a+b);
		boolean flg = flase;
		for(int i = 1; i < num / 2; i++){
			if(i + i == num){
				flg = true;
				break;
			}
		}
		System.out.println(flg ? "Yes" : "No");
	}
}


Compiler output:
Main.java:9: error: cannot find symbol
		boolean flg = flase;
		              ^
  symbol:   variable flase
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define REP1(i, n) for(int i = 1; i <= (n); i++)
#define REPD(i,a,b) for (int i=(a);i<=(b);i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef set<int> si;
typedef vector<si> vsi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<int, int> pi;
typedef queue<int> qi;
typedef queue<pi> qpi;
typedef pair<ll, ll> pll;
typedef queue<pll> qpll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
const int mod = 1000000007;
const int INF = 1001001001;
// 小数点　<< fixed << setprecision(0) <<
// sort降順　sort(ALL(),greater<int>());
// 円周率　M_PI
// 文字判定　isupper islower
// 文字変換　
// 順列　do {} while(next_permutation(ALL(X)));
// 最大値　LLONG_MAX
// a内でx以上　auto iter = lower_bound(ALL(a), x);
// a内でxより大きい　auto iter = upper_bound(ALL(a), x);
int dx[8] = {1, 0, -1, 0, 1, 1, -1, -1};
int dy[8] = {0, 1, 0, -1, 1, -1, 1, -1};
struct edge {
    int from; //出発点
    int to;   //到達点
    int cost; //移動コスト
};
typedef struct edge se;
typedef vector<edge> ve;
unsigned Euclidean_gcd(unsigned a, unsigned b) {
  if(a < b) return Euclidean_gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

vpll PrimeFactorization(ll n) {
  vpll res;
  for (ll i=2; i*i<=n; i++) {
    if(n%i!=0) continue;
    ll ex=0;
    while(n%i==0) {
      ex++;
      n/=i;
    }
    res.push_back(pll(i,ex));
  }
  if(n!=1) res.push_back(pll(n,1));
  return res;
}

int main() {
  int a;
  char b[3];
  cin >> a >> b;
  int n=strlen(b);
  int x=pow(10,n)*a;
  REP(i,n) {
    x+=(b[i]-'0')*pow(10,n-1-i);
  }
  if(x%sqrt(x)==0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:78:7: error: invalid operands of types 'int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
   78 |   if(x%sqrt(x)==0) cout << "Yes" << endl;
      |      ~^~~~~~~~
      |      |     |
      |      int   __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define REP1(i, n) for(int i = 1; i <= (n); i++)
#define REPD(i,a,b) for (int i=(a);i<=(b);i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef set<int> si;
typedef vector<si> vsi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<int, int> pi;
typedef queue<int> qi;
typedef queue<pi> qpi;
typedef pair<ll, ll> pll;
typedef queue<pll> qpll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
const int mod = 1000000007;
const int INF = 1001001001;
// 小数点　<< fixed << setprecision(0) <<
// sort降順　sort(ALL(),greater<int>());
// 円周率　M_PI
// 文字判定　isupper islower
// 文字変換　
// 順列　do {} while(next_permutation(ALL(X)));
// 最大値　LLONG_MAX
// a内でx以上　auto iter = lower_bound(ALL(a), x);
// a内でxより大きい　auto iter = upper_bound(ALL(a), x);
int dx[8] = {1, 0, -1, 0, 1, 1, -1, -1};
int dy[8] = {0, 1, 0, -1, 1, -1, 1, -1};
struct edge {
    int from; //出発点
    int to;   //到達点
    int cost; //移動コスト
};
typedef struct edge se;
typedef vector<edge> ve;
unsigned Euclidean_gcd(unsigned a, unsigned b) {
  if(a < b) return Euclidean_gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

vpll PrimeFactorization(ll n) {
  vpll res;
  for (ll i=2; i*i<=n; i++) {
    if(n%i!=0) continue;
    ll ex=0;
    while(n%i==0) {
      ex++;
      n/=i;
    }
    res.push_back(pll(i,ex));
  }
  if(n!=1) res.push_back(pll(n,1));
  return res;
}

int main() {
  char a,b;
  cin >> a >> b;
  int n=strlen(b);
  int x=pow(10,n)*(a-'0');
  REP(i,n) {
    x+=(b[i]-'0')*pow(10,n-1-i);
  }
  if(x%sqrt(x)==0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:72:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   72 |   int n=strlen(b);
      |                ^
      |                |
      |                char
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:75:10: error: invalid types 'char[int]' for array subscript
   75 |     x+=(b[i]-'0')*pow(10,n-1-i);
      |          ^
a.cc:77:7: error: invalid operands of types 'int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
   77 |   if(x%sqrt(x)==0) cout << "Yes" << endl;
      |      ~^~~~~~~~
      |      |     |
      |      int   __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define REP1(i, n) for(int i = 1; i <= (n); i++)
#define REPD(i,a,b) for (int i=(a);i<=(b);i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef set<int> si;
typedef vector<si> vsi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<int, int> pi;
typedef queue<int> qi;
typedef queue<pi> qpi;
typedef pair<ll, ll> pll;
typedef queue<pll> qpll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
const int mod = 1000000007;
const int INF = 1001001001;
// 小数点　<< fixed << setprecision(0) <<
// sort降順　sort(ALL(),greater<int>());
// 円周率　M_PI
// 文字判定　isupper islower
// 文字変換　
// 順列　do {} while(next_permutation(ALL(X)));
// 最大値　LLONG_MAX
// a内でx以上　auto iter = lower_bound(ALL(a), x);
// a内でxより大きい　auto iter = upper_bound(ALL(a), x);
int dx[8] = {1, 0, -1, 0, 1, 1, -1, -1};
int dy[8] = {0, 1, 0, -1, 1, -1, 1, -1};
struct edge {
    int from; //出発点
    int to;   //到達点
    int cost; //移動コスト
};
typedef struct edge se;
typedef vector<edge> ve;
unsigned Euclidean_gcd(unsigned a, unsigned b) {
  if(a < b) return Euclidean_gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

vpll PrimeFactorization(ll n) {
  vpll res;
  for (ll i=2; i*i<=n; i++) {
    if(n%i!=0) continue;
    ll ex=0;
    while(n%i==0) {
      ex++;
      n/=i;
    }
    res.push_back(pll(i,ex));
  }
  if(n!=1) res.push_back(pll(n,1));
  return res;
}

int main() {
  char a,b;
  cin >> a >> b;
  int n=strlen(b);
  int x=pow(10,n)*(a-'0');
  REP(i,n) {
    x+=b[i]*pow(10,n-1-i);
  }
  if(x%sqrt(x)==0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:72:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   72 |   int n=strlen(b);
      |                ^
      |                |
      |                char
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:75:9: error: invalid types 'char[int]' for array subscript
   75 |     x+=b[i]*pow(10,n-1-i);
      |         ^
a.cc:77:7: error: invalid operands of types 'int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
   77 |   if(x%sqrt(x)==0) cout << "Yes" << endl;
      |      ~^~~~~~~~
      |      |     |
      |      int   __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C

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

int main(void)
{
        int i,s=0,n;
        char a[100],b[100];

        scanf("%s%s",a,b);

        strcat(b,a);
        n=strlen(b);
        for(i=0;i<=l;i--)
                s+=(b[i]-'0')*pow(10,l-i);
        for(i=1;i<=1000;i++){
                if(i*i==s){
                        printf("Yes\n");
                        return 0;
                }
        }

        printf("No\n");
        return 0;
}


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

import sys
import math
input = sys.stdin.readline

a, b = input().split()
n = int(a + b)

cond = math.sqrt(n).is_integer()
print("Yes" if cond else "No")


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

using ll=long long;
using namespace std;

int main(){
    string a,b;
    cin>>a>>b;
    string n=a+b;
    
    int num=stoi(n);
    
    long Sdouble ans=sqrt(num);
    if(ans*ans==num) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected initializer before 'ans'
   14 |     long Sdouble ans=sqrt(num);
      |                  ^~~
a.cc:15:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |     if(ans*ans==num) cout<<"Yes"<<endl;
      |        ^~~
      |        abs
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    std::string c = a + b;
    a = sqrt(c);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |     std::string c = a + b;
      |                     ~~^~~
a.cc:8:9: error: 'sqrt' was not declared in this scope
    8 |     a = sqrt(c);
      |         ^~~~
Language: C++

#include<iostream>
int main(){
  int a,b,c;
  std::cin>>a>>b;
  if(b<10)c=a*10+b;
  else if(b<100)c=a*100+b;
  else c=a*1000*b;
  for(int i=1;i<1000;i++){
    if(c==i*i){
      break;
      std::cout<<"Yes"<<std::endl;
    }
    if(i==999)std::cout<<"No"<<std::endl;
  }
  retrun 0;
}

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

#include <iostream>
#include <string>
#incude <sstream>
#include <math.h>
using namespace std;
int main()
{
	int n, d;
    string a, b, c, s;
    istringstream ss;
  
  	cin >> a >> b;
	c = a+b;
  	ss = istringstream(c);
  	ss >> n;
  	d = round(sqrt(n));
	if (n == d^2){
      s = "Yes";
    }else {
      s = "No";
    }
  	cout << s << endl;
    return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incude; did you mean #include?
    3 | #incude <sstream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:19: error: aggregate 'std::istringstream ss' has incomplete type and cannot be defined
   10 |     istringstream ss;
      |                   ^~
a.cc:14:29: error: invalid use of incomplete type 'std::istringstream' {aka 'class std::__cxx11::basic_istringstream<char>'}
   14 |         ss = istringstream(c);
      |                             ^
In file included 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/iosfwd:102:11: note: declaration of 'std::istringstream' {aka 'class std::__cxx11::basic_istringstream<char>'}
  102 |     class basic_istringstream;
      |           ^~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main ()
{
	int s ,t;
	cin>>s>>t;
	int x = stoi (s+ t );
	for ( int i =1; i <=1000; i ++){
		if ( i*i == x ){
		puts (" Yes ");
		return 0;
	}
	}
	puts (" No ");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: no matching function for call to 'stoi(int)'
    9 |         int x = stoi (s+ t );
      |                 ~~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from 'int' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from 'int' to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;

int main (){
string s ,t;
cin >>s > >t;
int x = stoi (s+ t );
for ( int i =1; i <=1000; i ++){
if ( i*i == x ){
puts (" Yes ");
return 0;
}
}
puts (" No ");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '>' token
    6 | cin >>s > >t;
      |           ^
Language: Java

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





public class Binjo {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    static boolean [][] grid;
    static int [] bishopr = {-1,1,-1,1};
    static int [] bishopc = {1,1,-1,-1};
    static long H,W,cnt;
    public static void main(String args[]) throws IOException {
        String   A = in.next();
        String B =in.next();
        A = A+A;
        B = A+B;
        int a = Integer.parseInt(A);
        int b = Integer.parseInt(B);
        if(a==b){
            out.println("Yes");
        }
        else{
            out.println("No");
        }
        out.flush();
        }   

        static boolean isEven(long a) {
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
    

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

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

int main() {
  int A,B;
  cin >> A >> B;
  if(B < 10){
    int C = A * 10 + B;
    cin >> C;
  }
  
  if(B < 100){
    int C = A * 100 + B;
    cin >> C;
  }
  
  if(B == 100){
    int C = A * 1000 + B;
    cin >> C;
  }
  
  for(int i = 0;i < 4000;i++){
    if(i * i == C){
      cout << "Yes" << endl;
    break;
    }
    if(i == 4000){
      cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'C' was not declared in this scope
   23 |     if(i * i == C){
      |                 ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
    ll a,b;
    cin>>a>>b;
    ll num=100*a+b;
    rep(i,1,101){
        if(i*i==num){cout<<"Yes"<<endl;return 0;}
    }
    cout << "No" << endl;
    return 0;


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

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

int main(){
    ll a,b
    cin>>a>>b;
    ll num=100*a+b;
    rep(i,1,101){
        if(i*i==num){cout<<"Yes"<<endl;return 0;}
    }
    cout << "No" << endl;
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'cin'
    8 |     cin>>a>>b;
      |     ^~~
a.cc:9:18: error: 'b' was not declared in this scope
    9 |     ll num=100*a+b;
      |                  ^
a.cc:14:14: error: expected '}' at end of input
   14 |     return 0;
      |              ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

int main(){
  string a,b;
  cin>>a>>b;
  int N=(stoi(a+b));
  if(((double)pow(N,0.5))%1.0==0)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |   if(((double)pow(N,0.5))%1.0==0)
      |      ~~~~~~~~~~~~~~~~~~~~^~~~
      |       |                   |
      |       double              double
Language: C++

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

int main(){
  string a,b;
  cin>>a>>b;
  int N=(stoi(a+b));
  if(pow(N,0.5)%1==0)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    8 |   if(pow(N,0.5)%1==0)
      |      ~~~~~~~~~~^~
      |         |       |
      |         |       int
      |         __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
 int a,b;
 cin>>a>>b;
 if(b==100){
   int X=a*1000+b;
 }
 if(b<100){
   int X=a*100+b;
 }
 for(int i=1;i<=1000;i++){
   if(i*i==X){
     cout<<"Yes"<<endl;
     return 0;
   }
 }
  cout<<"No"<<endl;
}
 
   

     
        
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'X' was not declared in this scope
   14 |    if(i*i==X){
      |            ^
Language: C++

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

int main() {
 int a,b;
 cin>>a>>b;
 if(b==100){
   int X=a*1000+b;
 }
 else{
   int X=a*100+b;
 }
 for(int i=1;i<=1000;i++){
   if(i*i==X){
     cout<<"Yes"<<endl;
     return 0;
   }
 }
  cout<<"No"<<endl;
}
 
   

     
        
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'X' was not declared in this scope
   14 |    if(i*i==X){
      |            ^
Language: C++

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

int main (){
string s ,t;
cin >>s > >t;
int x = stoi (s+ t );
for ( int i =1; i <=1000; i ++){
if ( i*i == x ){
puts (" Yes ");
return 0;
}
}
puts (" No ");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '>' token
    7 | cin >>s > >t;
      |           ^
Language: C++

int main (){
string s ,t;
cin >>s > >t;
int x = stoi (s+ t );
for ( int i =1; i <=1000; i ++){
if ( i*i == x ){
puts (" Yes ");
return 0;
}
}
puts (" No ");

Compiler output:
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
    2 | string s ,t;
      | ^~~~~~
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin >>s > >t;
      | ^~~
a.cc:3:7: error: 's' was not declared in this scope
    3 | cin >>s > >t;
      |       ^
a.cc:3:11: error: expected primary-expression before '>' token
    3 | cin >>s > >t;
      |           ^
a.cc:3:12: error: 't' was not declared in this scope
    3 | cin >>s > >t;
      |            ^
a.cc:4:9: error: 'stoi' was not declared in this scope
    4 | int x = stoi (s+ t );
      |         ^~~~
a.cc:7:1: error: 'puts' was not declared in this scope
    7 | puts (" Yes ");
      | ^~~~
a.cc:11:1: error: 'puts' was not declared in this scope
   11 | puts (" No ");
      | ^~~~
a.cc:11:15: error: expected '}' at end of input
   11 | puts (" No ");
      |               ^
a.cc:1:12: note: to match this '{'
    1 | int main (){
      |            ^
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b;
  
  if (b >= 10) {
    c = 100 * a + b;
  }else {
    c = 10 * a + b;
  }
  int i;
  while ( (c / i == c % i) || c == i)){
    i++;
  }
    if (i == c) {
      cout << "No" << endl;
    } else {
	  cout << "Yes" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:38: error: expected primary-expression before ')' token
   14 |   while ( (c / i == c % i) || c == i)){
      |                                      ^
Language: C

#include <stdio.h>
int main(){
	int a,b;
	int num;
	int flag = 0;
	scanf("%d %d",&a,&b);
	if(b == 100)
		num a * 1000 + b;
	else if(b>=10)
		num = a * 100 + b;
	else
		num = a * 10 + b;
	for(int i=0;i<=100;i++){
		if(i*i==num)
			flag = 1;
	}
	if(flag == 1)
		printf("Yes");
	else
		printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected ';' before 'a'
    8 |                 num a * 1000 + b;
      |                    ^~
      |                    ;
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  int c;
  
  int pro = 1;
  for (int i = 0; i < 3; i++) {
    pro *= 10;
    if (b / pro == 0) {
      c = a * pro + b;
      break;
    }
  }
  
  for (int i = 1; i < 321; i++) {
    if (c == i * i) {
      cout << "Yes" << endl;
      break;
    }
    else if (i == 320) {
      cout << "No" << endl;
    }
}


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

#include <bits/stdc++.h>
using namespace std;
//型に気を付けよう
//a=61
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long  ll;
typedef long double  ld;
typedef pair<int,int> pairii;
const double pi=3.1415926535;
const ll  mod=1000000007;
//桁数指定　cout << fixed << setprecision(2)
int main() {
  int a,b,x;
  cin>>a>>b;
  if(b<10)x=10*a+b;
  else if(b==100)x=1000*a+b;
  else x=100*a+b;
  rep(i,2000){
    if(i*i==x){cout<<"Yes"<<endl;return 0;
  }
  cout<<"No"<<endl;
}

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

#include<iostream>
using namespace std;

int main(void) {
	int a, b;
	int carry = 1;

	cin >> a >> b;
	while (b) {
		b /= 10;
		carry *= 10;
	}

	int sum = a * carry + b;
	double k = sqrt(sum);
	if (floor(k) == ceil(k)) printf("Yes\n");
	else printf("No\n");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: 'sqrt' was not declared in this scope
   15 |         double k = sqrt(sum);
      |                    ^~~~
a.cc:16:13: error: 'floor' was not declared in this scope
   16 |         if (floor(k) == ceil(k)) printf("Yes\n");
      |             ^~~~~
a.cc:16:25: error: 'ceil' was not declared in this scope
   16 |         if (floor(k) == ceil(k)) printf("Yes\n");
      |                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string a,b;
  cin >> a >> b;
  int c=stoi(a+b);
  double d=c;
  if(fmod(sqrt(d),1)=0)cout << "Yes";
  else cout << "No";
  cout << endl;
}
/*#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b;
  if(b<10)c=10*a+b;
  else if(a<100)c=100*a+b;
  else c=1000*a+b;
  for(int i=0;i<10000;i++){
    if(i*i==c){
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}*/


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if(fmod(sqrt(d),1)=0)cout << "Yes";
      |      ~~~~^~~~~~~~~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  int X;
  if (1 <= b && b <= 9){
    X = 10 * a + b;
  }
  else if (10 <= b && b <= 99){
    X = 100 * a + b;
  }
  else{
    X = 1000 * a + b;
  }
  int k;
  for(int k=1;k<101;k++){
    if (k * k == X) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'else' without a previous 'if'
   26 |   else{
      |   ^~~~
Language: C++

#include <iostream>
int main (){
	string s ,t;
	cin >>s > >t;
	int x = stoi (s+ t );
	for ( int i =1; i <=1000; i ++){
		if ( i*i == x ){
		puts (" Yes ");
		return 0;
		}
	}
	puts (" No ");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string s ,t;
      |         ^~~~~~
a.cc:3:9: 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:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >>s > >t;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:15: error: 's' was not declared in this scope
    4 |         cin >>s > >t;
      |               ^
a.cc:4:19: error: expected primary-expression before '>' token
    4 |         cin >>s > >t;
      |                   ^
a.cc:4:20: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |         cin >>s > >t;
      |                    ^
      |                    tm
a.cc:5:17: error: 'stoi' was not declared in this scope; did you mean 'std::__cxx11::stoi'?
    5 |         int x = stoi (s+ t );
      |                 ^~~~
      |                 std::__cxx11::stoi
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:4432:3: note: 'std::__cxx11::stoi' declared here
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(){
  int a,b;
  int num=0;
  int flag=0;
  
  scanf("%d, %d",&a, &b);
  
  if(b<10){
    a *= 10;
  }else if(10<=b&&b<100){
    a *= 100;
  }else{
    a *= 1000;
  }
  
  num = a + b;
  printf
  for(int i=1; i*i<num; i++){
    if(i*i==num){
      flag = 1;
    }
  }
  
  if(flag == 1){
    printf("Yes\n");
  }else{
    printf("No\n");
  }
    
  return 0;
}
      
    


Compiler output:
main.c: In function 'main':
main.c:19:9: error: expected ';' before 'for'
   19 |   printf
      |         ^
      |         ;
   20 |   for(int i=1; i*i<num; i++){
      |   ~~~
Language: C++

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

 
int main() {
    string a,b;
    cin>>a>>b;
    a=a+b;
    int c=atoi(a);

    for(int i=0;i*i<=n;i++){
        if(i*i==n){
            cout<<"Yes"<<endl;
            return 0;
        }
    }

    cout<<"No"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   11 |     int c=atoi(a);
      |                ^
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:13:22: error: 'n' was not declared in this scope
   13 |     for(int i=0;i*i<=n;i++){
      |                      ^
Language: C++

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

int main(){
    string a, b;
    cin >> a >> b;
    string c = a + b; 
    double ans = atoi(c.c_str());
    ans = sqrt(ans);

    if(ans - (int)ans <= 0) cout << "Yes" << endl;
    else cout << "No" << endl;

}

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

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

int main(){
    char a[8], b[4];
    float ans;
    cin >> a >> b;
    strcat(a,b);
    ans = atoi(a);

    if(ans - (int)ans <= 0) cout << "Yes" << endl;
    else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'strcat' was not declared in this scope
   10 |     strcat(a,b);
      |     ^~~~~~
a.cc:4:1: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<math.h>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <iostream>
#include<string>

using namespace std;

int main() {
	string a, b;
	cin >> a >> b;

	int num = std::stod(a + b);

	//cout << num << endl;
	int sqrt_num = sqrt(num);
	if (sqrt_num * sqrt_num == num) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'sqrt' was not declared in this scope
   13 |         int sqrt_num = sqrt(num);
      |                        ^~~~
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    
#include <numeric>
using namespace std;

int i_sqrt(int n) {
    int ret = 1;
    while ((ret+1)*(ret+1) <= n) {
        ret++;
    }
    return ret;
}

int main() {
    string a, b;
    cin >> a >> b;
    int ab = stoi(a + b);
    cout << (i_sqrt(ab) * i_sqrt(ab) == ab ? "Yes" : "No") << endl; 
}

Compiler output:
a.cc:5:1: error: 'upper_bound' does not name a type
    5 | upper_bound
      | ^~~~~~~~~~~
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
#include <numeric>using namespace std;

int i_sqrt(int n) {
    int ret = 1;
    while ((ret+1)*(ret+1) <= n) {
        ret++;
    }
    return ret;
}

int main() {
    string a, b;
    cin >> a >> b;
    int ab = stoi(a + b);
    cout << (i_sqrt(ab) * i_sqrt(ab) == ab ? "Yes" : "No") << endl;
}

Compiler output:
a.cc:18:25: warning: extra tokens at end of #include directive
   18 | #include <numeric>using namespace std;
      |                         ^~~~~~~~~
a.cc:18:10: fatal error: numeric>usin: No such file or directory
   18 | #include <numeric>using namespace std;
      |          ^~~~~~~~~~~~~~
compilation terminated.
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
#include <numeric>
using namespace std;

int main() {
    string a, b;
    cin >> a >> b;
    int ab = stoi(a + b);
    cout << (pow(int(sqrt(ab)),2) == ab ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:22: error: 'sqrt' was not declared in this scope
   25 |     cout << (pow(int(sqrt(ab)),2) == ab ? "Yes" : "No") << endl;
      |                      ^~~~
a.cc:25:14: error: 'pow' was not declared in this scope
   25 |     cout << (pow(int(sqrt(ab)),2) == ab ? "Yes" : "No") << endl;
      |              ^~~
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
#include <numeric>
#include <math>
using namespace std;

int main() {
    string a, b;
    cin >> a >> b;
    int ab = stoi(a + b);
    cout << (pow(int(sqrt(ab)),2) == ab ? "Yes" : "No") << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main (){
string s ,t;
cin >>s > >t;
int x = stoi (s+ t );
for ( int i =1; i <=1000; i ++){
if ( i*i == x ){
puts (" Yes ");
return 0;
}
}
puts (" No ");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before '>' token
    5 | cin >>s > >t;
      |           ^
Language: C++

import math
a, b = input().split()
if math.sqrt(int(a+b)).is_integer():
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
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'
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
      	String s = a + b;
        int i = Integer.parseInt(s);
      
      	for(int j=0; j<=1000; j++){
          if(i = j*j){
            System.out.println("YES");
            return;
          }
        }
         System.out.println("NO");
	}
}


Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to boolean
          if(i = j*j){
               ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
      	String s = a + b;
        int i = Integer.parseInt(s);
      
      	for(int j=0; j<=1000; j++){
          if(i = j*j){
            System.out.println("YES");
          }
          if(j=1000){
            System.out.println("NO");
          }
        }
    
	}
}


Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to boolean
          if(i = j*j){
               ^
Main.java:15: error: incompatible types: int cannot be converted to boolean
          if(j=1000){
              ^
2 errors
Language: Java

import java.util.Scanner;
public class test6{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String numA = scanner.nextLine();
        String numB = scanner.nextLine();
        final int num = Integer.parseInt(numA + numB);

        for(int i=0; i<num; i++) {
            if(i*i==num) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
        return;
    }
}


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

import java.util.Scanner;
public class Main{
    private static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {
        while(scanner.hasNext()) {
            String numA = scanner.nextLine();
            String numB = scanner.nextLine();
        }
        int num = Integer.parseInt(numA + numB);

        if(num <= 1) {
            System.out.println("No");
            return;
        }
        
        for(int i=0; i<1000; i++) {
            if(i*i==num) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
        int num = Integer.parseInt(numA + numB);
                                   ^
  symbol:   variable numA
  location: class Main
Main.java:9: error: cannot find symbol
        int num = Integer.parseInt(numA + numB);
                                          ^
  symbol:   variable numB
  location: class Main
2 errors
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class test5{
    private static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {
        String numA = scanner.nextLine();
        String numB = scanner.nextLine();
        String tmpNumStr = numA + numB;
        int num = Integer.parseInt(tmpNumStr);

        int div = 2;
        int i = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true) {
            if(num % div == 0) {
                num /= div;
                array.add(div);
                continue;
            }else if(num <= 1) {
                break;
            }else{
                div++;
            }
        }
        boolean isSquare = false;

        if(array.size() == 1) {
            ;
        } else {
            int tmpNum = 0;
            for(int j=0; j<array.size(); j++) {

                tmpNum = array.get(j);
                boolean isMatchedOnce = false;
                for(int jj=0; jj<array.size(); jj++) {
                    if(tmpNum == array.get(jj)) {
                        isMatchedOnce = true;
                        continue;
                    }else if(tmpNum == array.get(jj) && isMatchedOnce) {
                        isSquare = true;
                        break;
                    } else {
                        isSquare = false;
                    }
                }
            }
        }
        System.out.println(isSquare);
    }
}


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

import java.util.ArrayList;
import java.util.Scanner;

public class test5{
    private static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {
        String numA = scanner.nextLine();
        String numB = scanner.nextLine();
        String tmpNumStr = numA + numB;
        int num = Integer.parseInt(tmpNumStr);
        System.out.println("num: " + num);
        int div = 2;
        int i = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true) {
            if(num % div == 0) {
                num /= div;
                array.add(div);
                continue;
            }else if(num <= 1) {
                break;
            }else{
                div++;
            }
        }
        boolean isSquare = false;
        System.out.println("size: " + array.size());
        if(array.size() == 1) {
            ;
        } else {
            int tmpNum = 0;
            for(int j=0; j<array.size(); j++) {
                System.out.println(array.get(j));
                tmpNum = array.get(j);
                boolean isMatchedOnce = false;
                for(int jj=0; jj<array.size(); jj++) {
                    if(tmpNum == array.get(jj)) {
                        isMatchedOnce = true;
                        continue;
                    }else if(tmpNum == array.get(jj) && isMatchedOnce) {
                        isSquare = true;
                        break;
                    } else {
                        isSquare = false;
                    }
                }
            }
        }
        System.out.println(isSquare);
    }
}


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

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

int main() {
  int a,b;
  cin>>a>>b;
  string s=to_string(b);
  int n=s.size()-1;
  int x=a*(10,n)+b;
  int ans="No";
  for(int i=1;i<=x;i++){
    if(i*i==x) ans="Yes";
  }
  cout<<ans<<endl;     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   int ans="No";
      |           ^~~~
      |           |
      |           const char*
a.cc:12:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |     if(i*i==x) ans="Yes";
      |                    ^~~~~
      |                    |
      |                    const char*
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
  cin>>a>>b;
  string B=to_string(b);
  int n=B.size();
  int X=a*pow(10,n)+b;
  bool ans=false;
  for(int i=0;i*i<=x;i++)
    if(i*i==x)
      ans=true;
  if(ans)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'x' was not declared in this scope
   10 |   for(int i=0;i*i<=x;i++)
      |                    ^
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  for(int i=0;i<102;i++){
    if(10*a+b==i*i){
      cout<<"Yes"<<endl;
      break;
      else if(i==100){
        cout<<"No"<<endl;
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected '}' before 'else'
   11 |       else if(i==100){
      |       ^~~~
a.cc:8:20: note: to match this '{'
    8 |     if(10*a+b==i*i){
      |                    ^
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:7:25: note: to match this '{'
    7 |   for(int i=0;i<102;i++){
      |                         ^
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  string a,b
  cin>>a>>b;
  int x=stoi(a+b);
  for(i=1;i<=200000;i++){
    if(i*i==x){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a>>b;
      |   ^~~
a.cc:7:16: error: 'b' was not declared in this scope
    7 |   int x=stoi(a+b);
      |                ^
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=1;i<=200000;i++){
      |       ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  char a[100],b[100];
  cin>>a>>b;
  int x=stoi(a+b);
  for(i=1;i<=200000;i++){
    if(i*i==x){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid operands of types 'char [100]' and 'char [100]' to binary 'operator+'
    7 |   int x=stoi(a+b);
      |              ~^~
      |              | |
      |              | char [100]
      |              char [100]
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=1;i<=200000;i++){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string a,b;
  cin>>a>>b;
  string S =a+b;
  int x=0;
for (int i = 0; i < S.length(); i++) {
 x= x*10 + (s[i] - '0');
}
for (int i = 0; i < 1000; i++) {
 if(x==i*i){
   cout<<"Yes"<<endl;
   return 0;
}
}
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 's' was not declared in this scope
   10 |  x= x*10 + (s[i] - '0');
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string a,b;
  cin>>a>>b;
  String S =a+b;
  int x=0;
for (int i = 0; i < s.length(); i++) {
 x= x*10 + (s[i] - '0');
}
for (int i = 0; i < 1000; i++) {
 if(x==i*i){
   cout<<"Yes"<<endl;
   return 0;
}
}
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String S =a+b;
      |   ^~~~~~
a.cc:9:21: error: 's' was not declared in this scope
    9 | for (int i = 0; i < s.length(); i++) {
      |                     ^