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

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

public class main {

	String fileName = "erase";

	public void solve() throws IOException {
		int a = nextInt();
		int b = nextInt();
		int bo = 1;
		if (a % 2 == 1)
			bo = -bo;
		if (b % 2 == 1)
			bo = -bo;
		if (bo == 1)
			out.print("Even");
		else
			out.print("Even");
	}

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

	BufferedReader br;
	StringTokenizer in;
	static PrintWriter out;

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

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

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

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

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

}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long A = sc.nextLong();
        long B = sc.nextLong();
if (a * b % 2 == 0 )
          System.out.print("Even");
else
          System.out.print("Odd");
}

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

#include<stdio.h>

int main(){
  int a,b;
  scanf("%d %d"&a,&b);
  if((a*b)%2==0)  printf("Even\n");
  else printf("Odd\n");
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^
      |         |
      |         char *
Language: Java

import java.util.*;
public class A {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		if(a*b %2 ==1)
			System.out.println("Odd");
		else
			System.out.println("Even");
	}

}

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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
int main(void){
  int a, b;
  cin >> a >> b;
  if(a%2==0 || b%2==0){cout << "Even"  << endl;}
  else cout << "Odd" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(a%2==0 || b%2==0){cout << "Even"  << endl;}
      |                        ^~~~
      |                        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   if(a%2==0 || b%2==0){cout << "Even"  << endl;}
      |                                           ^~~~
      |                                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout << "Odd" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   else cout << "Odd" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int a, b; cin >> a >> b;
	if(a*b%2==0){
		cout << "Even" << endl;
	}else{
		cout << "Odd" << endl;3
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ';' before '}' token
    8 |                 cout << "Odd" << endl;3
      |                                        ^
      |                                        ;
    9 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int n;
	cin >> a,b;
	if((a*b)%2 ==0){
	cout << Even << endl;
}	
	if((a*b)%2 !=0){
	cout << Odd << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'a' was not declared in this scope
    6 |         cin >> a,b;
      |                ^
a.cc:6:18: error: 'b' was not declared in this scope
    6 |         cin >> a,b;
      |                  ^
a.cc:8:17: error: 'Even' was not declared in this scope
    8 |         cout << Even << endl;
      |                 ^~~~
a.cc:11:17: error: 'Odd' was not declared in this scope
   11 |         cout << Odd << endl;
      |                 ^~~
Language: C++

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

int main() {
  int a, b;
  if ((a*b)%==0) {
    printf("Even\n");
  } else {
    printf("Odd\n");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before '=' token
    7 |   if ((a*b)%==0) {
      |              ^
Language: C++

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

#define rep(i,n) FOR(i,0,n)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ROF(i,a,b) for(int i=(a)-1;i>=(b);i--)
#define all(a) (a).begin(),(a).end()
#define UNIQUE(v) v.erase(unique(all(v)),v.end())
#define SUM(a) accumlate(all(a),0)
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<string> vs;
typedef pair<int,int> pii;
typedef long long ll;

main(){
  int a,b,c; cin >> a >> b;
  if(a%2 == 0 or b%2 == 0)
    cout << "Even";
  else cout << "Odd"
  cout << endl;
}


Compiler output:
a.cc:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   16 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:21: error: expected ';' before 'cout'
   20 |   else cout << "Odd"
      |                     ^
      |                     ;
   21 |   cout << endl;
      |   ~~~~
Language: C++

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

int main(void){
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a, b, c;
	cin >> a >> b;
	c = a*b
	if (c%2 == 1){
		cout << "Odd" << "\n";
	}else{
		cout << "Even" << "\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'if'
   10 |         c = a*b
      |                ^
      |                ;
   11 |         if (c%2 == 1){
      |         ~~      
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else{
      |          ^~~~
Language: C++

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

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

  cin >> a >> b;
  a * = b;

  if ( a & 1 ) {
    cout << "Odd" << endl;
  } else {
    cout << "Even" << endl;
  }

  return (0);
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before '=' token
   10 |   a * = b;
      |       ^
Language: Java

import java.util.*;
import java.io.*;
public class codeforces
{
    public static void main(String args[])
    {
        Scanner sc= new Scanner(System.in);
        int  a=sc.nextInt();
        int b = sc.nextInt();
        if(a*b%2==1)
        System.out.println("Odd");
        else
        System.out.println("Even");
    }
}

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

import java.util.Scanner;

class Main {

    private static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        System.out.println((n / m) % 2 == 1 ? "Odd" : "Even");
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:12: error: expected ':' before 'static'
    5 |     private static Scanner sc = new Scanner(System.in);
      |            ^~~~~~~
      |            :
a.cc:5:20: error: 'Scanner' does not name a type
    5 |     private static Scanner sc = new Scanner(System.in);
      |                    ^~~~~~~
a.cc:7:11: error: expected ':' before 'static'
    7 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:7:29: error: 'String' has not been declared
    7 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:7:38: error: expected ',' or '...' before 'args'
    7 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:8:17: error: 'sc' was not declared in this scope
    8 |         int n = sc.nextInt();
      |                 ^~
a.cc:10:9: error: 'System' was not declared in this scope
   10 |         System.out.println((n / m) % 2 == 1 ? "Odd" : "Even");
      |         ^~~~~~
Language: C++


#include <bits/stdc++.h>


using namespace std;

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

    if (a*b % 2 == 0)
        cout << "Even";
    else
        cout << "Odd"

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before 'return'
   15 |         cout << "Odd"
      |                      ^
      |                      ;
   16 | 
   17 |     return 0;
      |     ~~~~~~
Language: C++

// g++ macro.cpp -std=c++14
#include <bits/stdc++.h> //STL include
typedef long long ll;// long long int
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
using namespace std;//namespace

#define dump(x)  cout << #x << " = " << (x) << endl;// debug cout
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl;
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl;

#define SANKOU(n,a,b) cout << ((n) ? (a) : (b) ) << endl;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)// for macro
#define REP(i,n) for(int i=0;i<(n);++i)
#define REPR(i,n) for(int i=n;i>=0;i--)

#define FOREACH(x,a) for(auto& (x) : (a) )

#define WFA(d,v) REP(k,v)REP(i,v)REP(j,v)d[i][j]=min(d[i][j],d[i][k]+d[k][j]);// warshall-floyd

#define CIN(x) int x;cin>>x;
#define CIN2(x,y) int x,y;cin>>x>>y;
#define CIN3(x,y,z) int x,y,z;cin>>x>>y>>z;
#define SCIN(x) string x;cin>>x;
#define SCIN2(x,y) string x,y;cin>>x>>y;
#define COUT(x) cout<<(x)<<endl;
#define SCOUT(x) cout<<(x)<<" ";
#define ENDL cout<<endl;

#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_;
#define VECIN2(x,y) REP(i,x.size())cin>>x[i]>>y[i];
#define VECCOUT(x) for(auto&youso_: (x) )cout<<youso_<<" ";cout<<endl;

#define ALL(obj) (obj).begin(),(obj).end()// iterator

#define EXIST(n,x) (find(ALL(n),x)!=n.end())
#define UNIQUE(obj) sort(ALL( obj )); obj.erase(unique(ALL(obj)),obj.end())


#define P pair<int,int>
#define V vector<int>
#define M map<int,int>
#define S set<int>
#define L list<int>

#define pb(a) push_back(a)//push_back
#define mp make_pair// make_pair


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

    SANKOU(a*b%2==1,"Odd","Even");

    return 0;
}


Compiler output:
a.cc:53:12: error: macro "CIN" passed 2 arguments, but takes just 1
   53 |     CIN(a,b);
      |            ^
a.cc:23:9: note: macro "CIN" defined here
   23 | #define CIN(x) int x;cin>>x;
      |         ^~~
a.cc: In function 'int main()':
a.cc:53:5: error: 'CIN' was not declared in this scope
   53 |     CIN(a,b);
      |     ^~~
a.cc:55:12: error: 'a' was not declared in this scope
   55 |     SANKOU(a*b%2==1,"Odd","Even");
      |            ^
a.cc:13:33: note: in definition of macro 'SANKOU'
   13 | #define SANKOU(n,a,b) cout << ((n) ? (a) : (b) ) << endl;
      |                                 ^
a.cc:55:14: error: 'b' was not declared in this scope; did you mean 'pb'?
   55 |     SANKOU(a*b%2==1,"Odd","Even");
      |              ^
a.cc:13:33: note: in definition of macro 'SANKOU'
   13 | #define SANKOU(n,a,b) cout << ((n) ? (a) : (b) ) << endl;
      |                                 ^
Language: C++

#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
 
using namespace std;
 
//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
 
//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}
 
//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
 
//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
 
//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
 
//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);
 
//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))
 
//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;



int main(int argc, char const *argv[])
{
	int a,b,c,n;
	cin >> a >> b;
	int res = a*b;
	if(rex%2==0)cout<<"Even"<<endl;
	else cout << "Odd" <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:78:12: error: 'rex' was not declared in this scope; did you mean 'res'?
   78 |         if(rex%2==0)cout<<"Even"<<endl;
      |            ^~~
      |            res
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	String t = sc.next();
      	int st = Integer.parseInt(s + t);
      	String ans = "No";
      	for(int i = 1; i <= 400; i++){
        	if(ab % i == ab){
            	ans = "Yes";
              	break;
            }
        }
      	System.out.println(ans);
    }
}


Compiler output:
Main.java:10: error: cannot find symbol
        	if(ab % i == ab){
        	   ^
  symbol:   variable ab
  location: class Main
Main.java:10: error: cannot find symbol
        	if(ab % i == ab){
        	             ^
  symbol:   variable ab
  location: class Main
2 errors
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int i = Integer.parseInt(s);
      for(int j =1 ; j<1000 ; j++){
        if(i % j == j){
          System.out.println("Yes");
        	break;
        }
      }
      return;
      System.out.println("No");
    }
}

Compiler output:
Main.java:15: error: unreachable statement
      System.out.println("No");
      ^
1 error
Language: C++

  int c[3],p,n=0;
    double m ;
    for(int i=0;i<2;i++)
        cin>>c[i];
    for(int i=0;i<2;i++){
        p=10;
        if(c[i]>=10)
            p*=10;
        n*=p;
        n+=c[i];
    }
    m=sqrt(n);
    n=sqrt(n);
    if((m-n)==0)
        cout<<"Yes"<<endl;
        else cout<<"No";

Compiler output:
a.cc:3:5: error: expected unqualified-id before 'for'
    3 |     for(int i=0;i<2;i++)
      |     ^~~
a.cc:3:17: error: 'i' does not name a type
    3 |     for(int i=0;i<2;i++)
      |                 ^
a.cc:3:21: error: 'i' does not name a type
    3 |     for(int i=0;i<2;i++)
      |                     ^
a.cc:5:5: error: expected unqualified-id before 'for'
    5 |     for(int i=0;i<2;i++){
      |     ^~~
a.cc:5:17: error: 'i' does not name a type
    5 |     for(int i=0;i<2;i++){
      |                 ^
a.cc:5:21: error: 'i' does not name a type
    5 |     for(int i=0;i<2;i++){
      |                     ^
a.cc:12:5: error: 'm' does not name a type
   12 |     m=sqrt(n);
      |     ^
a.cc:13:5: error: 'n' does not name a type
   13 |     n=sqrt(n);
      |     ^
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if((m-n)==0)
      |     ^~
a.cc:16:9: error: expected unqualified-id before 'else'
   16 |         else cout<<"No";
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  string s, x;
  cin >> s >> x;
  int num = stoi(s+x);
  double root = sqrt(num);
  if(root == int(root)) puts("Yes");
  else puts("No");
  
  // int root = sqrt(num);
  // if(num == (root*root)) puts("Yes");
  // else puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'sqrt' was not declared in this scope
    9 |   double root = sqrt(num);
      |                 ^~~~
Language: C

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

int main(void){

  char a, b;
  scanf("%c %c",&a,&b);
  
  char c, d;
  c = strcat(a, b);
  d = sqrt(strcat(a, b));
  if(d*d == c) printf("Yes");
  else printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |              ^
      |              |
      |              char
In file included from main.c:3:
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:11:17: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |                 ^
      |                 |
      |                 char
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:11:5: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |     ^
main.c:12:19: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a, b));
      |                   ^
      |                   |
      |                   char
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:12:22: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a, b));
      |                      ^
      |                      |
      |                      char
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:12:12: error: incompatible type for argument 1 of 'sqrt'
   12 |   d = sqrt(strcat(a, b));
      |            ^~~~~~~~~~~~
      |            |
      |            char *
In file included from /usr/include/math.h:275,
                 from main.c:2:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: expected 'double' but argument is of type 'char *'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^
Language: C

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

int main(void){

  int a, b;
  scanf("%d %d",&a,&b);
  
  int c, d;
  c = strcat(a, b);
  d = sqrt(strcat(a, b));
  if(d*d == c) printf("Yes");
  else printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |              ^
      |              |
      |              int
In file included from main.c:3:
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:11:17: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |                 ^
      |                 |
      |                 int
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:11:5: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |   c = strcat(a, b);
      |     ^
main.c:12:19: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a, b));
      |                   ^
      |                   |
      |                   int
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:12:22: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a, b));
      |                      ^
      |                      |
      |                      int
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:12:12: error: incompatible type for argument 1 of 'sqrt'
   12 |   d = sqrt(strcat(a, b));
      |            ^~~~~~~~~~~~
      |            |
      |            char *
In file included from /usr/include/math.h:275,
                 from main.c:2:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: expected 'double' but argument is of type 'char *'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^
Language: C

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

int main(void){

  int a, b;
  scanf("%d %d",&a,&b);
  
  int c, d;
  c = strcat(a,b);
  d = sqrt(strcat(a,b));
  if(d*d == c) printf("Yes");
  else printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a,b);
      |              ^
      |              |
      |              int
In file included from main.c:3:
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:11:16: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   11 |   c = strcat(a,b);
      |                ^
      |                |
      |                int
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:11:5: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |   c = strcat(a,b);
      |     ^
main.c:12:19: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a,b));
      |                   ^
      |                   |
      |                   int
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:12:21: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   12 |   d = sqrt(strcat(a,b));
      |                     ^
      |                     |
      |                     int
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'int'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:12:12: error: incompatible type for argument 1 of 'sqrt'
   12 |   d = sqrt(strcat(a,b));
      |            ^~~~~~~~~~~
      |            |
      |            char *
In file included from /usr/include/math.h:275,
                 from main.c:2:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: expected 'double' but argument is of type 'char *'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'stoi(int)'
    7 |   int t = 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 a,b;
  cin >> a >> b;
  string s = to_string(ab);
  int t = stoi(s);
  for(int i=0;i<1000;i++){
    if(t == i*i){
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'ab' was not declared in this scope; did you mean 'b'?
    7 |   string s = to_string(ab);
      |                        ^~
      |                        b
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sting' was not declared in this scope
    6 |   sting a, b;
      |   ^~~~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b;
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sting' was not declared in this scope
    6 |   sting a, b;
      |   ^~~~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'a' was not declared in this scope
    4 |   cin>>a>>b;
      |        ^
a.cc:4:11: error: 'b' was not declared in this scope
    4 |   cin>>a>>b;
      |           ^
a.cc:11:3: error: 'N' was not declared in this scope
   11 |   N=a+b;
      |   ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	int ab = 0;
	ab = a * pow(10, b / 10) + b;
	int rec = 1;
	for (int i = 0; i < 1000; i++) {
		if (i * i == ab) {
			cout << "Yes" << endl;
			rec = 0;
			break;
		}
	}
	if (rec == 1) {
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'pow' was not declared in this scope
    7 |         ab = a * pow(10, b / 10) + b;
      |                  ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using ld = long double;
using Vec = vector<int>;

bool IsPrime(int num)
{
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; 
    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            // 素数ではない
            return false;
        }
    }

    // 素数である
    return true;
}

int main() {
 
 int a,b;
 cin>>a>>b;
 int x=a*100+b;

 if(b<10){
     x=10*a+b;
 }
 for(int i=0;i<110;i++){
     if(x==i*i){
         cout<<"Yes"<<endl;
        x=0;
        break;
     }
 }
 if(x==0){
     cout<<"No"<<endl;
 }

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

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

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


}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: no matching function for call to 'stoi(int)'
    9 |         int s = 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>
#include <cmath>
using namespace std;
typedef long long int LLI;

LLI stoi(string tmp)
{
	LLI ans = 0;
	for(int i = 0; i < tmp.size(); i++)
	{
		ans *= 10;
		ans += tmp[i]-'0';
	}
	return ans;
}
int main()
{
	string a, b;
	cin >> a >> b;
	string tmp = a + b;
	double check = sqrt( stoi(tmp) );
	if( ceil( check ) == floor( check ) )
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:34: error: call of overloaded 'stoi(std::string&)' is ambiguous
   21 |         double check = sqrt( stoi(tmp) );
      |                              ~~~~^~~~~
a.cc:6:5: note: candidate: 'LLI stoi(std::string)'
    6 | LLI stoi(string tmp)
      |     ^~~~
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:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
Language: C++

#include<iostream>

int main(){
 int a,b,c;
 std::cin >> a >> b;
 c=a;
 if(b>9 && b<=99)
    c=c*100+b;
 else if(b==100)
    c=c*1000+b;
 else
    c=c*10+b;

bool f=0;
 for(int i=1;i<=1000;i++){
    if(i*i==c){
        f=1;
        break;
    }
 }
 //std::cout << c << "\n";
f==1?std::cout << "Yes" : std::cout << "No";
 return 0;
}#include<iostream>

int main(){
 int a,b,c;
 std::cin >> a >> b;
 c=a;
 if(b>9 && b<=99)
    c=c*100+b;
 else if(b==100)
    c=c*1000+b;
 else
    c=c*10+b;

bool f=0;
 for(int i=1;i<=1000;i++){
    if(i*i==c){
        f=1;
        break;
    }
 }
 //std::cout << c << "\n";
f==1?std::cout << "Yes" : std::cout << "No";
 return 0;
}



Compiler output:
a.cc:24:2: error: stray '#' in program
   24 | }#include<iostream>
      |  ^
a.cc:24:3: error: 'include' does not name a type
   24 | }#include<iostream>
      |   ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <math.h>
using namespace std;

int main() {
   string A,B;
   cin>>A>>B;

   int C=stoi(A+B);

   if(sqrt(C)%1==0){
       cout<<"Yes"<<endl;
   }
   else{
       cout<<"No"<<endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:14: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   45 |    if(sqrt(C)%1==0){
      |       ~~~~~~~^~
      |           |   |
      |           |   int
      |           __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

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

int main(void){
    int a, b;
    cin >> a >> b;
    string s = to_string(a)+to_string(b);
    int z = stoi(s);

    float f = sqrt(z);
    if(floor(f) == f)
        cout << "Yes";
    else 
        cout << "No";
    return 0;
}
#include<bits/stdc++.h>
using namespace std;

int main(void){
    int a, b;
    cin >> a >> b;
    string s = to_string(a)+to_string(b);
    int z = stoi(s);

    float f = sqrt(z);
    if(floor(f) == f)
        cout << "Yes";
    else 
        cout << "No";
    return 0;
}


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

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

main()
{
    int a, b, temp, newNum;

    cin >> a >> b;

    temp = b;

    while (temp%10 > 0)
    {
        a = a * 10;
        temp = temp /10;
    }

    newNum = a + b;

    if (newNum % sqrt(newNum) == 0)
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
    

}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:16: error: invalid operands of types 'int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
   20 |     if (newNum % sqrt(newNum) == 0)
      |         ~~~~~~ ^ ~~~~~~~~~~~~
      |         |            |
      |         int          __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

defmodule Main do
  def main do
      [a, b] =
      IO.read(:line)
      |> String.trim
      |> String.split(" ")
    n = String.to_integer(a <> b)
    if :math.sqrt(n) |> Float.round == :math.sqrt(n) do
      IO.puts("Yes")
    else
      IO.puts("No")
    end
  end
end


Compiler output:
a.cc:1:1: error: 'defmodule' does not name a type
    1 | defmodule Main do
      | ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <cmath>
#include <stdio>

int main(){
  	std::string s, t;
  	std::cin >> s >> t;
  	int x = stoi(s+t);
  	if(int(sqrt(x))*int(sqrt(x)) == x) std::cout << "Yes" << std::endl;
  	else std::cout << "No" << std::endl;
}


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

#include <iostream>
#include <string>
#include <cmath>
#include <stdio>

int main(){
  	std::string s, t;
  	std::cin >> s >> t;
  	int x = stoi(s+t);
  	if(int(sqrt(x))*int(sqrt(x)) == x) std::puts("Yes");
  	else std::puts("No");
}


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

#include <bits/stdc++.h>
using namespace std;
bool square(int n) {
	rep(i, 101) {
		if(i * i == n) {
			return true;
		}
	}
	return false;
}
int main()
{
	string a, b;
	cin >> a >> b;
	int sum = atoi((a + b).c_str());
	if(square(sum)) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'bool square(int)':
a.cc:4:13: error: 'i' was not declared in this scope
    4 |         rep(i, 101) {
      |             ^
a.cc:4:9: error: 'rep' was not declared in this scope
    4 |         rep(i, 101) {
      |         ^~~
Language: C++

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

	if (b < 10) int sum = a * 10 + b;
	else if (b == 100) int sum = a * 1000 + b;
	else int sum = a * 100 + b;

	for (int i = 1; i < 317; i++) {
		if (i * i == sum) {
			cout << "Yes" << endl;
			return 0;
		}
		else if (i * i > sum) break;
	}
	cout << "No" << endl;
}

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

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

int main() {
    int n;
    string s;
    cin>>>s;
    n=stoi(s);
    for (int i=0;i<100000;i++){
        if (i*i==n){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '>' token
    7 |     cin>>>s;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    string s1,s2;
    cin>>s1>>s2;
    s1=(s1+s2);
    int k,x;
    k=stoi(s1);
    x=sqrt(k);
    if(x*x==k)
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}
 
#include <bits/stdc++.h>
using namespace std;

int main()
{
    string s1,s2;
    cin>>s1>>s2;
    s1=(s1+s2);
    int k,x;
    k=stoi(s1);
    x=sqrt(k);
    if(x*x==k)
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}

提出情報
提出日時

Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
a.cc:37:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   37 | 提出情報
      | ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for (int i=0; i < n; i++)
typedef long long ll;
using namespace std;

int main()
{
    string a, b;
    cin >> a >> b;
    s = stoi(a+b);
    bool flag = false;
    rep(i,200){
        if (i*i == s) flag =true;
    }
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 's' was not declared in this scope
   10 |     s = stoi(a+b);
      |     ^
Language: C

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

int main(){
  int a,b,c;
  int n;
  double d;
  scanf("%d %d",&a,&b);
  while(n!=0){
    n=b/10
    n++;
  }
  c=a*pow(10,n)+b;
    
  d=sqrt(c);
  c=sqrt(c);
  
  if(c==d) "Yes"
    else "No"
  

  return 0;
  
  
}


Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected ';' before 'n'
   10 |     n=b/10
      |           ^
      |           ;
   11 |     n++;
      |     ~      
main.c:18:17: error: expected ';' before 'else'
   18 |   if(c==d) "Yes"
      |                 ^
      |                 ;
   19 |     else "No"
      |     ~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected ';' before 'n'
    9 |     n=b/10
      |           ^
      |           ;
   10 |     n++;
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main(){
  string str = "";
  string str1, str2;
  cin >> str1 >> str2;
  str += str1;
  str += str2;
  int num = atoi(str);
  for(int i=1; i<=1000; i++){
    if(i*i == num){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |   int num = atoi(str);
      |                  ^~~
      |                  |
      |                  std::string {aka 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++


def main():
    a,b = input().split()
    ab = a+b;
    ab = int(ab)
    for i in range(1,317):
        if i * i == ab:
            print("Yes")
            return 0
    print("No")
    return 0

if __name__ == "__main__":
    main()

Compiler output:
a.cc:2:1: error: 'def' does not name a type
    2 | def main():
      | ^~~
a.cc:5:5: error: 'ab' does not name a type
    5 |     ab = int(ab)
      |     ^~
Language: C++

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

int main() {
  string A, B;
  cin >> A >> B;
  A += B;
  int tmp = stoi(A);
  cout << ((sqrt(tmp) = (int) sqrt(tmp)) ? "Yes" : "No") << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: lvalue required as left operand of assignment
    9 |   cout << ((sqrt(tmp) = (int) sqrt(tmp)) ? "Yes" : "No") << "\n";
      |             ~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
#include<cmath>
using namespace std;
int main()[
  int A; int B; cin>>A>>B;
  if(B<10)
  B+=A*10;
  else if(A!=100)
  B+=A*100;
  else B+=A*1000;
  int S=0;
  for(int i=0; i<B; i++){
    if(B%(i+1)==0)
      S++;
    else continue;
  }
  if(S%2==1)
  cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  }

Compiler output:
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int A; int B; cin>>A>>B;
      |   ^~~
a.cc:5:12: error: expected ']' before 'int'
    5 | int main()[
      |            ^
      |            ]
    6 |   int A; int B; cin>>A>>B;
      |   ~~~       
a.cc:6:17: error: 'cin' does not name a type
    6 |   int A; int B; cin>>A>>B;
      |                 ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(B<10)
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else if(A!=100)
      |   ^~~~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else B+=A*1000;
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(int i=0; i<B; i++){
      |   ^~~
a.cc:13:16: error: 'i' does not name a type
   13 |   for(int i=0; i<B; i++){
      |                ^
a.cc:13:21: error: 'i' does not name a type
   13 |   for(int i=0; i<B; i++){
      |                     ^
a.cc:18:3: error: expected unqualified-id before 'if'
   18 |   if(S%2==1)
      |   ^~
a.cc:20:3: error: expected unqualified-id before 'else'
   20 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:21:3: error: expected declaration before '}' token
   21 |   }
      |   ^