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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: no matching function for call to 'stoi(int&, int&)'
    6 |     c=stoi(a,b);
      |       ~~~~^~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 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<math.h>
int main()
{
    int a,b,sqr,sum;
    int c,bw=1;
    scanf("%d%d",&a,&b);
    c=b;
    while(c>0)
    {
        bw*=10;
        c/=10;
    }
    sum=bw*a+b;
    sqr=sqrt(sum);
    if(sqr*sqr==sum)
        printf("Yes");
    else
        printf("No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d%d",&a,&b);
      |     ^~~~~
a.cc:16:9: error: 'printf' was not declared in this scope
   16 |         printf("Yes");
      |         ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include<math.h>
  +++ |+#include <cstdio>
    2 | int main()
a.cc:18:9: error: 'printf' was not declared in this scope
   18 |         printf("No");
      |         ^~~~~~
a.cc:18:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    char a[4], b[4];
    scanf("%s %s",a,b);
    double mid = atof(strcat(a,b));
    if(pow(int(sqrt(mid)), 2) == mid)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}
dr

Compiler output:
a.cc:16:1: error: 'dr' does not name a type
   16 | dr
      | ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 't' was not declared in this scope
   16 |                 t=0;
      |                 ^
a.cc:20:17: error: 't' was not declared in this scope
   20 |                 t=1;
      |                 ^
a.cc:23:8: error: 't' was not declared in this scope
   23 |     if(t==0)
      |        ^
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main ()
{
 int a,b;
 cin>>a>>b;
 int c=a*b;
 int d;
 d=sqrt(c);
 cout<<d;
 cout<<"Yes";
 else
 cout<<"No";
 system("pause");
 return 0;
 } 
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'else' without a previous 'if'
   13 |  else
      |  ^~~~
Language: C

#include <stdio.h>

int main(void){

  int a, b, c, i,  i_square;
  
  if( scanf("%d%d", &a, &b) == 1);

  if(a < b){
    c =  100  * a + b;
  } else if(a == b){
    c =  1000 * a + b;
  } else {
    c =  10   * a + b;
  }
  
  for(i=2;i<=1000000000;i++){

    i_square = i * i;

    //printf("%d\n", i_square);
    
    if(i_square == c){
      printf("Yes\n");
      break;
    } else if(i_square == 100000000000000000){
      printf("No\n");
    } 
    
  }
  

Compiler output:
main.c: In function 'main':
main.c:30:3: error: expected declaration or statement at end of input
   30 |   }
      |   ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     for(i=1; i<=100; i++)
      |         ^
a.cc:18:8: error: 'i' was not declared in this scope
   18 |     if(i==100)
      |        ^
