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

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

int main(){
    int a,b;
    scanf("%d%d",&a,&b);

    int c=atoi(strcat(itoa(a),itoa(b)));
    int flag=0;
    if(int i=1;i*i<=c;i++){
        if(i*i==c){
            printf("Yes"); 
            flag=1;
        }
    }
    if(flag==0)printf("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'itoa' was not declared in this scope
    9 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                       ^~~~
a.cc:11:22: error: expected ')' before ';' token
   11 |     if(int i=1;i*i<=c;i++){
      |       ~              ^
      |                      )
a.cc:11:23: error: 'i' was not declared in this scope
   11 |     if(int i=1;i*i<=c;i++){
      |                       ^
Language: C++

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

int main(){
    int a,b;
    scanf("%d%d",&a,&b);

    int c=atoi(strcat(itoa(a),itoa(b));
    int flag=0;
    if(int i=1;i*i<=c;i++){
        if(i*i=＝c){
            printf("Yes"); 
            flag=1;
        }
    }
    if(flag==0)printf("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'itoa' was not declared in this scope
    9 |     int c=atoi(strcat(itoa(a),itoa(b));
      |                       ^~~~
a.cc:11:22: error: expected ')' before ';' token
   11 |     if(int i=1;i*i<=c;i++){
      |       ~              ^
      |                      )
a.cc:11:23: error: 'i' was not declared in this scope
   11 |     if(int i=1;i*i<=c;i++){
      |                       ^
Language: C++

#include <cmath>

using namespace std;

int len=0;

int get_length(int x)
{
	while(x)
	{
		x/=10;
		len++;
	}
	return len;
}

int main()
{
	int a,b;
	double result,number;
	while(cin>>a>>b)
	{
		len=get_length(b);
		number=a*pow(10,len)+b;
		result=sqrt(number);
		if(abs(round(result)-result)<1e-8)
			cout<<"Yes";
		else
			cout<<"No";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: 'cin' was not declared in this scope
   21 |         while(cin>>a>>b)
      |               ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cmath>
  +++ |+#include <iostream>
    2 | 
a.cc:27:25: error: 'cout' was not declared in this scope
   27 |                         cout<<"Yes";
      |                         ^~~~
a.cc:27:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:25: error: 'cout' was not declared in this scope
   29 |                         cout<<"No";
      |                         ^~~~
a.cc:29:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

int main(){
    int a,b;
    scanf("%d%d",&a,&b);

    int c=atoi(strcat(itoa(a),itoa(b)));
    int flag=0;
    if(int i=1;i*i<=c;i++){
        if(i*i=c){
            printf("Yes");
            flag=1;
        }
    }
    if(flag==0)printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:23: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                       ^~~~
main.c:9:23: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
    9 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                       ^~~~~~~
      |                       |
      |                       int
In file included from main.c:3:
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:9:31: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
    9 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                               ^~~~~~~
      |                               |
      |                               int
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:11:8: error: expected expression before 'int'
   11 |     if(int i=1;i*i<=c;i++){
      |        ^~~
main.c:12:12: error: 'i' undeclared (first use in this function)
   12 |         if(i*i=c){
      |            ^
main.c:12:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
    int a,b;
    scanf("%d%d",&a,&b);

    int c=atoi(strcat(itoa(a),itoa(b)));
    int flag=0;
    if(int i=1;i*i<=c;i++){
        if(i*i=c){
            printf("Yes");
            flag=1;
        }
    }
    if(flag==0)printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
    8 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strcat'
    2 | #include<stdlib.h>
  +++ |+#include <string.h>
    3 | 
main.c:8:16: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch]
    8 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                ^~~~~~
main.c:8:16: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:8:23: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    8 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                       ^~~~
main.c:8:23: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
    8 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                       ^~~~~~~
      |                       |
      |                       int
main.c:8:23: note: expected 'char *' but argument is of type 'int'
main.c:8:31: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
    8 |     int c=atoi(strcat(itoa(a),itoa(b)));
      |                               ^~~~~~~
      |                               |
      |                               int
main.c:8:31: note: expected 'const char *' but argument is of type 'int'
main.c:10:8: error: expected expression before 'int'
   10 |     if(int i=1;i*i<=c;i++){
      |        ^~~
main.c:11:12: error: 'i' undeclared (first use in this function)
   11 |         if(i*i=c){
      |            ^
main.c:11:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++


#include<stdio.h>
int count(const int x)
{
  int t=0;
  do{
    x/=10;
    t++;
  }while(x);
}
int main(void)
{
  int a,b,c,d,i;
  c=count(b);
  d=10*c*a+b;
  for(i=1;i<=100;i++)
    {
      if(d==(i*i))
	{
	  printf("Yes\n");
	  break;
	}
      if(i=100)
	{
	  printf("No\n");
	}
    }
  return 0;
}

Compiler output:
a.cc: In function 'int count(int)':
a.cc:7:6: error: assignment of read-only parameter 'x'
    7 |     x/=10;
      |     ~^~~~
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
Language: C++

#include<math.h>
#include<stdio.h>
int count(const int x)
{
  int t=0;
  do{
    x/=10;
    t++;
  }while(x);
}
int main(void)
{
  int a,b,c,d,i;
  c=count(b);
  d=10*c*a+b;
  for(i=1;i<=100;i++)
    {
      if(d==(i*i))
	{
	  printf("Yes\n");
	  break;
	}
      if(i=100)
	{
	  printf("No\n");
	}
    }
  return 0;
}

Compiler output:
a.cc: In function 'int count(int)':
a.cc:7:6: error: assignment of read-only parameter 'x'
    7 |     x/=10;
      |     ~^~~~
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
Language: C

#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
int main() {
    string a, b;
    cin >> a >> b;
    stringstream ss;
    string c = a + b; // "123456" "123" "456"
    ss << c; // ss "123456"
    int num;
    ss >> num;
    int sqrtNum = (int)sqrt(num); // 25 -> 5 26 -> 5 26 != 5 *5
    // printf("%d", sqrtNum);
    printf("%s", sqrtNum * sqrtNum == num ? "Yes" : "No");
}


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

#include <iostream>

using namespace std;

int main()
{
    int a, b, c=0, bb, p=1;
    cin>>a>>b;
    bb=b;
    while(b!=0){
        b/=10;
        c++;
    }
    for (int i=1; i<c; i++){
        p*=10;
    }
    a=a*p+bb;
    if (abs(sqrt(a))*abs(sqrt(a))==a){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
    return 0;
}

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

#include <iostream>

using namespace std;

int main()
{
    int a, b, c=0, bb, p=1;
    cin>>a>>b;
    bb=b;
    while(b!=0){
        b/=10;
        c++;
    }
    for (int i=1; i<c; i++){
        p*=10;
    }
    a=a*p+bb;
    if (abs(sqrt(a))*abs(sqrt(a))==a){
        g<<"Yes";
    }
    else{
        g<<"No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'sqrt' was not declared in this scope
   18 |     if (abs(sqrt(a))*abs(sqrt(a))==a){
      |             ^~~~
a.cc:19:9: error: 'g' was not declared in this scope
   19 |         g<<"Yes";
      |         ^
a.cc:22:9: error: 'g' was not declared in this scope
   22 |         g<<"No";
      |         ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int a, b, c=0, bb, p=1;
    cin>>a>>b;
    bb=b;
    while(b!=0){
        b/=10;
        c++;
    }
    for (int i=1; i<c; i++){
        p*=10;
    }
    a=a*p+bb;
    int i;
    for (i=1; i*i<a; i++){};
    if (i*i==a){
        g<<"Yes";
    }
    else{
        g<<"No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'g' was not declared in this scope
   21 |         g<<"Yes";
      |         ^
a.cc:24:9: error: 'g' was not declared in this scope
   24 |         g<<"No";
      |         ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
short nrcif (int n)
{
    inr cn=n,ctr=0;
    while (cn!=0)
    {
        ctr++;
        n/=10;
    }
    return ctr;
}
int power (int a,int b)
{
    int p=1;
    for (i=1;i<=b;i++)
        p*=a;
    return p;
}
int main()
{
    int a,b;
    int n;
    cin>>a>>b;
    a*=pow(10,nrcif(b));
    a+=b;
    n=sqrt(a);
    if (n*n==a)
        cout<<"Yes";
    else
        cout<<"No";
}


Compiler output:
a.cc: In function 'short int nrcif(int)':
a.cc:6:5: error: 'inr' was not declared in this scope; did you mean 'int'?
    6 |     inr cn=n,ctr=0;
      |     ^~~
      |     int
a.cc:7:12: error: 'cn' was not declared in this scope; did you mean 'n'?
    7 |     while (cn!=0)
      |            ^~
      |            n
a.cc:9:9: error: 'ctr' was not declared in this scope
    9 |         ctr++;
      |         ^~~
a.cc:12:12: error: 'ctr' was not declared in this scope
   12 |     return ctr;
      |            ^~~
a.cc: In function 'int power(int, int)':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     for (i=1;i<=b;i++)
      |          ^
Language: Java

import java.util.Scanner;

public class MainT02{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String c = String.valueOf(b);
        for (int i = 0; i < c.length(); i++) {
            a *= 10;
        }
        int check = b + a;

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

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

import java.util.Scanner;

public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String c = String.valueOf(i);
        for (int i = 0; i < c.length(); i++) {
            a *= 10;
        }
        int check = b + a;

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

Compiler output:
Main.java:8: error: cannot find symbol
        String c = String.valueOf(i);
                                  ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class test3 {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		String b=sc.next();
		String c=a+b;
		int bool=0;
		int sum=Integer.parseInt(c);
		for(int i=1;i<=100;i++){
			if(sum%i==0&&sum==i*i){
				bool=1;
			}
		}
		if(bool==1){
			System.out.println("Yes");
		}
		if(bool==0){
			System.out.println("No");
		}	
	}
}

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

#include<algorithm>
#include<cstdio>
#include<functional>
#include<iostream>
#include<cfloat>
#include<climits>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<map>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#include<time.h>
#include<vector>
using namespace std;
int main()
{
	int a,b;
	while(cin >> a >> b)
	{
		int sum;
		if(b<10) sum=a*10+b;
		else if(b<100) sum=a*100+b;
		else sum=a*1000+b;
		int root=(int)sqrt(sum);
		if(root*root==sum){cout << "Yes\n";break;
		else{cout << "No\n";break;}
	}
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:17: error: expected '}' before 'else'
   30 |                 else{cout << "No\n";break;}
      |                 ^~~~
a.cc:29:35: note: to match this '{'
   29 |                 if(root*root==sum){cout << "Yes\n";break;
      |                                   ^
Language: C++

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


using namespace std;


int main()
{
  	string s,t;
    cin>>s>>t;
    int x=stoi(s+t);
    for(int i=0;i<=1000；i++)
    if(i*i==x)
    cout<<"yes";
    else
    cout<<"no";
    system("pause");
    return 0;
}       

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: unable to find numeric literal operator 'operator""\U0000ff1bi'
   21 |     for(int i=0;i<=1000；i++)
      |                    ^~~~~~~
a.cc:21:29: error: expected ';' before ')' token
   21 |     for(int i=0;i<=1000；i++)
      |                             ^
      |                             ;
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main (void) {
  int a, b, c;
  cin >> a >> b;
  
  c = b;
  while (c) {
    a *= 10;
    c /= 10;
  }
  
  a += b;

  c = (int) sqrt (a);
  cout << (c * c == a) ? "Yes" : "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:39: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |   cout << (c * c == a) ? "Yes" : "No" << endl;
      |                                  ~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main (void) {
  int a, b;
  cin >> a >> b;
  while (b) {
    a *= 10;
    a += (b % 10);
    b /= 10;
  }
  int c = (int) sqrt (a);
  cout << (c * c == a) ? "Yes" : "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << (c * c == a) ? "Yes" : "No" << endl;
      |                                  ~~~~~^~~~~~~
Language: C++

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

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  int c = b;
  if (c < 10) {
    c += a*10;
  } else if (c < 100) {
    c+=a*100;
  } else if (c < 1000) {
    c+= a*1000;
  }
  int sq = sqrt(c);
  if (sq*sq==c) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0; 
}
提出情報

Compiler output:
a.cc:32:5: error: redefinition of 'int main()'
   32 | int main() {
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main() {
      |     ^~~~
a.cc:51:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   51 | 提出情報
      | ^~~~~~~~
Language: Java

import java.util.Scanner;


public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int aa=String.valueOf(a).length();
        int bb=String.valueOf(b).length();
        if((aa==1&&bb==1)||(aa==2&&bb==1)||(aa==3&&bb==1)){
          int c=10*a+b;
         for(int i=0;i<c;i++){
            if(i*i==c){
                System.out.println("Yes");
            }else if(i==c-1){
                System.out.println("No");
            }
        
        }
}
        if((aa==1&&bb==2)||(aa==2&&bb==2)||(aa==3&&bb==2)){
            int c=100*a+b;
            for(int i=0;i<c;i++){
                if(i*i==c){
                    System.out.println("Yes");
                }else if(i==c-1){
                    System.out.println("No");
                }
            
            }
    }
        
        if((aa==1&&bb==3)||(aa==2&&bb==3)||(aa==3&&bb==3)){
            int c=1000*a+b;
            for(int i=0;i<c;i++){
                if(i*i==c){
                    System.out.println("Yes");
                }else if(i==c-1){
                    System.out.println("No");
                }
            
            }
    }
        


Compiler output:
Main.java:44: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;


public class at{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int aa=String.valueOf(a).length();
        int bb=String.valueOf(b).length();
        int c;
        if((aa==1&&bb==1)||(aa==2&&bb==1)||(aa==3&&b==1)){
         c=10*a+b;
         for(int i=0;i<c;i++){
            if(i*i==c){
                System.out.println("Yes");
            }else if(i==c-1){
                System.out.println("No");
            }
        
        }
}
        if((aa==1&&bb==2)||(aa==2&&bb==2)||(aa==3&&bb==2)){
            c=100*a+b;
            for(int i=0;i<c;i++){
                if(i*i==c){
                    System.out.println("Yes");
                }else if(i==c-1){
                    System.out.println("No");
                }
            
            }
    }
        
        if((aa==1&&bb==3)||(aa==2&&bb==3)||(aa==3&&bb==3)){
            c=1000*a+b;
            for(int i=0;i<c;i++){
                if(i*i==c){
                    System.out.println("Yes");
                }else if(i==c-1){
                    System.out.println("No");
                }
            
            }
    }
        

        


    }
}

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

import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int aa=String.valueOf(a).length();
        int bb=String.valueOf(b).length();
        int c;
        if((aa==1&&bb==1)||(aa==2&&bb==1)||(aa==3&&b==1)){
        c=10*a+b;}
        if((aa==1&&bb==2)||(aa==2&&bb==2)||(aa==3&&bb==2)){
            c=100*a+b;
        }
        if((aa==1&&bb==3)||(aa==2&&bb==3)||(aa==3&&bb==3)){
            c=1000*a+b;
        }

        for(int i=0;i<c;i++){
            if(i*i==c){
                System.out.println("Yes");
            }else if(i==c-1){
                System.out.println("No");
            }
        }
        


    }
}

Compiler output:
Main.java:20: error: variable c might not have been initialized
        for(int i=0;i<c;i++){
                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int aa=String.valueOf(a).length();
        int bb=String.valueOf(b).length();
        if((aa==1&&bb==1)||(aa==2&&bb==1)||(aa==3&&b==1)){
        int c=10*a+b;}
        if((aa==1&&bb==2)||(aa==2&&bb==2)||(aa==3&&bb==2)){
            int c=100*a+b;
        }
        if((aa==1&&bb==3)||(aa==2&&bb==3)||(aa==3&&bb==3)){
            int c=1000*a+b;
        }

        for(int i=0;i<c;i++){
            if(i*i==c){
                System.out.println("Yes");
            }else if(i==c-1){
                System.out.println("No");
            }
        }
        


    }
}

Compiler output:
Main.java:19: error: cannot find symbol
        for(int i=0;i<c;i++){
                      ^
  symbol:   variable c
  location: class Main
Main.java:20: error: cannot find symbol
            if(i*i==c){
                    ^
  symbol:   variable c
  location: class Main
Main.java:22: error: cannot find symbol
            }else if(i==c-1){
                        ^
  symbol:   variable c
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=10*a+b;
        for(i=0;i<c;i++){
            if(i*i==c){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }
        


    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        for(i=0;i<c;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
        for(i=0;i<c;i++){
                ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
        for(i=0;i<c;i++){
                    ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
            if(i*i==c){
               ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
            if(i*i==c){
                 ^
  symbol:   variable i
  location: class Main
5 errors
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cmath>
using namespace std;

int main(){
	int a, b;
	scanf("%d %d", &a, &b);
	int times = 1;
	while(times <= b)	times *= 10;
	int result = sqrt(a*times + b);
	int guess = sqrt(result);
	if(guess*guess == result){
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}


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

#include <iostream>
#include<sstream>
#include<vector>
#include<iterator>
using namespace std;

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

	int n = stoi(a+b);
	int rn = sqrt(n);

	string ret;
	if(rn*rn == n)
		ret = "Yes";
	else
		ret = "No";

	cout << ret << endl;

	return 0;
}


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

#include <iostream>
using namespace std;
int main ( )
{
	string a,b;
	int zh(string s);
	cin>>a>>b;
	int x=zh(a+b);
	if(int (sqrt(x))==sqrt(x));
	cout<<"Yes";
	else
	cout<<"No";
	int zh(string s);
	int tmp=0;
	for(int i=0;i<s.size();i++)
	{
		tmp=tmp*10+(s[i]-'0');
	}
	return tmp;
 } 


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'sqrt' was not declared in this scope
    9 |         if(int (sqrt(x))==sqrt(x));
      |                 ^~~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
a.cc:15:23: error: 's' was not declared in this scope
   15 |         for(int i=0;i<s.size();i++)
      |                       ^
Language: C++

#include <bist/stdc++.h>
using namespace std;
string a,b,c;
int n;
int main(){
    cin>>a>>b;
    c+=a; c+=b;
    n=atol(c.c_str());
    for(int i=1;i<=sqrt(n);++i)
    if(i*i=n){
    	cout<<"Yes"<<endl;
        return 0;
    }
    cout<<"No"<<endl;
    return 0;
}


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

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


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

#include <iostream>
using namespace std;
int main ( )
{
	string a,b;
	int zh(string s);
	cin>>a>>b;
	int x=zh(a+b);
	if(int (sqrt(x))==sqrt(x));
	cout<<"Yes";
	else
	cout<<"No";
	int zh(string s);
	int tmp=0;
	for(int i=0;i<s.size();i++)
	{
		tmp=tmp*10+(s[i]-'0');
	}
	return tmp;
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'sqrt' was not declared in this scope
    9 |         if(int (sqrt(x))==sqrt(x));
      |                 ^~~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
a.cc:15:23: error: 's' was not declared in this scope
   15 |         for(int i=0;i<s.size();i++)
      |                       ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
    7 |     s=0
      |        ^
      |        ;
    8 |     cin>>a>>b;
      |     ~~~
Language: C++

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

int change(string s)
{
	int tmp=0,i;
	for(i=0;i<s.size();i++)
		tmp=tmp*10+(s[i]-'0');
	return tmp;
}

int main()
{
	string a,b;
	cin>>a>>b;
	int x=change(a+b)
	
	if(int(sqrt(x))==sqrt(x))
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ',' or ';' before 'if'
   20 |         if(int(sqrt(x))==sqrt(x))
      |         ^~
a.cc:22:9: error: 'else' without a previous 'if'
   22 |         else
      |         ^~~~
Language: Java

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    String c = a + b;
    int num = Integer.parseInt(c);
    double k = Math.sqrt(num);
    BigDecimal bd = new BigDecimal(k);
　BigDecimal bd3 = bd.setScale(0, BigDecimal.ROUND_DOWN); 
    double x = bd3.doubleValue();
    if(k == x){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:14: error: illegal character: '\u3000'
?BigDecimal bd3 = bd.setScale(0, BigDecimal.ROUND_DOWN); 
^
1 error
Language: Java

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int alen = String.valueOf( a ).length();
    for(; alen > 1; alen--){
      int ten = 10;
      ten = ten * 10;
    }
    int num = ten * a + b;
    double k = Math.sqrt(num);
    if(k * k == num){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
    int num = ten * a + b;
              ^
  symbol:   variable ten
  location: class Main
1 error
Language: Java

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.next();
    int b = sc.next();
    int alen = String.valueOf( a ).length();
    for(; alen > 1; alen--){
      int ten = 10;
      ten * 10;
    }
    int num = ten * a + b;
    double k = Math.sqrt(num);
    if(k * k == num){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:12: error: not a statement
      ten * 10;
          ^
1 error
Language: Java

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.next();
    int b = sc.next();
    int alen = String.valueOf( a ).length();
    for(alen > 1){
      int ten = 10
      ten * 10;
      alen--;
    }
    int num = ten * a + b;
    double k = Math.sqrt(num);
    if(k * k == num){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:10: error: not a statement
    for(alen > 1){
             ^
Main.java:10: error: ';' expected
    for(alen > 1){
                ^
Main.java:11: error: ';' expected
      int ten = 10
                  ^
Main.java:12: error: not a statement
      ten * 10;
          ^
4 errors
Language: Java

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

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

Compiler output:
Main.java:17: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.*;
import java.lang.*;

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

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

#include<cstdio>
#include<cstring>
int main()
{
	char a[4],b[4];
	int x=0;
	scanf("%s%s",a,b);
	for(int i=0;i<strlen(a);i++)
		x=x*10+a[i]-'0';
	for(int i=0;i<strlen(b);i++)
		x=x*10+b[i]-'0';
	bool f=0;
	for(int i=0;i<330;i++)
		if(i*i>=x)
		{
			if(i*i==x)
				f=1;
			break;
		}
	if(f)
		printf("Yes\n");
	else
		printf("No\n")
}

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

#include <iostream>

using namespace std;

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

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

static const int MAX = 200000;
#define rep(i,n) for(int i=0;i<n;i++)
#define GET_ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
 
int main() {
  long long int n, h;
  string x, y, z;
  cin >> x >> y;
  z = x + y;
  int num = std::atoi(z.c_str());
  for (int i = 1; i < 10000; i++) {
    if (i*i == num) { 
      cout << "Yes" << endl;
      return 0;
	}
  }
    cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string x, y, z;
      |   ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:8:10: error: 'x' was not declared in this scope
    8 |   cin >> x >> y;
      |          ^
a.cc:8:15: error: 'y' was not declared in this scope
    8 |   cin >> x >> y;
      |               ^
a.cc:9:3: error: 'z' was not declared in this scope
    9 |   z = x + y;
      |   ^
a.cc:10:18: error: 'atoi' is not a member of 'std'
   10 |   int num = std::atoi(z.c_str());
      |                  ^~~~
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "No" << endl;
      |     ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope
   17 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

int zh (string x){
	int s=0;
	
	for(int i=0; i<s.size(); i++)
		s= s*10 + (x[i]-'0');
	}
	
	return 0;
} 

int main(){
	int a;
	string x,y;
	cin>>x>>y;
	x=x+y;
	a=zh(x);
	if(sprt(a)==int(sprt(a))) cout<<"Yes";
	else cout<<"No"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int zh(std::string)':
a.cc:7:26: error: request for member 'size' in 's', which is of non-class type 'int'
    7 |         for(int i=0; i<s.size(); i++)
      |                          ^~~~
a.cc:9:9: warning: no return statement in function returning non-void [-Wreturn-type]
    9 |         }
      |         ^
a.cc: At global scope:
a.cc:11:9: error: expected unqualified-id before 'return'
   11 |         return 0;
      |         ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
a.cc: In function 'int main()':
a.cc:20:12: error: 'sprt' was not declared in this scope; did you mean 'sqrt'?
   20 |         if(sprt(a)==int(sprt(a))) cout<<"Yes";
      |            ^~~~
      |            sqrt
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ',' or ';' before 'if'
   15 |         if(sqrt(s)==int (sqrt(s)))
      |         ^~
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else
      |         ^~~~
a.cc: In function 'int zh(std::string)':
a.cc:9:1: warning: control reaches end of non-void function [-Wreturn-type]
    9 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int i,a,b,s=0;
	cin>>a>>b;
	while(a!=0)
	{
		s=s*10+a%10;
		a/=10;
		
	}
		while(b!=0)
	{
		s=s*10+b%10;
		b/=10;
		
	}
	if(int(sqrt(s))==sqrt(s))
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
	return 0;
}


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

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:27: error: expected ';' before '}' token
   24 |                 cout<<"No"
      |                           ^
      |                           ;
   25 |         }
      |         ~
Language: C++

#include<algorithm>
#include<iomanip>
using namespace std;
int t(string x)
{
	int s=0;
	for(int i=0;i<x.size();i++)
	
	s=s*10+(x[i]-'0');	
	
	return s;
}
int main()
{
	ios::sync_with_stdio(false);
	string a,b;
	cin>>a>>b;
	int t(string x);
	int s;
	a+=b;
	s=t(a);
	if(int(sqrt(s))==sqrt(s))
	cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'cin' was not declared in this scope
   17 |         cin>>a>>b;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<iomanip>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:22:16: error: 'sqrt' was not declared in this scope
   22 |         if(int(sqrt(s))==sqrt(s))
      |                ^~~~
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<"Yes";
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:14: error: 'cout' was not declared in this scope
   24 |         else cout<<"No";
      |              ^~~~
a.cc:24:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

	int zh(string x){
		int s=0;
		
		for (int i=0;i<=x.size();i++){
			s=s*10+(x[i]-'0');
		}
		return s;
	}
if (sqrt(s)==int (sqrt(n))) if (sqrt(n)*sqrt(n)=x) cout<<"Yes";
else cout<<"No";

Compiler output:
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (sqrt(s)==int (sqrt(n))) if (sqrt(n)*sqrt(n)=x) cout<<"Yes";
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else cout<<"No";
      | ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
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;
      exit;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '<=' token
    8 |   for(int i = 1,i <= 1000,i++){
      |                  ^~~
      |                  ;
a.cc:8:19: error: expected primary-expression before '<=' token
    8 |   for(int i = 1,i <= 1000,i++){
      |                   ^~
a.cc:8:30: error: expected ';' before ')' token
    8 |   for(int i = 1,i <= 1000,i++){
      |                              ^
      |                              ;
Language: C++

#include <stdio.h>
#include <string>
#include <complex>
using namespace std;
int main(void) {
  int a, b, c, sqrtnum;
  string number;
  scanf_s("%d %d", &a, &b);
  number = to_string(a) + to_string(b);
  printf("%s\n", number.c_str());
  c = stoi(number);
  printf("%d\n", c);
  sqrtnum = sqrt(c);
  if(sqrtnum * sqrtnum == c) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}

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

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

int main()
{
    /*freopen("in.txt","r",stdin);
    freopen("out.txt","w",stdout);*/
    string str;
    string str2;
    string str3;
    cin>>str;
    cin>>str2;
    str3=str+str2;
    int ln=strlen(str3);
    int rem=0,sq,temp;
    for(int i=0;i<ln;i++){
    rem=rem*10+(str3[i]-'0');
    }
    temp=rem;
    sq=sqrt(rem);
    if(sq*sq==temp){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   15 |     int ln=strlen(str3);
      |                   ^~~~
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main{
  string a, b; cin >> a >> b;
  int n = 1;
  while (true) {
    string s = to_string(n * n);
    if (s == a + b) {
      cout << "Yes" << endl;
      return 0;
    }
    if (s.size() > 6) break;
  }
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:10: error: expected primary-expression before 'a'
    5 |   string a, b; cin >> a >> b;
      |          ^
a.cc:5:10: error: expected '}' before 'a'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:5:16: error: 'cin' does not name a type
    5 |   string a, b; cin >> a >> b;
      |                ^~~
a.cc:7:3: error: expected unqualified-id before 'while'
    7 |   while (true) {
      |   ^~~~~
a.cc:15:3: error: 'cout' does not name a type
   15 |   cout << "No" << endl;
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

int Digits(int a) {
  int ret = 0;
  while(a > 0) {
    a /= 10;
    ++ret;
  }
  return ret;
}

int main(void) {
  int a, b, c, d;
  scanf("%d%d", &a, &b);
  c = a;
  d = Digits(b);
  for (int i = 0; i < d; ++i) {
    c *= 10;
  }
  c += b;
  
  bool ok = false;
  for (int i = 0; i < 1000; ++i) {
    if (i * i == c) ok = true;
  }
  puts(ok ? "Yes" : "No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:3: error: unknown type name 'bool'
   22 |   bool ok = false;
      |   ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:22:13: error: 'false' undeclared (first use in this function)
   22 |   bool ok = false;
      |             ^~~~~
main.c:22:13: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:22:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:26: error: 'true' undeclared (first use in this function)
   24 |     if (i * i == c) ok = true;
      |                          ^~~~
main.c:24:26: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include<iostream>
#include<iomanip>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<string>
#include<algorithm>
#include<functional>
#include<math.h>
#include<unordered_set>
using namespace std;

bool solve(int n) {
	for (int i = 1; i <= 100; i++) {
		if (n / i == i)return true;
	}
	return false;
}

int main() {
	string a, b;
	int n;

	cin >> a >> b;
	
	n = atoi((a + b).c_str());

	if (solve(n))cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;


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

#include <iostream>
#include <algorithm>
#include <string>
#include <queue>
#include <vector>
#include <set>
#include <bitset>
#include <cmath>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ROF(i,a,b) for(int i=b-1;i>=a;i--)
#define FI first
#define SE second
#define MA(i,j) make_pair(i,j)
#define PA pair<int,int>
#define PB push_back
#define PQ priority_queue<int>
#define PGQ priority_queue<int,vector<int>,greater<int> >
#define VE vector<int>
#define VP vector<PA>
#define YES(i) cout<<(i?"YES":"NO")<<endl
#define Yes(i) cout<<(i?"Yes":"No")<<endl
using namespace std;
//
const int MOD=1e9+7;
const int INF=1e9+7;
const double PI=3.141592653589793238462643383279;
//
int main(){
  int A,B;
  cin>>A>>B;
  int N;
  if(B/10){
    N=A*100+B;
  }else{
    N=A:10+B;
  }
  int i=0;
  while(i*i<N){
    i++;
  }
  if(i*i==N){
    Yes(1);
  }else{
    Yes(0);
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:8: error: expected ';' before ':' token
   35 |     N=A:10+B;
      |        ^
      |        ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
stringstream ss;
scanf("%d%d",&a,&b);
ss<<a<<b;
ss>>a;
b=0;
for(int i=1;i<=(int)sqrt((double)a);++i) b+=i*i==a
printf("%s\n",b?"Yes":"No");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:51: error: expected ';' before 'printf'
   10 | for(int i=1;i<=(int)sqrt((double)a);++i) b+=i*i==a
      |                                                   ^
      |                                                   ;
   11 | printf("%s\n",b?"Yes":"No");
      | ~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
#include<set>
#include<map>

#define INF 1000000007
#define LINF 1000000000000000007

using namespace std;

typedef long long Int;
typedef pair<Int, Int> P;

Int gcd(Int x, Int y){
	if(y == 0)
		return x;
	return gcd(y, x % y);
}

Int lcm(Int x, Int y){
	return x * y / gcd(x, y);
}

bool sosuu(int x){
	bool b = 1;
	if(x == 1) b = 0;
	for(int i = 2; i * i <= x; i++){
		if(x % i == 0) {
			b = 0;
			break;
		}
	}
	return b;
}

int a, b;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected initializer before '==' token
   12 | double sq == sqrt(r);
      |           ^~
a.cc:13:4: error: 'sq' was not declared in this scope
   13 | if(sq*sq = r) cout << "Yes";
      |    ^~