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

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

int main() {
    ll n;
    cin>>n;
    int mn=10;
    for (ll i=1;i*i<=n;i++)
        if (n%i==0)
            mn=min(mn,max(to_string(i).size(),to_string(n/i).size()));
    cout<<mn<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: no matching function for call to 'min(int&, const long unsigned int&)'
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()));
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:11:19: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long unsigned int')
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()));
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:11:19: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()));
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main() {
    ll n;
    cin>>n;
    int mn=10;
    for (ll i=1;i*i<=n;i++)
        if (n%i==0)
            mn=min(mn,max(to_string(i).size(),to_string(n/i).size()))
    cout<<mn<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: no matching function for call to 'min(int&, const long unsigned int&)'
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()))
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:11:19: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long unsigned int')
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()))
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:11:19: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   11 |             mn=min(mn,max(to_string(i).size(),to_string(n/i).size()))
      |                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size)
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using lint = long long;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
 
int countDigit(int n)
{
  int digit = 1;
  clock_t start,end;
 
  start = clock();
 
  while((n /= 10) != 0)
    digit++;
 
  end = clock();
  return digit;
  //printf("countDigit()          digit::%d  time::%dms\n",digit,(int)(end - start));
}
 
int main()
{
  int keta = 0;
      int f = 10000;
  long n; cin >> n;
  reps(i,n/2+1){
    if(n % i != 0) continue;
    long a = i;
    long b = n /a;
    //cout << a << "," << b << endl;
    keta = countDigit(max(a,b);
    //cout << "大きい方の桁数：" << keta << endl;
 
    chmin(f,keta);
  }
  cout << f;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:31: error: expected ')' before ';' token
   40 |     keta = countDigit(max(a,b);
      |                      ~        ^
      |                               )
Language: C++

#include<bits/stdc++.h>   
using namespace std;
long long n,a,b,i,j,ans,m;
int main() {
cin>>n;
for(i=1;i*i<=n;i++)
{
if(n%i!=0) 
{continue;}
a=i;
b=n/i;
m=max(a,b);
j=0;
while(m!=0){
m=m/10; j++;} 
m=j;}cout<<m
return 0;
}  	

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ';' before 'return'
   16 | m=j;}cout<<m
      |             ^
      |             ;
   17 | return 0;
      | ~~~~~~
Language: C++

#include <isotream>
#icnlude <cmath>

using namespace std;

int main(){
  unsigned long long int l;
  cin >> l;
  unsigned long long int a = sqrt(l);
  int tmp = 1000;
  for(long long int i = 1; i <= a; i++){
    if(a % i != 0) continue;
    unsigned long long int b = a / i;
    int p = log10(i), q = log10(b);
    p++, q++;
    if(max(p, q) > tmp) tmp = max(p,q);
  }
  cout << tmp;
}

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

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

int main(){
    int N;//Nの素因数を求めてから、そのかけ合わせでできるうちのFの最小値を求める
    cin>>N;
    vector<pair<int,int>> F;
    int c=0;
    /*if(N==1) {
        cout<< 1 << endl;
        return 0;
    } */
    for(int i=1;i<sqrt(N);i++){
        if(N%i==0) {
            F[i].first=i;
            F[i].second=N/i;
            c++;
    }
    F.resize(c);
    vector<pair<string,string>> f(c);
    vector<int> s(c);
    for(int i=0;i<c;i++){
        f[i].first=to_string(F[i].first);
        f[i].second=to_string(F[i].second);
        s[i]=max(size(f[i].first),size(f[i].second));
    }
    sort(s.begin(),s.end());
    cout<<s[0]<<endl;
    return 0;
}

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

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-(p)))
int cmp(const void *a, const void *b);
//your code here!
ll F(ll a, ll b);
int main(void){
    ll N, s, i;
    scanf("%lld", &N);
    ll MIN = F(1, N);
    N%2==0 ? s=2: s=3;
    for(i=s; i<=sqrt(N); i+=2){
        if(N%i==0){
            chmin(MIN, F(i, N/i));
        }
    }
    printf("%lld\n", MIN);
    return 0;
}
ll F(ll a, ll b){
    ll w=max(a,b), cnt=0;
    while(w!=0){
        w /= 10;
        cnt++;
    }
    return cnt;
}
int cmp(const void *a, const void *b){
    ll A=*(ll *)a, B=*(ll *)b;
    if(A==B)return 0;
    else return A>B ? 1:-1;//昇順ソート
}


