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

#include <iostream>
using namespace std;

int main() {
	int s; cin >> s;
  	switch(s % 10) {
      case 0: case 1: case 6: case 8: cout << "pon"; break;
      case 2: case 4: case 5: case 7: case 9: cout << "hon"; break;
      case 3: cout << "bon"; break;
      default:
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before '}' token
   11 |     }
      |     ^
Language: C++

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

int main()
{
  int N;
  cin>>N;
  int mod = N%10;
  switch(mod)
  {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout<<"hon\n";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      cout<<"pon\n";
      break;
    default:
      cout<<"bon\n";
  }
  return 0;
}
/*


Compiler output:
a.cc:29:1: error: unterminated comment
   29 | /*
      | ^
Language: C++

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

int main()
{
  int N;
  cin>>N;
  int mod = N%10;
  switch(mod)
  {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout<<"hon\n";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      cout<<"pon\n";
      breal=k;
    default:
      cout<<"bon\n";
  }
  return 0;
}
/*


Compiler output:
a.cc:29:1: error: unterminated comment
   29 | /*
      | ^
a.cc: In function 'int main()':
a.cc:23:7: error: 'breal' was not declared in this scope
   23 |       breal=k;
      |       ^~~~~
a.cc:23:13: error: 'k' was not declared in this scope
   23 |       breal=k;
      |             ^
Language: C++

#include <math.h>

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define PI 3.14159265359
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))

int main() {
  float A, B, H, M;
  cin >> A >> B >> H >> M;
  float rad = PI * 2 * ((H / 12 - M / 60) + M / 60 / 12);

  float ans = A * A + B * B - 2 * A * B * cos(rad);

  cout << sqrt(ans) << endl;
}
return 0;
}


Compiler output:
a.cc:21:1: error: expected unqualified-id before 'return'
   21 | return 0;
      | ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h>
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" << end;
        break;
      case:3
        cout << "bon" << end;
        break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before ':' token
   10 |       case:2
      |           ^
a.cc:10:13: error: expected ';' before 'case'
   10 |       case:2
      |             ^
      |             ;
   11 |       case:4
      |       ~~~~   
a.cc:17:11: error: expected primary-expression before ':' token
   17 |       case:0
      |           ^
a.cc:17:13: error: expected ';' before 'case'
   17 |       case:0
      |             ^
      |             ;
   18 |       case:1
      |       ~~~~   
a.cc:23:11: error: expected primary-expression before ':' token
   23 |       case:3
      |           ^
a.cc:23:13: error: expected ';' before 'cout'
   23 |       case:3
      |             ^
      |             ;
   24 |         cout << "bon" << end;
      |         ~~~~
Language: Java

import java.util.Scanner;

class Main {
  
  public static void main(String args[]) {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  }
  
}
  
  
  
  
}

Compiler output:
Main.java:25: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '}' token
    8 |     cout<<"hon"
      |                ^
      |                ;
    9 |   }
      |   ~             
a.cc:11:16: error: expected ';' before '}' token
   11 |     cout<<"pon"
      |                ^
      |                ;
   12 |   }
      |   ~             
a.cc:14:16: error: expected ';' before '}' token
   14 |     cout<<"bon"
      |                ^
      |                ;
   15 |   }
      |   ~
Language: C

#include <stdio.h>
2 #include <math.h>
3
4 #define PI 3.14159265358979323846264338327950L
5
6 int main(void) {
7 int a, b, h, m;
8 scanf("%d%d%d%d", &a, &b, &h, &m);
9
10 long double rad = PI * 2 * (
11 (long double)h / 12.0 + ((long double)m / 60.0) / 12.0 - (long
double)m / 60.0);
12
13 long double rsq = (long double)(a * a + b * b) - (long double)(2 * a *
b) * cosl(rad);
14
15 printf("%20.20Lf\n", sqrtl(rsq));
16
17 return 0;
18 }

Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2 #include <math.h>
      | ^
main.c:2:3: error: stray '#' in program
    2 | 2 #include <math.h>
      |   ^
main.c:4:3: error: stray '#' in program
    4 | 4 #define PI 3.14159265358979323846264338327950L
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <math.h>  /* M_PI */
#include <stdio.h> /* printf */
int main(void)
{
 int a,b,h,m;
  cin >>a >>b >>h >>m;
  long double X,Y;
  X=2*M_PI/60*m;
  Y=2*M_PI/720*(60*h+m);
  long double C;
  long double Z;
  if(X-Y>=0){
    if(X-Y>=M_PI){
      Z=2*M_PI-X+Y;
    }
    else{
    Z=X-Y;
    }
  }
  else{
    if(Y-X>=M_PI){
      Z=2*M_PI-Y+X;
    }
    else{
    Z=Y-X;
    }
  }
  if(X-Y!=0){
    if(Z==M_PI){
      cout <<a+b;
    }
    else{
  C=a*a+b*b-2*a*b*cos(Z);
  long double D;
  D=sqrt(C);
 cout <<fixed <<setprecision(10)<<D<<endl;
    }
  }
  else{
    cout <<|a-b|;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: expected primary-expression before '|' token
   42 |     cout <<|a-b|;
      |            ^
a.cc:42:17: error: expected primary-expression before ';' token
   42 |     cout <<|a-b|;
      |                 ^
Language: C++

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

const ll INF = 1001001001;

const double PI=3.141592653;

const ll sosu = 1000000007;//大きい素数

//提出のときに言語がc＋＋似合っていることを確認する

//絶対値の関数
int z(int a,int b){
  if(a>b) return a-b;
  else return b-a;
}

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


Compiler output:
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　int n; cin>>n;
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000int' was not declared in this scope
   21 | 　　　int n; cin>>n;
      | ^~~~~~~~~
a.cc:21:19: error: 'n' was not declared in this scope
   21 | 　　　int n; cin>>n;
      |                   ^
Language: C

#include <iostream>
#include <cstdio>
#include <iomanip>
#include <cstdlib>
#include <vector>
#include <cmath>
#include <utility>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <queue>
#include <climits>
#include <map>
#include <unordered_map>
#include <string>
#include <ctime>
#include <unistd.h>

using namespace std;
#define ll long long
#define max(A, B) ((A) > (B) ? (A) : (B))
#define min(A, B) ((A) < (B) ? (A) : (B))
#define mp make_pair
#define pb push_back
#define fi first
#define sd second
#define fu(A, B, C) for(ll (A) = (B); (A) < (C); (A)++)
#define fu0(A, B) fu((A), 0, (B))
#define fd(A, B, C) for(ll (A) = (B); (A) >= (C); (A)--)
#define mem(A, B) memset((A), (B), sizeof((A)))
#define vd(A, B, C) vector<ll> (A)((B), (C))
#define v2d(A, B, C) vector<vector<int>> (A)((B), vector<int> (C));
#define all(x) (x.begin(), x.end())
#define endl "\n"
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;

ll gcd(int a, int b){if(!a)return b;return gcd(b%a,a);}

void perform() {
  int n; cin >> n;
  n %= 10;
  string ans = "";
  switch(n) {
    case 3: ans = "bon";break;
    case 0:case 1:case 6:case 8: ans = "pon";break;
    default:ans = "hon";break;
  }
  cout << ans << endl;
}

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed;
  ll t = 1; //cin >> t;
  while(t--) {perform();}
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
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{
    
    cout << s.at(k) << "..." << endl;
    
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> k >> s;
      |     ^~~
a.cc:9:7: error: 's' was not declared in this scope
    9 |   if( s.size() >= k ){
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>n;
      |   ^~~
a.cc:7:9: error: 'n' was not declared in this scope
    7 |   int a=n&10;
      |         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>n;
      |   ^~~
a.cc:7:9: error: 'N' was not declared in this scope
    7 |   int a=N&10;
      |         ^
Language: C

#include <stdio.h>
 
int main(){
  int a = 0;
  scanf("%d",&a);
  int b = a%100;
  int c = b%10;
  if(c == 3){
    printf("bon");
  }else if(c == 0 || c==1 || c==6 || c==8){
    printf("pon");
  }else{
    printf("hon");
  }
  return 0;

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

#include <stdio.h>

int main(){
  int a = 0;
  scanf("%d",&a);
  int b = a%100;
  int c = b%10;
  if(c == 3){
    printf("bon")
  }else if(c == 0 || c==1 || c==6 || c==8){
    printf("pon")
  }else{
    printf("hon")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected ';' before '}' token
    9 |     printf("bon")
      |                  ^
      |                  ;
   10 |   }else if(c == 0 || c==1 || c==6 || c==8){
      |   ~               
main.c:11:18: error: expected ';' before '}' token
   11 |     printf("pon")
      |                  ^
      |                  ;
   12 |   }else{
      |   ~               
main.c:13:18: error: expected ';' before '}' token
   13 |     printf("hon")
      |                  ^
      |                  ;
   14 |   }
      |   ~
Language: C++

/****************************************************
*   Template for coding contests                    *
*   Author    :    Sanjeev Sharma                   *
*   Email     :    thedevelopersanjeev@gmail.com    *
*****************************************************/
#pragma GCC optimize ("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("fast-math")
#pragma GCC target ("sse4")
#pragma comment(linker, "/stack:200000000")

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

using namespace __gnu_pbds;
using namespace std;

#define deb(x) cout << #x << " is " << x << "\n";
#define int long long
#define mod 1000000007

const double PI = 2 * acos(0.0);
const long long INF = 1e18L + 5;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

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

int32_t main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:31:16: error: 'n' was not declared in this scope; did you mean 'yn'?
   31 |         cin >> n;
      |                ^
      |                yn
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:52: error: lvalue required as left operand of assignment
   10 |   } else if(N % 10 = 0 || N % 10 = 1 || N % 10 = 6 || N % 10 = 8){
      |                                                  ~~^~~~~~~~~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#inclode<stdio.h>

int main(void)
{
  int N;
  printf("Nの数は？");
  scanf("%d",&N);
  N=N%100
  N=N%10
    switch (N){
      case 1;
        printf("pon\n");
        break;
      case 2;
        printf("hon\n");
        break;
      case 3;
        printf("bon\n");
        break;
      case 4;
        printf("hon\n");
        break;
      case 5;
        printf("hon\n");
        break;
      case 6;
        printf("pon\n");
        break;
      case 7;
        printf("hon\n");
        break;
      case 8;
        printf("pon\n");
        break;
      case 9;
        printf("hon\n");
        break;
      case 0;
        printf("pon\n");
        break;
    }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclode; did you mean #include?
    1 | #inclode<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   printf("Nの数は？");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclode<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   printf("Nの数は？");
      |   ^~~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&N);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:10: error: expected ';' before 'N'
    8 |   N=N%100
      |          ^
      |          ;
    9 |   N=N%10
      |   ~
Language: C++

#include<std/bits.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int dig=n%10;
  if(dig==2||dig==4||dig==5||dig==7||dig==9)
    cout<<"hon\n";
  else if(dig==0||dig==1||dig==6||dig==8)
    cout<<"pon\n";
  else
    cout<<"bon\n";
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: std/bits.h: No such file or directory
    1 | #include<std/bits.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

void output(int end){
	if(end==3){
		printf("bon");
	}else {
		if(end==2||4||5||7||9{
	    	printf("hon");}
			else {
	    		if(end==0||1||6||8){
	    	printf("pon");
			} 
		}
	}
	    }

 
int main()
{
	int N,end;
	scanf("%d",&N);
	if(N>=100){
		end=N%100;
		output(end);
	}else if(N>=10){
		end=N%10;
		output(end);
	}else output(N);
	return 0;
}

Compiler output:
main.c: In function 'output':
main.c:7:38: error: expected ')' before '{' token
    7 |                 if(end==2||4||5||7||9{
      |                   ~                  ^
      |                                      )
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class prob_C {
	public static void main(String[] args){
    //標準入力のインスタンス作成
		Scanner sc = new Scanner(System.in);
		// 数値の入力
		double A = sc.nextDouble();//Acm
		double B = sc.nextDouble();//Bcm
		double H = sc.nextDouble();//H時間
		double M = sc.nextDouble();//M分
		//長短針間の角度を計算
		double theta_a = 30*(H+M/60);
		double theta_b = 360*(M/60);
		double theta_ab = Math.abs(theta_a-theta_b);
		//余弦定理で距離計算
		double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));
		// 出力
		System.out.println(C);
	}
}


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

#include <bits/stdc++.h>
using namespace std;
#include <math.h>
#define PI 3.141592
#include <stdio.h>
#include <iostream>
#include "conio.h"

int main(){
  int A, B, H, M;
  cin >> A >> B >> H >> M;
  int ac = H * 0.5 - 0.5 * H / 360 * 360;
  int bc = H * 6 - H * 6 / 360 * 360;
  int c = 0;
  int out = 0;
  
  if (ac > bc){
    c = ac - bc;
  }
  else{
    c = bc - ac;
  }
  
  out = (int)pow(A, 2.0) + (int)pow(B, 2.0) - 2 * A * B * double cos(double c);
  
  cout << out << endl;
}
  


Compiler output:
a.cc:7:10: fatal error: conio.h: No such file or directory
    7 | #include "conio.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int N;
   cin >> N;
  
  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;
  }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected primary-expression before '|' token
   10 |   if(|N==2||N==4||N==5||N==7||N==9){
      |      ^
Language: Java


import java.util.Scanner;

	public static void main(String[] args) {
		String s;
		int K;
		String tmp;
		Scanner input = new Scanner(System.in);
		K = input.nextInt();
		tmp = input.nextLine();
		s = input.next();
		if(s.length() < K+1) {
			System.out.println(s);
		}else {
			System.out.println(s.charAt(0) + "...");
		}
		input.close();
	}
	


Compiler output:
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<stdio.h>
int main(void){
    char n[3];
    scanf("%s",&n);
    if(n[2] = '3'){
        printf("bon");
    }else if(n[2]='0'||n[2]='1'||n[2]='6'||n[2]='8'){
        printf("pon");
    }else if(n[2]='2'||n[2]='4'||n[2]='5'||n[2]='7'||n[2]='9'){
        printf("hon");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:48: error: lvalue required as left operand of assignment
    7 |     }else if(n[2]='0'||n[2]='1'||n[2]='6'||n[2]='8'){
      |                                                ^
main.c:9:58: error: lvalue required as left operand of assignment
    9 |     }else if(n[2]='2'||n[2]='4'||n[2]='5'||n[2]='7'||n[2]='9'){
      |                                                          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'N'
    6 |   cin N;
      |      ^~
      |      ;
Language: C

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

void main(){
   int x,y;
  scanf("%d"&x);
  y=x%10;
  if(y=0;|y=1;|y=6;|y=7){
    printf("hon");
  }else if(y=3;){
    printf("bon");
  }else{
    printf("hon");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: invalid operands to binary & (have 'char *' and 'int')
    6 |   scanf("%d"&x);
      |         ~~~~^
      |         |
      |         char *
main.c:8:9: error: expected ')' before ';' token
    8 |   if(y=0;|y=1;|y=6;|y=7){
      |     ~   ^
      |         )
main.c:10:15: error: expected ')' before ';' token
   10 |   }else if(y=3;){
      |           ~   ^
      |               )
main.c:15:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   15 |   return 0;
      |          ^
main.c:4:6: note: declared here
    4 | void main(){
      |      ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;
 
int main()
{
    int m;
    cin >> m;
  	if (m > 99) n = m % 100;
  	else n = m % 10; 
    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:11:21: error: 'n' was not declared in this scope
   11 |         if (m > 99) n = m % 100;
      |                     ^
a.cc:12:14: error: 'n' was not declared in this scope
   12 |         else n = m % 10;
      |              ^
a.cc:13:9: error: 'n' was not declared in this scope
   13 |     if (n == 3)
      |         ^
Language: C

#include<stdio,h>
int main(void){
  int N;
  scanf("%d",&N);
  if(N%10==2)
    printf("hon");
  if(N%10==4)
    printf("hon");
  if(N%10==5)
    printf("hon");
  if(N%10==7)
    printf("hon");
  if(N%10==9)
    printf("hon");
  if(N%10==0)
    printf("pon");
  if(N%10==1)
    printf("pon");
  if(N%10==6)
    printf("pon");
  if(N%10==8)
    printf("pon");
  if(N%10==3)
    printf("bon");
  return 0;
}



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

#include<stio.h>

int main(void)
{
  int N;
  scanf("%d",&N);
  N=N%100;
  N=N%10;
   switch (N){
    case 1:
      printf("pon\n");
      break;
     case 2:
      printf("hon\n");
      break;
     case 3:
      printf("bon\n");
      break;
     case 4:
      printf("hon\n");
      break;   
     case 5:
      printf("hon\n");
      break;
     case 6:
      printf("pon\n");
      break;
     case 7:
      printf("hon\n");
      break;
     case 8:
      printf("pon\n");
      break;  
     case 9:
      printf("hon\n");
      break;
     case 0:
      printf("pon\n");
      break;  
   }
    return 0;
}

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

int main(void){
   int x,y;
  scanf("%d"&x);
  y=x%10;
  if(y=0||y=1||y=6||y=8){
    printf("pon");
  }else if(y=3){
    printf("bon");
  }else{
    printf("hon");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d"&x);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d"&x);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:13: error: invalid operands to binary & (have 'char *' and 'int')
    3 |   scanf("%d"&x);
      |         ~~~~^
      |         |
      |         char *
main.c:5:22: error: lvalue required as left operand of assignment
    5 |   if(y=0||y=1||y=6||y=8){
      |                      ^
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("pon");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("bon");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |     printf("hon");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;
 
int main()
{
    int m;
    cin >> m;
  	if (m > 99) n %= 100;
  	else n %= 10; 
    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:11:21: error: 'n' was not declared in this scope
   11 |         if (m > 99) n %= 100;
      |                     ^
a.cc:12:14: error: 'n' was not declared in this scope
   12 |         else n %= 10;
      |              ^
a.cc:13:9: error: 'n' was not declared in this scope
   13 |     if (n == 3)
      |         ^
Language: C

#include<stdio,h>
int main(void){
  int N;
  if(N%10==2)
    printf("hon");
  if(N%10==4)
    printf("hon");
  if(N%10==5)
    printf("hon");
  if(N%10==7)
    printf("hon");
  if(N%10==9)
    printf("hon");
  if(N%10==0)
    printf("pon");
  if(N%10==1)
    printf("pon");
  if(N%10==6)
    printf("pon");
  if(N%10==8)
    printf("pon");
  if(N%10==3)
    printf("bon");
  return 0;
}



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

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

int mian()
{
    int m;
    cin >> m;
  	if (m > 99) n %= 100;
  	else n %= 10; 
    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 mian()':
a.cc:11:21: error: 'n' was not declared in this scope
   11 |         if (m > 99) n %= 100;
      |                     ^
a.cc:12:14: error: 'n' was not declared in this scope
   12 |         else n %= 10;
      |              ^
a.cc:13:9: error: 'n' was not declared in this scope
   13 |     if (n == 3)
      |         ^
a.cc:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
   19 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class one {
    public static void main(String[] args){
        int a=0,b=0,h=0,m=0;
        double result;
        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String[] temp = reader.readLine().split(" ");
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            h = Integer.parseInt(temp[2]);
            m = Integer.parseInt(temp[3]);
        }catch (Exception e){
            e.printStackTrace();
        }

        double angle=0;
        angle=m/60.0*2*Math.PI-h/12.0*2*Math.PI;
        if(angle>=Math.PI){
            angle=2*Math.PI-angle;
        }
        result=Math.sqrt(a*a+b*b-2*a*b*Math.cos(angle));
        System.out.println(result);

    }
}


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


	#include <bits/stdc++.h>
	#define endl "\n"
	#define ll long long int
	#define vi vector<ll>
	#define vll vector<ll>
	#define vvi vector < vi >
	#define pii pair<ll,ll>
	#define pll pair<long long, long long>
	#define mod 1000000007
	#define inf 1000000000000000001;
	#define all(c) c.begin(),c.end()
	#define mp(x,y) make_pair(x,y) 
	#define mem(a,val) memset(a,val,sizeof(a))
	#define pb push_back
	#define f first
	#define s second
	
	using namespace std;
	
	signed main()
	{

	std::ios::sync_with_stdio(false);
	
	

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


Compiler output:
a.cc: In function 'int main()':
a.cc:31:23: error: 'bon' was not declared in this scope
   31 |                 cout<<bon;
      |                       ^~~
a.cc:33:23: error: 'pon' was not declared in this scope; did you mean 'pow'?
   33 |                 cout<<pon;
      |                       ^~~
      |                       pow
a.cc:35:23: error: 'hon' was not declared in this scope
   35 |                 cout<<hon;
      |                       ^~~
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class one {
    public static void main(String[] args){
        int a,b,h,m;
        double result;
        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String[] temp = reader.readLine().split(" ");
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            h = Integer.parseInt(temp[2]);
            m = Integer.parseInt(temp[3]);
        }catch (Exception e){
            e.printStackTrace();
        }

        double angle=0;
        angle=m/60.0*2*Math.PI-h/12.0*2*Math.PI;
        if(angle>=Math.PI){
            angle=2*Math.PI-angle;
        }
        result=Math.sqrt(a*a+b*b-2*a*b*Math.cos(angle));
        System.out.println(result);

    }
}


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


	#include <bits/stdc++.h>
	#define endl "\n"
	#define ll long long int
	#define vi vector<ll>
	#define vll vector<ll>
	#define vvi vector < vi >
	#define pii pair<ll,ll>
	#define pll pair<long long, long long>
	#define mod 1000000007
	#define inf 1000000000000000001;
	#define all(c) c.begin(),c.end()
	#define mp(x,y) make_pair(x,y) 
	#define mem(a,val) memset(a,val,sizeof(a))
	#define pb push_back
	#define f first
	#define s second
	
	using namespace std;
	
	signed main()
	{

	std::ios::sync_with_stdio(false);
	
	#ifndef ONLINE_JUDGE
      freopen("input.txt", "r", stdin);
      freopen("output.txt", "w", stdout);
     #endif

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


Compiler output:
a.cc: In function 'int main()':
a.cc:34:23: error: 'bon' was not declared in this scope
   34 |                 cout<<bon;
      |                       ^~~
a.cc:36:23: error: 'pon' was not declared in this scope; did you mean 'pow'?
   36 |                 cout<<pon;
      |                       ^~~
      |                       pow
a.cc:38:23: error: 'hon' was not declared in this scope
   38 |                 cout<<hon;
      |                       ^~~
Language: C++

#include <bits/stdc++.h>
int main()
{
  int n,count;
  cin >>n;
  count=n%10;
  
  switch(count)
  {
    case 2:
    case 5:
    case 7:
    case 9:
    case 4:cout<<"hon"<<endl;
      		break;
    case 0:
    case 6:
    case 8:
    case 1:cout<<"pon"<<endl;
      	break;
    case 3:cout<<"bon"<<endl;
      		break;
  }
}
 

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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:14:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     case 4: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:14:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     case 4:cout<<"hon"<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n,k,i;
	cin>>n>>k>>i;
	for(i<1;i<=n;i++){
		cin<<k;
	    while(n<k!||n<999) 
	    cout<<k+n;
	}
	cout<<n<<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: Java

import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String hun = n.substring(0);
    String ten = n.substring(1);
    String one = n.substring(2);
    int num = 0;
    String result = "";
    if(one == null){
      if(ten == null){
        num = Integer.paserInt(hun);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Integer.parseInt(ten);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Integer.parseInt(one);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
    }
      System.out.println(result);
    }
    
  }

Compiler output:
Main.java:31: error: 'else' without 'if'
      }else{
       ^
Main.java:44: error: reached end of file while parsing
  }
   ^
2 errors
Language: C++

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

int mian()
{
    int n;
    cin >> n;
    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 mian()':
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
#include <cmath>
#include <vector>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define INF 10000000
#define PI 3.141592653589793
using ll = long long ;
ll gcd(ll a, ll b) {
  if(b == 0) return a;
  return gcd(b, a % b);
}
ll lcm(ll a,ll b){
    ll g = gcd(a,b);
    return a / g * b;
}
template< int id > struct CompTupleBy
{
  template<class T> 
  bool operator()( const T& a, const T& b ) const {
    return std::get<id>(a) < std::get<id>(b);
  }
};


using namespace std;
using Graph = vector< vector<int> > ;


int main(){
    int n;
    cin >> n;
    int last;
    if (n <10){
        last = n;
    }else if (n < 100){
        last = n%10;
    }else{
        n %= 10;
        last = n %= 10;
    }
    if (last == 2 || last == 4 || last == 5 || last == 7 || last == 9 || ){
        cout << "hon" << endl;
    }else if (last == 3){
        cout << "bon" << endl;
    }else{
        cout << "pon" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:74: error: expected primary-expression before ')' token
   42 |     if (last == 2 || last == 4 || last == 5 || last == 7 || last == 9 || ){
      |                                                                          ^
Language: C

#include<stdio.h>
int N;
N=scanf("%d",&N);
for(int i=N;i>=0;i--){
  if(N%10==0){
    int d;
    d=N-i;
    if(d==0 ||d==1 ||d==6|| d==8)
      printf("pon");
    else if(d==3)
      print("bon");
    else
      print("hon");
    break;
  }
}

Compiler output:
main.c:3:1: warning: data definition has no type or storage class
    3 | N=scanf("%d",&N);
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:3:3: error: initializer element is not constant
    3 | N=scanf("%d",&N);
      |   ^~~~~
main.c:4:1: error: expected identifier or '(' before 'for'
    4 | for(int i=N;i>=0;i--){
      | ^~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
    4 | for(int i=N;i>=0;i--){
      |              ^~
main.c:4:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '--' token
    4 | for(int i=N;i>=0;i--){
      |                   ^~
Language: C

#include <stdio.h>
int main(){
int n;
  scanf("%d",&n);
  n %=10;
  if(n == 2 || n == 4 || n == 5 || n == 7||n == 9)
  printf("hon");
  else if(n == 0 || n == 1 || n == 6 || n == 8)
  pritnf("pon");
  else
  printf("bon");
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |   pritnf("pon");
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
int main(){
int n;
  scanf("%d",&n);
  n %=10;
  if(n == 2 || n == 4 || n == 5 || n == 7||n == 9)
  printf("hon");
  else if(n == 0 || n == 1 || n == 6 || n == 8)
  prinf("pon");
  else
  printf("bon");
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |   prinf("pon");
      |   ^~~~~
      |   printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:58: error: expected ')' before 'n'
    8 |         if(n%10 == 2 || n%10 ==4 || n%10 == 5 || n%10 ==7 n % 10 == 9){
      |           ~                                              ^~
      |                                                          )
Language: C++

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

int main() {
  string N;
  cin >> N;
  int a;
  a = N.size();
  int b;
  b = N.at(a-1);
  if(b == "3") {
    cout << N << "bon" << endl;
  }
  else if(b == "0" || "1" || "6" || "8" ) {
    cout << N << "pon" << endl;
  }
  else {
    cout << N << "hon" << endl;
  }
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(b == "3") {
      |      ~~^~~~~~
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if(b == "0" || "1" || "6" || "8" ) {
      |           ~~^~~~~~
Language: C++

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

int main() {
    int a;
    cin >> a;
  
    for(int j == a - (a/10)*10; j < 10; j++)
      
  if( j == ( (2 && 4) && (5 && 7) ) && 9 ){
    
    cout << "hon" << endl;
    
  }
    
  else if( j == ( (0 && 1) && (6 && 8) ))  {
    
    cout << "pon" << endl;
    
  }
     
  else if( j == 3 ){
    
    cout << "bon" << endl;
    
  }
          
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before '==' token
    8 |     for(int j == a - (a/10)*10; j < 10; j++)
      |              ^~~
      |              ;
a.cc:8:15: error: expected primary-expression before '==' token
    8 |     for(int j == a - (a/10)*10; j < 10; j++)
      |               ^~
a.cc:8:39: error: expected ')' before ';' token
    8 |     for(int j == a - (a/10)*10; j < 10; j++)
      |        ~                              ^
      |                                       )
a.cc:8:41: error: 'j' was not declared in this scope
    8 |     for(int j == a - (a/10)*10; j < 10; j++)
      |                                         ^
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if( j == ( (0 && 1) && (6 && 8) ))  {
      |   ^~~~
Language: C

#include<stdio.h>
int N;
N=scanf("%d,&N);
for(int i=N;i>0;i--){
  if(N%10==0){
    int d;
    d=N-i;
    if(d==0 ||d==1 ||d==6|| d==8)
      printf("pon");
    else if(d==3)
      print("bon");
    else
      print("hon");
    break;


Compiler output:
main.c:3:1: warning: data definition has no type or storage class
    3 | N=scanf("%d,&N);
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:3:9: warning: missing terminating " character
    3 | N=scanf("%d,&N);
      |         ^
main.c:3:9: error: missing terminating " character
    3 | N=scanf("%d,&N);
      |         ^~~~~~~~
main.c:4:1: error: expected expression before 'for'
    4 | for(int i=N;i>0;i--){
      | ^~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.next();

		if (n.charAt(n.length() - 1) == '2' ||
				n.charAt(n.length() - 1) == '4' ||
				n.charAt(n.length() - 1) == '5' ||
				n.charAt(n.length() - 1) == '7' ||
				n.charAt(n.length() - 1) == '9') {
			System.out.println("hon");
		} else if (n.charAt(n.length() - 1) == '0' ||
				n.charAt(n.length() - 1) == '1' ||
				n.charAt(n.length() - 1) == '6' ||
				n.charAt(n.length() - 1) == '8') {
			System.out.println("pon");
		} else if (n.charAt(n.length() - 1) == '3'){
			System.out.println("bon");
		}
		sc.close();
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int n;

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



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope
    7 |    cin >> n;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<bits/stdc++.h>
a.cc:8:58: error: expected ')' before 'n'
    8 |         if(n%10 == 2 || n%10 ==4 || n%10 == 5 || n%10 ==7 n % 10 == 9){
      |           ~                                              ^~
      |                                                          )
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout <<"hon";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "bon";
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "pon";
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

int main(void){
  int l,i,a[2];
  while(cin>>l){
    a[i] = l;
    cout << a[i];
    i++;
  }
  if(a[2]==2,4,5,7,9){
    cout<<"hon"<<"\n";
  }
  else if
  
  if(a[2]==0,1,6,8){
    cout<<"pon"<<"\n";
  }
  
  if(a[2]==3){
    cout<<"bon"<<"\n";
  }
 
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '(' before 'if'
   16 |   if(a[2]==0,1,6,8){
      |   ^~
      |   (
Language: C++

#include <stdio.h>
main(){
  int n;scanf("%d",&n);
  switch(n%10){
    case 2:case 4:case 5:case 7:case:9:puts("hon");break;
    case 0:case 1:case 6:case 8:puts("pon");break;
    case 3:puts("bon");break;
  }
  return 0;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:37: error: expected primary-expression before ':' token
    5 |     case 2:case 4:case 5:case 7:case:9:puts("hon");break;
      |                                     ^
a.cc:5:39: error: expected ';' before ':' token
    5 |     case 2:case 4:case 5:case 7:case:9:puts("hon");break;
      |                                       ^
      |                                       ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long A,B,H,M;
  cin>>A>>B>>H>>M;
  double a,b,h,m;
  a=double(A);
  b=double(B);
  h=double(H);
  m=double(M);
  double f=(60*h+m)*0.5;//分針（度）
  double j=m*6;//時針（度）
  if(f>m)
    double s=(f-j)*0.0174533;//ラジアン
  else
    double s=(j-f)*0.0174533;
  
  double c=a*a+b*b-2*a*b*cos(s);
  double ans=sqrt(c);
  cout<<ans<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:30: error: 's' was not declared in this scope
   18 |   double c=a*a+b*b-2*a*b*cos(s);
      |                              ^