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

#include<iostream>

int main(){
	int n;
  cin>>n;
  int x = n%10;
  if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) cout<<"hon"<<endl;
  else if(x == 0 || x == 1 || x == 6 || x == 8) cput<<"pon"<<endl;
  else cout<<"bon"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   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:7:54: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) cout<<"hon"<<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:7:67: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) cout<<"hon"<<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:8:49: error: 'cput' was not declared in this scope
    8 |   else if(x == 0 || x == 1 || x == 6 || x == 8) cput<<"pon"<<endl;
      |                                                 ^~~~
a.cc:8:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else if(x == 0 || x == 1 || x == 6 || x == 8) cput<<"pon"<<endl;
      |                                                              ^~~~
      |                                                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout<<"bon"<<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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout<<"bon"<<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;
using Graph=vector<vector<int>>;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
typedef long long ll;
int main(){
    string S;
    cin>>S;
    if(S.at(S.size()-1))=='3'){
        cout<<"bon"<<endl;
    }
    else if(S.at(S.size()-1))=='0'||S.at(S.size()-1))=='1'||S.at(S.size()-1))=='6'||S.at(S.size()-1))=='8'){
        cout<<"pon"<<endl;
    }
    else{
        cout<<"hon"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected primary-expression before '==' token
    9 |     if(S.at(S.size()-1))=='3'){
      |                         ^~
a.cc:12:30: error: expected primary-expression before '==' token
   12 |     else if(S.at(S.size()-1))=='0'||S.at(S.size()-1))=='1'||S.at(S.size()-1))=='6'||S.at(S.size()-1))=='8'){
      |                              ^~
Language: C++

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

int main() {
  int n;
  cin >> n;
  if(n%10=3)cout << "bon "<<endl;
  else if(n%10=0||n%10=1||n%10=6||n%10=8)cout << "pon" <<endl;
  else cout <<"hon"<<endl;
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |   if(n%10=3)cout << "bon "<<endl;
      |      ~^~~
a.cc:8:33: error: lvalue required as left operand of assignment
    8 |   else if(n%10=0||n%10=1||n%10=6||n%10=8)cout << "pon" <<endl;
      |                                ~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef    pair<int,int> pii;
typedef    pair<int,pii> ppi;
typedef    pair<pii,int> pip;
typedef    long long int ll;
typedef    unsigned long long int ull;
typedef    pair<ll,ll> pll;
typedef    vector<int> VI;
typedef    vector<pii> Vii;
typedef    vector<VI> VVI;// 2D
//typedef    priority_queue<int> PQ;// MaxHeap
typedef    priority_queue<int,VI,greater<int> > PQ;// MinHeap
//int Dx[] ={-1,0, 0,1};
//int Dy[] ={ 0,1,-1,0};
//int Dx8[]={-1,-1,-1,0,1,1, 1, 0};
//int Dy8[]={-1, 0, 1,1,1,0,-1,-1};
//int Kx[] ={2,1,-1,-2,-2,-1, 1, 2};
//int Ky[] ={1,2, 2, 1,-1,-2,-2,-1};

// code starts from here
#define pi acos(-1.0)
const int MAX=1e6+10,MOD=1e9+7;
int BIT[MAX],N,K;
void update(int i,int x){
    for(;i<=N;i+=i&-i)BIT[i]+=x;
}
int query(int i){
    int res=0;
    for(;i>=1;i-=i&-i)res+=BIT[i];
    return res;
}
void solve(){
    cin >> N >> K;

    vector<int> V;
    for(int i=0;i<N;i++){
        int x;
        cin >> x;
        update(x,1);
    }
    for(int i=0;i<K;i++){
        int x; cin >> x;
        if(x>0)update(x,1);
        else {
            x = abs(x);
            int ret = query(x);
            //cout<<"smaller or equal than "<<x<<" "<<ret<<endl;
            int idx = ret + x -1;
            //cout<<"bad index "<<bad<<endl;
            bad[ret]=1;
            update(x,1);
        }
    }
    sort(V.begin(),V.end());
    N = V.size();
    for(int i=0;i<N;i++){
        if(bad[i]==0){
            cout<<V[i]<<endl;
            return;
        }
    }
    cout<<0<<endl;
}
int main (){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int t=1;
    while(t--)solve();
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:52:13: error: 'bad' was not declared in this scope
   52 |             bad[ret]=1;
      |             ^~~
a.cc:59:12: error: 'bad' was not declared in this scope
   59 |         if(bad[i]==0){
      |            ^~~
Language: C

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

int max(int a,int b){
  if(a > b) return a;
  else return b;
}
int min(int a, int b){
  if(a < b) return a;
  else return b;

int main(){

  int n;
  scanf("%d",&n);

  if( n%10 ==(2 || 4 || 5 || 7 || 9)){
    puts("hon");
  }
    if( n%10 ==(0 || 1 || 6 || 8)){
    puts("pon");
  }
    if( n%10 ==3){
    puts("bon");
  }

  return 0;
}

Compiler output:
main.c: In function 'min':
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

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

    ll i,j,k,l,m,n,a,b,c,d,cnt=0;
    cin>>n;
    m=n%10;
    if(m==2 ||m==4 ||m==5 ||m==7|| m==9)
        cout<<"hon"<<endl;
    else if(m==0 || m==1 || m==6 || m==8)
        cout<<"pon"<<endl;
    else if(m==3)
        cout<<"bon"<<endl;

}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

N = int(input())
if(N%10 == 3):
    print("bon")
elif(N%10 == 0 or N%10 == 1 or N%10 == 6 or N%10 == 8):
    print("pon")
else:
    print("hon")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C

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

int main() {
  int N; cin >>N;
  int i = N % 10;
  string ans = "hon";
  if (i == 3) ans = "bon";
  else (i == 0 || i == 1 || i == 6 || i == 8) ans = "pon";
  cout << ans << endl;

  return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	cout<<setprecision(32);

	int n; cin>>n;
	n %= 10;
	if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9){
		cout<<"hon"<<endl;
	}else if(n == 0 || n == 1 || n == 6 || n == 8){
		cout<<"pon"<<endl;
	}else{
		cout<<"bon"<<endl;16
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:37: error: expected ';' before '}' token
   21 |                 cout<<"bon"<<endl;16
      |                                     ^
      |                                     ;
   22 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
using namespace std;
int main(){
  int N; cin>>N;
  K=N%10;
  if(K==3)
    cout<<"bon"<<endl;
  else if(K==2||K==4||K==5||K==7||K==9)
    cout<<"hon"<<endl;
  else cout<<"pon"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'K' was not declared in this scope
    6 |   K=N%10;
      |   ^
Language: C++

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

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
//typedef long long int;
const ll M = 1000000007;
ll A, B, C, D, G, H, N, L, K, P, Q, R, W, X, Y, Z;
string S, T;

signed main(){
	std::cin >> N;
	if(N%10==3){std::cout << "bon" << std::endl;
	else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
	else {std::cout << "hon" << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
      |         ^~~~
a.cc:13:20: note: to match this '{'
   13 |         if(N%10==3){std::cout << "bon" << std::endl;
      |                    ^
a.cc:15:9: error: expected '}' before 'else'
   15 |         else {std::cout << "hon" << std::endl;
      |         ^~~~
a.cc:14:52: note: to match this '{'
   14 |         else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
      |                                                    ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:11:14: note: to match this '{'
   11 | signed main(){
      |              ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define rep(i,a,n) for(int i=a;i<=n;i++)
#define per(i,n,a) for(int i=n;i>=a;i--)
#define endl '\n'
#define mem(a,b) memset(a,b,sizeof(a))
#define IO ios::sync_with_stdio(false);cin.tie(0);
using namespace std;
const int INF=0x3f3f3f3f;
const ll inf=0x3f3f3f3f3f3f3f3f;
const int mod=1e9+7;
const int maxn=1e5+5;
int main(){
	int n;cin>>n;
	int n=n%10;
	if(n==2||n==4||n==5||n==7||n==9) puts("hon");
	if(n==0||n==1||n==6||n==8) puts("pon");
	else puts("bon");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: redeclaration of 'int n'
   15 |         int n=n%10;
      |             ^
a.cc:14:13: note: 'int n' previously declared here
   14 |         int n;cin>>n;
      |             ^
Language: C

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


int main(){
  int n;
  cin >> n;
  if(n%10==3){
    cout << "bon" << endl;
  }else if(n%10==0 || n%10==1 || n%10==6 || n%10==8){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  return 0;
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

//#define _GLIBCXX_DEBUG
//#define _CRTDBG_MAP_ALLOC
//#pragma GCC push_options
//#pragma GCC optimize ("unroll-loops")
#include <bits/stdc++.h>

using namespace std;

typedef int64_t ll;
typedef uint64_t ull;

const ll LINF = 9187201950435737471;
const ll nLINF = -9187201950435737472;
const int INF = 2139062143;
const int nINF = -2139062144;
const ull ULINF = numeric_limits<ull>::max();
const int MAXN = 2000 + 15;
const ll MOD = 1e9 + 7;
const double EPS = 1e-9;
const int BLOCK = 500;
const double PI = acos(-1);
//auto seed = chrono::high_resolution_clock::now().time_since_epoch().count();
auto seed = 194113341;
mt19937 rnd(seed);

bool isEqual(double a, double b) {
    return abs(a - b) <= EPS;
}

#define all(_v) _v.begin(), _v.end()
#define rall(v) v.rbegin(), v.rend()
#define sz(v) (int)(v.size())
#define sqr(_v) ((_v) * (_v))
#define vi vector <int>
#define vpi vector <pair <int, int> >
#define eb emplace_back
#define pb push_back
#define mod(x, m) ((x) % m + (x < 0 ? m: 0))


inline void IO() {
#if buyolitsez
    freopen("input.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#else
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
#endif
}

template <typename T>
istream& operator >> (istream& in, vector<T>& a) {
    for (auto& i : a)
        in >> i;
    return in;
}

template <typename T>
ostream& operator << (ostream& out, const vector<T>& a) {
    for (auto& i : a) {
        out << i << " ";
    }
    return out;
}

template <typename T, typename D>
istream& operator >> (istream& in, pair<T, D>& a) {
    in >> a.first >> a.second;
    return in;
}

template <typename T, typename D>
ostream& operator << (ostream& out, const pair<T, D>& a) {
    out << a.first << " " << a.second;
    return out;
}

//#define int int64_t

void solve() {
    int x;
    cin >> x;
    x %= 10;
    if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
        cout << "hon";
    }
    else if (x == 0 || x == 1 || x == 6 || x == 8) {
        cout << "pon";
    }
    else {
        cout << "bon";
    }
}

signed main() {
    IO();
    int t = 1;
//    cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}


Compiler output:
main.c:5:10: fatal error: bits/stdc++.h: No such file or directory
    5 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <map>
#include <numeric>
using namespace std;

int main() {

	int n;
	cin >> n;

	switch (n % 10)
	{
	case 2:
	case 4:
	case 5:
	case 7:
	case 9:
		cout << "hon" << endl;
		break;
	case 0:
	case 1:
	case 6:
	case 8:
		cout << "pon" << endl;
		break;
	case 1:
		cout << "bon" << endl;
		break;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: duplicate case value
   31 |         case 1:
      |         ^~~~
a.cc:26:9: note: previously used here
   26 |         case 1:
      |         ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

using pii = pair<int, int>;
using pll = pair<long long, long long>;

int main() {
    int n;
    cin >> n;
    int t = n % 10;
    if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
        cout << "hon" << endl;
    }
    else if (t == 0 || t == 1 || t == 6 || t == 8) {
        cout << "pon" << endl;
    }
    else {
        cout << "bon" << endl;
    }
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

int max(int a,int b){
  if(a > b) return a;
  else return b;
}
int min(int a, int b){
  if(a < b) return a;
  else return b;

int main(){

  int n;
  scanf("%d",&n);

  if( n%10 ==(2 || 4 || 5 || 7 || 9)){
    puts(hon);
  }
    if( n%10 ==(0 || 1 || 6 || 8)){
    puts(pon);
  }
    if( n%10 ==3){
    puts(bon);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:10: error: 'hon' undeclared (first use in this function)
   18 |     puts(hon);
      |          ^~~
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:10: error: 'pon' undeclared (first use in this function)
   21 |     puts(pon);
      |          ^~~
main.c:24:10: error: 'bon' undeclared (first use in this function)
   24 |     puts(bon);
      |          ^~~
main.c: In function 'min':
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
 int n;
 cin >> n;
 n%=10;
 if(n==3)
 cout << "bon";
 else if(n<=1 || n==6 || n==8)
 cout << "pon";
 else
 cout << "hon";
 return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: expected ';' before '}' token
   14 |  return 0
      |          ^
      |          ;
   15 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
using namespace std;
using ll = 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; }
const ll INF = 1e9;
const ll MOD = 1e9 + 7;

int main(){
    string s;
    cin >> s;

    int n = s[s.size()-1] - '0';
    if(n == 3)  cout << "bon" << endl;
    else if(n == 0 || n == 1 || n == 6 || n == 8) cout << "pon" << endl;
    else cout << hon << endl;
}

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

#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <functional>
#include <bitset>
#include <assert.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef pair<ll,ll> P;
typedef vector<P> vpl;
typedef tuple<ll,ll,ll> tapu;
#define rep(i,n) for(ll i=0; i<(n); i++)
#define REP(i,a,b) for(int i=(a); i<(b); i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
const int inf = 1<<30;
const ll linf = 1LL<<62;
const int MAX = 510000;
ll dy[8] = {0,1,0,-1,1,-1,1,-1};
ll dx[8] = {1,0,-1,0,1,-1,-1,1};
const double pi = acos(-1);
const double eps = 1e-7;
template<typename T1,typename T2> inline bool chmin(T1 &a,T2 b){
	if(a>b){
		a = b; return true;
	}
	else return false;
}
template<typename T1,typename T2> inline bool chmax(T1 &a,T2 b){
	if(a<b){
		a = b; return true;
	}
	else return false;
}
template<typename T1,typename T2> inline void print2(T1 a, T2 b){cout << a << " " << b << "\n";}
template<typename T1,typename T2,typename T3> inline void print3(T1 a, T2 b, T3 c){
	cout << a << " " << b << " " << c << "\n";
}
const int mod = 1e9 + 7;
//const int mod = 998244353;

int main(){
	ll n; cin >> n;
	n = n % 10;
	if(n == 3) puts("bon");
	else (n == 0 || n == 1 || n == 6 || n == 8) puts("pon");
	else puts("hon");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:52: error: expected ';' before 'puts'
   59 |         else (n == 0 || n == 1 || n == 6 || n == 8) puts("pon");
      |                                                    ^~~~~
      |                                                    ;
a.cc:60:9: error: 'else' without a previous 'if'
   60 |         else puts("hon");
      |         ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    string s;
    cin>>n;
    cin>>s;
    if(s.size()>=n){
        string k= s.substr(0,n);
        cout<<k<<"..."<<endl;
    } else cout<<s<<endl;
    return 0;
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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



int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int k;
    string s;
    cin>>k>>s;
    if(k>=s.size()) cout<<s;
    else {
        cout<<s.substr(0,k) + "...";
    }
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
   int n;
   string s;
   cin >> n >> s;
   if(s.size()<=n)cout<<s<<'\n';
   else{
      for(int i=0;i<n;++i)cout<<s[i];
      cout<<"...\n";
   }
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
   int n;
   string s;
   cin >> n >> s;
   if(s.size()<=n)cout<<s;
   else{
      for(int i=0;i<n;++i)cout<<s[i];
   }
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
int main()
{
    int K,i;
    scanf("%d",&K);
    char S[100000],l[10000];
    scanf("%s",&S);
    int length;
    length=strlen(S);

    if(length>K)
    {

        for(i=0; i<K; i++)
        {

            l[i]=S[i];
        }
          printf("%s...",l);


    }

    else
    {
         for(i=0; i<K; i++)
        {

            l[i]=S[i];

        }
        printf("%s",l);

    }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'strlen' was not declared in this scope
    9 |     length=strlen(S);
      |            ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

#include<stdio.h>
int main()
{
    int K,i;
    scanf("%d",&K);
    char S[100000],l[10000];
    scanf("%s",&S);
    int length;
    length=strlen(S);

    if(length>K)
    {

        for(i=0; i<K; i++)
        {

            l[i]=S[i];
        }
        printf("%s...",l);

    }

    else if(length==K)
    {
        printf("%s",S);
    }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'strlen' was not declared in this scope
    9 |     length=strlen(S);
      |            ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <string> 
#include <set>
typedef long long ll;
using namespace std;
unsigned long long x = 1e18;
int arr[100007];

void solve(int n) {
    for (int i = 0; i < n; ++i) {
        cin >> arr[i];
    }
    for (int i = 0; i < n; ++i) {
        if (arr[i] ==  0) {
            cout << 0 << endl;
            return;
        }
    }
    unsigned long long res = 1;
   
    for (int i = 0; i < n; ++i) {
        res *= (unsigned long long)arr[i];
        unsigned long long k = x / res;
        if (unsigned long long (arr[i + 1]) > k && i + 1 <= n - 1) {
            cout << -1;
            return;
        }
    }
    cout << res<< endl;
}
int main() {
    int k; cin >> k;
    string s; cin >> s;
    if (s.size() <= k)
        cout << s << endl;
    else {
        for (int i = 0; i < k; ++i) {
            cout << s[i];
        }
        cout << "...";
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'void solve(int)':
a.cc:26:13: error: expected primary-expression before 'unsigned'
   26 |         if (unsigned long long (arr[i + 1]) > k && i + 1 <= n - 1) {
      |             ^~~~~~~~
a.cc:26:13: error: expected ')' before 'unsigned'
   26 |         if (unsigned long long (arr[i + 1]) > k && i + 1 <= n - 1) {
      |            ~^~~~~~~~
      |             )
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
string s;
int k;
cin>>s>>k;
int len=strlen(s);
if(len<=k)cout<<s<<endl;
else if(len>k)cout<<s[0]<<"..."<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'strlen' was not declared in this scope
   16 | int len=strlen(s);
      |         ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<vector>
  +++ |+#include <cstring>
    7 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
string s;
cin>>s;
int len=strlen(s);
if(len<=k)cout<<s<<endl;
else if(len>k)cout<<s[0]<<"..."<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'strlen' was not declared in this scope
   15 | int len=strlen(s);
      |         ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<vector>
  +++ |+#include <cstring>
    7 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:16:9: error: 'k' was not declared in this scope
   16 | if(len<=k)cout<<s<<endl;
      |         ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
string s;
cin>>s;
len=strlen(s);
if(len<=k)cout<<s<<endl;
else if(len>k)cout<<s[0]<<"..."<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'len' was not declared in this scope; did you mean 'mblen'?
   15 | len=strlen(s);
      | ^~~
      | mblen
a.cc:15:5: error: 'strlen' was not declared in this scope
   15 | len=strlen(s);
      |     ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<vector>
  +++ |+#include <cstring>
    7 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:16:9: error: 'k' was not declared in this scope
   16 | if(len<=k)cout<<s<<endl;
      |         ^
Language: C++

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


int main(){
  int K;
  string S;
  
   cin >> K >> S;
  
  if(S.size()<=K) {
    cout << S << endl;
    return 0; 
  }
  else{
    rep(i,K){
     cout << S.at(i)
    }
     cout << "..."<< endl;
     return 0;
  }
  
}
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before '}' token
   19 |      cout << S.at(i)
      |                     ^
      |                     ;
   20 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define init(a,i) for(int k=0;k<(i);k++)(a)[k]=0
#define in(a,i) for(int k=0;k<(i);k++)cin>>(a)[k]
#define all(a)  (a).begin(),(a).end()
#define el(a) (a).end()-(a).begin()
#define mod 1000000007
#define inf 2147483647
#define range(x,a,b) (a)<=x&&x<=(b)
int main(){
	int k;
	cin>>k;
	strins s;
	cin>>s;
	if(s.size()<=k){
		cout<<s;
		return 0;
	}
	rep(i,k)cout<<s[i];
	cout<<"...";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'strins' was not declared in this scope; did you mean 'stdin'?
   16 |         strins s;
      |         ^~~~~~
      |         stdin
a.cc:17:14: error: 's' was not declared in this scope
   17 |         cin>>s;
      |              ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
	int k;cin>>k
	string s;cin>>s;
	int n=s.length();
	if(n<=k) cout<<s<<"\n";
	else
	{
		string s1="";
		for(int i=0;i<k;i++)
		s1=s1+s[i];
		s1=s1+"...";
		cout<<s1<<"\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'string'
    6 |         int k;cin>>k
      |                     ^
      |                     ;
    7 |         string s;cin>>s;
      |         ~~~~~~       
a.cc:7:23: error: 's' was not declared in this scope
    7 |         string s;cin>>s;
      |                       ^
Language: C

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

int main(void){
  int K;
  char c[101];
  scanf("%d",&K);
  scanf("%s",c);
  if(strlen(c)>K){
    for(int i=0;i<K;i++){
      printf("%c",c[i]);
    }
    printf("...\n");
  }else{
    printf("%s\n",c);
  }
}
return 0;
}

Compiler output:
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C++

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

int main(){
    int K;
    string S;
    cin >> K >> S;

    if(S.size() <= K){
        cout << S << endl;
    }
    else{
        for(int i = 0; i < K; i++){
            cout << S.st(i);
        }
        cout << "..." << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
   14 |             cout << S.st(i);
      |                       ^~
      |                       at
Language: C++

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


int main()
{
	int a;
	cin >> a;
	string b;
	cin >> b;
	for(int i=0; i<min(a, b.length()); i++)
	{
		cout << b[i];
	}
	if(a<b.length())
	{
		cout << "...";
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: no matching function for call to 'min(int&, std::__cxx11::basic_string<char>::size_type)'
   15 |         for(int i=0; i<min(a, b.length()); i++)
      |                        ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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/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:15:27: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'})
   15 |         for(int i=0; i<min(a, b.length()); i++)
      |                        ~~~^~~~~~~~~~~~~~~
/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,
                 from a.cc:3:
/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:15:27: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   15 |         for(int i=0; i<min(a, b.length()); i++)
      |                        ~~~^~~~~~~~~~~~~~~
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(){
    int k;
    cin>>k;
    string s;
    cin>>s;
    if(s.size()>k){
        for(int i=0;i<k;++i){
            cout<<s[i];
        }
        cout<<"..."<<endl;
    }
    else{
        cout<<s<<endl;
    }
    return 0;
}#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
using namespace std;

int main(){
    int k;
    cin>>k;
    string s;
    cin>>s;
    if(s.size()>k){
        for(int i=0;i<k;++i){
            cout<<s[i];
        }
        cout<<"..."<<endl;
    }
    else{
        cout<<s<<endl;
    }
    return 0;
}

Compiler output:
a.cc:21:2: error: stray '#' in program
   21 | }#include<bits/stdc++.h>
      |  ^
a.cc:21:3: error: 'include' does not name a type
   21 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void){
    int k;
    char s[110];
    cin>>k;
    cin>>s;
    int len = strlen(s);
    if(len <= k){
        cout<<s<<endl;
    }
    else{
        for(int i = 0; i < k; i++){
            cout<<s[i];
        }
        cout<<"..."
        cout<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected ';' before 'cout'
   18 |         cout<<"..."
      |                    ^
      |                    ;
   19 |         cout<<endl;
      |         ~~~~
Language: C

#include <stdio.h>

int main(){
  char s[101]={0};
  int x;
  scanf("%d\n %s", &x, s);
  if(s[x]=='\0'){
    for(int i=0;, i<x; i++)printf("%c", s[i]);
    printf("\n");
  }
  else{
    for(int i=0;, i<x; i++)printf("%c", s[i]);
    printf("...\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected expression before ',' token
    8 |     for(int i=0;, i<x; i++)printf("%c", s[i]);
      |                 ^
main.c:12:17: error: expected expression before ',' token
   12 |     for(int i=0;, i<x; i++)printf("%c", s[i]);
      |                 ^
Language: C

#include <stdio.h>

int main(){
  char s[101]={0};
  int x;
  scanf("%d\n %s", &x, s);
  if(s[x]=='\0')for(int i=0;, i<x; i++)printf("%c", s[i]); printf("\n");
  else for(int i=0;, i<x; i++)printf("%c", s[i]); printf("...\n");
}

Compiler output:
main.c: In function 'main':
main.c:7:29: error: expected expression before ',' token
    7 |   if(s[x]=='\0')for(int i=0;, i<x; i++)printf("%c", s[i]); printf("\n");
      |                             ^
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else for(int i=0;, i<x; i++)printf("%c", s[i]); printf("...\n");
      |   ^~~~
main.c:8:20: error: expected expression before ',' token
    8 |   else for(int i=0;, i<x; i++)printf("%c", s[i]); printf("...\n");
      |                    ^
Language: C++

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

int main(){
	long long int   K;
	string S;
	cin >> K >> S;
  
  if (K > S.size()) cout << S << endl;
  else {
  	while(S.size() > K) S.pop_back;
    S += "..."
    cout << S << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: invalid use of non-static member function 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pop_back() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
   11 |         while(S.size() > K) S.pop_back;
      |                             ~~^~~~~~~~
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:2174:7: note: declared here
 2174 |       pop_back() noexcept
      |       ^~~~~~~~
a.cc:12:15: error: expected ';' before 'cout'
   12 |     S += "..."
      |               ^
      |               ;
   13 |     cout << S << endl;
      |     ~~~~
Language: C

include<stdio.h>
int main (void){
  char s[100];
  int k,i,n;
  scanf("%s",s);
  n=0;
  while(s[n]!='\0'){n++;}  
  if(i<k){
    for(i=0;i<n;i++){
      printf("%c",s[i]);
    }
    printf("\n");
  }
  else{
    for(i=0;i<k;i++){
      printf("%c",s[i]);
    }
    printf("...\n");
  }
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
#include<string.h>
void main()
  { 
     int k,a,i;
     scanf("%d",&k);
     char s[101],b[101];
     scanf("%s",s);
     a=lenstr(s);
    if(a<=k)
      printf("%s",s);
    else 
      { 
       for(i=0;i<k;i++)
        { 
         b[i]=s[i];
         } 
      printf("%s...",b);
      } 
  }
  

Compiler output:
main.c: In function 'main':
main.c:9:8: error: implicit declaration of function 'lenstr' [-Wimplicit-function-declaration]
    9 |      a=lenstr(s);
      |        ^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
const ll LINF = 1e18;
inline ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
inline ll lcm(ll a, ll b) { return a / gcd(a, b)*b; }
template<class S,class T> ostream& operator << (ostream& out,const pair<S,T>& o){ out << "(" << o.first << "," << o.second << ")"; return out; }
template<class T> ostream& operator << (ostream& out,const vector<T>& V){ for(int i = 0; i < V.size(); i++){ out << V[i]; if(i!=V.size()-1) out << " ";} return out; }
template<class T> ostream& operator << (ostream& out,const vector<vector<T> >& Mat){ for(int i = 0; i < Mat.size(); i++) { if(i != 0) out << endl; out << Mat[i];} return out; }
template<class S,class T> ostream& operator << (ostream& out,const map<S,T>& mp){ out << "{ "; for(auto it = mp.begin(); it != mp.end(); it++){ out << it->first << ":" << it->second; if(mp.size()-1 != distance(mp.begin(),it)) out << ", "; } out << " }"; return out; }
template<typename T>vector<T> make_v(size_t a){return vector<T>(a);}
template<typename T,typename... Ts>auto make_v(size_t a,Ts... ts){return vector<decltype(make_v<T>(ts...))>(a,make_v<T>(ts...));}
template<typename T,typename V> typename enable_if<is_class<T>::value==0>::type fill_v(T &t,const V &v){t=v;}
template<typename T,typename V> typename enable_if<is_class<T>::value!=0>::type fill_v(T &t,const V &v){for(auto &e:t) fill_v(e,v);}
/*
 <url:>
 問題文============================================================
 =================================================================
 解説=============================================================
 ================================================================
 */

template<class Type>
Type solve(Type res = Type()){
    int K; string S;
    if(K <= S.length()){
        res = S;
    }else{
        res = S.substr(0.K) + "...";
    }
    return res;
}
int main(void) {
    cin.tie(0); ios::sync_with_stdio(false);
    //solve<ll>(0);
    cout << fixed << setprecision(12) << solve<string>() << endl;
    return 0;
}

Compiler output:
a.cc: In function 'Type solve(Type)':
a.cc:32:24: error: fixed-point types not supported in C++
   32 |         res = S.substr(0.K) + "...";
      |                        ^~~
Language: C

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

int main()
{
	int m;
	string n;
	cin>>m>>n;
	if(n.size()<=m)
		cout<<n;
	else
	{
		for(int i=0;i<m;i++)
		{
			cout<<n[i];
		}
		cout<<"...";
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

int main()
{
	int m;
	string n;
	cin>>m>>n;
	if(n.size()<=m)
		cout<<n;
	else
	{
		for(int i=0;i<m;i++)
		{
			cout<<n[i];
		}
		cout<<"…";
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdlib.h>
#include <cstring>

using namespace std;

int main(void)
{
    int K;
    cin>>K;

    char S[100];
    char aux[]="...";
    cin.getline(S,100);

    int w=strlen(S);
    if(w<=K)
    {
        cout <<S;
    }
    else
    {
        for(int i=0; i<=K; i++)
        {
           cout<<S[i];
        }
        cout<<"...";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>K;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cstring>
  +++ |+#include <iostream>
    3 | 
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout <<S;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:12: error: 'cout' was not declared in this scope
   24 |            cout<<S[i];
      |            ^~~~
a.cc:24:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout<<"...";
      |         ^~~~
a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;

public class concurso {
   public static void main (String [] args){
        Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
           }    
     }     
  }
}

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

import java.util.Scanner;


public class concurs{
     public static void main(String[] args) {
 
      Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
            }
        
          }
    }
}

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

import java.util.Scanner;

public class EjercicioD {

    
    public static void main(String[] args) {
         Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
            }
        
          }
    }
    
}

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

import java.util.Scanner;


public class shalala{
     public static void main(String[] args) {
 
      Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
            }
        
          }
    }
}

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

import java.util.Scanner;


public class shalala {
     public static void main(String[] args) {
 
      Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
            }
          }
    }
}

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

import java.util.Scanner;


public class Concurs {

    public static void main(String[] args) {

      Scanner sc = new Scanner (System.in);
        String s;
        s=sc.next();
        
        if(s.length()<99){
            System.out.println(""+s);
            System.out.println(""+s.length());
        }else{
            if (s.length()>99){
               char letra = s.charAt(0);
          
               String nueva= Character.toLowerCase(letra)+s.substring(s.length());
               System.out.println(""+s.substring(1,s.length())+nueva);
               System.out.println(""+s.length());
            
          
        }
        
    }
   }

}

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

#include<stdio.h>
#include<string.h>
int main(){
  int k;
  char s[110];
  scanf("%d %s",&k,s);
  if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
  else puts(s);
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: too many arguments to function 'puts'
    7 |   if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
      |                              ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  int k;
  char s[110];
  scanf("%d %s",&k,s);
  if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
  else{puts(s);}
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: too many arguments to function 'puts'
    7 |   if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
      |                              ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int k;
  char s[110];
  scanf("%d %s",&k,s);
  if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
  else{puts(s);}
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: too many arguments to function 'puts'
    7 |   if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
      |                              ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int i,k;
  char s[110];
  scanf("%d %s",&k,s);
  if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
  else{puts(s);}
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: too many arguments to function 'puts'
    7 |   if(strlen(s)>k){ s[k]='\0';puts("%s...\n",s);}
      |                              ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~