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

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

int main(){
  char a[200],b[200];
  int c,d;
  scanf("%s %s",&a,&b);
  strcat(a,b);
  c=int(a);
  for(int i=1;i<1000;i++){
    d=i*i;
    if(c==d)
      printf("Yes\n");
  }
  printf("No\n");
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected expression before 'int'
    9 |   c=int(a);
      |     ^~~
Language: C

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

int main(){
  char a[200],b[200];
  int c;
  scanf("%s %s",&a,&b);
  strcat(a,b);
  c=(int)a;
  for(int i=1;i<c;i++){
    if(c%i==0 && i==c/i)
      print("Yes\n");
    else
      print("No\n");
  }

}


Compiler output:
main.c: In function 'main':
main.c:9:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    9 |   c=(int)a;
      |     ^
main.c:12:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |       print("Yes\n");
      |       ^~~~~
      |       printf
Language: C

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

int main(){
  char a[200],b[200];
  int c;
  scanf("%s %s",&a,&b);
  strcat(a,b);
  c=int(a);
  for(int i=1;i<c;i++){
    if(c%i==0 && i==c/i)
      print("Yes\n");
    else
      print("No\n");
  }

}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected expression before 'int'
    9 |   c=int(a);
      |     ^~~
main.c:12:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |       print("Yes\n");
      |       ^~~~~
      |       printf
Language: C++

#include <iostream>
#include <string>
int main()
{
    std::string a, b;
    std::cin >> a >> b;

    int ab = std::stoi(a + b);

    bool ans = false;
    for (int i = 3; i < 110) {
        if ((i*i)==ab) {
            ans = true;
            break;
        }
    }

    std::cout << ((ans)?"Yes":"No") << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before ')' token
   11 |     for (int i = 3; i < 110) {
      |                            ^
      |                            ;
Language: C++

#include <iostream>
#include<algorithm>
#include<set>
#include<iterator>
#include<map>
#include<unordered_map>
#include<vector>
using namespace std;

#define int long long
#define endl "\n"
#define pb push_back
#define F first
#define S second

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


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

#include <iostream>
#include <string>


using namespace std;

int main(void){
    string a, b;

    cin >> a >> b;

    string c = a + b;

    int d = stoi(c);

    int sq = (int)sqrt(d);

    if(( sq * sq ) == d){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }

    return 0;
}

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

#include <iostream>
#include <string>


using namespace std;

int main(void){
    string a, b;

    cin >> a >> b;

    string c = a + b;

    int d = stoi(c);

    cout << d << endl;

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

    return 0;
}

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

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
int main()
{
    stoi
    ll n, m;
    cin >> n >> m;
    if(n < m)
    {
        n *= 100;
        n += m;
    }
    else
    {
        n *= 10;
        n += m;
    }
    for(ll i = 1; i <= 1000; i ++)
    {
        if(i * i == n)
        {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'long'
    7 |     stoi
      |         ^
      |         ;
a.cc:8:12: error: statement cannot resolve address of overloaded function
    8 |     ll n, m;
      |            ^
a.cc:9:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |     cin >> n >> m;
      |            ^
      |            yn
a.cc:9:17: error: 'm' was not declared in this scope; did you mean 'tm'?
    9 |     cin >> n >> m;
      |                 ^
      |                 tm
Language: C++

#include<iostream>
using namespace std;


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

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

#include <iostream>
#include <string>
#include <cmath>
using namespace std;
 
int main() {
    int a, b;
	cin >> a >> b;
	int c = atoi((to_string(a)+to_string(b)).c_str);
    int temp = sqrt(c);
  	for(int i=c;c>0;c--){
      if(temp*temp==c){
        cout << "Yes" << endl;
        return 0;
      }
    }
  	cout <<"No" << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:50: error: invalid use of non-static member function 'const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::c_str() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
    9 |         int c = atoi((to_string(a)+to_string(b)).c_str);
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
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:2640:7: note: declared here
 2640 |       c_str() const _GLIBCXX_NOEXCEPT
      |       ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <cmath>
using namespace std;
 
int main() {
    int a, b;
	cin >> a >> b;
	int c = atoi(to_string(a)+to_string(b));
    int temp = sqrt(c);
  	for(int i=c;c>0;c--){
      if(temp*temp==c){
        cout << "Yes" << endl;
        return 0;
      }
    }
  	cout <<"No" << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    9 |         int c = atoi(to_string(a)+to_string(b));
      |                      ~~~~~~~~~~~~^~~~~~~~~~~~~
      |                                  |
      |                                  std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

int main() {
    int a, b;
	cin >> a >> b;
	int c = (int)(to_string(a)+to_string(b));
    int temp = sqrt(c);
  	for(i=c;c>0;c--){
      if(temp*temp==c){
        cout << "Yes" << endl;
        return 0;
      }
    }
  	cout <<"No" << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid cast from type 'std::__cxx11::basic_string<char>' to type 'int'
    9 |         int c = (int)(to_string(a)+to_string(b));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=c;c>0;c--){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int a,b,n,ab;
    string ans;
    ans="No";
    cin>>a>>b;
    n = (int)log10((double)b) + 1;
    ab=a*pow(10,n)+b;
    for(i=1;i<n;i++){
      if(i*i==ab){
        ans="Yes";
        break;
      }
      if(i*i>ab){
        break;
      }
    }
  cout<<ans<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int a,b,n,ab;
    string ans;
    ans="No";
    cin>>a>>b;
    n = (int)log10((double)num) + 1;
    ab=a*pow(10,n)+b;
    for(i=1;i<n;i++){
      if(i*i==ab){
        ans="Yes";
        break;
      }
      if(i*i>ab){
        break;
      }
    }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |     n = (int)log10((double)num) + 1;
      |                            ^~~
      |                            enum
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     for(i=1;i<n;i++){
      |         ^
Language: C++

using System;
 
class Program {
  static void Main() {
    string a = Console.ReadLine();
    string b = Console.ReadLine();
    int c;
    a = a + b;
    c = int.Parse(a);
    for (int i = 0; i < 10000; i++)
    {
        if(i*i==c){
            Console.WriteLine("Yes");
            return 0;
        }
    }
    Console.WriteLine("No");
  }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string a = Console.ReadLine();
      |     ^~~~~~
a.cc:6:12: error: expected ';' before 'b'
    6 |     string b = Console.ReadLine();
      |            ^
a.cc:8:5: error: 'a' was not declared in this scope
    8 |     a = a + b;
      |     ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     a = a + b;
      |             ^
a.cc:9:9: error: expected primary-expression before 'int'
    9 |     c = int.Parse(a);
      |         ^~~
a.cc:13:13: error: 'Console' was not declared in this scope
   13 |             Console.WriteLine("Yes");
      |             ^~~~~~~
a.cc:14:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   14 |             return 0;
      |                    ^
a.cc:17:5: error: 'Console' was not declared in this scope
   17 |     Console.WriteLine("No");
      |     ^~~~~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq_int;
  double q, sq;
  s = to_string(a) + to_string(b);
  cout << s << endl;
  target = stoi(s);
  q = target;
  sq = std::sqrt(q);
  sq_int = sq;
  
  if(std::pow(sq_int, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~
Language: C++

#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq_int;
  double q, sq;
  s = to_string(a) + to_string(b);
  cout << s << endl;
  target = stoi(s);
  q = target;
  sq = std::sqrt(q);
  sq_int = sq;
  
  if(std::pow(sq_int, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:14:13: error: 'sqrt' is not a member of 'std'
   14 |   sq = std::sqrt(q);
      |             ^~~~
a.cc:17:11: error: 'pow' is not a member of 'std'
   17 |   if(std::pow(sq_int, 2) == target){
      |           ^~~
Language: C++

#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq_int;
  double q, sq;
  s = to_string(a) + to_string(b);
  cout << s << endl;
  target = stoi(s);
  q = target;
  sq = sqrt(q);
  sq_int = sq;
  
  if(pow(sq_int, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:14:8: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   14 |   sq = sqrt(q);
      |        ^~~~
      |        sq
a.cc:17:6: error: 'pow' was not declared in this scope
   17 |   if(pow(sq_int, 2) == target){
      |      ^~~
Language: C++

#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq;
  s = to_string(a) + to_string(b);
  cout << s << endl;
  target = stoi(s);
  sq = (int)(std::sqrt((double)target);
  
  if(pow(sq, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:12:19: error: 'sqrt' is not a member of 'std'
   12 |   sq = (int)(std::sqrt((double)target);
      |                   ^~~~
a.cc:12:39: error: expected ')' before ';' token
   12 |   sq = (int)(std::sqrt((double)target);
      |             ~                         ^
      |                                       )
a.cc:14:6: error: 'pow' was not declared in this scope
   14 |   if(pow(sq, 2) == target){
      |      ^~~
Language: C++

#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq;
  s = to_string(a) + to_string(b);
  cout << s << endl;
  target = stoi(s);
  sq = (int)(sqrt((double)target);
  
  if(pow(sq, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:12:14: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   12 |   sq = (int)(sqrt((double)target);
      |              ^~~~
      |              sq
a.cc:12:34: error: expected ')' before ';' token
   12 |   sq = (int)(sqrt((double)target);
      |             ~                    ^
      |                                  )
a.cc:14:6: error: 'pow' was not declared in this scope
   14 |   if(pow(sq, 2) == target){
      |      ^~~
Language: C++

#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq;
  s = to_string(a) + to_string(b);
  target = to_int(s);
  sq = to_int(sqrt(to_double(target)));
  
  if(pow(sq, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:10:12: error: 'to_int' was not declared in this scope; did you mean 'u_int'?
   10 |   target = to_int(s);
      |            ^~~~~~
      |            u_int
a.cc:11:20: error: 'to_double' was not declared in this scope; did you mean 'double'?
   11 |   sq = to_int(sqrt(to_double(target)));
      |                    ^~~~~~~~~
      |                    double
a.cc:11:15: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   11 |   sq = to_int(sqrt(to_double(target)));
      |               ^~~~
      |               sq
a.cc:13:6: error: 'pow' was not declared in this scope
   13 |   if(pow(sq, 2) == target){
      |      ^~~
Language: C++

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


int main(){

char a[4],b[4];
char *cPtr;
int d;
int check=0;
int i;

scanf("%s",a);
scanf("%s",b);
d=atoi(strcat(a,b));

for(i=1;i<=d/2;i++){
	if(i*i==d)
		check=1;
}

if(check==1)
	printf("Yes");
else
	printf("No");

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'scanf' was not declared in this scope
   13 | scanf("%s",a);
      | ^~~~~
a.cc:23:9: error: 'printf' was not declared in this scope
   23 |         printf("Yes");
      |         ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include <string.h>
  +++ |+#include <cstdio>
    3 | 
a.cc:25:9: error: 'printf' was not declared in this scope
   25 |         printf("No");
      |         ^~~~~~
a.cc:25:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

// atcoder/abc086/B/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/

#include <bits/stdc++.h>

#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))

using namespace std;

typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;

template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << "," << p.second << ")"; return os; }
template<typename P, typename Q> istream& operator >> (istream& is, pair<P, Q>& p) { is >> p.first >> p.second; return is; }
template<typename T> ostream& operator << (ostream& os, vector<T> v) { os << "("; each (i, v) os << i << ","; os << ")"; return os; }
template<typename T> istream& operator >> (istream& is, vector<T>& v) { each (i, v) is >> i; return is; }

template<typename T> inline T setmax(T& a, T b) { return a = std::max(a, b); }
template<typename T> inline T setmin(T& a, T b) { return a = std::min(a, b); }

int main(int argc, char *argv[])
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  string s, t;
  while (cin >> s >> t) {
    s += t;
    int n;
    sscanf(s.c_str(), "%d", &n);
    bool f = false;
    for (int i = 0; i * <= n; ++i) {
      f = f || (i * i == n);
    }
    cout << (f ? "Yes" : "No") << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:35:25: error: expected primary-expression before '<=' token
   35 |     for (int i = 0; i * <= n; ++i) {
      |                         ^~
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String args[]){
        Scanner scn = new Scanner(System.in);
        double d = Math.sqrt(Integer.parseInt(scn.read() + scn.read()));
        System.out.println((int)d == d ? "Yes" : "No");
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        double d = Math.sqrt(Integer.parseInt(scn.read() + scn.read()));
                                                 ^
  symbol:   method read()
  location: variable scn of type Scanner
Main.java:6: error: cannot find symbol
        double d = Math.sqrt(Integer.parseInt(scn.read() + scn.read()));
                                                              ^
  symbol:   method read()
  location: variable scn of type Scanner
2 errors
Language: C++

#include "bits/stdc++.h"

using namespace std;
typedef long long ll;
#define rep(i, j, n) for (int i = j; i < n; i++)
#define out(ans) cout << ans << endl;
const long long mod = 1e9 + 7;

int main(){

  string a,b;cin>>a>>b;
  int an=a.size(),bn=b.size();
  ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
  ll num=0;
  rep(i,0,bn){
    num+=(b[bn-1-i]-'0')*m[i];
  }
  rep(i,0,an){
    num+=(a[an-1-i]-'0')*m[bn+i];
  }

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


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: narrowing conversion of '1.0e+1' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
      |              ^~~
a.cc:13:18: error: narrowing conversion of '1.0e+2' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
      |                  ^~~
a.cc:13:22: error: narrowing conversion of '1.0e+3' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
      |                      ^~~
a.cc:13:26: error: narrowing conversion of '1.0e+4' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
      |                          ^~~
a.cc:13:30: error: narrowing conversion of '1.0e+5' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[6]={1,1e1,1e2,1e3,1e4,1e5};
      |                              ^~~
Language: C++

#include "bits/stdc++.h"

using namespace std;
typedef long long ll;
#define rep(i, j, n) for (int i = j; i < n; i++)
#define out(ans) cout << ans << endl;
const long long mod = 1e9 + 7;

int main(){

  string a,b;cin>>a>>b;
  int an=a.size(),bn=b.size();
  ll m[]={1,1e1,1e2,1e3,1e4,1e5};
  ll num=0;
  rep(i,0,bn){
    num+=(b[bn-1-i]-'0')*m[i];
  }
  rep(i,0,an){
    num+=(a[an-1-i]-'0')*m[bn+i];
  }

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


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: narrowing conversion of '1.0e+1' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[]={1,1e1,1e2,1e3,1e4,1e5};
      |             ^~~
a.cc:13:17: error: narrowing conversion of '1.0e+2' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                 ^~~
a.cc:13:21: error: narrowing conversion of '1.0e+3' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                     ^~~
a.cc:13:25: error: narrowing conversion of '1.0e+4' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                         ^~~
a.cc:13:29: error: narrowing conversion of '1.0e+5' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 |   ll m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                             ^~~
Language: C++

#include "bits/stdc++.h"

using namespace std;
typedef long long ll;
#define rep(i, j, n) for (int i = j; i < n; i++)
#define out(ans) cout << ans << endl;
const long long mod = 1e9 + 7;

int main(){

  string a,b;cin>>a>>b;
  int an=a.size(),bn=b.size();
  int m[]={1,1e1,1e2,1e3,1e4,1e5};
  int num=0;
  rep(i,0,bn){
    num+=(b[bn-1-i]-'0')*m[i];
  }
  rep(i,0,an){
    num+=(a[an-1-i]-'0')*m[bn+i];
  }

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


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: narrowing conversion of '1.0e+1' from 'double' to 'int' [-Wnarrowing]
   13 |   int m[]={1,1e1,1e2,1e3,1e4,1e5};
      |              ^~~
a.cc:13:18: error: narrowing conversion of '1.0e+2' from 'double' to 'int' [-Wnarrowing]
   13 |   int m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                  ^~~
a.cc:13:22: error: narrowing conversion of '1.0e+3' from 'double' to 'int' [-Wnarrowing]
   13 |   int m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                      ^~~
a.cc:13:26: error: narrowing conversion of '1.0e+4' from 'double' to 'int' [-Wnarrowing]
   13 |   int m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                          ^~~
a.cc:13:30: error: narrowing conversion of '1.0e+5' from 'double' to 'int' [-Wnarrowing]
   13 |   int m[]={1,1e1,1e2,1e3,1e4,1e5};
      |                              ^~~
Language: C++

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <iomanip>


using namespace std;
using namespace __gnu_pbds;

typedef long long ll;
typedef long double ld;

typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;

typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;

#define rep(i, a, b) for (int i=a; i<(b); i++)
#define rp(i, a) for (int i=0; i<(a); i++)
#define repd(i,a,b) for (int i = (b)-1; i >= a; i--)
#define rpd(i,a) for (int i = (a)-1; i >= 0; i--)

#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define shandom_ruffle random_shuffle

const int MOD = 1000000007;
const ll INF = 1e18;
const int MX = 100001; //check the limits, dummy


int main() {
    ios_base::sync_with_stdio(0); cin.tie(0);
    cout << std::setprecision(9);
    cout << std::fixed;

    ll a,b;a
    cin >>a >> b;
    string s = to_string(a) + to_string(b);
    ll ss = stol(s);
    rp(i,20000){
      if(i*i == ss) {
        cout << "Yes" << endl; return 0;
      }
    }
    cout << "No" << endl;
    return 0;
}

// read the question correctly (ll vs int)
// template by super1 derived from bqi343


Compiler output:
a.cc: In function 'int main()':
a.cc:51:13: error: expected ';' before 'cin'
   51 |     ll a,b;a
      |             ^
      |             ;
   52 |     cin >>a >> b;
      |     ~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,n)  for (int i=(int)(a); i<=(int)(n); ++i)
#define rrep(i,a,n) for (int i=(int)(a); i>=(int)(n); --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) rep(i, x.size()) cerr << x[i] << (i == x.size() - 1 ? "\n" : " ")
#define all(x) x.begin(),x.end()
#define int long long
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int INF = ((1LL << 30) + (1LL << 29));
const int MOD = 1000000007;

//=============================
int N,M,K;
string S,T;
vector<int> A;
vector<int> B;
//=============================
void input()
{
    cin>>N>>M;

}
//=============================
void func(){}

//=============================
void solve()
{
    int gk=N;
    int ketan=0;
    while(N){
        ketan++;
        N/=10;
    }
    gk=N*pow(10,ketan)+M;

    bool ans = false;
    rep(i,(gk+1/2)){
        if(i*i == gk){
            ans=true;
            break;
        }
    }
    cout<<(ans ? "Yes" : "No")<<endl;

}
//=============================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc:40:19: error: macro "rep" requires 3 arguments, but only 2 given
   40 |     rep(i,(gk+1/2)){
      |                   ^
a.cc:2:9: note: macro "rep" defined here
    2 | #define rep(i,a,n)  for (int i=(int)(a); i<=(int)(n); ++i)
      |         ^~~
a.cc: In function 'void solve()':
a.cc:40:5: error: 'rep' was not declared in this scope
   40 |     rep(i,(gk+1/2)){
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  for(int i=1;i<1000;i++){
    int j=i*i;
    if(a*1000+b==j) cout << "Yes" << endl;
    else if(a*100+b==j) cout << "Yes" << endl;
    else if(a*10+b==j)cout << "Yes" << endl;
  }
  if(a*1000+b|=j && a*100+b|=j && a*10+b|=j)cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'j' was not declared in this scope
   12 |   if(a*1000+b|=j && a*100+b|=j && a*10+b|=j)cout << "No" << endl;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  for(int i=1;i<1000;i++){
    int j=i*i;
    if(a*1000+b==j) cout << "Yes";
    else if(a*100+b==j) cout << "Yes";
    else if(a*10+b==j)cout << "Yes";
    else string k="No";
  }
  cout << k;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'k' was not declared in this scope
   13 |   cout << k;
      |           ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  for(int i=1;i<1000;i++){
    int j=i*i;
    if(a*1000+b==j) cout << Yes;
    else if(a*100+b==j) cout << Yes;
    else if(a*10+b==j)cout << Yes;
  }
  else cout << No;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'Yes' was not declared in this scope
    8 |     if(a*1000+b==j) cout << Yes;
      |                             ^~~
a.cc:9:33: error: 'Yes' was not declared in this scope
    9 |     else if(a*100+b==j) cout << Yes;
      |                                 ^~~
a.cc:10:31: error: 'Yes' was not declared in this scope
   10 |     else if(a*10+b==j)cout << Yes;
      |                               ^~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout << No;
      |   ^~~~
a.cc:12:16: error: 'No' was not declared in this scope
   12 |   else cout << No;
      |                ^~
Language: C++

#include (bits/stdc++.h)
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  for(int i=1;i<1000;i++){
    int j=i*i;
    if(a*1000+b==j) cout << Yes;
    else if(a*100+b==j) cout << Yes;
    else if(a*10+b==j)cout << Yes;
  }
  else cout << No;
  
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include (bits/stdc++.h)
      |          ^
a.cc: In function 'int main()':
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 | #include (bits/stdc++.h)
a.cc:8:21: error: 'cout' was not declared in this scope
    8 |     if(a*1000+b==j) cout << Yes;
      |                     ^~~~
a.cc:8:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:29: error: 'Yes' was not declared in this scope
    8 |     if(a*1000+b==j) cout << Yes;
      |                             ^~~
a.cc:9:25: error: 'cout' was not declared in this scope
    9 |     else if(a*100+b==j) cout << Yes;
      |                         ^~~~
a.cc:9:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:33: error: 'Yes' was not declared in this scope
    9 |     else if(a*100+b==j) cout << Yes;
      |                                 ^~~
a.cc:10:23: error: 'cout' was not declared in this scope
   10 |     else if(a*10+b==j)cout << Yes;
      |                       ^~~~
a.cc:10:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:31: error: 'Yes' was not declared in this scope
   10 |     else if(a*10+b==j)cout << Yes;
      |                               ^~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout << No;
      |   ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout << No;
      |        ^~~~
a.cc:12:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:16: error: 'No' was not declared in this scope
   12 |   else cout << No;
      |                ^~
Language: C++

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


int main() {
	string a, b;
	cin >> a >> b;
	string s = a + b;
	double x = atoi(s.c_str());
	if (sqrt(x) != (int)sqrt(x)) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}

	return 0;
}

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

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

int main() {
  int N, M;
  cin >> N >> M;
  if(M/10 == 0) N *= 10;
  else {
    if(M/100 == 0) N *= 100;
    else N *= 1000;
  }
  int L = N + M;
  bool ans = false;
  for(int i=1;i<2000;i++) {
    if(L == i * i) {
      ans = ture;
      break;
    }
  }
  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
}

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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'c' undeclared (first use in this function)
    5 |   b=c;
      |     ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   18 |   return ;
      |   ^~~~~~
main.c:2:5: note: declared here
    2 | int main(){
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: no matching function for call to 'stoi(int)'
    8 |     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<bits/stdc++.h>
using namespace std;
int main(){
int x,y,z;
bool flag=0;
cin>>x>>y;
if(y==100) z=(x*1000)+y;
if(y<100&&y>9) z=(x*100)+y;
if(y<=9) z=(x*10)+y;
for(int i=0;i<350;++i){

if(i*i==z){

flag=1;
break;
}}1
if(flag==1)
cout<<"Yes\n";
else cout<<"No\n";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected ';' before 'if'
   16 | }}1
      |    ^
      |    ;
   17 | if(flag==1)
      | ~~  
a.cc:19:1: error: 'else' without a previous 'if'
   19 | else cout<<"No\n";
      | ^~~~
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>

typedef long long ll;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: expected ';' before ')' token
   20 |     for (i*i <= num) {
      |                    ^
      |                    ;
a.cc:28:5: error: expected primary-expression before 'return'
   28 |     return 0;
      |     ^~~~~~
a.cc:27:26: error: expected ')' before 'return'
   27 |     cout << "No" << endl;
      |                          ^
      |                          )
   28 |     return 0;
      |     ~~~~~~                
a.cc:20:9: note: to match this '('
   20 |     for (i*i <= num) {
      |         ^
Language: Java

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

int main() {
  string a,b;
  cin >> a >> b;
  string ans="No";
  int num=stoi(a+b);
  for(int i=1;i<=10000;i++){
    if(i*i==num){
      ans="Yes";
      break;
    }
  }
  cout << ans <<endl;
  return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
  cin >> a >> b;
           ^
Main.java:15: error: not a statement
  cout << ans <<endl;
              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

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

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

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

int main() {
	string a, b; cin >> a >> b;
	string tmp; tmp.append(a + b);
	double ans = stoi(tmp);
	int half = std::sqrt(ans);
	if ( ans == half*half) cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
   10 |         int half = std::sqrt(ans);
      |                         ^~~~
      |                         sort
Language: C++

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

int main() {
	string a, b; cin >> a >> b;
	string tmp; tmp.append(a + b);
	double ans = stoi(tmp);
	int half = sqrt(ans);
	if ( ans == half*half) cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=b;i;i/=10)c++;
      |       ^
main.c:6:7: 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,c;
  scanf("%d %d",&a,&b);
  	if(b/10==0) a=a*10+b;
      else if(b/10==0)a=a*100+b;
      else a=a*1000+b;
  if((sqrt(a)%1==0)
     printf("Yes\n");
     else
     printf("No\n");

}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: invalid operands to binary % (have 'double' and 'int')
    9 |   if((sqrt(a)%1==0)
      |       ~~~~~~~^
      |       |
      |       double
main.c:9:20: error: expected ')' before 'printf'
    9 |   if((sqrt(a)%1==0)
      |     ~              ^
      |                    )
   10 |      printf("Yes\n");
      |      ~~~~~~         
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
Language: C++

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

int sqr[120];

void sq(){
    for(int i=1; i<=110; i++){
        sqr[i] = i*i;
        //printf("%d ", sqr[i]);
    }
}

int main(){
    sq();
    char num[10];

    //scanf("%[^\n]%*c", &num);
    gets(num);
    int lon = strlen(num);
    int pot = 1, n = 0;
    //printf("%d", lon);
    for(int i=lon-1; i>=0; i--){
        if(num[i] != ' '){
            //printf("%d %d\n", n, pot);
            n += ((num[i]-48)*pot);
            pot*=10;
        }
    }
    //printf("%d  ", n);
    bool flag = true;
    pot = 1;
    while(sqr[pot] < n)
        pot++;
    //printf("%d %d\n", pot, sqr[pot]);

    if(sqr[pot] == n)
        printf("Yes\n");
    else
        printf("No\n");
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    6 |   int c=a*d+b;
      |         ~^~
      |         | |
      |         | int
      |         std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'})
    5 |   int c=a*a.size()+b;
      |         ~^~~~~~~~~
      |         |       |
      |         |       std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
      |         std::string {aka std::__cxx11::basic_string<char>}
Language: C

#include <stdio.h>

int main(void) {
	int a, b;
	int i;
	scanf("%d%d", &a, &b);
	if (a >= 10 && b < 10) {
		i = 10 * a+b;
	}
	else if (a >= 10 && b >= 10) {
		i = 100 * a + b;
	}
	else if (a < 10 && b < 10) {
		i = 10 * a + b;
	}
	else if (a < 10 && b >= 10) {
		i = 100 * a + b;
	}

	for (int j = 1; j < 400; j++) {
		if (i == j * j) {
			printf("%d", j);
		}
	}

	

	return 0;



Compiler output:
main.c: In function 'main':
main.c:28:9: error: expected declaration or statement at end of input
   28 |         return 0;
      |         ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a,b;
    cin >> a >> b;
    int c = a * pow(10, floor(log(b)/log(10))) + b;
  	int c_sqrt = floor(sqrt(c));

    if (c == c_sqrt * c_sqrt)
    {
    	// 出力
    	cout << "Yes" << endl;
    }
  	else
    {
    	// 出力
    	cout << "No" << endl;      
    }
    return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: 'log' was not declared in this scope; did you mean 'long'?
    7 |     int c = a * pow(10, floor(log(b)/log(10))) + b;
      |                               ^~~
      |                               long
a.cc:7:25: error: 'floor' was not declared in this scope
    7 |     int c = a * pow(10, floor(log(b)/log(10))) + b;
      |                         ^~~~~
a.cc:7:17: error: 'pow' was not declared in this scope
    7 |     int c = a * pow(10, floor(log(b)/log(10))) + b;
      |                 ^~~
a.cc:8:28: error: 'sqrt' was not declared in this scope; did you mean 'c_sqrt'?
    8 |         int c_sqrt = floor(sqrt(c));
      |                            ^~~~
      |                            c_sqrt
Language: C++

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

int main(){
	int a,b;
	int ren;
	string ans="No";

	cin>>a>>b;

	ren=stoi(a+b);

	for(int i=0;i<1000;i++){
		if(ren==i*i){
			ans="Yes";
			break;
		}
	}
	cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'stoi(int)'
   11 |         ren=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 <iostream>
using namespace std;
 
int main(){
  map<int, int> d;
  d[0] = 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'map' was not declared in this scope
    5 |   map<int, int> d;
      |   ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | using namespace std;
a.cc:5:7: error: expected primary-expression before 'int'
    5 |   map<int, int> d;
      |       ^~~
a.cc:6:3: error: 'd' was not declared in this scope
    6 |   d[0] = 1;
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  
  if(b==100){
  int num=a*1000+b;
  }
  
  else if(b<100&&b>=10){
    int num=a*100+b;
  }
  else if(b<10){
    int num=a*10+b;
  }
  
  for(int i=0;i<num;i++){
    if(i**==num){
      cout<<"Yes"<<endl;
    break;
    }
    if(i==num-1){
      cout<<"No"<<endl;
    }
  }
}

    


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'num' was not declared in this scope; did you mean 'enum'?
   18 |   for(int i=0;i<num;i++){
      |                 ^~~
      |                 enum
a.cc:19:10: error: expected primary-expression before '*=' token
   19 |     if(i**==num){
      |          ^~
a.cc:19:12: error: expected primary-expression before '=' token
   19 |     if(i**==num){
      |            ^