Language: C++

    #include<iostream>
    #include<cmath>
    using namespace std;
    double a,b;
    int main()
    {
        cin>>a>>b;
        if(sqrt(a*b)==int (sqrt(a*b))
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected ';' before 'cout'
    8 |         if(sqrt(a*b)==int (sqrt(a*b))
      |                                      ^
      |                                      ;
    9 |             cout<<"Yes"<<endl;
      |             ~~~~                      
a.cc:10:9: error: expected primary-expression before 'else'
   10 |         else
      |         ^~~~
a.cc:9:31: error: expected ')' before 'else'
    9 |             cout<<"Yes"<<endl;
      |                               ^
      |                               )
   10 |         else
      |         ~~~~                   
a.cc:8:11: note: to match this '('
    8 |         if(sqrt(a*b)==int (sqrt(a*b))
      |           ^
Language: C++

#include<iostream>
#include<cmath>
double a,b;
int main()
{
    cin>>a>>b;
    if(sqrt(a*b)==int (sqrt(a*b))
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:34: error: expected ';' before 'cout'
    7 |     if(sqrt(a*b)==int (sqrt(a*b))
      |                                  ^
      |                                  ;
    8 |         cout<<"Yes"<<endl;
      |         ~~~~                      
a.cc:9:5: error: expected primary-expression before 'else'
    9 |     else
      |     ^~~~
a.cc:8:27: error: expected ')' before 'else'
    8 |         cout<<"Yes"<<endl;
      |                           ^
      |                           )
    9 |     else
      |     ~~~~                   
a.cc:7:7: note: to match this '('
    7 |     if(sqrt(a*b)==int (sqrt(a*b))
      |       ^
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
[code=c][/#define _CRT_SECURE_NO_WARNINGScode] 
int main()
{
	char a[10],b[10],c[10];
	int x ,len ,len1 ,len2 ,j = 0;
	int q;
	float y,p;
	//scanf("%s",a);
	gets(a);
	len = strlen(a);
	for(int i = 0 ; i <= len ; i++)
	{
		if(a[i]==' ')
			continue;
		else
			b[j] = a[i];
			j++;
	}
	x = atoi(b);
    y = sqrt(x);
    q = sqrt(x);
    p = y - q;
    //printf("%d\n",x);
    //printf("%f\n",y);
    if(p == 0)printf("Yes\n");
    else
    	printf("No\n");
    	return 0;
	}

Compiler output:
a.cc:6:11: error: stray '#' in program
    6 | [code=c][/#define _CRT_SECURE_NO_WARNINGScode]
      |           ^
a.cc:6:1: error: expected unqualified-id before '[' token
    6 | [code=c][/#define _CRT_SECURE_NO_WARNINGScode]
      | ^
Language: C

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
int main()
{
	char a[10],b[10],c[10];
	int x ,len ,len1 ,len2 ,j = 0;
	int q;
	float y,p;
	//scanf("%s",a);
	gets(a);
	len = strlen(a);
	for(int i = 0 ; i <= len ; i++)
	{
		if(a[i]==' ')
			continue;
		else
			b[j] = a[i];
			j++;
	}
	x = atoi(b);
    y = sqrt(x);
    q = sqrt(x);
    p = y - q;
    //printf("%d\n",x);
    //printf("%f\n",y);
    if(p == 0)printf("Yes\n");
    else
    	printf("No\n");
    	return 0;
	}

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

#include<iostream>
#include<cstdio>
#include<cstring>

using namespace std;

int main()
{
	char a[40] = {0};
	gets(a);
	int result = 0;
	for(int i=0; i<strlen(a); i++)
	{
		if(a[i]==' ') continue;
		else result = result*10 + a[i]-'0';
	}
	int i;
	for(i=1;i*i<result;i++);
	if(i*i == result) cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

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

int main() {
	int a, b;
	int n;
	scanf("%d %d", &a,&b);
	for (int i = 0; i < (int)log10(b)+1; i++) a *= 10;
	n = a + b;
	//if (n == sqrt(n)*sqrt(n)) printf("Yes\n");
	//else printf("No\n");
        printf("Yes\n);
	//while (1);
}

Compiler output:
a.cc:13:16: warning: missing terminating " character
   13 |         printf("Yes\n);
      |                ^
a.cc:13:16: error: missing terminating " character
   13 |         printf("Yes\n);
      |                ^~~~~~~~
a.cc: In function 'int main()':
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

    #include<cstdio>
    #include<algorithm>
    #include<cstring>
    #include<cmath>
    #include<cstdlib>
    int main()
    {
    	char a[10],b[10],c[10];
    	int x ,len ,len1 ,len2 ,j = 0;
    	int q;
    	float y,p;
    	gets(a);
    	len = strlen(a);
    	for(int i = 0 ; i <= len ; i++)
    	{
    		if(a[i]==' ')
    			continue;
    		else
    			b[j] = a[i];
    			j++;
    	}
    	x = atoi(b);
        y = sqrt(x);
        q = sqrt(x);
        p = y - q;
        if(p == 0.000000)printf("Yes\n");
        else
        	printf("No\n");
        	return 0;
    	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
#include <math.h>
#include <stdio.h>

using namespace std;
int main(){
     char a[105],b[105];
     double x;
     cin>>a>>b;
     strcat(a,b);
     x = sqrt((int)a);
     if(x/1 != 0)
     	 printf("No");
     else printf("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: cast from 'char*' to 'int' loses precision [-fpermissive]
   14 |      x = sqrt((int)a);
      |               ^~~~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
int main()
{
	char a[10],b[10],c[10];
	int x ,len ,len1 ,len2 ,j = 0;
	int q;
	float y,p;
	gets(a);
	len = strlen(a);
	for(int i = 0 ; i <= len ; i++)
	{
		if(a[i]==' ')
			continue;
		else
			b[j] = a[i];
			j++;
	}
	x = atoi(b);
    y = sqrt(x);
    q = sqrt(x);
    p = y - q;
    if(p == 0.000000)printf("Yes\n");
    else
    	printf("No\n");
    	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<string>
#include<cstring>
#include<iostream>
#include<math.h>
using namespace std;
int main(){
    int a,b,c;
    double i;
    cin>>a>>b;
    if(b/100!=0) a=a*1000;
    else if(b/10!=0) a=a*100;
        else a=a*10;
    c=a+b;
    sqrt(c)=i;
    c=i;
    if(c==i) cout<<"Yes";
    else cout<<"No";
//    system("Pause");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: lvalue required as left operand of assignment
   14 |     sqrt(c)=i;
      |     ~~~~^~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
int main()
{
	char a[10],b[10],c[10];
	int x ,len ,len1 ,len2 ,j = 0;
	int q;
	float y,p;
	gets(a);
	len = strlen(a);
	for(int i = 0 ; i <= len ; i++)
	{
		if(a[i]==' ')
			continue;
		else
			b[j] = a[i];
			j++;
	}
	x = atoi(b);
    y = sqrt(x);
    q = sqrt(x);
    p = y - q;
    if(p == 0.000000)printf("YES\n");
    else
    	printf("NO\n");
    	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: Java

import java.util.Scanner;
public class square{
 public static void main(String args[]){
   Scanner sc=new Scanner(System.in);
   int a=sc.nextInt();
   int b=sc.nextInt();
   int c;
   if(b==100)
       c=a*1000+b;
   else
       c=a*100+b;

   int square[]=new int [103];


   for (int i=1;i<100;i++)
   {
       square[i]=i*i;

   }
   square[100]=12100;
   square[101]=44100;
   square[102]=96100;
   int start=0,end=102,mid,d=0;
   while(end>=start)
   {
       mid=(start+end)/2;
       if(c==square[mid])
       {
           d=1;
           break;
       }
       else if(c>square[mid])
           start=mid+1;
       else
           end=mid-1;

   }

       if(d==1)
           System.out.println("yes");
       else
           System.out.println("no");


   



   sc.close();
 }
}


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

#include<stdio.h>
#include<math.h>
int main()
{
	int a,b,c,d,y,w;
	scanf("%d%d",&a,&b);
	c=log10(b)+1;d=log10(a);
	m=a*10^c;n=b*10^d;
	w=m+b;y=a+n;
	if(sqrt(w)*sqrt(w)==w||sqrt(y)*sqrt(y)==y)
	printf("Yes");
	else
	printf("No");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'm' undeclared (first use in this function)
    8 |         m=a*10^c;n=b*10^d;
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:18: error: 'n' undeclared (first use in this function)
    8 |         m=a*10^c;n=b*10^d;
      |                  ^
Language: C++

#include <stdio.h>
int main() {
	int a, b, c,d;
	int n=1;
	scanf_s("%d %d", &a, &b);
	d = b;
	while (d >= 10) {
		n++;
		d /= 10;
	}
	while (n >= 1) {
		a *= 10;
		n--;
	}
	c = a + b;
	
	int t = 0;
	int i = 3;
	while (i*i <= c) {
		i++;
		if (c == i * i) {
			printf("Yes");
			t++;
			break;
		}
	}
	if (t == 0) printf("No");
}

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

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

using namespace std;

int main(){
  std::string s1,s2;
  cin >> s1 >> s2;
  std::string buf = s1 + s2;
  // printf("%s\n", buf.c_str());
  int number = std::stoi(buf);
  for(int i=0;i<=1000 i++){
    if(i*i==number){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No"<< endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before 'i'
   13 |   for(int i=0;i<=1000 i++){
      |                      ^~
      |                      ;
Language: C++

#include<iostream>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)

typedef unsigned long long ul;

string a,b;
bool ans=false;
int main(){
  cin >> a >> b;
  int n = atoi(a+b);
  FOR(i,1,101){
    if(i*i==n){
      ans=true;
      break;
    }
  }
  if(ans)cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   17 |   int n = 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 <string.h>
#include <stdlib.h>
#include <algorithm>
#include <math.h>
#include <stdio.h>

using namespace std;
int main(){
     char a[105],b[105];
     double x;
     cin>>a>>b;
     strcat(a,b);
     int atoi(char *a);
     x = sqrt((int)a);
     if(x/1 == 0)
     	 printf("No");
     else printf("Yes");
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: cast from 'char*' to 'int' loses precision [-fpermissive]
   15 |      x = sqrt((int)a);
      |               ^~~~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>

int main()
{
    char a[100],b[100];
    int n;

    scanf("%s%s",a,b);
    if(a!='0')
    {
        strcat(a,b);
        n=atoi(a);
    }
    else if(a=='0')
        n=atoi(b);


    if(sqrt(n)==n/sqrt(n))
    {
        printf("Yes\n");
    }
    else printf("No\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a!='0')
      |        ~^~~~~
a.cc:12:9: error: 'strcat' was not declared in this scope
   12 |         strcat(a,b);
      |         ^~~~~~
a.cc:3:1: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 | 
a.cc:15:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(a=='0')
      |             ~^~~~~
a.cc:19:8: error: 'sqrt' was not declared in this scope
   19 |     if(sqrt(n)==n/sqrt(n))
      |        ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h> 
#include<string.h>
int main(void)
{
	int a,b,i,c,flag=0,r;
	char s1[10],s2[5];
	scanf("%d%d",&a,&b);
	itoa(a,s1,10);
	itoa(b,s2,10);
	strcat(s1,s2);
	c=atoi(s1);
	for(i=1;i<1000;i++)
	{
		r=i*i;
		if(c==r)
		  flag=1;
	}
	if(flag==1)
	  printf("Yes");
	else
	  printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |         itoa(a,s1,10);
      |         ^~~~
Language: C++

#include<iostream>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)

typedef unsigned long long ul;

string a,b;
bool ans=false;
int main(){
  cin >> a >> b;
  int n = int(a+b);
  FOR(i,1,101){
    if(i*i==n){
      ans=true;
      break;
    }
  }
  if(ans)cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: invalid cast from type 'std::__cxx11::basic_string<char>' to type 'int'
   17 |   int n = int(a+b);
      |           ^~~~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#define ll long long
#define mx 2000000
//#define mod 1000000007
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define fur(i,x,y) for(i=x;i<=y;i++)
#define fdr(i,x,y) for(i=x;i>=y;i--)
#define Fur(i,x,y) for(ll i=x;i<=y;i++)
#define Fdr(x,y) for(ll i=x;i>=y;i--)
#define in2(x,y) in(x);in(y)
#define in3(x,y,z) in2(x,y);in(z)
#define in4(a,b,c,d) in2(a,b);in2(c,d)
#define clr(x,y) memset(x,y,sizeof(x))
#define cpy(x,y) memcpy(x,y,sizeof(x))
using namespace std;
/*---------------------------------------*/
namespace fib{char b[300000]= {},*f=b;}
#define gc ((*fib::f)?(*(fib ::f++)):(fgets(fib::b,sizeof(fib::b),stdin)?(fib::f=fib::b,*(fib::f++)):-1))
inline void in(ll &x){x=0;char c;bool f=0;while((c=gc)>'9'||c<'0')if(c=='-')f=!f;x=c-48;while((c=gc)<='9'&&c>='0')x=x*10+c-48;if(f)x=-x;}
namespace fob{char b[300000]= {},*f=b,*g=b+300000-2;}
#define pob (fwrite(fob::b,sizeof(char),fob::f-fob::b,stdout),fob::f=fob::b,0)
#define pc(x) (*(fob::f++)=(x),(fob::f==fob::g)?pob:0)
struct foce{~foce(){pob;fflush(stdout);}} _foce;
namespace ib{char b[100];}
inline void out(ll x){if(x==0){pc(48);return;}if(x<0){pc('-');x=-x;}char *s=ib::b;while(x) *(++s)=x%10,x/=10;while(s!=ib::b) pc((*(s--))+48);}
inline void outn(ll x){out(x);pc('\n');}
/*------------------------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------------------------*/
int main(){
	ll a,b,lb=1,x;
	in2(a,b);x=b;
	while(b){lb*=10;b/=10;}
	x=a*lb+x;a=int(sqtr(x));
	if(a*a==x)printf("Yes\n");
	else printf("No\n");
}
/*

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:39:24: error: 'sqtr' was not declared in this scope; did you mean 'sqrt'?
   39 |         x=a*lb+x;a=int(sqtr(x));
      |                        ^~~~
      |                        sqrt
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  int n;
  if(b<10){
    n=10*a+b;
  }else if(b<100){
    n=100*a+b;
  }else(b==100){
    n=1000*a+b;
  }
  int s[101];
  for(int i=1;i<=100;i++)s[i]=i*i;
  for(int i=1;i<=100;i++){
    if(n==s[i]){
      cout<<"Yes";
      return 0;
    }
  }
  cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '{' token
   11 |   }else(b==100){
      |                ^
      |                ;
Language: Java

mport java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner stdin=new Scanner(System.in);
		int a=stdin.nextInt();
		int b=stdin.nextInt();

		String s;
//		String t="0";
//		String s_a=""+a;
//		String s_b=""+b;
		StringBuffer sb=new StringBuffer();
		sb.append(a);
		sb.append(b);
		s=sb.toString();
		int check=Integer.parseInt(s);
//		System.out.println(check);
		int flag=0;
		for(int i=1;i<1000;i++)
			if(check==i*i)
				flag=1;

		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

}

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

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<map>
#include<cstring>
#include<string>
using namespace std;
const int MaxN = 1e6;

int num[MaxN + 5];
int main()
{
	for(int i = 1;i <= 100;i++) num[i * i] = 1;
	int a, b, m;
	cin >> a >> b;
	int n = 0;
	while(b){
		b /= 10;
		n++:
	}
	int f = 1;
	for(int i = 1;i <= n;i++){
		f *= 10;
	}
	m = a * f + b;
	if(num[m]) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected ';' before ':' token
   21 |                 n++:
      |                    ^
      |                    ;
Language: C

#include<stdio.h>
#include<stdlib.h> 
#include<string.h>
int main(void)
{
	int a,b,i,c,flag=0;
	char s1[4],s2[4];
	scanf("%d%d",&a,&b);
	itoa(a,s1,10);
	itoa(b,s2,10);
	strcat(s1,s2);
	c=atoi(s1);
	for(i=1;i<1000;i++)
	{
		if(c==(i*i))
		  flag=1;
	}
	if(flag==1)
	  printf("Yes");
	else
	  printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |         itoa(a,s1,10);
      |         ^~~~
Language: Java

import java.util.Scanner;
import java.lang.Math;

public class HelloWorld{

    public static void main(String []args){
        
        Scanner in = new Scanner(System.in);
        String a = in.next();
        String b = in.next();
        int c = Integer.parseInt(a+b);
        
        if (Math.sqrt(c)%1 == 0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
}

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

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  int n;
  if(b<10)n=10*a+b;
  else if(b<100)n=100*a+b;
  else(b==100)n=1000*a+b;
  int s[101];
  for(int i=1;i<=100;i++)s[i]=i*i;
  for(int i=1;i<=100;i++){
    if(n==s[i]){
      cout<<"Yes";
      return 0;
    }
  }
  cout<<"No";
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'n'
    9 |   else(b==100)n=1000*a+b;
      |               ^
      |               ;
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	float c;
	cin>>a>>b;
	if (b<10) a*=10;
	else  if (b>=10&&b<100) a*=100;
	else a*=1000;
	a=a+b;
	c=sqrt(a);
	if (c%1==0) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   14 |         if (c%1==0) cout<<"Yes"<<endl;
      |             ~^~
      |             | |
      |             | int
      |             float
Language: C++

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
using namespace std;
int main(void)
{
     int a,b,i,j,k,n,m;
     scanf("%d%d",&n,&m);
     a=m;
     k=1;
     while(a>=10)
     {
          k=k*10;
          a/=10;
     }
     k=k*10;
     n=n*k+m;
     m=sqrt(n);
     if(m*m==n)
          printf("Yes\n");
     else
          printf("No\n");
     return 0;
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
if(b / 100 >= 10 ) a *= 1000;
else if (b / 10 > 1 ) a *= 100;
else a *= 10;
a = a + b;
for(int i=1; i<a ; i++){
  if(i*i > a) System.out.print("No");
  break;
  if(i*i == a)System.out.print("Yes");
}
}
}

Compiler output:
Main.java:14: error: unreachable statement
  if(i*i == a)System.out.print("Yes");
  ^
1 error
Language: C++

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

int main() {
	int a, b,bsize,flg=0;
	cin >> a >> b;
	bsize = log10(b) + 1;
	for (int i = 0; (i < 350)&&(flg==0); i++) {
		if (pow(10, bsize)*a + b == i * i) {
			cout << "Yes";
			flg = 2;
		}
		else if (pow(10, bsize)*a + b <= i * i) {
			flg = 1;
		}

	}
	if (flg != 2) {
		cout << "No";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'log10' was not declared in this scope
    9 |         bsize = log10(b) + 1;
      |                 ^~~~~
a.cc:11:21: error: 'pow' was not declared in this scope
   11 |                 if (pow(10, bsize)*a + b == i * i) {
      |                     ^~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextLong();
        int b = sc.nextLong();
if(b / 100 >= 10 ) a *= 1000;
else if (b / 10 > 1 ) a *= 100;
else a *= 10;
a = a + b;
for(int i=1; i<a ; i++){
  if(i*i > a) System.out.print("No");
  break;
  if(i*i == a)System.out.print("Yes");
}
}
}

Compiler output:
Main.java:5: error: incompatible types: possible lossy conversion from long to int
        int a = sc.nextLong();
                           ^
Main.java:6: error: incompatible types: possible lossy conversion from long to int
        int b = sc.nextLong();
                           ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextLong();
        int b = sc.nextLong();
if(b / 100 >= 10 ) a *= 1000;
else if (b / 10 > 1 ) a *= 100;
else a *= 10;
a = a + b;
for(int i=1; i<a ; i++){
  if(i*i > a) System.out.print("No");
  break;
  if(i*i == a)System.out.print("Yes");
}
}

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

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

int main() {
	int a, b;
	string sum;
	double ans;
	cin >> a >> b;
	sum = to_string(a) + to_string(b);
	ans = sqrt(stod(sum));
	sum = to_string(ans);
	cout << sum << endl;
	if (sum.find(".000000") > sum.size() || sum.find(".000000") < 0) {
		cout << "No";
		return 0;
	}
	cout << "Yes";
}

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

#include <stdio.h>
#include <math.h>
double a,b,c;
int main(){
scanf("%lf,%lf",&a,&b);
c=(double)(int)log10(b)+1;
c=a*pow(10,c)+b;
if(pow(sqrt(c),2)==c){
printf("Yes");
}else{
printf("No");
return 0;
}


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

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

#include "stdafx.h"
#include <iostream>
#include <string>

using namespace std;

int main()
{
	int a, b;
	bool flag;

	cin >> a >> b;

	string str = to_string(a);
	string str2 = to_string(b);

	str += str2;

	int num = stoi(str);

	for (int i = 0; i < num / 2; i++) {
		if ((i * i) == num) {
			flag = true;
			break;
		}
		else {
			flag = false;
		}
	}

	if (flag == true) {
		cout << "Yes" << "\n";
	}
	else {
		cout << "No" << "\n";
	}

	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<iostream>
using namespace std;

int main() {
	int a, b;
	cin >> a >> b;
	int m = 0;
	while (b != 0) {
		m++;
		b = b / 10;
	}
	int c = a*pow(10, m)+b;
	int d = (int)(sqrt(c));
	d = d*d;
	if (d == c)
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'pow' was not declared in this scope
   12 |         int c = a*pow(10, m)+b;
      |                   ^~~
a.cc:13:23: error: 'sqrt' was not declared in this scope
   13 |         int d = (int)(sqrt(c));
      |                       ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <bitset>
#include <string>
#include <vector>
#include <queue>
#include <functional>

using std::endl;

#define ll long long int
#define loop(a, n) for(int a = 0; a < n; ++a)
#define INF 1145141919810
#define OUT std::cout
#define IN std::cin
#define itn int
#define fro for
#define sdt std

int A, B;

ll X;

ll ans;

int main()
{
	IN >> A >> B;

	if (B == 100)
	{
		X = sqrt(A * 1000 + B);
		ans = A * 1000 + B;
	}
	else
	{
		X = sqrt(A * 100 + B);
		ans = A * 100 + B;
	}


	X = X * X;

	if (ans == X) puts("Yes");
	else puts("No");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:21: error: 'sqrt' was not declared in this scope
   37 |                 X = sqrt(A * 1000 + B);
      |                     ^~~~
a.cc:42:21: error: 'sqrt' was not declared in this scope
   42 |                 X = sqrt(A * 100 + B);
      |                     ^~~~
Language: Java

mport java.util.Scanner;



public class Main {

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

		String a = s.next();
		String b = s.next();

		int x = Integer.parseInt(a+b);
		int r = (int)Math.sqrt(x);
		System.out.println(x == r *  r ? "Yes":"No");
	}

}

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

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <bitset>
#include <string>
#include <vector>
#include <queue>
#include <functional>

using std::endl;

#define ll long long int
#define loop(a, n) for(int a = 0; a < n; ++a)
#define INF 1145141919810
#define OUT std::cout
#define IN std::cin
#define itn int
#define fro for
#define sdt std

int A, B;

ll X;

ll ans;

int main()
{
	IN >> A >> B;

	if (B == 100)
	{
		X = std::sqrt(A * 1000 + B);
		ans = A * 1000 + B;
	}
	else
	{
		X = std::sqrt(A * 100 + B);
		ans = A * 100 + B;
	}


	X = X * X;

	if (ans == X) puts("Yes");
	else puts("No");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:26: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
   37 |                 X = std::sqrt(A * 1000 + B);
      |                          ^~~~
      |                          sort
a.cc:42:26: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
   42 |                 X = std::sqrt(A * 100 + B);
      |                          ^~~~
      |                          sort
Language: C++

#include <algorithm>
#include <iostream>
#include <cstring>
#include <vector>
#include <cstdio>
#include <string>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <complex>
using namespace std;
typedef long long ll;
typedef long double db;
typedef pair<int,int> pii;
typedef vector<int> vi;
#define de(x) cout << #x << "=" << x << endl
#define rep(i,a,b) for(int i=a;i<(b);++i)
#define all(x) (x).begin(),(x).end()
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define fi first
#define se second
const int N = 101010;
int main(){
	int a,b;
	cin>>a>>b;
	a=a*100+b;
	bool t=false;
	for(i=1;i<=10000;i++){
		if(i*i==a)t=true;
	}
	if(t)cout<<"Yes";
	else cout<<"No";
	return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:31:13: error: 'i' was not declared in this scope
   31 |         for(i=1;i<=10000;i++){
      |             ^
Language: C

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

int main() {
    int a, b;
    cin >> a >> b;
    int c = stoi(to_string(a)+to_string(b));
    if (sqrt(c) == floor(sqrt(c)))
        puts("Yes");
    else 
        puts("No");
}


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

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <bitset>
#include <string>
#include <vector>
#include <queue>
#include <functional>

using std::endl;

#define ll long long int
#define loop(a, n) for(int a = 0; a < n; ++a)
#define INF 1145141919810
#define OUT std::cout
#define IN std::cin
#define itn int
#define fro for
#define sdt std

int A, B;

ll X;

ll ans;

int main()
{
	IN >> A >> B;

	if (B == 100)
	{
		X = (ll)std::sqrt(A * 1000 + B);
		ans = A * 1000 + B;
	}
	else
	{
		X = (ll)std::sqrt(A * 100 + B);
		ans = A * 100 + B;
	}


	X = X * X;

	if (ans == X) puts("Yes");
	else puts("No");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:30: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
   37 |                 X = (ll)std::sqrt(A * 1000 + B);
      |                              ^~~~
      |                              sort
a.cc:42:30: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
   42 |                 X = (ll)std::sqrt(A * 100 + B);
      |                              ^~~~
      |                              sort
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    int a,b;
    double n;
    cin>>a>>b;
    if (b<10) n=sqrt(a*10+b);
    else if (b<100) n=sqrt(a*100+b);
    else n=sqrt(a*1000+b);
    int m=n;
    if (n==m) cout<<"Yes";
    else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'sqrt' was not declared in this scope
   11 |     if (b<10) n=sqrt(a*10+b);
      |                 ^~~~
a.cc:12:23: error: 'sqrt' was not declared in this scope
   12 |     else if (b<100) n=sqrt(a*100+b);
      |                       ^~~~
a.cc:13:12: error: 'sqrt' was not declared in this scope
   13 |     else n=sqrt(a*1000+b);
      |            ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <bitset>
#include <string>
#include <vector>
#include <queue>
#include <functional>

using std::endl;

#define ll long long int
#define loop(a, n) for(int a = 0; a < n; ++a)
#define INF 1145141919810
#define OUT std::cout
#define IN std::cin
#define itn int
#define fro for
#define sdt std

int A, B;

ll X;

ll ans;

int main()
{
	IN >> A >> B;

	if (B == 100)
	{
		X = (ll)sqrt(A * 1000 + B);
		ans = A * 1000 + B;
	}
	else
	{
		X = (ll)sqrt(A * 100 + B);
		ans = A * 100 + B;
	}


	X = X * X;

	if (ans == X) puts("Yes");
	else puts("No");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:25: error: 'sqrt' was not declared in this scope
   37 |                 X = (ll)sqrt(A * 1000 + B);
      |                         ^~~~
a.cc:42:25: error: 'sqrt' was not declared in this scope
   42 |                 X = (ll)sqrt(A * 100 + B);
      |                         ^~~~
Language: C++

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

long long a, b;

int main()
{
	ios_base::sync_with_stdio(false);

	cin >> a >> b;

	string s;

	stringstream ss;

	ss << a;

	s = ss.str();

	stringstream sss;

	sss << b;

	s += sss.str();

	long long res = atoll(s.c_str());

	for (long long i = 1; i <= 1e5; i++)
	{
		if (i*i == res) return cout << "Yes", 0;
	}
	cout << "No";
	return 0;
}

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

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class main {

	String fileName = "erase";

	public void solve() throws IOException {
		int a = nextInt();
		int b = nextInt();
		if (b >= 10 && b != 100) {
			a = a * 100 + b;
		} else if (b == 100) {
			a = a * 1000 + b;
		} else if (b < 10) {
			a = a * 10 + b;
		}
		if (Math.sqrt(a) == (int) Math.sqrt(a)) {
			out.print("Yes");
		} else
			out.print("No");
	}

	public void run() {
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			br = new BufferedReader(isr);
			out = new PrintWriter(System.out, true);
			// out = new PrintWriter(fileName + ".out");
			// br = new BufferedReader(new FileReader(fileName + ".in"));
			solve();
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}
	}

	BufferedReader br;
	StringTokenizer in;
	static PrintWriter out;

	public String nextToken() throws IOException {
		while (in == null || !in.hasMoreTokens()) {
			in = new StringTokenizer(br.readLine());
		}
		return in.nextToken();
	}

	public int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	public double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}

	public long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	public static void main(String[] args) throws IOException {
		new main().run();
	}

}

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

#include<iostream>
#include<string>
#include<set>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b;
  if(b<10)
    c=10*a+b;
  else if(b<100)
    c=100*a+b;
  else
    c=1000*a+b;
  if(sqrt(c)*sqrt(c)==c)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: 'sqrt' was not declared in this scope
   15 |   if(sqrt(c)*sqrt(c)==c)
      |      ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<map>
#include<algorithm>
#include<numeric>

#define REPS(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)

using namespace std;

using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;

const int mod = 1e9 + 7;
const long double pi = 3.141592653589793238462643383279502884197;
const long double eps = 1e-7;

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

	int c = a * pow(10, (int)log10(b) + 1) + b;
	int s = sqrt(c);
	if (c == s * s) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:34: error: 'log10' was not declared in this scope
   28 |         int c = a * pow(10, (int)log10(b) + 1) + b;
      |                                  ^~~~~
a.cc:28:21: error: 'pow' was not declared in this scope
   28 |         int c = a * pow(10, (int)log10(b) + 1) + b;
      |                     ^~~
a.cc:29:17: error: 'sqrt' was not declared in this scope
   29 |         int s = sqrt(c);
      |                 ^~~~
Language: C++

#include<iostream>
#include<string>
#include<set>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a,b;
  if(b<10)
    c=10*a+b;
  else if(b<100)
    c=100*a+b;
  else
    c=1000*a+b;
  if(sqrt(c)*sqrt(c)==c)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: 'sqrt' was not declared in this scope
   15 |   if(sqrt(c)*sqrt(c)==c)
      |      ^~~~
Language: C++

#include <bits/stdc++.h>
#define M_PI           3.14159265358979323846  /* pi */
using namespace std;
using  ll = long long;
 
int main() {
    ll n;
    cin >> n;
 
    vector<ll>t(n + 1, 0);
    vector<ll>x(n + 1, 0);
    vector<ll>y(n + 1, 0);
 
    for (ll i = 1; i <= n; i++) {
        cin >> t.at(i) >> x.at(i) >> y.at(i);
    }
    ll tnow;
    ll xynow;
    bool result = true;
 
    for (ll i = 1; i <= n; i++) {
        tnow = (t.at(i) - t.at(i - 1));
        xynow = abs(x.at(i) - x.at(i - 1) + abs(y.at(i) - (y.at(i - 1))));
 
        if (tnow < xynow)result = false;
        if (xynow % 2 != tnow % 2)result = false;
    }
    if (result == true)cout << "Yes" << endl;
    else cout << "No" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:29:31: error: expected '}' at end of input
   29 |     else cout << "No" << endl;
      |                               ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C

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

// これ以降の行は変更しなくてよい

int main() {
  int n;
  cin >> n;
  vector<int> t(n), x(n), y(n);
  for (int i = 0; i < n; i++) cin >> t[i] >> x[i] >> y[i];

  for (int i = 0; i < n; i++) {
    int ti, xi, yi;
    if (i == 0) {
      ti = t[i];
      xi = x[i];
      yi = y[i];
    }
    else{
      ti = t[i] - t[i-1];
      xi = x[i] - x[i-1];
      yi = y[i] - y[i-1];
    }

    // cout << ti << " " << xi << " "<< yi << " " << endl;

    if ((abs(xi+yi) <= ti) && (abs(xi+yi-ti)%2 == 0)) continue;
    else {cout << "No" << endl; return 0;}
  }
  cout << "Yes" << endl;
  return 0;
}


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

import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int x = 0;
    int y = 0;
    for(int i = 0;i < num;i++){
      int sec = sc.nextInt();
      int mx = sc.nextInt();
      int my = sc.nextInt();
      int move = Math.abs(mx - x) + Math.abs(my - y);
      if(move >= sec){
        move -= sec;
        if(move % 2 != 0){
          System.out.println("No");
          System.exit(0);
        }
      }
      else{
        System.out.pintln("No");
        System.exit(0);
      }
    }
    System.out.println("Yes");
  }
}
      

Compiler output:
Main.java:22: error: cannot find symbol
        System.out.pintln("No");
                  ^
  symbol:   method pintln(String)
  location: variable out of type PrintStream
1 error
Language: C++

using namespace std;

int main() {
    int N;
    int t[110000], x[110000], y[110000];
    cin >> N;
    t[0] = x[0] = y[0] = 0;  // 初期状態
    for (int i = 0; i < N; ++i) cin >> t[i+1] >> x[i+1] >> y[i+1];  // 1-index にしておく

    bool can = true;
    for (int i = 0; i < N; ++i) {
        int dt = t[i+1] - t[i];
        int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
        if (dt < dist) can = false;
        if (dist % 2 != dt % 2) can = false;  // dist と dt の偶奇は一致する必要あり！
    }

    if (can) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> N;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:20: error: 'abs' was not declared in this scope
   13 |         int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      |                    ^~~
a.cc:18:14: error: 'cout' was not declared in this scope
   18 |     if (can) cout << "Yes" << endl;
      |              ^~~~
a.cc:18:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:31: error: 'endl' was not declared in this scope
   18 |     if (can) cout << "Yes" << endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:19:10: error: 'cout' was not declared in this scope
   19 |     else cout << "No" << endl;
      |          ^~~~
a.cc:19:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:26: error: 'endl' was not declared in this scope
   19 |     else cout << "No" << endl;
      |                          ^~~~
a.cc:19:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'