Compiler output:
main.c: In function 'main':
main.c:19:20: error: lvalue required as left operand of assignment
   19 |     N%2==0 ? s=2: s=3;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define rrep(i, n) for(int i=((int)(n));i>0;i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)	
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define REVSORT(c) SORT(c);REVERSE(c)
#define ALL(x) (x).begin(),(x).end()
#define INF 1e9
const long long MOD = 10e9 + 7;
typedef long long ll;

int F(long long A, long long B){
	return max(to_string(A).size(), to_string(B).size());
}

int main(){
	ll N;
	cin >> N;
	int ans = to_string(N).size();
	
	for(int A = 1; A * A <= N; A++){
		if(N % A != 0)continue;
		ll B = N / A;
		int X = F(A, B));
		if(ans > X)ans = X;
	}
	
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:32: error: expected ',' or ';' before ')' token
   26 |                 int X = F(A, B));
      |                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define rrep(i, n) for(int i=((int)(n));i>0;i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)	
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define REVSORT(c) SORT(c);REVERSE(c)
#define ALL(x) (x).begin(),(x).end()
#define INF 1e9
const long long MOD = 10e9 + 7;
typedef long long ll;

ll F(ll a, ll b){
	return max(to_string(a).size(), to_string(b).size());
}

int main(){
	ll N;
	cin >> N;
	ll ans = to_string(N).size();
	
	for(ll i = 1; i * i < N; i++){
		if(N % i != 0)continue;
		ll B = N / i;
		ll ans = max(ans, min(F(i), F(B)));
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:40: error: too few arguments to function 'll F(ll, ll)'
   26 |                 ll ans = max(ans, min(F(i), F(B)));
      |                                       ~^~~
a.cc:14:4: note: declared here
   14 | ll F(ll a, ll b){
      |    ^
a.cc:26:46: error: too few arguments to function 'll F(ll, ll)'
   26 |                 ll ans = max(ans, min(F(i), F(B)));
      |                                             ~^~~
a.cc:14:4: note: declared here
   14 | ll F(ll a, ll b){
      |    ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
//桁
int kt(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
signed main(){
  int a;
  int b=0;
  int c=0;
  cin>>a;
  for(int i=1;i<=a;i++){
   if(a%i===0){
     b=a/i;
     if(i>=b){
       c=i;
     break;
     }
   }
      }
      cout<<kt(c);
}
  


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n;
  cin>>n;
  int64_t z=0;
  int64_t x=sqrt(n)/1;
  for(int i=0;i<x;i++){
    if(n%(x-i))==0){
     z+=n/(x-i);
      break;
    }
  }
  int count=0;
  while(z>0){
    z/10;
    count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '==' token
    9 |     if(n%(x-i))==0){
      |                ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n;
  cin>>n;
  int64_t z=0;
  for(int i=0;i<sqrt(n)/1;i++){
    if(n%((sqrt(n)/1)-i))==0){
     z+=n/((sqrt(n)/1)-i);
      break;
    }
  }
  int count=0;
  while(z>0){
    z/10;
    count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid operands of types 'int64_t' {aka 'long int'} and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
    8 |     if(n%((sqrt(n)/1)-i))==0){
      |        ~^~~~~~~~~~~~~~~~
      |        |             |
      |        |             __gnu_cxx::__enable_if<true, double>::__type {aka double}
      |        int64_t {aka long int}
a.cc:8:26: error: expected primary-expression before '==' token
    8 |     if(n%((sqrt(n)/1)-i))==0){
      |                          ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n;
  cin>>n;
  for(int i=0;i<sqrt(n)/1;i++){
    if(n%((sqrt(n)/1)-i))==0){
     int64_t z= n/((sqrt(n)/1)-i);
      break;
    }
  }
  int count=0;
  while(z>0){
    z/10;
    count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid operands of types 'int64_t' {aka 'long int'} and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator%'
    7 |     if(n%((sqrt(n)/1)-i))==0){
      |        ~^~~~~~~~~~~~~~~~
      |        |             |
      |        |             __gnu_cxx::__enable_if<true, double>::__type {aka double}
      |        int64_t {aka long int}
a.cc:7:26: error: expected primary-expression before '==' token
    7 |     if(n%((sqrt(n)/1)-i))==0){
      |                          ^~
a.cc:13:9: error: 'z' was not declared in this scope
   13 |   while(z>0){
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n;
  cin>>n;
  int(int i=0;i<sqrt(n)/1;i++){
    if(n%((sqrt(n)/1)-i))==0){
     int64_t z= n/((sqrt(n)/1)-i);
      break;
    }
  }
  int count=0;
  while(z>0){
    z/10;
    count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int(int i=0;i<sqrt(n)/1;i++){
      |   ^~~
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   int(int i=0;i<sqrt(n)/1;i++){
      |               ^
a.cc:13:9: error: 'z' was not declared in this scope
   13 |   while(z>0){
      |         ^
Language: C

/* Coached by rainboy */
#include <stdio.h>

int length(long long n) {
	return n == 0 ? 0 : length(n / 10) + 1;
}

int main() {
	long long n, a;

	scanf("%lld", &n);
	for (a = 1; a <= n / a; a++)
		if (n % a == 0)
			a_ = a;
	printf("%d\n", length(n / a_));
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:25: error: 'a_' undeclared (first use in this function); did you mean 'a'?
   14 |                         a_ = a;
      |                         ^~
      |                         a
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <vector>
#include <string>

auto main() -> int
{
   int n = 0;
   std::cin >> n;
   std::vector<int> my_vec;
   
   for (auto i = 0; i < n; ++i)
   {
      if (n / i == 0)
         my_vec.emplace_back(n / i < i ? n / i : i);
   }
   
   int num = *std::min_element(my_vec.begin(), my_vec.end());
   std::cout << std::to_string(num).length();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'min_element' is not a member of 'std'; did you mean 'tuple_element'?
   17 |    int num = *std::min_element(my_vec.begin(), my_vec.end());
      |                    ^~~~~~~~~~~
      |                    tuple_element
Language: C++

// luogu-judger-enable-o2
#include <bits/stdc++.h>
int lenlong(int i)
{
    int len=0;
    while(i!=0)
        len++,i/=10;
        return len;
}
using namespace std;
int main()
{
    int a;
    cin>>a;
    for(int i=sqrt(a);i>=1;i--)
    if(a%i==0)
    cout<<lenlong(a/i)<<endl;
    }
}

Compiler output:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

// luogu-judger-enable-o2
#include <bits/stdc++.h>
int lenlong(int i)
{
    int len=0;
    while(i!=0)
        len++,i/=10;
        return len;
}
using namespace std;
int main()
{
    int a,b=0;
    cin>>a;
    for(int i=2;i<=sqrt(a);i++)
    if(a%i==0)
    c=1;
    if(!c)
    {
    cout<<lenlong(a);
    return 0;
    }
    else
    {
    for(int i=sqrt(a);i>=2;i--)
    if(a%i==0)
    cout<<lenlong(a/i);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'c' was not declared in this scope
   17 |     c=1;
      |     ^
a.cc:18:9: error: 'c' was not declared in this scope
   18 |     if(!c)
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod=1e9+7;

int GetDigit(int num){
    int digit=0;
    while(num!=0){
        num/=10;
        digit++;
    }
    return digit;
}

int main(){
    ll N;
    cin >> N;
    ll ans=N;
    int min=10;
    for(ll i=1; i<＝sqrt(N); i++){
        if(N%i==0){
            if(GetDigit(max(N/i, i))<min){
                min=GetDigit(max(N/i,i));
            }
        }
    }
    cout << min;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: '\U0000ff1dsqrt' was not declared in this scope; did you mean 'sqrt'?
   20 |     for(ll i=1; i<＝sqrt(N); i++){
      |                   ^~~~~~
      |                   sqrt
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
using ll =long long;
ll func(ll a,ll b){
  ll al=to_string(a).size();
  ll bl=to_string(b).size();
  return max(al,bl);
}
main(){
  ll n;
  cin>>n;
  int ans=(1<<28);
  for(ll i=1;i*i<=n;++i){
    if(n%i!=0)continue;
    ll a=i,b=n/i;
    ans=min(ans,func(a,b));
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:10:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   10 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:17:12: error: no matching function for call to 'min(int&, ll)'
   17 |     ans=min(ans,func(a,b));
      |         ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:17:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   17 |     ans=min(ans,func(a,b));
      |         ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:17:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   17 |     ans=min(ans,func(a,b));
      |         ~~~^~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
using ll =long long;
main(){
  ll n;
  cin>>n;
  int ans=(1<<28);
  for(ll i=1;i*i<=n;++i){
    if(n%i!=0)continue;
    ll a=i,b=n/i;
    ans=min(ans,max(to_string(a).size(),to_string(b).size()));
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:12: error: no matching function for call to 'min(int&, const long unsigned int&)'
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long unsigned int')
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
using ll =long long;
main(){
  ll n;
  cin>>n;
  int ans=(1<<28);
  for(ll i=1;i*i<=n;++){
    if(n%i!=0)continue;
    ll a=i,b=n/i;
    ans=min(ans,max(to_string(a).size(),to_string(b).size()));
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:23: error: expected primary-expression before ')' token
    9 |   for(ll i=1;i*i<=n;++){
      |                       ^
a.cc:12:12: error: no matching function for call to 'min(int&, const long unsigned int&)'
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long unsigned int')
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     ans=min(ans,max(to_string(a).size(),to_string(b).size()));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<cstdio>
#include<cmath>
using namespace std;
long long n,ans;。
int s;
int main(){
    scanf("%lld",&n);
    for(int i=sqrt(n);i>0;--i) 
        if(n%i==0){
            ans=n/i;
            break;
        }
    while(ans>0){
        ++s;
        ans/=10;
    }
    printf("%d\n",s);
    return 0;
}


Compiler output:
a.cc:4:17: error: extended character 。 is not valid in an identifier
    4 | long long n,ans;。
      |                 ^
a.cc:4:17: error: '\U00003002' does not name a type
    4 | long long n,ans;。
      |                 ^~
a.cc: In function 'int main()':
a.cc:14:11: error: 's' was not declared in this scope
   14 |         ++s;
      |           ^
a.cc:17:19: error: 's' was not declared in this scope
   17 |     printf("%d\n",s);
      |                   ^
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	__int64 n;
	__int64 a,b;
	cin>>n;
	for(int i=1;i<=sqrt(n);i++)
	{
		if(n%i==0)
		{
			a=i;
			b=n/a;
		}
	}
	//cout<<a<<" "<<b<<endl;
	//int p,q;
	long long count=0;
	if(a>=b)
	{
		while(a!=0)
		{
			count++;
			a/=10;
		}
	}
	else
	{
		while(b!=0)
		{
			count++;
			b/=10;
		}
	}
	cout<<count<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    6 |         __int64 n;
      |         ^~~~~~~
      |         __ynf64
a.cc:7:16: error: expected ';' before 'a'
    7 |         __int64 a,b;
      |                ^~
      |                ;
a.cc:8:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |         cin>>n;
      |              ^
      |              yn
a.cc:13:25: error: 'a' was not declared in this scope
   13 |                         a=i;
      |                         ^
a.cc:14:25: error: 'b' was not declared in this scope
   14 |                         b=n/a;
      |                         ^
a.cc:20:12: error: 'a' was not declared in this scope
   20 |         if(a>=b)
      |            ^
a.cc:20:15: error: 'b' was not declared in this scope
   20 |         if(a>=b)
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,c;
  int d=0;
  int b=a/c
  cin>>a;
  for(int i=1;i<=a;i++){
    if(a%i==0){
      if(c==i){
       for(int j=0;b!=0;j++){
        b=b/10;
        d++;
         }
         break;
        }
        c=i;
      }
      }
      cout<<d;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cin'
    8 |   cin>>a;
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,c;
  int d=0;
  cin>>a;
  for(int i=1;i<=a;i++){
    if(a%i==0){
      if(c==i){
       for(int j=0;a/c!=0;j++){
        a/c=a/c/10;
        d++;
         }
         break;
        }
        c=i;
      }
      }
      cout<<d;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: lvalue required as left operand of assignment
   12 |         a/c=a/c/10;
      |         ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,c;
  int d=0;
  cin>>a;
  for(int i=1;i<=a;i++){
    if(a%i==0){
      if(c==i){
       for(int j=0;a/c!=0;j++){
        a/c=a/c/10;
        d++;
         break;
        }
        c=i;
      }
      }
      cout<<d;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: lvalue required as left operand of assignment
   12 |         a/c=a/c/10;
      |         ~^~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,c;
  int d=0;
  cin>>a;
  for(int i=1;i<=a;i++)
    if(a%i==0){
      if(c==i){
       for(int j=0;a/c!=0;j++){
        a/c=a/c/10;
        d++;
         break;
        }
        c=i;
      }
      cout<<d;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: lvalue required as left operand of assignment
   12 |         a/c=a/c/10;
      |         ~^~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,c;
  int d=0;
  cin>>a;
  for(int i=1;i<=a;i++)
    if(a%i==0){
      if(c==i){
       for(int j++;a/c!=0;j++){
        a/c=a/c/10;
        d++;
         break;
        }
        c=i;
      }
      cout<<d;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before '++' token
   11 |        for(int j++;a/c!=0;j++){
      |                 ^~
      |                 ;
a.cc:11:19: error: expected primary-expression before ';' token
   11 |        for(int j++;a/c!=0;j++){
      |                   ^
a.cc:11:26: error: expected ')' before ';' token
   11 |        for(int j++;a/c!=0;j++){
      |           ~              ^
      |                          )
a.cc:11:27: error: 'j' was not declared in this scope
   11 |        for(int j++;a/c!=0;j++){
      |                           ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int cnt(ll n){
  int digits=0;
  while(n>0){
    n/=10;
    digits++;
  }
  return digits;
}

int main(){
  ll n; cin>>n;
  const int ans=cnt(n);
  for(ll a=1LL;a*a<=n;a++){
    if(n%a!=0)continue;
    const ll b=n/a;
    const int cur=max(cnt(a),cnt(b));
    ans=min(ans,cur);
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: assignment of read-only variable 'ans'
   21 |     ans=min(ans,cur);
      |     ~~~^~~~~~~~~~~~~
Language: C++

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

int NumberOfFigure(long long X){
	long long count = 1;
	if( X > 9 ){
		count = 0;
		for( int i = 0; i < 10; i++ ){
			if( X == 0 ){
			break;
			}
			else{
			count += 1;
			X /= 10;
			}
		}
	}
	return count;
}

int main(){
	long long N;
	long long n = floor(sqrt(N));
	
	for(long long i = 1; i < n; i++){
		for(long long j = n; j < N; j++){
			if(i * j == N){
				int keta = NumberOfFigure(j);
				break;
			}
		}
	}
	
	cout << keta << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:17: error: 'keta' was not declared in this scope
   35 |         cout << keta << endl;
      |                 ^~~~
Language: C++

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

int NumberOfFigure(long long X){
	long long count = 1;
	if( X > 9 ){
		count = 0;
		for( int i = 0; i < 10; i++ ){
			if( X == 0 ){
			break;
			}
			else{
			count += 1;
			X /= 10;
			}
		}
	}
	return count;
}

int main(){
	long long N;
	long long n = floor(sqrt(N));
	
	for(long long i = 1; i < n; i++){
		for(long long j = n; j < N; j++){
			if(i * J == N){
				int keta = NumberOfFigure(j);
				break;
			}
		}
	}
	
	cout << keta << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:32: error: 'J' was not declared in this scope
   28 |                         if(i * J == N){
      |                                ^
a.cc:35:17: error: 'keta' was not declared in this scope
   35 |         cout << keta << endl;
      |                 ^~~~
Language: C++

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

int main(){
unsigned long long int a,d;
  cin>>a;
  d=a;
  int b,c,e,f;
  e=1;
  f=100;
  for(int i=1;i<d;i++){
  	if(d/10>1000000)
    	d/=1000;
    if(a%i==0){
     b=i;
     c=a%i;
     c=max(b,c)
     for(int j=0;j<100;j++){
     	if(c/10>9){
     	 c=c/10;
     	 e++;
     	}
     	else
     		break;
     }
 }
}
     if(f>e){
     	f=e;
     }
     cout<<f<<endl;
 }

    


Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected ';' before 'for'
   17 |      c=max(b,c)
      |                ^
      |                ;
   18 |      for(int j=0;j<100;j++){
      |      ~~~        
a.cc:18:18: error: 'j' was not declared in this scope
   18 |      for(int j=0;j<100;j++){
      |                  ^
Language: C++

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

int main(){
unsigned long long int a,c,d;
  cin>>a;
  d=a;
  int b,e,f;
  e=1;
  f=100;
  for(int i=1;i<d;i++){
  	if(d/10>1000000)
    	d/=1000;
    if(a%i==0){
     b=i;
     c=a%i;
     c=max(b,c)
     for(int j=0;j<100;j++){
     	if(c/10>9){
     	 c=c/10;
     	 e++;
     	}
     	else
     		break;
     }
 }
}
     if(f>e){
     	f=e;
     }
     cout<<f<<endl;
 }

    


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: no matching function for call to 'max(int&, long long unsigned int&)'
   17 |      c=max(b,c)
      |        ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:17:11: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long unsigned int')
   17 |      c=max(b,c)
      |        ~~~^~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:17:11: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   17 |      c=max(b,c)
      |        ~~~^~~~~
a.cc:18:18: error: 'j' was not declared in this scope
   18 |      for(int j=0;j<100;j++){
      |                  ^
Language: C++

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

int main(){
unsigned long long int a,c,d;
  cin>>a;
  d=a;
  int b,e,f;
  e=1;
  f=100;
  for(int i=1;i<d;i++){
  	if(d/10>1000000)
    	d/=1000;
    if(a%i=0){
     b=i;
     c=a%i;
     c=max(b,c)
     for(int j=0;j<100;j++){
     	if(c/10>9){
     	 c=c/10;
     	 e++;
     	}
     	else
     		break;
     }
 }
}
     if(f>e){
     	f=e;
     }
     cout<<f<<endl;
 }

    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: lvalue required as left operand of assignment
   14 |     if(a%i=0){
      |        ~^~
a.cc:17:11: error: no matching function for call to 'max(int&, long long unsigned int&)'
   17 |      c=max(b,c)
      |        ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:17:11: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long unsigned int')
   17 |      c=max(b,c)
      |        ~~~^~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:17:11: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   17 |      c=max(b,c)
      |        ~~~^~~~~
a.cc:18:18: error: 'j' was not declared in this scope
   18 |      for(int j=0;j<100;j++){
      |                  ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
  float N;
  int a,b;
  cin >> N;
  for(int i=pow(N,0.5);0<i;i--){
    if(N%i==0){
      a=i;
      b=N/i;
      break;
    }
  }
  for(float i=0.0;;i++){
    if(a%pow(10.0,i)==a){
      a=i;
      break;
    }
    for(float i=0.0;;i++){
    if(b%pow(10.0,i)==a){
      b=i;
      break;
    }
  cout << a+b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   10 |     if(N%i==0){
      |        ~^~
      |        | |
      |        | int
      |        float
a.cc:17:9: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   17 |     if(a%pow(10.0,i)==a){
      |        ~^~~~~~~~~~~~
      |        |    |
      |        int  __gnu_cxx::__promote<double>::__type {aka double}
a.cc:22:9: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   22 |     if(b%pow(10.0,i)==a){
      |        ~^~~~~~~~~~~~
      |        |    |
      |        int  __gnu_cxx::__promote<double>::__type {aka double}
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:16:24: note: to match this '{'
   16 |   for(float i=0.0;;i++){
      |                        ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
  int N,a,b;
  cin >> N;
  for(int i=pow(N,0.5);0<i;i--){
    if(N%i==0){
      a=i;
      b=N/i;
      break;
    }
  }
  for(int i=0;;i++){
    if(a%pow(10,i)==a){
      a=i;
      break;
    }
    for(int i=0;;i++){
    if(b%pow(10,i)==a){
      b=i;
      break;
    }
  cout << a+b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   16 |     if(a%pow(10,i)==a){
      |        ~^~~~~~~~~~
      |        |    |
      |        int  __gnu_cxx::__promote<double>::__type {aka double}
a.cc:21:9: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   21 |     if(b%pow(10,i)==a){
      |        ~^~~~~~~~~~
      |        |    |
      |        int  __gnu_cxx::__promote<double>::__type {aka double}
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:15:20: note: to match this '{'
   15 |   for(int i=0;;i++){
      |                    ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.stream.LongStream;

public class Main {
	public static void main(String[] args) {
		java.util.Scanner s = new java.util.Scanner(System.in);
		System.out.println(Main.calc(s.nextLong()));
	}

	public static long calc(long n) {
		return LongStream.rangeClosed(1, (int) Math.sqrt(n))
				.filter(a -> n % a == 0)
				.map(a -> Main.calcF(a, n / a)).min().getAsLong();
	}

	public static int calcF(long a, long b) {
		return Math.max((int) (Math.log10(a) + 1), (int) (Math.log10(b) + 1));
	}


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

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

int main(){
  long long int N = 0;
  long long int B = 0;
  long long int c = 1;
  long long int i = 10;
  int num = 1;
  int ans = 0;
  
  
  cin >> N;
  
  for (c=1;c*c<=N;c++){
    if(N%c==0){
      B = n / c;
      while(B/i>0){
      num = num + 1;
      i = i *10;
      }
    }
    else{
      continue;
    }
    if (ans < num ){
      ans = num;
    }
  }
  
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'n' was not declared in this scope
   17 |       B = n / c;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long int N;
  cin>>N;
  int ans=15;
  
  for(long long int i=1; i*i<=N; i++) {
    if(N%i==0) {
      long long int Y=N/i;
      string y=Y, x=i;
      int Z;
      Z=max(x.size(), y.size());
      ans=min(ans, Z);
    }
  }
  cout<<ans;
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: conversion from 'long long int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |       string y=Y, x=i;
      |                ^
a.cc:12:21: error: conversion from 'long long int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |       string y=Y, x=i;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long int N;
  cin>>N;
  int ans=15;
  
  for(long long int i=1; i*i<=N; i++) {
    if(N%i==0) {
      int Y=N/i;
      string y=Y, x=i;
      int Z;
      Z=max(x.size(), y.size());
      ans=min(ans, Z);
    }
  }
  cout<<ans;
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |       string y=Y, x=i;
      |                ^
a.cc:12:21: error: conversion from 'long long int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |       string y=Y, x=i;
      |                     ^
Language: C++



using namespace std;
typedef long long ll;
///定義場所///
ll i, j, k, l, m, n;
ll N, M, K;
ll MOD = 1000000007;
ll ans = 1000000000;

//関数リスト//
int ctoi(char c) {
	switch (c) {
	case '0': return 0;
	case '1': return 1;
	case '2': return 2;
	case '3': return 3;
	case '4': return 4;
	case '5': return 5;
	case '6': return 6;
	case '7': return 7;
	case '8': return 8;
	case '9': return 9;
	default: return 0;
	}
}
//(注)pairの型・比較する場所(first/second)は毎回変えて使用する
bool pairCompare(const pair<ll, ll> firstElof, pair<ll, ll> secondElof)
{
	return firstElof.second > secondElof.second;
}
//////////////

int Keta(ll X) {
	int keta = 1;
	while (X / 10 > 0) {
		X /= 10;
		keta++;
	}
	return keta;
}
int main()
{
	cin >> N;
	i = 2;
	ll res = N;
	vector<ll> B;
	B.push_back(N);
	while (res > 1) {
		if (res % i == 0) {
			res /= i;
			B.push_back(res);
		}
		else if(i*i>N){
			B.push_back(1);
			break;
		}
		else {
			i++;
		}
	}
	int ans = 10000;
	for (i = 0; i < B.size(); i++) {
		ans = min(Keta(max(B[i], N / B[i])), ans);
	}
	cout << ans;
}

Compiler output:
a.cc:28:24: error: 'pair' does not name a type
   28 | bool pairCompare(const pair<ll, ll> firstElof, pair<ll, ll> secondElof)
      |                        ^~~~
a.cc:28:28: error: expected ',' or '...' before '<' token
   28 | bool pairCompare(const pair<ll, ll> firstElof, pair<ll, ll> secondElof)
      |                            ^
a.cc: In function 'bool pairCompare(int)':
a.cc:30:16: error: 'firstElof' was not declared in this scope
   30 |         return firstElof.second > secondElof.second;
      |                ^~~~~~~~~
a.cc:30:35: error: 'secondElof' was not declared in this scope
   30 |         return firstElof.second > secondElof.second;
      |                                   ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:44:9: error: 'cin' was not declared in this scope
   44 |         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 | 
a.cc:47:9: error: 'vector' was not declared in this scope
   47 |         vector<ll> B;
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | 
a.cc:47:18: error: expected primary-expression before '>' token
   47 |         vector<ll> B;
      |                  ^
a.cc:47:20: error: 'B' was not declared in this scope
   47 |         vector<ll> B;
      |                    ^
a.cc:64:32: error: 'max' was not declared in this scope
   64 |                 ans = min(Keta(max(B[i], N / B[i])), ans);
      |                                ^~~
a.cc:64:23: error: 'min' was not declared in this scope; did you mean 'main'?
   64 |                 ans = min(Keta(max(B[i], N / B[i])), ans);
      |                       ^~~
      |                       main
a.cc:66:9: error: 'cout' was not declared in this scope
   66 |         cout << ans;
      |         ^~~~
a.cc:66:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'