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

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

int main() {
	int a, b,i=0,n;
	cin >> a >> b;
	n = b;
	while (n > 0) {
		n /= 10;
		i++;
	}
	for (int j = 0; j < i; j++) {
		a *= 10;
	}
	a += b;
	double x = sqrt((double)a);
	if (x - (int)x > 0) { cout << "No"; }
	else { cout << "Yes"; }
	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=a*100+b;
      |   ^
a.cc:12:14: error: 'c' was not declared in this scope
   12 |   int s=sqrt(c);
      |              ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'c' was not declared in this scope
    9 |   c=a*1000+b;
      |   ^
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=a*100+b;
      |   ^
a.cc:12:14: error: 'c' was not declared in this scope
   12 |   int s=sqrt(c);
      |              ^
Language: C++

#include<iostraem>
#include<string>
using namespace std;
int main(){
  string  a,b;
  cin>>a>>b;
  int x=stoi(a+b);
  for(int i=0;i<=1000;i++){
    if(x==i*i){
      puts("Yes");
      return 0;
    }
  }
    puts("No");
}
  

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

#include<iostraem>
#include<string>

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

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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;

int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}

int main() {
	int a,b; cin >> a >> b;
	vector<int> v;
	rep(i,100){
		if (i*i>10000) break;
		v.push_back(i*i);
	}
	rep(i,v.size()){
		if (v[i] == a*pow(10,b.size()) + b){
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:40: error: request for member 'size' in 'b', which is of non-class type 'int'
   33 |                 if (v[i] == a*pow(10,b.size()) + b){
      |                                        ^~~~
Language: C++

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

int main() {
	string a, b; cin >> a >> b;
	int num = atoi((a + b).c_str());
	int sq = sqrt(num);

	cout << (sq * sq == num ? "Yes" : "No") << endl;

	return 0;
}

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

#include <iostream>
using namespace std;
int main(void) {
    int a, b;
    cin >> a >> b;
    double n;
    int sqrtn;
    if (b / 100 > 0) {
        n = 1000 * a + b;
    }
    else if (b / 10 > 0) {
        n = 100 * a + b;
    }
    else {
        n = 10*a + b;
    }
    sqrtn = sqrt(n) * 10;
    if (sqrtn % 10 == 0) { cout << "yes" << endl; }
    else {
        cout << "no" << endl;
    }
    system("pause");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'sqrt' was not declared in this scope; did you mean 'sqrtn'?
   17 |     sqrtn = sqrt(n) * 10;
      |             ^~~~
      |             sqrtn
Language: C++

#include <iostream>
using namespace std;
int main(void) {
    int a, b;
    cin >> a >> b;
    double n;
    int sqrtn;
    if (b / 100 > 0) {
        n = 1000 * a + b;
    }
    else if (b / 10 > 0) {
        n = 100 * a + b;
    }
    else {
        n = 10*a + b;
    }
    sqrtn = sqrt(n) * 10;
    if (sqrtn % 10 == 0) { cout << "yed"; }
    else {
        cout << "no";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'sqrt' was not declared in this scope; did you mean 'sqrtn'?
   17 |     sqrtn = sqrt(n) * 10;
      |             ^~~~
      |             sqrtn
Language: C++

#include <iostream>
using namespace std;
int main(void) {
    int a, b;
    cin >> a >> b;
    double n;
    int sqrtn;
    if (b / 100 > 0) {
        n = 1000 * a + b;
    }
    else if (b / 10 > 0) {
        n = 100 * a + b;
    }
    else {
        n = 10*a + b;
    }
    sqrtn = sqrt(n) * 10;
    if (sqrtn % 10 == 0) { cout << "yed"; }
    else {
        cout << "no";
    }
    system("pause");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'sqrt' was not declared in this scope; did you mean 'sqrtn'?
   17 |     sqrtn = sqrt(n) * 10;
      |             ^~~~
      |             sqrtn
Language: C++

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

int main() {
  int a,b,x;
  cin >> a >> b ;
  if(b == 100){
    x = a*1000+b;
  }
  else if(10<=b){
    x = a*100 + b;
  }
  else {
    x = a*10+b;
  }
  
  bool y=true;
  
  while(i<=100){
    if(x == i*i){
      cout << "Yes" << endl;
      y = false;
      break;
    }
    i++;
  }
  
  if(y){
    cout << "No" << endl;
  }
}

  


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'i' was not declared in this scope
   19 |   while(i<=100){
      |         ^
Language: C++

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

int main() {
  int a,b,x;
  cin >> a >> b ;
  if(b == 100){
    x = a*1000+b;
  }
  else if(10<=b){
    x = a*100 + b;
  }
  else {
    x = a*10+b;
  }
  
  bool y=true;
  
  while(i<=100){
    if(x == i*i){
      cout << "Yes" << endl;
      y = false;
      break;
    }
  }
  
  if(y){
    cout << "No" << endl;
  }
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'i' was not declared in this scope
   19 |   while(i<=100){
      |         ^
Language: C++

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

int main(){
  int a,b,c,cnt;
  string s="No";
  cin >> a >> b;
  c = b;
  while(c>0){
    c /= 10;
    cnt++;
  }
 for(int i=0;i<400;i++){
   if(i*i==a*pow(10,cnt)+b){
     s = "Yes";
     break;
   }
 }

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

#include <iostream>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cin'
    8 |         c = 0
      |              ^
      |              ;
    9 |         cin >> a >> b;
      |         ~~~   
a.cc:12:30: error: expected ';' before '}' token
   12 |                         c = 1
      |                              ^
      |                              ;
   13 |         }
      |         ~
Language: Java

import java.util.*;
import java.Math.*;
 
class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int keta = (int)Math.log10(b)+1;
    int c = a*(int)Math.pow(10,keta);
    int d = c+b;
    int k = 0;
    for(int i = 2;i<Math.sqrt(d);i++) {
      if(d/(int)Math.pow(i,2) == 1) {
        System.out.println("Yes");
        k +=1;
               }
                           }
                           if(k==0) System.out.println("No");
                           }
                           }

Compiler output:
Main.java:2: error: package java.Math does not exist
import java.Math.*;
^
1 error
Language: Java

import java.util.*;
import java.Math.*;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int keta = (int)Math.log10(b)+1;
    int c = a*(int)Math.pow(10,keta);
    int d = c+b;
    int k = 0;
    for(int i = 2;i<Math.sqrt(d);i++) {
      if(d/(int)Math.pow(i,2) == 1) {
        System.out.println("Yes);
        k +=1;
               }
                           }
                           if(k==0) System.out.println("No");
                           }
                           }
      

Compiler output:
Main.java:15: error: unclosed string literal
        System.out.println("Yes);
                           ^
1 error
Language: C++

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

int main() {
 string a,b;
 int A;
 cin >> a >> b;
 A=stoi(a+b);

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

  else{
    cout << "No" << endl;
  }
}


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

#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  int a=(int)(s+t);
  cout<<(sqrt(a)*sqrt(a)==a?"Yes":"No")<<endl;
}

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

a, b = map(str, input().split())
c = a+b
d = int(c)

ans = "No"
for i in range(400):
    if d == i**2:
        ans = "Yes"
        break

print(ans)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(str, input().split())
      | ^
Language: C++

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

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

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

#include <stdio.h>
#include <math.h>
int main(void)
{
 int A, B, i = 1, X, b, j;
 scanf("%d %d", &A, &B);
 b=B;
 for( ; ; ){
     i++;
     b /=1 0;
   if (b / 10 < 1) {
       break;
   }
 }
 while(i != 0) {
   A *= 10;
   i--;
 }
 X = A + B;
 for(j = 3; j * j <= 100100; j++) {
   if(X == j * j) {
     printf("Yes");
     return 0;
   }
 }
   printf("No");
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected ';' before numeric constant
   10 |      b /=1 0;
      |           ^~
      |           ;
main.c: At top level:
main.c:28:2: error: expected identifier or '(' before 'return'
   28 |  return 0;
      |  ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string a,b;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b;
      |   ^~~
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:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b;
      |               ^
a.cc:6:9: error: 'stoi' was not declared in this scope
    6 |   int c=stoi(a+b);
      |         ^~~~
a.cc:6:9: note: 'std::stoi' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |       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:14:3: error: 'cout' was not declared in this scope
   14 |   cout << "No" << endl;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:19: error: 'endl' was not declared in this scope
   14 |   cout << "No" << endl;
      |                   ^~~~
a.cc:14:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: no matching function for call to 'stoi(int)'
    6 |   int x=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<stdio.h>

int main(void){
  int a,b,c;
  scanf(%d %d,a,b);
  c = a*10 + b;
  for(int i = 2;i < c;i++){
  	if(c%i == 0){
    	if(c/i == i){
        	prinft("Yes\n");break;
        }
    }
    if(i == (c-1)){
    	printf("No\n");
    }
  }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d %d,a,b);
      |         ^
main.c:10:17: error: implicit declaration of function 'prinft'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |                 prinft("Yes\n");break;
      |                 ^~~~~~
      |                 printf
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b,joint;

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

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

#include<stdio.h>

int main (void){
	int a,b,c,d;
	char moji[4];
	scanf("%d %d",&a,&b);
	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>=316;i++){
		d=c/i;
		if(d==i){
			printf("Yes");
			moji="Yes";
			break;
		}
		moji="No";
	}
	if(moji=="No"){
		printf("No");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: invalid array assignment
   18 |                         moji="Yes";
      |                         ~~~~^~~~~~
a.cc:21:21: error: incompatible types in assignment of 'const char [3]' to 'char [4]'
   21 |                 moji="No";
      |                 ~~~~^~~~~
Language: C++

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

int main() {
  long double a,b,c;
  cin>>a>>b;
  string x=to_string(a);
  c=a*pow(10,x.size())+b;
  long double d=pow(c,1/2);
  long int e=d;
  d-=e
  if(d==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before 'if'
   11 |   d-=e
      |       ^
      |       ;
   12 |   if(d==0)cout<<"Yes"<<endl;
      |   ~~   
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else cout<<"No"<<endl;
      |   ^~~~
Language: C

{
    int a, b, target;

    // read line
    scanf("%d %d", &a, &b);
    if ( b > 9 && b < 100 ) {
        target = a*100 + b;
    }else if ( b < 10 ) {
        target = (a*10) + b;
    } else {
        target = (a*1000) + b;
    }
    for (int i=1;i<316;i++){
        if ( target == i*i ){
            printf("Yes\n");
             return 0;
        }
        if ( target < i*i) {
          break;
        }
    }
    printf("No\n"); 
    return 0;
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '{' token
    1 | {
      | ^
Language: C++

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

int main() {
  string s,t;
  cin >> s >> t;
  int x=stoi(s+t);
  for(int i=0; i<350; i++) {
    if(i*i==x) {
    cout << "Yes" << endl
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before '}' token
   10 |     cout << "Yes" << endl
      |                          ^
      |                          ;
   11 |     }
      |     ~
Language: C++

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

int main(){

    string a,b;
    cin >> a >> b;
    a.push_back(b);
    int new_num = atoi(a.c_str());
    int sqrt_num = (int)sqrt((double)new_num);
    if(sqrt_num*sqrt_num == new_num){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char'
   10 |     a.push_back(b);
      |                 ^
      |                 |
      |                 std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1572:24: note:   initializing argument 1 of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
 1572 |       push_back(_CharT __c)
      |                 ~~~~~~~^~~
Language: C++

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

int main(){

    string a,b;
    cin >> a >> b;
    a.push_back(b);
    int new_num = atoi(a.c_str());
    int sqrt_num = (int)sqrt((double)new_num);
    if(sqrt_num*sqrt_num == new_num){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}

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

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

int main() {
  long int a,b,c,e;
  double d;
  cin>>a>>b;
  string x=to_string(a);
  c=a*pow(10,x.size())+b;
  d=pow(c,1/2);
  e=(d*100000)%100000;
  if(e==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |   e=(d*100000)%100000;
      |     ~~~~~~~~~~^~~~~~~
      |       |        |
      |       double   int
Language: C++

#include"bits/stdc++.h"

using namespace std;

int main() {
	string a, b;
	cin >> a >> b;
	int tmp = stoi(a + b);

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

	cout << "No" << endl;

	return 0;


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

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		int val = String.valueOf(b).length();
		int sum = (int) (a * Math.pow(10, val) + b);
		int r = (int)Math.sqrt((double)sum);
		if(r * r == sum) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
		if(r * r == sum) {
		^
Main.java:8: error: class, interface, enum, or record expected
		} else {
		^
Main.java:10: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

import java.util.Scanner;
public class Beginner086 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		int val = String.valueOf(b).length();
		int sum = (int) (a * Math.pow(10, val) + b);
		int r = (int)Math.sqrt((double)sum);
		if(r * r == sum) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();
	}
}

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

// Ver19.03
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? -1 : *(ll *)a > *(ll *)b ? 1 : 0; }
int downll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? 1 : *(ll *)a > *(ll *)b ? -1 : 0; }
void sortup(ll *a, int n) { qsort(a, n, sizeof(ll), upll); }
void sortdown(ll *a, int n) { qsort(a// Ver19.03
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? -1 : *(ll *)a > *(ll *)b ? 1 : 0; }
int downll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? 1 : *(ll *)a > *(ll *)b ? -1 : 0; }
void sortup(ll *a, int n) { qsort(a, n, sizeof(ll), upll); }
void sortdown(ll *a, int n) { qsort(a, n, sizeof(ll), downll); }

int main()
{
  ll a, b, b_digit = 0, tmp;
  scanf("%lld%lld", &a, &b);
  ll bb = b;
  while (1)
  {
    bb /= 10;
    b_digit++;
    if (bb == 0)
      break;
  }
  tmp = a * pow(10, b_digit) + b;
  for (int i = 1; i <= 100; i++)
  {
    if (i * i == tmp)
    {
      puts("Yes");
      return 0;
    }
  }
  puts("No");
}, n, sizeof(ll), downll); }

int main()
{
  ll a, b, b_digit = 0, tmp;
  scanf("%lld%lld", &a, &b);
  ll bb = b;
  while (1)
  {
    bb /= 10;
    b_digit++;
    if (bb == 0)
      break;
  }
  tmp = a * pow(10, b_digit) + b;
  for (int i = 1; i < 100; i++)
  {
    if (i * i == tmp)
    {
      puts("Yes");
      return 0;
    }
  }
  puts("No");
}

Compiler output:
main.c: In function 'sortdown':
main.c:16:38: error: expected ')' before 'int'
   16 | void sortdown(ll *a, int n) { qsort(a// Ver19.03
      |                                    ~ ^
      |                                      )
......
   28 | int upll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? -1 : *(ll *)a > *(ll *)b ? 1 : 0; }
      | ~~~                                   
main.c:16:31: error: too few arguments to function 'qsort'
   16 | void sortdown(ll *a, int n) { qsort(a// Ver19.03
      |                               ^~~~~
In file included from main.c:5:
/usr/include/stdlib.h:970:13: note: declared here
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |             ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    8 |     f = sqrt(strtof(a+b));
      |                     ~^~
      |                      |
      |                      std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:124:45: note:   initializing argument 1 of 'float strtof(const char*, char**)'
  124 | extern float strtof (const char *__restrict __nptr,
      |                      ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    8 |     f = sqrt(atof(a+b));
      |                   ~^~
      |                    |
      |                    std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:102:33: note:   initializing argument 1 of 'double atof(const char*)'
  102 | extern double atof (const char *__nptr)
      |                     ~~~~~~~~~~~~^~~~~~
Language: C++

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

int main(){
    float f;
    string a, b;
    cin >> a >> b;
    f = atof(a+b);
    if(sqrt(f)%1 == 0){
        cout << "Yes";
    }else{
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    8 |     f = atof(a+b);
      |              ~^~
      |               |
      |               std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:102:33: note:   initializing argument 1 of 'double atof(const char*)'
  102 | extern double atof (const char *__nptr)
      |                     ~~~~~~~~~~~~^~~~~~
a.cc:9:15: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    9 |     if(sqrt(f)%1 == 0){
      |        ~~~~~~~^~
      |            |   |
      |            |   int
      |            float
Language: Java

import java.util.*;
public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integr.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
}


Compiler output:
Main.java:6: error: cannot find symbol
  n=Integr.parseInt(n+""+m);
    ^
  symbol:   variable Integr
  location: class Main
1 error
Language: Java

import java.util.*;

public class Test {
	public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(b);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	System.out.println("No");
	}
}

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

package b121;

public class Test {

	public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int h = 1;
        int bLen = String.valueOf(b).length();
        for (int i=0 ; i<bLen ; i++) {
            h = h*10;
        }
        int ab = (a*h)+b;
        double lootb = Math.sqrt(b);
        int lb = (int) (lootb);
        if(lb*lb==ab) 
        	System.out.println("Yes");
        else
        	System.out.println("No");
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    6 |   int x = atoi(a + b);
      |                ~~^~~
      |                  |
      |                  std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:7:18: error: 'squrt' was not declared in this scope; did you mean 'sqrt'?
    7 |   int ans = (int)squrt(x);
      |                  ^~~~~
      |                  sqrt
Language: C++

#include <bits/stdc++.h>

#define REP(i,n) for(int i = 0;i < n;i++)
#define REPR(i,n) for(int i = n-1;i >= 0;i--)
#define FOR(i,m,n) for(int i = m;i < n;i++)
#define PRINT(s) cout<<s
#define PRINTS(s) cout<<s<<' '
#define PRINTL(s) cout<<s<<endl
#define INF 2e9
#define ALL(v) v.begin(),v.end()
#define ll long long
#define GREATER greater<int>()

using namespace std;

ll stoi(string s){
    ll num = 0;
    for(int i=0;i<s.size();i++){
        int n = s[i]-'0';
        num*=10;
        num+=n;
    }
    return num;
}

string pop_back(string s){
    string t = s.substr(0,s.size()-1);
    return t;
}

int gcd(int max,int min){
    
    if(max<min){
        int tmp=max;
        max=min;
        min=tmp;
    }

    if(max%min==0)return min;
    else return gcd(min,max%min);

}

int main(void){

    string a,b;
    cin>>a>>b;
    string c=a+b;
    ll n=stoi(c);

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

    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:49:14: error: call of overloaded 'stoi(std::string&)' is ambiguous
   49 |     ll n=stoi(c);
      |          ~~~~^~~
a.cc:16:4: note: candidate: 'long long int stoi(std::string)'
   16 | ll stoi(string s){
      |    ^~~~
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)
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:14: error: 'c' undeclared (first use in this function)
   15 |     if (i*i==c){
      |              ^
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
  int a, b;
  scanf("%d %d", &a, &b);
  if(b/10 == 0){
    c = 10*a + b;
  } else {
    c = 100*a + b;
  }
  if(sqrt(c)*sqrt(c) == c){
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  
  return 0;
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'i' was not declared in this scope
   11 |                 if(i*i == x)
      |                    ^
a.cc:16:10: error: expected '}' at end of input
   16 |         }
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cctype>
#include <set>
#include <map>
#include <cmath>
#include <queue>
#include <stack>
#include <iomanip>
#include <cstdio>
#include <numeric>
#include <functional>
#include <cstdlib>
#include <regex>
#include <list>
int main() {
	int a, b;
	std::cin >> a >> b;
	int C, D;
	if (b >= 1 && b <= 9) {
		C = a * 10 + b;
	}
	else if (b >= 10 && b <= 99) {
		C = a * 100 + b;
	}
	else {
		C = a * 1000 + b;
	}
	for (int i = 1;i < 101;++i) {
		D = i * i;	
		if (C == D) {
		std::cout << "Yes" << std::endl;
	}
		return 0;
	else {
		std::cout << "No" << std::endl;
	}
	}

	
	return 0;
}


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

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

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int main()
{
    int a, b;
    cin >> a >> b;
    int t = b;
    if (b < 10)
        t += a * 10;
    else if (t < 100)
        t += a * 100;
    else
        t += a * 1000;
    string ans = "No";
    REP(i, t)
    {
        if (i * i == t)
            ans = "Yes";
    }
    cout << ans << endl return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:24: error: expected ';' before 'return'
   31 |     cout << ans << endl return 0;
      |                        ^~~~~~~
      |                        ;
Language: C++

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

int main() {
  std::string a,b;
  std::cin >> a >> b;
  
  std::string c = a+b;
  double d = std::stod(c);
  int count = 0;
  for (int i = 1,i < 11,++i) {
    if (pow(i,2)==d) {
      count +=1;
    } else {
      count += 0;
    }
  }
  if (count!= 0) {
    std::cout << "Yes" << "\n";
  } else {
    std::cout << "No" << "\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '<' token
   12 |   for (int i = 1,i < 11,++i) {
      |                   ^~
      |                   ;
a.cc:12:20: error: expected primary-expression before '<' token
   12 |   for (int i = 1,i < 11,++i) {
      |                    ^
a.cc:12:28: error: expected ';' before ')' token
   12 |   for (int i = 1,i < 11,++i) {
      |                            ^
      |                            ;
Language: C++

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

int main() {
  std::string a,b;
  cin >> a >> b;
  
  std::string c = a+b;
  double d = std::stod(c);
  int count = 0;
  for (int i = 1,i < 11,++i) {
    if (pow(i,2)==d) {
      count +=1;
    } else {
      count += 0;
    }
  }
  if (count!= 0) {
    cout << "Yes" << "\n";
  } else {
    cout << "No" << "\n";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:12:19: error: expected ';' before '<' token
   12 |   for (int i = 1,i < 11,++i) {
      |                   ^~
      |                   ;
a.cc:12:20: error: expected primary-expression before '<' token
   12 |   for (int i = 1,i < 11,++i) {
      |                    ^
a.cc:12:28: error: expected ';' before ')' token
   12 |   for (int i = 1,i < 11,++i) {
      |                            ^
      |                            ;
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout << "Yes" << "\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout << "No" << "\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  
  to_string(a);
  to_string(b);
  
  string c = a+b;
  double i = stod(c);
  int j = sqrt(i);
  int k = i;
  if (pow(j,2)==k) {
    cout << "Yes" << "\n";
  } else {
    cout << "No" << "\n";
  }
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: warning: ignoring return value of 'std::string std::__cxx11::to_string(int)', declared with attribute 'nodiscard' [-Wunused-result]
    9 |   to_string(a);
      |   ~~~~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4240:3: note: declared here
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
a.cc:10:12: warning: ignoring return value of 'std::string std::__cxx11::to_string(int)', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   to_string(b);
      |   ~~~~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:4240:3: note: declared here
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
a.cc:12:15: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |   string c = a+b;
      |              ~^~
a.cc:14:11: error: 'sqrt' was not declared in this scope
   14 |   int j = sqrt(i);
      |           ^~~~
a.cc:16:7: error: 'pow' was not declared in this scope
   16 |   if (pow(j,2)==k) {
      |       ^~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  
  to_string(a);
  to_string(b);
  
  string c = a+b;
  float i = stof(c);
  int j = sqrt(i);
  if (pow(j,2) == int i) {
    cout << "Yes" << "\n";
  } else {
    cout << "No" << "\n";
  }
  return 0;
}
  
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: warning: ignoring return value of 'std::string std::__cxx11::to_string(int)', declared with attribute 'nodiscard' [-Wunused-result]
    9 |   to_string(a);
      |   ~~~~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4240:3: note: declared here
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
a.cc:10:12: warning: ignoring return value of 'std::string std::__cxx11::to_string(int)', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   to_string(b);
      |   ~~~~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:4240:3: note: declared here
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
a.cc:12:15: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |   string c = a+b;
      |              ~^~
a.cc:14:11: error: 'sqrt' was not declared in this scope
   14 |   int j = sqrt(i);
      |           ^~~~
a.cc:15:7: error: 'pow' was not declared in this scope
   15 |   if (pow(j,2) == int i) {
      |       ^~~
a.cc:15:19: error: expected primary-expression before 'int'
   15 |   if (pow(j,2) == int i) {
      |                   ^~~
a.cc:15:18: error: expected ')' before 'int'
   15 |   if (pow(j,2) == int i) {
      |      ~           ^~~~
      |                  )
Language: C++

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

int main(void){
  int a,b;
  cin >> a >> b;
  
  for(int i=0;i<=100;i++){
    vector<int> vec(i);
    vec(i) = i*i;
    if(vec.at(i) == a*b){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: no match for call to '(std::vector<int>) (int&)'
   10 |     vec(i) = i*i;
      |     ~~~^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<map>
#include<bits/stdc++.h>
#define int double
#define ll long long
using namespace std;
signed main() {
	int a, b, c,d;
	cin >> a >> b;
	if (b < 10)c = a * 10 + b;
	else if (b < 100)c = a * 100 + b;
	else c = a * 1000 + b;
	d = sqrt(c);
	if (d%1==0)cout << "Yes" << endl;
	else cout << "No" << endl;
	getchar(); getchar(); return 0;
}

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

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<map>
#define int double
#define ll long long
using namespace std;
signed main() {
	int a, b, c,d;
	cin >> a >> b;
	if (b < 10)c = a * 10 + b;
	else if (b < 100)c = a * 100 + b;
	else c = a * 1000 + b;
	d = sqrt(c);
	if (d%1==0)cout << "Yes" << endl;
	else cout << "No" << endl;
	getchar(); getchar(); return 0;
}

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

#include <iostream>
#include <string>
int main() {
  
  std::string a, b;
  std::cin >> a >> b;
  int n = std::stoi(a + b);
  for (int i = 317; --i;) if (i * i == n) {
    std::cout << "Yes" << endl;
    return 0;
  }
  std::cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     std::cout << "Yes" << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   std::cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~