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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jpken_Kyogi1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] inputs = Console.ReadLine().Split(' ');

            int a = int.Parse(inputs[0]);
            int b = int.Parse(inputs[1]);
            int union_number;
            if (b == 100)
                union_number = a * 1000 + b;
            else if (b >= 10)
                union_number = a * 100 + b;
            else
                union_number = a * 10 + b;

            int base_number = 0;
            while (base_number <= 100100)
            {
                base_number++;
                if (base_number * base_number == union_number)
                {
                    Console.WriteLine("Yes");
                    break;
                }
                else if (base_number == 100100)
                {
                    Console.WriteLine("No");
                }

            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:41:6: error: expected ';' after class definition
   41 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Jpken_Kyogi1::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string[] inputs = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             string[] inputs = Console.ReadLine().Split(' ');
      |                    ^
a.cc:15:21: error: expected primary-expression before 'int'
   15 |             int a = int.Parse(inputs[0]);
      |                     ^~~
a.cc:16:21: error: expected primary-expression before 'int'
   16 |             int b = int.Parse(inputs[1]);
      |                     ^~~
a.cc:31:21: error: 'Console' was not declared in this scope
   31 |                     Console.WriteLine("Yes");
      |                     ^~~~~~~
a.cc:36:21: error: 'Console' was not declared in this scope
   36 |                     Console.WriteLine("No");
      |                     ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else if(b>=10){
      |   ^~~~
a.cc:9:13: note: to match this '{'
    9 |   if(b==100){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long double a,b;
  cin >> a >> b;
  long long double c;
  string ans="No";
  if(b==100){
    c=1000*a+b;}
  else if(b>=10){
    c=100*a+b;}
  else{
    c=10*a+b;}
  if(sqrt(c)*sqrt(c)==c){ans="Yes";}
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'long long' specified with 'double'
    5 |   long long double a,b;
      |        ^~~~
a.cc:5:8: error: 'long long' specified with 'double'
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double c;
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  string a, b;
  int INPUT_NUM;
  double CEIL_NUM;
  double FLOOR_NUM;
  cin >> a >> b;
  INPUT_NUM = stoi(a + b);
  CEIL_NUM = ceil(sqrt(INPUT_NUM));//整数に切り捨て
  FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
  
  
  // INPUT_NUMが平方数であればsqrt(INPUT_NUM)(平方根)が整数になる
  if(CEIL_NUM == FLOOR_NUM)
  {
    cout << "Yes" << endl;
  }
  else
  {
  	cout << "No" << endl;
  }
}

Compiler output:
a.cc:13:26: error: extended character ¥ is not valid in an identifier
   13 |   FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
      |                          ^
a.cc: In function 'int main()':
a.cc:13:26: error: 'A\U000000a5INPUT_NUM' was not declared in this scope; did you mean 'INPUT_NUM'?
   13 |   FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
      |                          ^~~~~~~~~~~
      |                          INPUT_NUM
Language: C++

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

int main()
{
  string a, b;
  int INPUT_NUM;
  double CEIL_NUM;
  double FLOOR_NUM;
  cin >> a >> b;
  INPUT_NUM = stoi(a + b);
  CEIL_NUM = ceil(sqrt(INPUT_NUM));//整数に切り捨て
  FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
  
  
  // INPUT_NUMが平方数であればsqrt(INPUT_NUM)(平方根)が整数になる
  if(CEIL_NUM == FLOOR_NUM)
  {
    cout << "Yes" << endl;
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:13:26: error: extended character ¥ is not valid in an identifier
   13 |   FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
      |                          ^
a.cc: In function 'int main()':
a.cc:13:26: error: 'A\U000000a5INPUT_NUM' was not declared in this scope; did you mean 'INPUT_NUM'?
   13 |   FLOOR_NUM = floor(sqrt(A¥INPUT_NUM));//整数に切り上げ
      |                          ^~~~~~~~~~~
      |                          INPUT_NUM
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
    7 |   c=a+b;
      |     ~^~
      |      |
      |      std::__cxx11::basic_string<char>
Language: C++

#include<iostrem>
using namespace std;
int main(){
  string a,b;
  int c,i;
  cin>>a>>b;
  c=a+b;
  for(i=1;i<=10000;i++){
    if(i*i == c)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  return 0;
}
  
  

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

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

int main(void) {
	int a, b; cin >> a >> b;
	int c, i;
	if (b >= 10 && 100 > b) {
		c = a * 100 + b;
	}
	else if (b == 100) {
		c = a * 1000 + b;
	}
	else { c = a * 10 + b; }

	for (i = 3; i <= sqrt(c); i++) {
		if (i*i == c) {
			cout << "Yes" << endl;
			return 0;
			break;
		}
	}

	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'sqrt' was not declared in this scope
   16 |         for (i = 3; i <= sqrt(c); i++) {
      |                          ^~~~
Language: C++

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

int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    int b_keta=1;
    for(b_keta;int(b/pow(10,b_keta))>=1;b_keta++);
    int c;
    c= a*(pow(10,b_keta)) + b;
    int i;
    for(i=0; c > i*i ; i++);
    if(c== i*i) printf("Yes\n");
    else printf("No\n");

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected '}' at end of input
   16 |     else printf("No\n");
      |                         ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:22:14: error: expected ';' before 'return'
   22 |   else ("No")
      |              ^
      |              ;
   23 | return 0;
      | ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int a, b, x;
	cin >> a >> b;
	x = 10 * a + b;
	for (int i = 1; i <= 100; i++) {
		if (x%i == 0) {
			x /= i;
			if (x/i == 1) {
				cout << "Yes" << endl;
				return 0;
			}
		}
	}
	cout << "No" << ednl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: 'ednl' was not declared in this scope
   16 |         cout << "No" << ednl;
      |                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a, b;
int main(){
  int count = 0;
  while(b > 0){
    b /= 10;
    ++count;
  }
  int c = a*pow(10, count) + b;
  int d = sqrt(c);
  if(d**2 == c) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: invalid type argument of unary '*' (have 'int')
   12 |   if(d**2 == c) cout << "Yes" << endl;
      |        ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a, b;
int main(){
  int count = 0;
  while(b > 0){
    b /= 10;
    ++count;
  }
  int c = a*(10**count) + b;
  int d = sqrt(c);
  if(d**2 == c) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: invalid type argument of unary '*' (have 'int')
   10 |   int c = a*(10**count) + b;
      |                 ^~~~~~
a.cc:12:8: error: invalid type argument of unary '*' (have 'int')
   12 |   if(d**2 == c) cout << "Yes" << endl;
      |        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int keta(int n){
  int ans=0;
  while(n !=0){
    n /= 10;
    ans++;
  }
}


int main(){
  int a,b;
  cin >> a>>b;
  cin k = keta(b);
  for(int i =0;i<k-1;i++){
    a *= 10;
  }
  int q=sqrt(a+b);
  if(q*q==a+b) cout << "Yes" << endl;
  else cout <<"No" << endl;
}

Compiler output:
a.cc: In function 'int keta(int)':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
a.cc: In function 'int main()':
a.cc:15:6: error: expected ';' before 'k'
   15 |   cin k = keta(b);
      |      ^~
      |      ;
a.cc:16:18: error: 'k' was not declared in this scope
   16 |   for(int i =0;i<k-1;i++){
      |                  ^
Language: C++

#include<iostream>
#include <string>
#include<vector>
#include<algorithm>
#include <cstdlib>
using namespace std;

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

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

#include <iostream>
#include <string>

using namespace std;

int main() {
	int a, b = 0;
	cin >> a >> b;
	
	int t = a * pow(10,floor(log10(b))+1) + b;

	if (t == pow(floor(sqrt(t)),2)) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: 'log10' was not declared in this scope
   10 |         int t = a * pow(10,floor(log10(b))+1) + b;
      |                                  ^~~~~
a.cc:10:28: error: 'floor' was not declared in this scope
   10 |         int t = a * pow(10,floor(log10(b))+1) + b;
      |                            ^~~~~
a.cc:10:21: error: 'pow' was not declared in this scope
   10 |         int t = a * pow(10,floor(log10(b))+1) + b;
      |                     ^~~
a.cc:12:28: error: 'sqrt' was not declared in this scope
   12 |         if (t == pow(floor(sqrt(t)),2)) {
      |                            ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using LL = long long;
using VL = vector<LL>;
using VVL = vector<VL>;
using PLL = pair<LL, LL>;
using VS = vector<string>;
 
#define ALL(a)  begin((a)),end((a))
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define SZ(a) int((a).size())
#define SORT(c) sort(ALL((c)))
#define RSORT(c) sort(RALL((c)))
#define UNIQ(c) (c).erase(unique(ALL((c))), end((c)))
 
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
 
#define FF first
#define SS second
 
#define DUMP(x) cout<<#x<<":"<<(x)<<endl
template<class S, class T>
istream& operator>>(istream& is, pair<S,T>& p){
  return is >> p.FF >> p.SS;
}
template<class T>
istream& operator>>(istream& is, vector<T>& xs){
  for(auto& x: xs)
	is >> x;
  return is;
}
template<class S, class T>
ostream& operator<<(ostream& os, const pair<S,T>& p){
  return os << p.FF << " " << p.SS;
}
template<class T>
ostream& operator<<(ostream& os, const vector<T>& xs){
  for(unsigned int i=0;i<xs.size();++i)
	os << (i?" ":"") << xs[i];
  return os;
}
template<class T>
void maxi(T& x, T y){
  if(x < y) x = y;
}
template<class T>
void mini(T& x, T y){
  if(x > y) x = y;
}
 
 
const double EPS = 1e-10;
const double PI  = acos(-1.0);
const LL MOD = 1e9+7;
int main()
{
    string a,b;
    cin>>a>>b;
    string s=a+b;
    int x=stool(s);
    bool flag=false;
    for(int i=0;i<=1000;i++){
        int j=i*i;
        if(x%j==0) flag=true;
    }
    if(flag==true) puts("Yes");
    else puts("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:11: error: 'stool' was not declared in this scope; did you mean 'strtol'?
   67 |     int x=stool(s);
      |           ^~~~~
      |           strtol
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  string s = to_string(a) + to_string(b);
  bool result = false;
  for (int i = 1; i <= 100; i++){
    string ss = to_string(i * i);
    it (s == ss){
      result = true;
      break;
    }
  }
  if (result) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'it' was not declared in this scope; did you mean 'i'?
   12 |     it (s == ss){
      |     ^~
      |     i
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    int count = 100;
    int t = a
    while(t/10 != 0){
        t /= 10;
        count *= 10;
    }
    double ans = sqrt(a*count+b);
    if(ceil(ans) != floor(ans))
        cout << "No";
    else
        cout <<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'while'
    8 |     while(t/10 != 0){
      |     ^~~~~
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: C++

#include <iostream>
using namespace std;

int main(){
  string a,b;
  cin >> a >> b;
  int s = stoi(a+b);
  for (int i = 1; i < 1000; i++){
    if(s == i * i){
      cout << "Yes" << endl;
    } else {
      else cout << "No" << endl;
    }
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'else' without a previous 'if'
   12 |       else cout << "No" << endl;
      |       ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'stoi(int)'
    7 |   int s = stoi(a+b);
      |           ~~~~^~~~~
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(){
  int a,b;
  cin >> a >> b;
  int s = a*b;
  for (int i = 0; i < 100, i++){
    if(s == i * i){
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |   for (int i = 0; i < 100, i++){
      |                               ^
      |                               ;
Language: C++

#include<bits#include <bits/stdc++.h>
#define fst first
#define snd second
#define rep(n) for(lint I = 0; (I) < (lint)(n); ++(I))
#define repeat(i, n) for(lint i = 0; (i) < (lint)(n); ++(i))
#define repeat_to(i, n) for(lint i = 0; (i) <= (lint)(n); ++(i))
#define repeat_from(i, m, n) for(lint i = (m); (i) < (lint)(n); ++(i))
#define repeat_from_to(i, m, n) for(lint i = (m); (i) <= (lint)(n); ++(i))
#define repeat_reverse_from_to(i, m, n) for(lint i = (m); (i) >= (lint)(n); --(i))
#define el cout<<endl
#define dump(x) cout<<" "<<#x<<"="<<x
#define vdump(v) for(size_t I=0; I<v.size(); ++I){cout<<" "<<#v<<"["<<I<<"]="<<v[I];} cout<<endl
using namespace std;
using lint = long long;
using ld = long double;

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{int a,b;
 cin>>a>>b;
 int x=1,t=b;
 while(t>0)
   {x*=10;
    t/=10;
   }
 t=sqrt(a*x+b); 
 if(t*t=a*x+b)
    cout<<"Yes"<<endl;
 else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: lvalue required as left operand of assignment
   12 |  if(t*t=a*x+b)
      |     ~^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    cin>>a>>b;
    c=a*10+b;
    for (int i=1; i<=sqrt(c); ++i)
    if (i*i==c)
    {
        cout<<"YES"<<endl;
        return 0;
    }
    cout<<"NO"<<endl;
    return 0;
}

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

#include<iostream>
#include<string>
#include <math>

int main()
{
	std::string s1, s2;
	std::cin >> s1 >> s2;
	s1 = s1 + s2;
	int a;
	double b;
	a = atoi(s1.c_str());
	b = sqrt((double)a);
	b = b - (double)((int)b);
	if (b == 0.0) std::cout << "YES";
	else std::cout << "NO";
	return 0;
}

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

#include<iostream>

int main()
{
	std::string s1, s2;
	std::cin >> s1 >> s2;
	s1 = s1 + s2;
	int a;
	double b;
	a = int(s1);
	b = std::sqrt((double)a);
	b = b - (double)((int)b);
	if (b == 0.0) std::cout << "YES";
	else std::cout << "NO";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   10 |         a = int(s1);
      |             ^~~~~~~
a.cc:11:18: error: 'sqrt' is not a member of 'std'
   11 |         b = std::sqrt((double)a);
      |                  ^~~~
Language: C++

#include<iostream>

int main()
{
	std::string s1, s2;
	std::cin >> s1 >> s2;
	s1 = s1 + s2;
	int a;
	double b;
	a = (int)s1;
	b = sqrt((double)a);
	b = b - (double)((int)b);
	if (b == 0.0) std::cout << "YES";
	else std::cout << "NO";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   10 |         a = (int)s1;
      |             ^~~~~~~
a.cc:11:13: error: 'sqrt' was not declared in this scope
   11 |         b = sqrt((double)a);
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a,b,c,len;
int main()
{
    scanf("%d%d",&a,&b);
    c=b;
    while(c>0)
    {
        c/=10;
        len++;
    }
    a=a*pow(10,len)+b;
    if(sqrt(a)==floor(sqrt(a)))printf("Yes");
    else printf("No");
    return 0； 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   16 |     return 0；
      |            ^~~
a.cc:16:15: error: expected ';' before '}' token
   16 |     return 0；
      |               ^
      |               ;
   17 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

int main()
{
  	int a, b;
  	cin >> a >> b;
  	if(b == 100){
      	int c = a * 1000 + b;
    }else{
      	int c = a * 100 + b;
    }
  	bool t = false;
  	for(int i = 11; i < 320; i++){
      	if(i * i == c){
          	t = true;
          	break;
        }
    }
  	if(t){
      	cout << "Yes";
    }else{
      	cout << "No";
    }
  	return 0;
}

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

#include <iostream>

using namespace std;

int main()
{
  	int a, b;
  	cin >> a >> b;
  	if(b == 100){
      	int c = a * 1000 + b;
    }else{
      	int c = a * 100 + b;
    }
  	bool a = false;
  	for(int i = 11; i < 320; i++){
      	if(i * i ==c){
          	a = true;
          	break;
        }
    }
  	if(a){
      	cout << "Yes";
    }else{
      	cout << "No";
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: conflicting declaration 'bool a'
   14 |         bool a = false;
      |              ^
a.cc:7:13: note: previous declaration as 'int a'
    7 |         int a, b;
      |             ^
a.cc:16:20: error: 'c' was not declared in this scope
   16 |         if(i * i ==c){
      |                    ^
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<deque>
#include<string>
#include<random>
#include<numeric>
#include<string>
typedef long long ll;
using namespace std;

ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}
int main() {
	string s, t;
  	string ans="No";
	cin >> s >> t;
	ll x = stoi(s + t);
	for (ll i = 1; i <= 1000; i++) {
		if (i*i == x) {
			ans="Yes"
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:34: error: expected ';' before '}' token
   30 |                         ans="Yes"
      |                                  ^
      |                                  ;
   31 |                 }
      |                 ~
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <Math.h>

using namespace std;

int main(){

	string a;
	string b;
	cin >> a >> b;
	
	int x;
	string c = a+b;
	stringstream ss;
	ss << c;
	ss >> x;

	int y = sqrt(x);
	if(y*y == x){
		puts("Yes");
	}else{
		puts("No");
	}


	return 0;
}


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

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main(void)
{
	string a,b;
	cin>>a>>b;
	int x=atoi(a+b);
	bool flg=false;
	for(int i=0;i<x;i++){
		if(i*i==x){
			flg=true;
			break;
		}
	}
	cout<<((flg)?"Yes":"No")<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    9 |         int x=atoi(a+b);
      |                    ~^~
      |                     |
      |                     std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 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/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<stdio.h>
#include<cmath>
#include<cstring>
using namespace std;
bool judge(int x)
{
    double tmp=sqrt(x);
    int tnp=tmp;
    if(tmp==(double)tnp) return true;
    else return false;
}
string a,b;
int main()
{
    cin>>a>>b;
    int bla;
    sscanf((a+b).c_stl,"%d",&bla);
    if(judge(bla)) cout<<"YES";
    else cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'class std::__cxx11::basic_string<char>' has no member named 'c_stl'; did you mean 'c_str'?
   18 |     sscanf((a+b).c_stl,"%d",&bla);
      |                  ^~~~~
      |                  c_str
Language: C++

#include<iostream>
#include<stdio.h>
#include<cmath>
#include<cstring>
using namespace std;
bool judge(int x)
{
    double tmp=sqrt(x);
    int tnp=tmp;
    if(tmp==(double)tnp) return true;
    else return false;
}
string a,b;
int main()
{
    cin>>a>>b;
    int bla;
    sscanf((a+b).c_st,"%d",&bla);
    if(judge(bla)) cout<<"YES";
    else cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'class std::__cxx11::basic_string<char>' has no member named 'c_st'; did you mean 'c_str'?
   18 |     sscanf((a+b).c_st,"%d",&bla);
      |                  ^~~~
      |                  c_str
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
	int A, B;	cin >> A >> B;
	string str = to_string(A) + to_string(B);
	int num = atoi(str.c_str());
	int sqrt = pow(num, 0.5);
	if (pow(sqrt, 2) == num) {
		cout << "Yes" << endl;
		cin >> A;
		return 0;
	}
	cout << "No" << endl;
	cin >> A;
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,m;
	cin>>a>>b;
	m=a*100+b;
	if(sqrt(m)==(floor(sqrt(n))))
	cout<<"Yse"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: 'n' was not declared in this scope
    7 |         if(sqrt(m)==(floor(sqrt(n))))
      |                                 ^
Language: C++

# coding: utf-8
import math

string=input().split()
number=int(string[0]+string[1])
x=math.sqrt(number)
if int(x)==x:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
int a,c;
string b;
double d;
stringstream s;
int main()
{
    cin>>a>>b;
    s<<b;
	s>>c;
    d=sqrt(a*pow(10,b.length())+c);
    if(d-(int)d==0)
	cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:8:14: error: aggregate 'std::stringstream s' has incomplete type and cannot be defined
    8 | stringstream s;
      |              ^
Language: C++

// sushi.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"

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

using namespace std;

int main()
{
	int a, b, t, i;
	double ans;
	cin >> a; cin >> b;

	t = b;
	for (i = 0; t > 0; i++) {
		t = t / 10;
	}

	ans = sqrt(a*pow(10, i) + b);

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

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

#include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
  char a[101];
  char b[101];
  char *c[201];

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

  int c_int[201];
  int check;

  c=strcat(a,b);
  for(i=0;i<201;i++){
    c_int[i]=c[i]-'0';
  }

  check=(int)sqrt((double)c_int);

  if(check*check == c_int){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:4: error: assignment to expression with array type
   15 |   c=strcat(a,b);
      |    ^
main.c:16:7: error: 'i' undeclared (first use in this function)
   16 |   for(i=0;i<201;i++){
      |       ^
main.c:16:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:3: error: pointer value used where a floating-point was expected
   20 |   check=(int)sqrt((double)c_int);
      |   ^~~~~
main.c:22:18: warning: comparison between pointer and integer
   22 |   if(check*check == c_int){
      |                  ^~
Language: C

#include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
  char a[101];
  char b[101];
  char c[201];

  int c_int[201];
  int check;

  c=strcat(a,b);
  for(i=0;i<201;i++){
    c_int[i]=c[i]-'0';
  }

  check=(int)sqrt((double)c_int);

  if(check*check == c_int){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:4: error: assignment to expression with array type
   12 |   c=strcat(a,b);
      |    ^
main.c:13:7: error: 'i' undeclared (first use in this function)
   13 |   for(i=0;i<201;i++){
      |       ^
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:3: error: pointer value used where a floating-point was expected
   17 |   check=(int)sqrt((double)c_int);
      |   ^~~~~
main.c:19:18: warning: comparison between pointer and integer
   19 |   if(check*check == c_int){
      |                  ^~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char a[101];
  char b[101];
  char c[201];
  
  int c_int;
  int check;

  c=strcat(a,b);
  c_int=c-'0';

  check=(int)sqrt((double)c_int);

  if(check*check == c_int){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:4: error: assignment to expression with array type
   11 |   c=strcat(a,b);
      |    ^
main.c:12:8: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |   c_int=c-'0';
      |        ^
main.c:14:14: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   14 |   check=(int)sqrt((double)c_int);
      |              ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    2 | #include<string.h>
  +++ |+#include <math.h>
    3 | int main(){
main.c:14:14: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
   14 |   check=(int)sqrt((double)c_int);
      |              ^~~~
main.c:14:14: note: include '<math.h>' or provide a declaration of 'sqrt'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c,d,i=1;
    cin>>a>>b;
    c=b;
    while(c){
        c/=10;
        i*=10;
    }
    d=sqrt(a*i+b)
    if(d*d-a*i-b) cout<<"No"<<endl;
    else cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'if'
   11 |     d=sqrt(a*i+b)
      |                  ^
      |                  ;
   12 |     if(d*d-a*i-b) cout<<"No"<<endl;
      |     ~~            
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else cout<<"Yes"<<endl;
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c,i=1;
    cin>>a>>b;
    c=b;
    while(c){
        c/=10;
        i*=10;
    }
    if(sqrt(a*i+b)%1) cout<<"No"<<endl;
    else cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   11 |     if(sqrt(a*i+b)%1) cout<<"No"<<endl;
      |        ~~~~~~~~~~~^~
      |            |       |
      |            |       int
      |            __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

#include<iostream>
#include <cmath>
using namespace std;
int beishu(int cifang,int shu)
{
    long long int sum=1;
    for (int i=1;i<=cifang;i++)
        sum*=shu;
    return sum;
}
int weishu(int x)
{
    int num=0;
    while (x)
    {
        num++;
        x/=10;
    }
    return num;
}
int main()
{
    int a,b;
    cin>>a>>b;
    long long int s;
    s=a*beishu(weishu(b),10);//位值原理。
    s+=b;
    int g=sqrt(s);
    if (g*g==s)。
        cout<<"Yes\n";//要换行。
    else
        cout<<"No\n";。
    return 0;
} 

Compiler output:
a.cc:29:16: error: extended character 。 is not valid in an identifier
   29 |     if (g*g==s)。
      |                ^
a.cc:32:22: error: extended character 。 is not valid in an identifier
   32 |         cout<<"No\n";。
      |                      ^
a.cc: In function 'int main()':
a.cc:29:16: error: '\U00003002' was not declared in this scope
   29 |     if (g*g==s)。
      |                ^~
a.cc:32:22: error: '\U00003002' was not declared in this scope
   32 |         cout<<"No\n";。
      |                      ^~
Language: C++

#include<bitss/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	a=a+b;
	for(int i=0;i<a;i++)
	{
		if(i*i==a)
		{
			cout<<"Yes"
			return 0;
		}
		else
		{
			cout<<"No";
			return 0;
		}
	}
	
 } 

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

#include<iostream>
#include <cmath>
using namespace std;
int beishu(int cifang,int shu)//就是不喜欢用pow函数。
{
    long long int sum=1;
    for (int i=1;i<=cifang;i++)
        sum*=shu;
    return sum;
}
int weishu(int x)
{
    int num=0;
    while (x)
    {
        num++;
        x/=10;
    }
    return num;
}
int main()
{
    int a,b;
    cin>>a>>b;
    long long int s;
    s=a*beishu(weishu(b),10);//位值原理。
    s+=b;
    int g=sqrt(s);
    if (g*g==s)。
        cout<<"Yes\n";//要换行。
    else
        cout<<"No\n";。
    return 0;
} 

Compiler output:
a.cc:29:16: error: extended character 。 is not valid in an identifier
   29 |     if (g*g==s)。
      |                ^
a.cc:32:22: error: extended character 。 is not valid in an identifier
   32 |         cout<<"No\n";。
      |                      ^
a.cc: In function 'int main()':
a.cc:29:16: error: '\U00003002' was not declared in this scope
   29 |     if (g*g==s)。
      |                ^~
a.cc:32:22: error: '\U00003002' was not declared in this scope
   32 |         cout<<"No\n";。
      |                      ^~
Language: C++

#include<stdio.h>
int main(){
int a,b,x,i,t=1;
  scanf("%d  %d",&a,&b);
  for(i=0;t<=b;i++){
  t*=10;
  }
  x=a*t+10
  for(i=1;i<=350;i++){
    if(i*i==x)break;
    }
  if(i==350)printf("No");
  else printf("Yes");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'for'
    8 |   x=a*t+10
      |           ^
      |           ;
    9 |   for(i=1;i<=350;i++){
      |   ~~~      
a.cc:9:21: error: expected ';' before ')' token
    9 |   for(i=1;i<=350;i++){
      |                     ^
      |                     ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'for'
    8 |   x=a*t+10
      |           ^
      |           ;
    9 |   for(i=1;i<=100;i++){
      |   ~~~      
a.cc:9:21: error: expected ';' before ')' token
    9 |   for(i=1;i<=100;i++){
      |                     ^
      |                     ;
Language: C++

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

int main(){
  string s,t;
  cin>>s>>t;
  int a=stoi(s+t);
  int b=(int)(sqrt(a)+1e-12);
  if(b*b==a)puts("Yes");
  else puts("No"):
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before ':' token
   10 |   else puts("No"):
      |                  ^
      |                  ;
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    int x=a,y=b;
    int s=0;
    while(a)
    {
        x/10;
        s++;
    }
    while(b)
    {
        y/10
        s++;
    }
    int p=1;
    for(int i=1;i<=s;i++)
        p*=10;
    int c=a*p+b;
    if(sqrt(c)*sqrt(c)==c) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before 's'
   17 |         y/10
      |             ^
      |             ;
   18 |         s++;
      |         ~
Language: C++

#include<cstdlib>
#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<string>
#include<cstring>
#include<iomanip>
using namespace std;
typedef long long lng;
typedef unsigned long long ulng;

#define pb push_back
#define SZ(a) int((a).size())
#define ALL(a) (a).begin(), (a).end()
#define FOR(i,a,b) for(int i=(a); i<=(b); ++i)
#define FORD(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) FOR(i,0,n-1)
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) // <a> must be sorted in advance

lng power(lng b, lng e) {lng sol=1; while(e>0) {if(e&1) {sol=sol*b;} e>>=1; b*= b;} return sol;}



int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    cin >> a >> b;
    if(b == 100) a *= 1000;
    else if(b >= 10) a *= 100;
    else a *= 10;
    int s = a+b;
    FOR(i, 1, 999) {
        if(s == i*i) {
            cout << "Yes" << endl;
            return 0
        }
    }
    cout << "No" << endl;
}


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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner cd = new Scanner(System.in);
		String a = cd.next();
		String b = cd.next();
		int n = Integer.parseInt(a+b);
		int k =0;
		
		for(int i=1;i<101;i++) {
			if(n==i*i) k=n;
		}
		if(k>0)System.out.println("Yes");
		if(k=0)System.out.println("No");
		
	}

}


Compiler output:
Main.java:17: error: incompatible types: int cannot be converted to boolean
		if(k=0)System.out.println("No");
		    ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <stdio.h>
#include <cassert>
#include <algorithm>
#include <functional>
#include <iostream>
using namespace std;

int main(void) {
    int t,a,b,j=2,power,sq=0;
cin>>a>>b;
 if(b>=100){
   t = a*1000+b;
 }else if(b>=10){
      t = a*100+b;
 }else if(b<10){
   t = a*10+b;
 }

sq = (int)sqrt(t);
if(t==(sq*sq){
        cout<<"Yes"<<endl;
        return 0;
}

    // for(int i=2;i<=316;i++){
    //   power=i;
    //   while(j<=2){
    //     if(b>=100){
    //     if((a*1000+b)==power){
    //       cout<<"Yes"<<endl;
    //       return 0;
    //     }
    //   }else if(b>=10){
    //     if((a*100+b)==power){
    //       cout<<"Yes"<<endl;
    //       return 0;
    //     }
    //   }else if(b<10){
    //     if((a*10+b)==power){
    //       cout<<"Yes"<<endl;
    //       return 0;
    //     }
    //   }
    //     power *= i;
    //     j++;
    //   }
    //   j=2;
    // }
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: expected ';' before '{' token
   22 | if(t==(sq*sq){
      |              ^
      |              ;
a.cc:51:21: error: expected ')' before ';' token
   51 |     cout<<"No"<<endl;
      |                     ^
      |                     )
a.cc:22:3: note: to match this '('
   22 | if(t==(sq*sq){
      |   ^
Language: C++

include <iostream>

using namespace std;

int main() {
 string s;
 int a, b, c, z;
 int digit = 10;
 cin >> a >> b;
 z = b;
 while (z >= 10) {
   z = z % 10;
   digit = digit * 10;
 }
 c = digit * a + b;

 for (int factor = 1; factor < c; factor = factor + 1) {
   if (factor * factor == c) {
     printf("Yes");
     return 0;
   }
 }

 printf("No");
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'string' was not declared in this scope
    6 |  string s;
      |  ^~~~~~
a.cc:9:2: error: 'cin' was not declared in this scope
    9 |  cin >> a >> b;
      |  ^~~
a.cc:19:6: error: 'printf' was not declared in this scope
   19 |      printf("Yes");
      |      ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <iostream>
a.cc:24:2: error: 'printf' was not declared in this scope
   24 |  printf("No");
      |  ^~~~~~
a.cc:24:2: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
#include <math.h>
int main(){
	int a,b;
	std::cin>>a>>b;
	int n=10;
	while(b/n != 0){
		n*=10;	
	}
	n=a*n+b;
	int a = sort(n);
	if(n == a*a)std::cout<<"Yes"<<std::endl;
	else std::cout<<"No"<<std::endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: redeclaration of 'int a'
   11 |         int a = sort(n);
      |             ^
a.cc:4:13: note: 'int a' previously declared here
    4 |         int a,b;
      |             ^
a.cc:11:17: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   11 |         int a = sort(n);
      |                 ^~~~
      |                 sqrt
Language: C++

#include<cstdio>
int main()
{
    char c=getchar();
    int x=0;
    while(c<'0'||c>'9') c=getchar();
    while(c>='0'&&c<='9') x*=10,x+=c-'0',c=getchar();
    c=getchar();
    while(c>='0'&&c<='9') x*=10,x+=c-'0',c=getchar();
    for(int i=1;i<=10000;i++)
        if(i*i==x)
        {
            printf("Yes");
            return 0;
        }
    printf("No")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected ';' before '}' token
   16 |     printf("No")
      |                 ^
      |                 ;
   17 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected identifier before 'if'
    8 |     if(i*i ==x){
      |     ^~
a.cc:12:21: error: expected ']' before ';' token
   12 |     cout<<"No"<<endl;
      |                     ^
      |                     ]
a.cc: In lambda function:
a.cc:12:21: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:14:5: error: expected declaration before '}' token
   14 |     }
      |     ^
Language: C++

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

Compiler output:
a.cc:14:5: error: expected declaration before '}' token
   14 |     }
      |     ^
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

Compiler output:
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else
      |     ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

Compiler output:
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else {
      |     ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: expected '}' before 'else'
   22 |         else{
      |         ^~~~
a.cc:7:18: note: to match this '{'
    7 |         if(b<100){
      |                  ^