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

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
#include <numeric>
#include <string>
using namespace std;
const double PI = acos(-1.0);
const string alp = "abcdefghijklmnopqrstuvwxyz";
const string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n+1)
#define SUM(c) accumulate((c).begin(),(c).end(),0)
#define UNIQ(c) (c).erase(unique((c).begin(), (c).end()), (c).end());
#define Yn(b) puts(b?"Yes":"No")
#define YN(b) puts(b?"YES":"NO")
 
bool isprime(int p) {
  if (p==1) return false;
  FOR(i,2,p) {
    if (p%i==0) return false;
  }
  return true;
}
 
int main(){
  int a,b,c:
  cin >> a >> b;
  if (b<10) {
    c = a*10+b;
  } else if (b==100) {
    c = a*1000+b;
  } else {
    c = a*100+b;
  }
  REP(i,1000){
    if (i*i==c){
      puts("Yes");
      return 0;
    }
  }
  puts("No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: found ':' in nested-name-specifier, expected '::'
   30 |   int a,b,c:
      |            ^
      |            ::
a.cc:30:11: error: 'c' has not been declared
   30 |   int a,b,c:
      |           ^
a.cc:31:7: error: qualified-id in declaration before '>>' token
   31 |   cin >> a >> b;
      |       ^~
a.cc:33:5: error: 'c' was not declared in this scope
   33 |     c = a*10+b;
      |     ^
a.cc:35:5: error: 'c' was not declared in this scope
   35 |     c = a*1000+b;
      |     ^
a.cc:37:5: error: 'c' was not declared in this scope
   37 |     c = a*100+b;
      |     ^
a.cc:40:14: error: 'c' was not declared in this scope
   40 |     if (i*i==c){
      |              ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,N;
    cin >> a >> b;
    if(b == 100){
        N = 1000*a + b;
    }
    else if(b == 1 || b == 2 || b == 3 || b == 4 || b == 5 || b == 6 || b == 7 || b == 8 || b == 9 ){
        N = 10*a + b;
    }
    else{
        N =　100*a + b;
    }
    
    for(int i = 4;;i++){
    if(i*i == N){
      cout << "Yes" << endl;
      break;
    }
    else if(i*i > N){
      cout << "No" << endl;
      break;
    }
    else
      continue;
  }
}


Compiler output:
a.cc:14:12: error: extended character 　 is not valid in an identifier
   14 |         N =　100*a + b;
      |            ^
a.cc: In function 'int main()':
a.cc:14:12: error: '\U00003000100' was not declared in this scope
   14 |         N =　100*a + b;
      |            ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,N;
    cin >> a >> b;
    if(b == 100){
        N = 1000*a + b;
    }
    else if(b == 1 || b == 2 || b == 3 || b == 4 || b == 5 || b == 6 || b == 7 || b == 8 || b == 9 ){
        N = 10*a + b;
    }
    else{
        N =　100*a + b;
    }
    
    for(int i = 4;;i++){
    if(i*i == N){
      cout << "Yes" << endl;
      break;
    }
    else if(i*i > N){
      cout << "No" << endl;
      break;
    }
    else
      continue;
  }
}

Compiler output:
a.cc:14:12: error: extended character 　 is not valid in an identifier
   14 |         N =　100*a + b;
      |            ^
a.cc: In function 'int main()':
a.cc:14:12: error: '\U00003000100' was not declared in this scope
   14 |         N =　100*a + b;
      |            ^~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'log10' was not declared in this scope
    7 |         digit = log10(b) + 1;
      |                 ^~~~~
a.cc:8:23: error: 'pow' was not declared in this scope
    8 |         num = b + a * pow(10, digit);
      |                       ^~~
Language: C++

#include<iostream>
#include<algorithm>
int main()
{
	int a=0,b=0,num=0;
	std::cin >> a>>b;
	if (b == 100) 
	{
		num = a * 1000 + b;
	}
	else if (b == 1) {
		num=a*10+b
	}
	else 
	{
		num = a * 100 + b;
	}
	bool okada = false;
	for(int i=1;i<=100;i++)
	{
		if (i*i == num) 
		{
			okada = true;
		}
	}
	if (okada)
	{
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: expected ';' before '}' token
   12 |                 num=a*10+b
      |                           ^
      |                           ;
   13 |         }
      |         ~
Language: C++

using namespace std;

   int n;
 
int main() {

   cin >> n;

   int t[n];
   int a[n];
   int b[n];
   
   for (int i=0;i<n;i++) {
      cin >> t[i]  >> a[i] >> b[i];
}
   int x=0;
   for (int j=0;j<n;j++) {
      if (abs(a[j]-a[j+1])+abs(b[j]-b[j+1])<=t[j+1]-t[j]&&(abs(a[j]-a[j+1])+abs(b[j]b[j+1]))%2==t[j]%2)
         x++;
      else
         break;
}
   if (x==n)
      cout << "Yes";
   else
      cout << "No";
}

         

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope
    7 |    cin >> n;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:18:11: error: 'abs' was not declared in this scope
   18 |       if (abs(a[j]-a[j+1])+abs(b[j]-b[j+1])<=t[j+1]-t[j]&&(abs(a[j]-a[j+1])+abs(b[j]b[j+1]))%2==t[j]%2)
      |           ^~~
a.cc:18:85: error: expected ')' before 'b'
   18 |       if (abs(a[j]-a[j+1])+abs(b[j]-b[j+1])<=t[j+1]-t[j]&&(abs(a[j]-a[j+1])+abs(b[j]b[j+1]))%2==t[j]%2)
      |                                                                                ~    ^
      |                                                                                     )
a.cc:24:7: error: 'cout' was not declared in this scope
   24 |       cout << "Yes";
      |       ^~~~
a.cc:24:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:7: error: 'cout' was not declared in this scope
   26 |       cout << "No";
      |       ^~~~
a.cc:26:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int main(){
    string a, b;
    cin >> a >> b;
    int num = stoi(a + b);

    for(int i =0; i < 100; i++){
        if( (i+1) * (i+1) == num) {
            cout << "Yes" << endl;
            return 0;
    } 
    cout << 'No' << endl;
    return 0;

}

Compiler output:
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdlib.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <cmath>

using namespace std;

int main(void){
    int A, B;

    cin >> A >> B;

    string bb;
    bb = to_string(B);

    int M;
    M = pow(10, bb.length()) * A + B;

    int ans=0;
    
    ans = to_integer(sqrt(M));
    
    if(ans*ans == M){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    return 0;

    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:21: error: no matching function for call to 'to_integer(__gnu_cxx::__enable_if<true, double>::__type)'
   23 |     ans = to_integer(sqrt(M));
      |           ~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 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:2:
/usr/include/c++/14/cstddef:184:5: note: candidate: 'template<class _IntegerType> constexpr _IntegerType std::to_integer(__byte_op_t<_IntegerType>)'
  184 |     to_integer(__byte_op_t<_IntegerType> __b) noexcept
      |     ^~~~~~~~~~
/usr/include/c++/14/cstddef:184:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   couldn't deduce template parameter '_IntegerType'
   23 |     ans = to_integer(sqrt(M));
      |           ~~~~~~~~~~^~~~~~~~~
Language: C++

import os
import sys
from math import *


a, b = map(int, input().split())

M = a * 10 * len(str(b)) + b

if int(sqrt(M)) * int(sqrt(M)) == M:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('Yes')
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import os
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

#include <stdio.h>
#include <string.h>
#include <math.h>
 
main(){
        char a[4],b[4];
        int num;
 
        scanf("%s %s",a,b);
        char *c;
        c = strcat(a , b);
 
        num = atoi(c);
 
        int n = sqrt(num);
        if(n*n == num && c != 100100){
                printf("Yes");
        }else if(n*n != num && c != 100100){
                printf("No");
        }else if(c == 100100){
        		printf("No");
        }
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <string.h>
^
Main.java:3: error: illegal character: '#'
#include <math.h>
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
        int num;
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
        scanf("%s %s",a,b);
        ^
Main.java:10: error: class, interface, enum, or record expected
        char *c;
        ^
Main.java:11: error: class, interface, enum, or record expected
        c = strcat(a , b);
        ^
Main.java:13: error: class, interface, enum, or record expected
        num = atoi(c);
        ^
Main.java:16: error: class, interface, enum, or record expected
        if(n*n == num && c != 100100){
        ^
Main.java:18: error: class, interface, enum, or record expected
        }else if(n*n != num && c != 100100){
        ^
Main.java:20: error: class, interface, enum, or record expected
        }else if(c == 100100){
        ^
Main.java:22: error: class, interface, enum, or record expected
        }
        ^
13 errors
Language: C++

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

namespace _086_2
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
          
            string[] str = Console.ReadLine().Split(' ');
         
            int c = Convert.ToInt32(str[0] + str[1]);

            int d = (int)Math.Sqrt(c);

            int count = 0;
            for (int i = 0; i <= d; ++i)
            {
              
            if (c == i * i)
                {
                    count = count + 1;
                }
             
            }
            if (count == 1)
            {
                Console.WriteLine("可");
            }
            else
            {
                Console.WriteLine("不可");
            }
            
            

            


           

        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:48:6: error: expected ';' after class definition
   48 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void _086_2::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string a = Console.ReadLine();
      |             ^~~~~~
a.cc:15:20: error: expected primary-expression before ']' token
   15 |             string[] str = Console.ReadLine().Split(' ');
      |                    ^
a.cc:17:21: error: 'Convert' was not declared in this scope
   17 |             int c = Convert.ToInt32(str[0] + str[1]);
      |                     ^~~~~~~
a.cc:17:37: error: 'str' was not declared in this scope; did you mean 'std'?
   17 |             int c = Convert.ToInt32(str[0] + str[1]);
      |                                     ^~~
      |                                     std
a.cc:19:26: error: 'Math' was not declared in this scope
   19 |             int d = (int)Math.Sqrt(c);
      |                          ^~~~
a.cc:33:17: error: 'Console' was not declared in this scope
   33 |                 Console.WriteLine("可");
      |                 ^~~~~~~
a.cc:37:17: error: 'Console' was not declared in this scope
   37 |                 Console.WriteLine("不可");
      |                 ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

	if (b < 10) {
		x = b + a * 10;
	}
	else if (b <= 10 && b < 100) {
		x = b + a * 100;
	}
	else if (b == 100) {
		x = b + a * 1000;
	}
	int res = sqrt(x);
	cout << (res*res == x ? "Yes" : "No") << std::endl;
	return 0;
}

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

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

int main(){
  string a, b;
  cin >> a >> b;
  
  string plus = a + b;
  
  int sq = (int)sqrt(stod(plus));
  if(to_string(sq * sq) == plus) cout << "Yes" << endl;
  else << "No" << endl;
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected primary-expression before '<<' token
   14 |   else << "No" << endl;
      |        ^~
Language: C++

#include <String>
#include <iostream>
#include <complex>
using namespace std;

int main(){
  String a, b;
  cin >> a >> b;
  
  String plus = a + b;
  
  int sq = (int)sqrt((double)plus);
  if(sq * sq == plus) cout << "Yes" << endl;
  else << "No" << endl;
  
  
  return 0;
}

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

{
   int a,b,c;
   int i;

   scanf("%d%d",&a,&b);

   if((1<= b) && (b<10)){
     a = a * 10;
     a = a+b;
   }
   else if((10<=b) && (b<100)){
     a = a * 100;
     a = a+b;
   }
   else if(100 == b){
     a = a*1000;
     a = a+b;
   }
   i=1;
   c = 0;
   while(i<20){
    if(i*i == a){
      c = 1;
      i++;
    }
    else
      i++;
   }
   if(c==1)
     printf("Yes\n");
   else
     printf("No\n");
   return 0;
}


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

{
   int a,b,c;
   int i;

   scanf("%d%d",&a,&b);

   if((1<= b) && (b<10)){
     a = a * 10;
     a = a+b;
   }
   else if((10<=b) && (b<100)){
     a = a * 100;
     a = a+b;
   }
   else if(100 == b){
     a = a*1000;
     a = a+b;
   }
   i=1;
   c = 0;
   while(i<20){
    if(i*i == a){
      c = 1;
      i++;
    }
    else
      i++;
   }
   if(c==1)
     printf("Yes\n");
   else
     printf("No\n");
   return 0;
}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: Java

import java.util.*;

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

}

Compiler output:
Main.java:14: error: variable x might not have been initialized
		for(int i = 0;i * i < x;i++) {
		                      ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int pingfang(int n){
    if((sqrt(n)/1==sqrt(n))return 1;
    else return 0;
}
int main(){
    int a,b,nm,sum=0,i,k=1;
    cin>>a>>b;
    nm=b;
    while(nm){
        nm/=10;
        sum++;
    }
    for(i=1;i<=sum;++i)k*=10;
    a=a*k+b;
    if(pingfang(a)==1)cout<<"Yes";
    else cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int pingfang(int)':
a.cc:4:28: error: expected ';' before 'return'
    4 |     if((sqrt(n)/1==sqrt(n))return 1;
      |                            ^~~~~~
      |                            ;
a.cc:5:5: error: expected primary-expression before 'else'
    5 |     else return 0;
      |     ^~~~
a.cc:4:37: error: expected ')' before 'else'
    4 |     if((sqrt(n)/1==sqrt(n))return 1;
      |       ~                             ^
      |                                     )
    5 |     else return 0;
      |     ~~~~                             
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  string s, t;
  cin >> s >> t;
  int c = stoi(s + t);
  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:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string a,b;
  	cin >> a >> b;
  	int s = atoi((a+b).c_str())
  	int t = (int)sqrt(s);
  
  	puts(t*t==s?"Yes":"No");
  
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ',' or ';' before 'int'
    7 |         int t = (int)sqrt(s);
      |         ^~~
a.cc:9:14: error: 't' was not declared in this scope
    9 |         puts(t*t==s?"Yes":"No");
      |              ^
Language: C++

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

int main(){
  string a,b;
  cin>>a>>b;
　std::stringstream ss;
　ss << a+b;
　std::string str = ss.str();
  int ans=std::stoi(str);
  if(pow(sqrt(ans),2)==ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

  


Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　std::stringstream ss;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　ss << a+b;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　std::string str = ss.str();
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000std' has not been declared
    8 | 　std::stringstream ss;
      | ^~~~~
a.cc:9:1: error: '\U00003000ss' was not declared in this scope
    9 | 　ss << a+b;
      | ^~~~
a.cc:10:1: error: '\U00003000std' has not been declared
   10 | 　std::string str = ss.str();
      | ^~~~~
a.cc:11:21: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |   int ans=std::stoi(str);
      |                     ^~~
      |                     std
a.cc:12:10: error: 'sqrt' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |          ^~~~
a.cc:12:6: error: 'pow' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |      ^~~
Language: C++

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

int main(){
  int a,b;
  string a_s,b_s;
  cin>>a>>b;
  a_s=std::to_string(a);
  b_s=std::to_string(b);
  int ans=std::stoi(a_s+b_s);
  if(pow(sqrt(ans),2)==ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'sqrt' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |          ^~~~
a.cc:12:6: error: 'pow' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |      ^~~
Language: C++

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

int main(){
  int a,b;
  string a_s,b_s;
  cin>>a>>b;
  a_s=to_string(a);
  b_s=to_string(b);
  int ans=stoi(a_s+b_s);
  if(pow(sqrt(ans),2)==ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'sqrt' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |          ^~~~
a.cc:12:6: error: 'pow' was not declared in this scope
   12 |   if(pow(sqrt(ans),2)==ans){
      |      ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
long long a,b,POW;
int main()
{
 cin>>a>>b;
 for(int i=b;i>0;i/=10)
 {
    POw++; 
 }
 a*=pow(10,POW);
 a+=b;
 if(sqrt(a)*sqrt(a)!=a)cout<<"No"<<endl;
 else cout<<"Yes"<<endl;
 return 0;
}

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

include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b=0,lb,i,j;
    char b2[5];
    cin>>a>>b2;
    lb=strlen(b2);
    if(lb==2 && b2[0]=='0' && b2[1]=='0') b=b+a*100;
    else if(lb==3 && b2[0]=='0' && b2[1]=='0' && b2[2]=='0') b=b+a*1000;

    else {
        for(i=0,j=(lb-1);i<lb;i++,j--) {
            b+=((b2[i]-48)*(pow(10,j)));
        }
        if(b<10) b=b+a*10;
        else if(b<100) b=b+a*100;
        else if(b<1000) b=b+a*1000;
    }
    if(sqrt(b)*sqrt(b)==b) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b2;
      |     ^~~
a.cc:8:8: error: 'strlen' was not declared in this scope
    8 |     lb=strlen(b2);
      |        ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include<bits/stdc++.h>
a.cc:14:29: error: 'pow' was not declared in this scope
   14 |             b+=((b2[i]-48)*(pow(10,j)));
      |                             ^~~
a.cc:20:8: error: 'sqrt' was not declared in this scope
   20 |     if(sqrt(b)*sqrt(b)==b) cout<<"Yes"<<endl;
      |        ^~~~
a.cc:20:28: error: 'cout' was not declared in this scope
   20 |     if(sqrt(b)*sqrt(b)==b) cout<<"Yes"<<endl;
      |                            ^~~~
a.cc:20:41: error: 'endl' was not declared in this scope
   20 |     if(sqrt(b)*sqrt(b)==b) cout<<"Yes"<<endl;
      |                                         ^~~~
a.cc:21:10: error: 'cout' was not declared in this scope
   21 |     else cout<<"No"<<endl;
      |          ^~~~
a.cc:21:22: error: 'endl' was not declared in this scope
   21 |     else cout<<"No"<<endl;
      |                      ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    string s,st,sr;
    int a=0,i;
    cin>>s>>st;
    sr=s+st;
    for (i=0;i<sr.length();i++)
    a=a*10+sr[i]-49+1;
    if(sqrt(a)==float(sqrt(a))) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'sqrt' was not declared in this scope; did you mean 'sr'?
   11 |     if(sqrt(a)==float(sqrt(a))) cout<<"Yes"<<endl;
      |        ^~~~
      |        sr
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	string a, b, c;
	double ans;
	cin >> a >> b;
	c = a + b;
	ans = sqrt(stoi(c));
	if (ceil(ans) == floor(ans)) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'sqrt' was not declared in this scope
   12 |         ans = sqrt(stoi(c));
      |               ^~~~
a.cc:13:13: error: 'ceil' was not declared in this scope
   13 |         if (ceil(ans) == floor(ans)) {
      |             ^~~~
a.cc:13:26: error: 'floor' was not declared in this scope
   13 |         if (ceil(ans) == floor(ans)) {
      |                          ^~~~~
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  int c;
  if(b%10 == 0){int c = 10*a + b;}
  else if(b%10 >0 && b%10 <=9){int c = 100*a + b;}
  else{int c = 1000*a + b;}
  int d = (int)Math.sqrt((double)c);
  if(d*d == c){System.out.println("Yes");}
  else {System.out.println("No");}
}
}


Compiler output:
Main.java:8: error: variable c is already defined in method main(String[])
  if(b%10 == 0){int c = 10*a + b;}
                    ^
Main.java:9: error: variable c is already defined in method main(String[])
  else if(b%10 >0 && b%10 <=9){int c = 100*a + b;}
                                   ^
Main.java:10: error: variable c is already defined in method main(String[])
  else{int c = 1000*a + b;}
           ^
3 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  if(b%10 == 0){int c = 10*a + b;}
  else if(b%10 >0 && b%10 <=9){int c = 100*a + b;}
  else{int c = 1000*a + b;}
  int d = (int)Math.sqrt((double)c);
  if(d*d == c){System.out.println("Yes");}
  else {System.out.println("No");}
}
}

Compiler output:
Main.java:10: error: cannot find symbol
  int d = (int)Math.sqrt((double)c);
                                 ^
  symbol:   variable c
  location: class Main
Main.java:11: error: cannot find symbol
  if(d*d == c){System.out.println("Yes");}
            ^
  symbol:   variable c
  location: class Main
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'sqrt' was not declared in this scope
   14 |     if(sqrt(c)==floor(sqrt(c)))cout<<"Yes";
      |        ^~~~
a.cc:14:17: error: 'floor' was not declared in this scope
   14 |     if(sqrt(c)==floor(sqrt(c)))cout<<"Yes";
      |                 ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected primary-expression before ')' token
   10 |     }else if(){
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'a' was not declared in this scope
   14 |         a = a * pow(10, len) + b;
      |         ^
a.cc:14:32: error: 'b' was not declared in this scope
   14 |         a = a * pow(10, len) + b;
      |                                ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int c;
	char a[10],b[10],m[110];
	scanf("%s%s",&a,&b);
	sprintf(&m,"%s%s",&a,&b);
	sscanf(&m,"%d",&c);
	for(int i=0;i<1100;i++)
	{
		if(i*i==t){cout<<"Yes"<<'\n';return 0;}
	}
	cout<<"No"<<'\n';
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: cannot convert 'char (*)[110]' to 'char*'
    9 |         sprintf(&m,"%s%s",&a,&b);
      |                 ^~
      |                 |
      |                 char (*)[110]
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 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/stdio.h:365:38: note:   initializing argument 1 of 'int sprintf(char*, const char*, ...)'
  365 | extern int sprintf (char *__restrict __s,
      |                     ~~~~~~~~~~~~~~~~~^~~
a.cc:10:16: error: cannot convert 'char (*)[110]' to 'const char*'
   10 |         sscanf(&m,"%d",&c);
      |                ^~
      |                |
      |                char (*)[110]
/usr/include/stdio.h:430:43: note:   initializing argument 1 of 'int sscanf(const char*, const char*, ...)'
  430 | extern int sscanf (const char *__restrict __s,
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:13:25: error: 't' was not declared in this scope
   13 |                 if(i*i==t){cout<<"Yes"<<'\n';return 0;}
      |                         ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>
using namespace std; 
 
 
int main()
{
string a,b;
cin >> a >> b;
double x = stoi(a+b);
int y = floar(double sqrt(double x)))^2


if (y = x){printf("Yes");}
else {printf("No");}
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before 'double'
   10 | int y = floar(double sqrt(double x)))^2
      |               ^~~~~~
a.cc:10:9: error: 'floar' was not declared in this scope; did you mean 'float'?
   10 | int y = floar(double sqrt(double x)))^2
      |         ^~~~~
      |         float
Language: C++

#include<iostream>
using namespace std; 
 
 
int main()
{
string a,b;
cin >> a >> b;
int x = stoi(a+b);

if (sqrt(x)*sqrt(x) = x){printf("Yes")}
else {printf("No")}
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'sqrt' was not declared in this scope
   11 | if (sqrt(x)*sqrt(x) = x){printf("Yes")}
      |     ^~~~
a.cc:11:39: error: expected ';' before '}' token
   11 | if (sqrt(x)*sqrt(x) = x){printf("Yes")}
      |                                       ^
      |                                       ;
a.cc:12:19: error: expected ';' before '}' token
   12 | else {printf("No")}
      |                   ^
      |                   ;
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <algorithm>
using namespace std;
int main() {
	int a;
	string B;
	cin >> a >> B;
	a *= pow(10, B.size());
	for (int i = B.size() - 1; i >= 0; i--) {
		a += (B[i] - '0')*pow(10, i);
	}
	cout << (a == sqrt(a)*sqrt(a) ? "Yes" : "No") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'pow' was not declared in this scope
   10 |         a *= pow(10, B.size());
      |              ^~~
a.cc:14:23: error: 'sqrt' was not declared in this scope
   14 |         cout << (a == sqrt(a)*sqrt(a) ? "Yes" : "No") << endl;
      |                       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool prime(int x)
{
    int y=sqrt(x);
    return y*y==x;
}
int main()
{
    int a,b;
    while(cin>>a>>b){
        if(a<b) swap(a,b);
        int flag=0;
        if(a<10&&b<10){
            if(prime(a+10*b)||prime(a*10+b)) flag=1;
        }
        else if(a<10&&b>=10&&b<100){
            if(prime(a+10*b)||prime(a*100+b)) flag=1;
        }
        else if(a>=10&&a<100&&b<10){
            if(prime(a+100*b)||prime(a+10*b)) flag=1;
        }
        else if(a>=10&&a<100&&b>=10&&b<100){
            if(prime(a+100*b)||prime(a+100*b)) flag=1;
        }
        else if(a==100&&b>=10&&b<100){
            if(prime(a+1000*b)||prime(a+100*b)) flag=1;
        }
        else if(a>=10&&a<100&&b=100){
            if(prime(a+100*b)||prime(a+1000*b)) flag=1;
        }
        if(flag) cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:29: error: lvalue required as left operand of assignment
   29 |         else if(a>=10&&a<100&&b=100){
      |                 ~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

    string a,b,c;
    int d,i;
    cin >> a >> b;

    c = a + b;
    d = std::atoi(c.c_str());

    for(i = 4; i < 100100; i++){
        if(d == i * i){
            cout << "Yes" << endl;
            return 0;
        }
    }

    cout << "No" << endl;
    return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main(){

    string a,b,c;
    int d,i;
    cin >> a >> b;

    c = a + b;
    d = std::atoi(c.c_str());

    for(i = 4; i < 100100; i++){
        if(d == i * i){
            cout << "Yes" << endl;
            return 0;
        }
    }

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


Compiler output:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:19:16: warning: missing terminating " character
   19 |         cout <<"Yes<<endl;
      |                ^
a.cc:19:16: error: missing terminating " character
   19 |         cout <<"Yes<<endl;
      |                ^~~~~~~~~~~
a.cc:21:16: warning: missing terminating " character
   21 |         cout <<"No<<endl;
      |                ^
a.cc:21:16: error: missing terminating " character
   21 |         cout <<"No<<endl;
      |                ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:20:9: error: expected primary-expression before 'else'
   20 |         else
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int A,B,C;
float D;
int main() {
	cin >> A >> B;
	if (B==100)
	{
		C = A*1000+B;
	}else if(B>=10){
		C = A*100+B;
	}else{
		C=A*10+B
	}
	D = C/2;
	if (int(D*2)==C)
	{
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before '}' token
   13 |                 C=A*10+B
      |                         ^
      |                         ;
   14 |         }
      |         ~
Language: C++

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

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

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

#include<stdio.h>
#include<stdlib.h>
 
int main(){
 
  int a, b, c, d, e;
  scanf("%d%d", &a, &b);

  if(b=100)
    c=a*1000+b;
  else if(b>=10)
    c=a*100+b
  else
    c=a*10+b

  e=c/2;
  for(d=c/4;;d=d/2){
    if(e<4){printf("No"); break;}
    if(c>e*e){
      e+=d
    }else if(c<e*e){
      e-=d;
    }else{
      printf("Yes"); break;
    }
  }
 
}

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before 'else'
   12 |     c=a*100+b
      |              ^
      |              ;
   13 |   else
      |   ~~~~        
main.c:20:11: error: expected ';' before '}' token
   20 |       e+=d
      |           ^
      |           ;
   21 |     }else if(c<e*e){
      |     ~
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
   double a,b;
    cin>>a>>b;
    int c;
    c=b/10;
    for(int i=0;i<=c;i++)
    {
        a=a*10;
    }
    b=a+b;
    if(b=double pow(b,0.5))
    {
        cout<<"Yes\n";
    }
    else{
        cout<<"No\n";
    }
  
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected primary-expression before 'double'
   15 |     if(b=double pow(b,0.5))
      |          ^~~~~~
a.cc:15:10: error: expected ')' before 'double'
   15 |     if(b=double pow(b,0.5))
      |       ~  ^~~~~~
      |          )
Language: C++

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int a, b;
int ans;
string str;
int con;

int solve() {
	int ans = connect();
	for (int i = 0; i < 11; ++i) {
		int tmp = i*i;
		if (ans == tmp) {
			
			return 1;
		}
	}
	return 0;
}

int connect(){
	int con;
	str.push_back('a');
	ostringstream ss;
	ss << b;
	str = str + ss.str();
	con = stoi(str);
	return con;
}

int main() {
	cin >> a >> b;
	int ans = solve();
	if (ans == 1) {
		cout << 'yes';
	}
	else {
		cout << 'no';
	}
	return 0;
}


Compiler output:
a.cc:38:25: warning: multi-character character constant [-Wmultichar]
   38 |                 cout << 'yes';
      |                         ^~~~~
a.cc:41:25: warning: multi-character character constant [-Wmultichar]
   41 |                 cout << 'no';
      |                         ^~~~
a.cc: In function 'int solve()':
a.cc:13:19: error: 'connect' was not declared in this scope; did you mean 'const'?
   13 |         int ans = connect();
      |                   ^~~~~~~
      |                   const
Language: C++


#include <string>
using namespace std;
string s,t;
bool f=false;
int n;
int main(){
	cin>>s>>t;
	s+=t;
	n=stoi(s);
	for(int i=1;i<=100;i++){
		if(i*i==n){
			f=true;
			break;
		}		
	}
	cout<<(f?"Yes":"No");
}
	


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>s>>t;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout<<(f?"Yes":"No");
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <string>
using namespace std;
string s,t;
bool f=false;
int n;
int main(){
	cin>>s>>t;
	s+=t;
	n=stoi(s);
	for(int i=1;i<=100;i++){
		if(i*i==n){
			f=true;
			break;
		}		
	}
	cout<<(f?"Yes":"No);
}
	

Compiler output:
a.cc:17:24: warning: missing terminating " character
   17 |         cout<<(f?"Yes":"No);
      |                        ^
a.cc:17:24: error: missing terminating " character
   17 |         cout<<(f?"Yes":"No);
      |                        ^~~~~
a.cc: In function 'int main()':
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
a.cc:17:24: error: expected ')' before '}' token
   17 |         cout<<(f?"Yes":"No);
      |               ~        ^
      |                        )
   18 | }
      | ~
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> PII;
#define MOD (1000000007ll)

int main(void){
	int n,i,z=0;
	string a,b;
	bool flag = false;
	cin >> a >> b;
	n = a.length();
	for(i=0; i<n; i++){
		z *= 10;
		z += a[i]-'0';
	}
	n = b.length();
	for(i=0; i<n; i++){
		z *= 10;
		z += b[i]-'0';
	}
	r = z;
	l = 0;
	for(i=0; i<z; i++){
		if(i*i==z){
			flag = true;
			break;
		}
	}
	cout << ((flag)?"Yes":"No") << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 'r' was not declared in this scope
   24 |         r = z;
      |         ^
a.cc:25:9: error: 'l' was not declared in this scope
   25 |         l = 0;
      |         ^
Language: C++

#include <iostream>
#include <string>

int main(void)
{
	std::string a, b;

	std::cin >> a >> b

	long long num = std::stoi(a + b);

	for(int i = 0; i * i <= num; i++) {
		if (i * i == num) {
			std::cout << "Yes" << std::endl;
			return 0;
		}
	}
	std::cout << "No" << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'long'
    8 |         std::cin >> a >> b
      |                           ^
      |                           ;
    9 | 
   10 |         long long num = std::stoi(a + b);
      |         ~~~~               
a.cc:12:33: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |         for(int i = 0; i * i <= num; i++) {
      |                                 ^~~
      |                                 enum
Language: C++

int main()
{   
    std::string ca, cb; 
    std::cin >> ca >> cb;
    std::string cat = ca + cb;
    int num; 
    num = std::atoi(cat.c_str());
            
    int i;  
    for (i = 1; i < MAX; i++) {
        if (num == i * i ) {
            std::cout << "Yes" << std::endl;
            return 0; 
        }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'string' is not a member of 'std'
    3 |     std::string ca, cb;
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main()
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin >> ca >> cb;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:4:17: error: 'ca' was not declared in this scope; did you mean 'char'?
    4 |     std::cin >> ca >> cb;
      |                 ^~
      |                 char
a.cc:4:23: error: 'cb' was not declared in this scope
    4 |     std::cin >> ca >> cb;
      |                       ^~
a.cc:5:10: error: 'string' is not a member of 'std'
    5 |     std::string cat = ca + cb;
      |          ^~~~~~
a.cc:5:10: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:7:16: error: 'atoi' is not a member of 'std'
    7 |     num = std::atoi(cat.c_str());
      |                ^~~~
a.cc:7:21: error: 'cat' was not declared in this scope
    7 |     num = std::atoi(cat.c_str());
      |                     ^~~
a.cc:10:21: error: 'MAX' was not declared in this scope
   10 |     for (i = 1; i < MAX; i++) {
      |                     ^~~
a.cc:12:18: error: 'cout' is not a member of 'std'
   12 |             std::cout << "Yes" << std::endl;
      |                  ^~~~
a.cc:12:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:40: error: 'endl' is not a member of 'std'
   12 |             std::cout << "Yes" << std::endl;
      |                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
a.cc:17:10: error: 'cout' is not a member of 'std'
   17 |     std::cout << "No" << std::endl;
      |          ^~~~
a.cc:17:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:31: error: 'endl' is not a member of 'std'
   17 |     std::cout << "No" << std::endl;
      |                               ^~~~
a.cc:17:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#define MAX 100

int main()
{
    std::string ca, cb;
    std::cin >> ca >> cb;
    std::string cat = ca + cb;
    int num;
    num = std::atoi(cat.c_str());

    int i;
    for (i = 1; i < MAX; i++) {
        if (num == i * i ) {
            std::cout << "Yes" << std::endl;
            return 0;
        }

    }
    std::cout << "No" << std::endl;
    return 1;
}
~            

Compiler output:
a.cc:23:2: error: expected class-name at end of input
   23 | ~
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[1000001];
double b[1000001];
int main(){
    long long m,n,i,j;
    long double x=0.0;
    cin>>n>>m;
    for(i=1;i<=m-1;i++)
    	cin>>a[i]
    for(i=m;i<=n;i++){
    cin>>a[i];
    for()
    }
    
    cout<<fixed<<setprecision(2)<<x/m;
    return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'for'
   10 |         cin>>a[i]
      |                  ^
      |                  ;
   11 |     for(i=m;i<=n;i++){
      |     ~~~           
a.cc:11:21: error: expected ';' before ')' token
   11 |     for(i=m;i<=n;i++){
      |                     ^
      |                     ;
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int join = a * (int) Math.pow(10, (int) Math.log10(b) + 1) + b;
		System.out.println(IntStream.rangeClosed(1, 317).anyMatch(i -> join == i * i) ? "Yes" : "No");
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		System.out.println(IntStream.rangeClosed(1, 317).anyMatch(i -> join == i * i) ? "Yes" : "No");
		                   ^
  symbol:   variable IntStream
  location: class Main
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define For(i,a,b)	for(int i=a;i<=b;i++)
int a,b,c;
int main(){
	cin>>a>>b;
	if(b<=9)
	c=a*10+b;
	if(10=<b&&b<=99)
	c=a*100+b;
	if(b==100)
	c=a*1000+b;
	if(sqrt(c)%1==0)
	cout<<"Yes";
	else
	cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '<' token
    9 |         if(10=<b&&b<=99)
      |               ^
a.cc:13:19: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   13 |         if(sqrt(c)%1==0)
      |            ~~~~~~~^~
      |                |   |
      |                |   int
      |                __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

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

int main(){
    int a,b,c;
    scanf("%d%d",&a,&b);
    char a2[8],b2[8];
    sprintf(a2,"%d",a);
    sprintf(b2,"%d",b);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ')' before ';' token
   14 |     if(int i=1;i*i<=c;i++){
      |       ~              ^
      |                      )
a.cc:14:23: error: 'i' was not declared in this scope
   14 |     if(int i=1;i*i<=c;i++){
      |                       ^