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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         int n; 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "bon";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << "pon";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout << "hon";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '%' token
    8 |         a=%10;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: lvalue required as left operand of assignment
    7 |   if (i=0 || i=1 || i=6 || i=8) {
      |                       ~~^~~~
Language: C++

#inclide <bits/stdc++.h>
using namespace std;
int main (){
  int i;
  cin >> i;
  i %= 10;
  if (i=0 || i=1 || i=6 || i=8) {
    cout << "pon" << endl;
  }
  else if (i=3) {
    cout << "bon" << endl;
  }
  else {
    cout << "hon" << endl;
  }  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> i;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide <bits/stdc++.h>
a.cc:7:25: error: lvalue required as left operand of assignment
    7 |   if (i=0 || i=1 || i=6 || i=8) {
      |                       ~~^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "pon" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "pon" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "bon" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "bon" << endl;
      |                      ^~~~
a.cc:11:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "hon" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << "hon" << endl;
      |                      ^~~~
a.cc:14:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int a, b, h, m;
  float angleH, angleM, diffAngle, distance;
  cin >> a >> b >> h>>m;
  angleH = h * 360 / 12;
  angleM = m * 6;
  diffAngle = abs(angleH - angleM);
  distance = pow(a * a + b*b - 2 * a * b * cos(diffAngle), 0.5);
  cout << distance;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: 'cos' was not declared in this scope
   13 |   distance = pow(a * a + b*b - 2 * a * b * cos(diffAngle), 0.5);
      |                                            ^~~
a.cc:13:14: error: 'pow' was not declared in this scope
   13 |   distance = pow(a * a + b*b - 2 * a * b * cos(diffAngle), 0.5);
      |              ^~~
Language: C++

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |     return;
      |     ^~~~~~
a.cc:13:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     return;
      |     ^~~~~~
a.cc:17:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |     return;
      |     ^~~~~~
a.cc:19:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |   return;
      |   ^~~~~~
Language: C++

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |     return;
      |     ^~~~~~
a.cc:13:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     return;
      |     ^~~~~~
a.cc:17:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |     return;
      |     ^~~~~~
a.cc:19:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |   return;
      |   ^~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"hon";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |     return;
      |     ^~~~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"pon";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |     return;
      |     ^~~~~~
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<"bon";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |     return;
      |     ^~~~~~
a.cc:18:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |   return;
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     cout<<'hon';
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     cout<<'pon';
      |           ^~~~~
a.cc:15:9: warning: multi-character character constant [-Wmultichar]
   15 |   cout<<'bon';
      |         ^~~~~
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<'hon';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |     return;
      |     ^~~~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<'pon';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |     return;
      |     ^~~~~~
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<'bon';
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |     return;
      |     ^~~~~~
a.cc:18:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |   return;
      |   ^~~~~~
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        int n;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        switch (n % 10)
        {
            case (2):
            case (4):
            case(5):
            case (7):
            case (9):
            System.out.println("hon");
            break;

            case (0):
            case (1):
            case (6):
            case (8):
                System.out.println("pon");
                break;
            case (3):
                System.out.println("bon");

        }

    }
}


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

package A;

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

public class A {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int input = Integer.valueOf(line);
        int a = input % 10;
        String ans = "";
        switch (a) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                ans = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                ans = "pon";
                break;
            case 3:
                ans = "bon";
                break;
        }
        System.out.println(ans);
    }
}

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

#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
#include <sstream>
#define IOS ios_base::sync_with_stdio(0); cin.tie(0);
#define mod 1000000007
#define eps 1e-6
#define ll long long
#define INF 0x3f3f3f3f
#define MEM(x,y) memset(x,y,sizeof(x))
#define pb push_back
#define mk make_pair
#define pi pair<int, int>
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
#define per(i,a,b) for(int i=a;i>=(b);--i)
using namespace std;
int dt[][2]= {{1,0},{-1,0},{0,1},{0,-1},{0,0}};
//typedef pair<int, int> P;
//priority_queue<int, vector<int>, greater<int> > q;
int main()
{
   //IOS;
   int n;
   scanf("%d",&n);
   int p=n%10;
   if(p==3) printf("bon");
   if(p == 0||p == 1||p == 6||p == 8) printf("pon");
   else printf("hon");
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
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("pon");
    }
    else if (y = 3) {
        printf("bon");
    }
    else {
        printf("hon");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d" & x);
      |           ~~~~ ^
      |           |
      |           char *
main.c:7:35: error: lvalue required as left operand of assignment
    7 |     if (y = 0|| y = 1|| y = 6|| y = 7) {
      |                                   ^
main.c:16:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   16 |     return 0;
      |            ^
main.c:3:6: note: declared here
    3 | void main() {
      |      ^~~~
Language: C++

#define pb push_back
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N 
 
int main(){
	FIO;
	int n; cin >> n;
    n %= 10;
    if(n== 2 || n==4 || n==5 || n==7) 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:2:13: error: 'ios_base' has not been declared
    2 | #define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
      |             ^~~~~~~~
a.cc:6:9: note: in expansion of macro 'FIO'
    6 |         FIO;
      |         ^~~
a.cc:2:47: error: 'cin' was not declared in this scope
    2 | #define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
      |                                               ^~~
a.cc:6:9: note: in expansion of macro 'FIO'
    6 |         FIO;
      |         ^~~
a.cc:2:55: error: 'NULL' was not declared in this scope
    2 | #define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
      |                                                       ^~~~
a.cc:6:9: note: in expansion of macro 'FIO'
    6 |         FIO;
      |         ^~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | #define pb push_back
a.cc:9:39: error: 'cout' was not declared in this scope
    9 |     if(n== 2 || n==4 || n==5 || n==7) cout << "hon" << endl;
      |                                       ^~~~
a.cc:9:56: error: 'endl' was not declared in this scope
    9 |     if(n== 2 || n==4 || n==5 || n==7) cout << "hon" << endl;
      |                                                        ^~~~
a.cc:10:43: error: 'cout' was not declared in this scope
   10 |     else if(n==0 || n==1 || n==6 || n==8) cout << "pon" << endl;
      |                                           ^~~~
a.cc:10:60: error: 'endl' was not declared in this scope
   10 |     else if(n==0 || n==1 || n==6 || n==8) cout << "pon" << endl;
      |                                                            ^~~~
a.cc:11:10: error: 'cout' was not declared in this scope
   11 |     else cout << "bon" << endl;
      |          ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |     else cout << "bon" << endl;
      |                           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N 

int main(){
	FIO;
	int n; cin >> n;
    n %= 10;
    if(n== 2 || n==4 || n==5 || n==7) 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:13:64: error: expected ';' before 'else'
   13 |     else if(n==0 || n==1 || n==6 || n==8) cout << "pon" << endl
      |                                                                ^
      |                                                                ;
   14 |     else cout << "bon" << endl;
      |     ~~~~
Language: C

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

int main(int argc, char const *argv[]) {
  int n, ans;
  cin >> n;
  if(n>9){
    ans = n/10;
  }
  else{
    ans=n;
  }
  if(ans==2 || ans==4 || ans==5 || ans==7 || ans==9){
    cout << "hon" << endl;
  }
  else if(ans==0 || ans==1 || ans==6 || ans==8){
    cout << "pon" << endl;
  }
  else{
    cout << "bon" << 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++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'cin' was not declared in this scope
    3 |   int n,k;cin>>n;k=n%10;
      |           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:11: error: 'cout' was not declared in this scope
    4 |   if(k==3)cout<<"bon";
      |           ^~~~
a.cc:4:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:34: error: 'cout' was not declared in this scope
    5 |   else if(k==0||k==1||k==6||k==8)cout<<"pon";
      |                                  ^~~~
a.cc:5:34: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout<<"hon";
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef vector<pii> vii;
#define F first
#define S second
#define sz(x) (int)x.size()
#define db(x) cerr << #x << ": " << x << "\n";

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

    string N;
    cin >> N;
    int X = N.size() - 1;
    if(N[R] == '2' || N[R] == '4' || N[R] == '5' || N[R] == '7' || N[R] == '9')
        cout << "bon";
    else if(N[R] == 'R' || N[R] == '1' || N[R] == '6' || N[R] == '8')
        cout << "pon";
    else 
        cout << "bon";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: 'R' was not declared in this scope
   20 |     if(N[R] == '2' || N[R] == '4' || N[R] == '5' || N[R] == '7' || N[R] == '9')
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
#define repa(i,a,n) for(int i=(a);i<(n);i++)
#define rrep(i,n) for(int i=n;i>=0;i--)
#define rrepa(i,a,n) for(int i=n;i>=(a);i--)
#define all(a) (a).begin(),(a).end()
#define MOD 1000000007
#define cmax(a,b) a=max(a,b)
#define cmin(a,b) a=min(a,b)
#define vc vector

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<int,int> pi;
typedef pair<ll,ll> pl;

int main(){

    int n;
    cin>>n;
    n%=%10;

    string ans;
    if(n==3)ans="bon";
    else if(n==0 || n==1 || n==6 || n==8)ans="pon";
    else ans="hon";

    cout<<ans<<"\n";

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: expected primary-expression before '%' token
   29 |     n%=%10;
      |        ^
Language: Java

import java.util.*;
import java.io.*;
import java.nio.file.Files;
import java.nio.charset.StandardCharsets;
//System.out.println();
public class run{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args) {
      // Use the Scanner class
      
      File file = new File("./input.txt");

      FileWriter writer = null;
      BufferedReader br = null;
      BufferedWriter bw = null;
      Scanner sc = null;
      run obj = new run();
      try{
            writer = new FileWriter("./output.txt");
            //br = Files.newBufferedReader(file.toPath());
            bw = new BufferedWriter(writer);
            sc = new Scanner(file);
            while(sc.hasNextLine()){
               int s = sc.nextInt();
               bw.write(obj.op(s));
               bw.newLine();
            }
            bw.close();
        }
        catch(IOException e){
            System.out.println("Wrong!");
        }


      
    
      /*
      int n      = sc.nextInt();        // read input as integer
      long k     = sc.nextLong();       // read input as long
      double d   = sc.nextDouble();     // read input as double
      String str = sc.next();           // read input as String
      String s   = sc.nextLine();       // read whole line as String
      */
      //String s   = sc.nextLine();       // read whole line as String
      //PrintStream ps = new PrintStream("/output.txt",s);
    }
    //System.out.println(s);
}

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

String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String op(int n){
^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<bits/stdc++.h>
#define int long long int
#define boost ios_base::sync_with_stdio(false)
#define rep(i,a,b) for(int i=a;i<b;i++)
#define repp(i,a,b) for(int i=a;i<=b;i++)
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
//#define test int t;cin>>t; while(t--)
#define vi vector<int> 
#define mi map<int,int> 
#define rrep(i,a,b) for(int i=a;i>=b;i--)
//typedef pair <int,int> pii
//typedef vector<pii> vpi
#define build(arr,n) { int arr[n+1]; repp(i,1,n)cin>>arr[i]; }
#define buildv(v,n) { vi v; repp(i,1,n){int x; cin>>x; v.pb(x);} } 
#define in_edges(m) repp(i,1,m){int a,b; cin>>a>>b; adj[a].pb(b); adj[b].pb(a);}
#define mod 1000000007
#define pi 3.1415926
#define mx(arr) {*max_element(arr+1,arr+n+1);} 
using namespace std;
//vector<int> adj[100003];
//int vis[100003]={0};
//int dp[n+1]={0};
//vector<int> leaf;
signed main()
{
    int t; cin>>t; 
    string ans;
    int n=t%10;
    if(n==2||n==4||n==5||n==7||n==9)cout<<"hon";
    else if(n==3)cout<<"bon"<<endl;
    else
    cout<<"pon"<<endl;
        
    }
    
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected '}' at end of input
   13 |   else cout<<"bon"<<endl;
      |                          ^
a.cc:5:14: note: to match this '{'
    5 | signed main(){
      |              ^
Language: C++

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

void Solve(){
    int a,b,c;
    cin>>a;
    int r = a%10;
    if(r==2 or r==4 or r==5 or r==7 or r==9) puts("hon");
    else if(r==0 or r==1 or r==6 or r==8) puts("pon");
    else if(r==3) puts("bon");
}

int main()
{
           solve();
    return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'solve' was not declared in this scope; did you mean 'Solve'?
   15 |            solve();
      |            ^~~~~
      |            Solve
Language: C++

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

void Solve(){
    int a,b,c;
    cin>>a;
    int r = a%10;
    if(r==2 or r==4 or r==5 or r==7 or r==9) puts("hon");
    else if(r==0 or r==1 or r==6 or r==8) puts("pon");
    else if(r==3) puts("bon");
}

int main()
{
    //freopen("in.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    int tc; scanf("%d", &tc);
	while(tc--) {
           solve();
	}
    return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'solve' was not declared in this scope; did you mean 'Solve'?
   19 |            solve();
      |            ^~~~~
      |            Solve
Language: C++

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

const double PI = acos(-1);

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

  double th = (double(h * 60 + m) / 720 * 2 * PI;
  double tm = double(m) / 60 * 2 * PI;
  double xh = a * sin(th), yh = a * cos(th);
  double xm = b * sin(th), ym = b * cos(th);
  double dx = xh - xm, dy = yh - ym;
  double ans = sqrt(dx * dx + dy * dy);
  printf("%.10f\n", ans);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: expected ')' before ';' token
   11 |   double th = (double(h * 60 + m) / 720 * 2 * PI;
      |               ~                                 ^
      |                                                 )
Language: Java

package test;



public class App 
{
    public static void main(String[] args )
    {
        Scanner scan = new Scanner(System.in);
    
        int A = scan.nextInt();
        int B = scan.nextInt();
        int H = scan.nextInt();
        int M = scan.nextInt();

        Double Zc = 0.0;

        Double Mc = 0.0;

       /* Double Hc = 0.0;

            Mc = M * 6.0;
        
            Hc = H * 30.0;
            Hc += (M/2);

            Zc = Math.abs(Hc - Mc);

            if(Math.abs(Hc - Mc)>180)Zc = 360 - Zc;

        /*
            System.out.println(Zc+"角度");
        
            System.out.println(Math.toRadians(Zc)+"ラジアン");

            System.out.println((int)Math.cos(Math.toRadians(Zc))+"コサインラジアン");

        */

        double ans_z = (Double) Math.sqrt(B * B + A * A - (2 * B * A)*Math.cos(Zc * Math.PI/180));

        System.out.println(String.format("%.10f", ans_z));
      */
    }
}


Compiler output:
Main.java:43: error: illegal start of expression
      */
      ^
Main.java:43: error: illegal start of expression
      */
       ^
Main.java:44: error: illegal start of expression
    }
    ^
3 errors
Language: C++

// atcoder.cpp.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include <iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int onlynumber(int s, int e);
int main()
{
	char S[100];
	int K;
    K = onlynumber(1, 100);
    again:
    cin >> S;

    for (int c = 0; c < 100; c++) {
        if ((S[c]!='\0')&&(S[c] <'a'|| S[c]>'b')) {
            cout << "no";
            goto again;
        }
    }
    int l = strlen(S);
    if (l >= K) {
        cout << S;
    }
    else {
        S[K] = '.';
        S[K+1] = '.';
        S[K + 2] = '.';

        for (int d = 0; d < K; d++) {
            cout << S[d];
        }
        cout << S[K] << S[K + 1] << S[K + 2];
    }

}



int  onlynumber(int s, int e) {
    int d;
    char* enpo;
    char str[100];
    do {
        scanf_s("%s", &str,5);
        d = strtol(str, &enpo, 10);
        if (*enpo == '\0' && d >= s && d <= e) {
            break;
        }
    } while ((*enpo != '\0') || (d < s || d > e));
    return d;
}

// プログラムの実行: Ctrl + F5 または [デバッグ] > [デバッグなしで開始] メニュー
// プログラムのデバッグ: F5 または [デバッグ] > [デバッグの開始] メニュー

// 作業を開始するためのヒント: 
//    1. ソリューション エクスプローラー ウィンドウを使用してファイルを追加/管理します 
//   2. チーム エクスプローラー ウィンドウを使用してソース管理に接続します
//   3. 出力ウィンドウを使用して、ビルド出力とその他のメッセージを表示します
//   4. エラー一覧ウィンドウを使用してエラーを表示します
//   5. [プロジェクト] > [新しい項目の追加] と移動して新しいコード ファイルを作成するか、[プロジェクト] > [既存の項目の追加] と移動して既存のコード ファイルをプロジェクトに追加します
//   6. 後ほどこのプロジェクトを再び開く場合、[ファイル] > [開く] > [プロジェクト] と移動して .sln ファイルを選択します


Compiler output:
a.cc: In function 'int onlynumber(int, int)':
a.cc:47:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   47 |         scanf_s("%s", &str,5);
      |         ^~~~~~~
      |         scanf
Language: C++

//  RAKSHIT KADAM
//ALWAYS USE &IT FOR ITERATING USING AUTO ...
//USE COUNT(STARTING ADDRESS, ENDING ADRESS ,VALUE) FOR FINDING THE COUNT IN THE RESPECTIVE DATA STRUCTURE
//NOTE THAT MEMSET CANNOT ASSIGN A VALUE OF 10^18 IT WILL ASSIGN A LOWER VALUE THAN THAT!!!
 #include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
// #define ordered_set tree< int ,  null_type ,  less<int> ,  rb_tree_tag ,  tree_order_statistics_node_update>
#warning !!!check the size of arrayss!!!

// NUMERIC DEFINITIONS :
    #define INF 2000000000000000005
    #define MOD  1000000007
    #define newMOD  998244353
    #define MAX 300006
    #define pi 3.1415926535897932384626433832795

 #define ll long long
 #define int long long
 #define P(gg) for(auto rax:gg){cout<<rax<<" ";}cout<<endl;
 #define Need_for_speed(activated) ios_base :: sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
 #define satisfy ll t; cin>> t; while(t--)
 #define inp(n) int n;cin >> n
 #define mp make_pair
 #define pb push_back
 #define endl "\n"
 #define x first
 #define y second
 #define fore(i,a,b) for(ll i=a;i<b;i++)
 #define forci(i,n) for(ll i=0;i<n;i++)
 #define vi vector<ll>
 #define Endl endl
 #define lb lower_bound
 #define ub upper_bound
#define pii pair<ll,ll>
#define MAXN 402
 #define input freopen("input.txt", "r", stdin),freopen("output.txt", "w", stdout)
 #define time        cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
using namespace std;

ll gcd(ll a, ll b){if (b == 0)return a;return gcd(b, a % b);}
int power(int x, unsigned int y, unsigned int m){ if (y == 0) return 1;int p = power(x, y/2, m) % m;  p = (p * p) % m;                                                  return (y%2 == 0)? p : (x * p) % m;}
ll modInverse(int a, int m){int g = gcd(a, m); { return power(a, m-2, m);}}

void solve()
{
    ll n;cin>>n;
    if(n==4 ||n==2 ||n==5 ||n==7||n==9)
        cout<<"hon"<<endl;
    else if(i==3)cout<<"bon"<<Endl;
    else cout<<"pon"<<endl;
}

signed main()
{
 
    Need_for_speed(activated);
//satisfy
//    {
//   solve();
//   }
   
    solve();
    return 0;
}


Compiler output:
a.cc:10:2: warning: #warning !!!check the size of arrayss!!! [-Wcpp]
   10 | #warning !!!check the size of arrayss!!!
      |  ^~~~~~~
a.cc: In function 'void solve()':
a.cc:51:13: error: 'i' was not declared in this scope
   51 |     else if(i==3)cout<<"bon"<<Endl;
      |             ^
Language: C++

//prepared by dumb
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define llu unsigned long long int
#define scll(x) scanf("%lld",&x)
#define scld(x) scanf("%lf",&x)
#define scull(x) scanf("%llu",&x)
#define scch(x) scanf(" %c",&x)
#define pb(x) push_back(x)
#define pf(x) push_front(x)
#define ppb() pop_back()
#define ppf() pop_front()
#define Pi acos(-1.0)
#define INF 1e18
#define ff first
#define ss second
#define mpr make_pair
ll  _xor(ll a,ll b){return a^b;}
ll _and(ll a,ll b){return a&b;}
ll _or(ll a,ll b){return a|b;}
ll _not(ll a){ return ~a;}
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int main()
{
           #ifndef ONLINE_JUDGE 
         freopen("input.txt","r",stdin);
         freopen("output.txt","w",stdout);
         #endif
    ll b,c,d,e,f,g,h,i,j,k,l1,l2,l3,t,a,m,n,p,q,r,s,u,v,x,y,c1,c2,c3;

        scll(t);
        string str;
              cin>>str;
              if(str[str.length()-1]=='2'||str[str.length()-1]=='4'||str[str.length()-1]=='5'||str[str.length()-1]=='7'||str[str.length()-1]=='9')
              	cout<<"hon"
              else if(str[str.length()-1]=='0'||str[str.length()-1]=='1'||str[str.length()-1]=='6'||str[str.length()-1]=='8')
              	cout<<"pon";
              else
              	cout<<"bon";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:28: error: expected ';' before 'else'
   37 |                 cout<<"hon"
      |                            ^
      |                            ;
   38 |               else if(str[str.length()-1]=='0'||str[str.length()-1]=='1'||str[str.length()-1]=='6'||str[str.length()-1]=='8')
      |               ~~~~
Language: C

#include <iostream>
usindg namespace std;
int main()
{
    int N;
    cin >> N;
    switch(N % 10)
    {
        case 0:
            cout << "pon";
            break;
        case 1:
            cout << "pon";
            break;
        case 2:
            cout << "hon";
            break;
        case 3:
            cout << "bon";
            break;
        case 4:
            cout << "hon";
            break;
        case 5:
            cout << "hon";
            break;
        case 6:
            cout << "pon";
            break;
        case 7:
            cout << "hon";
            break;
        case 8:
            cout << "pon";
            break;
        case 9:
            cout << "hon";
            break;
        default:
            cout << "hon";
            break;
    }
    reaturn 0;
}

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

#include<iostream>
usindg namespace std;
int main()
{
    int N;
    cin >> N;
    switch(N % 10)
    {
        case 0:
            cout << "pon";
            break;
        case 1:
            cout << "pon";
            break;
        case 2:
            cout << "hon";
            break;
        case 3:
            cout << "bon";
            break;
        case 4:
            cout << "hon";
            break;
        case 5:
            cout << "hon";
            break;
        case 6:
            cout << "pon";
            break;
        case 7:
            cout << "hon";
            break;
        case 8:
            cout << "pon";
            break;
        case 9:
            cout << "hon";
            break;
        default:
            cout << "hon";
            break;
    }
    reaturn 0;
}

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

class Main{
  public static void main(String[] args){
    
   int m = N % 10;
    
    switch(m){
      case 2:
     case 4:
     case 5:
     case 7:
     case 9:
    			System.out.println("hon");
    			break;
     case 0:
     case 1:
     case 6:
     case 8:
    		System.out.println("pon");
    		break;
     case 3:
     		System.out.println("bon");
    			break;
    }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
   int m = N % 10;
           ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

class Main{
  public static void main(String[] args){
    
    int N = integer.parseInt(args[0]);
    
    switch(N % 10){
      case 2:
     case 4:
     case 5:
     case 7:
     case 9:
    			System.out.println("hon");
    			break;
     case 0:
     case 1:
     case 6:
     case 8:
    		System.out.println("pon");
    		break;
     case 3:
     		System.out.println("bon");
    			break;
    }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    int N = integer.parseInt(args[0]);
            ^
  symbol:   variable integer
  location: class Main
1 error
Language: C

#include<stdio.h>
#include<math.h>
#define PI3.14159265358979323846264338327950L

int main(void) {
  int a,b,h,m;
  scanf("%d%d%d%d", &a, &b, &h, &m);
  
  long double rad = PI* 2 * (
  (long double)h/ 12.0 + ((long double)m/ 60.0) / 12.0 - (long double)m/ 60.0);
  long double rsq= (long double)(a*a+b*b) - (long double)(2 *a*b) *cosl(rad);
  
  printf("%20.20Lf\n",sqrtl(rsq));
  
  return 0;
}

Compiler output:
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define PI3.14159265358979323846264338327950L
      |         ^~~
main.c: In function 'main':
main.c:9:21: error: 'PI' undeclared (first use in this function); did you mean 'PI3'?
    9 |   long double rad = PI* 2 * (
      |                     ^~
      |                     PI3
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

class Main{
  public static void main(String[] args){
    
    switch(N % 10){
      case 2:
     case 4:
     case 5:
     case 7:
     case 9:
    			System.out.println("hon");
    			break;
     case 0:
     case 1:
     case 6:
     case 8:
    		System.out.println("pon");
    		break;
     case 3:
     		System.out.println("bon");
    			break;
    }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    switch(N % 10){
           ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

class Main{
  public static void main(String[] args){
    
    switch(N % 10)
      case 2:
     case 4:
     case 5:
     case 7:
     case 9:
    			System.out.println("hon");
    			break;
     case 0:
     case 1:
     case 6:
     case 8:
    		System.out.println("pon");
    		break;
     case 3:
     		System.out.println("bon");
    			break;
  }
}
    
    
 

Compiler output:
Main.java:4: error: '{' expected
    switch(N % 10)
                  ^
Main.java:22: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include<stdio.h>
#include<math.h>
#define PI3.14159265358979323846264338327950L

int main(void) {
  int a,b,h,m;
  scanf("%d%d%d%d", &a, &b, &h, &m);
  
  long double rad = PI* 2 * (
  (long double)h/ 12.0 + ((long double)m/ 60.0) / 12.0 - (longdouble)m/ 60.0);
  long double rsq= (long double)(a*a+b*b) - (long double)(2 *a*b) *cosl(rad);
  
  printf("%20.20Lf\n",sqrtl(rsq));
  
  return 0;
}

Compiler output:
a.cc:3:9: warning: ISO C++11 requires whitespace after the macro name
    3 | #define PI3.14159265358979323846264338327950L
      |         ^~~
a.cc: In function 'int main()':
a.cc:9:21: error: 'PI' was not declared in this scope; did you mean 'PI3'?
    9 |   long double rad = PI* 2 * (
      |                     ^~
      |                     PI3
a.cc:10:59: error: 'longdouble' was not declared in this scope; did you mean 'double'?
   10 |   (long double)h/ 12.0 + ((long double)m/ 60.0) / 12.0 - (longdouble)m/ 60.0);
      |                                                           ^~~~~~~~~~
      |                                                           double
a.cc:10:70: error: expected ')' before 'm'
   10 |   (long double)h/ 12.0 + ((long double)m/ 60.0) / 12.0 - (longdouble)m/ 60.0);
      |                                                                      ^
      |                                                                      )
a.cc:9:29: note: to match this '('
    9 |   long double rad = PI* 2 * (
      |                             ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int ABC_168_A()
{

    string n;
    cin >> n;
    
    reverse(n.begin(), n.end());

    if ((n[0] == '2') || (n[0] == '4') || (n[0] == '5') || (n[0] == '7') || (n[0] == '9'))cout << "hon";
    else if ((n[0] == '0') || (n[0] == '1') || (n[0] == '6') || (n[0] == '8'))cout << "pon";
    else cout << "bon";

    return 0;

}

int main()
{
    ABC_168_A();

    return 0;
}

Compiler output:
a.cc: In function 'int ABC_168_A()':
a.cc:12:5: error: 'reverse' was not declared in this scope
   12 |     reverse(n.begin(), n.end());
      |     ^~~~~~~
Language: Java

class Main{
  public static void main(String[] args){
    
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
      System.out.println("hon");
    } else if (N == 0 || N == 1 || N == 6 || N == 8){
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  }
}
 

Compiler output:
Main.java:4: error: cannot find symbol
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
        ^
  symbol:   variable N
  location: class Main
Main.java:4: error: cannot find symbol
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
                  ^
  symbol:   variable N
  location: class Main
Main.java:4: error: cannot find symbol
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
                            ^
  symbol:   variable N
  location: class Main
Main.java:4: error: cannot find symbol
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
                                      ^
  symbol:   variable N
  location: class Main
Main.java:4: error: cannot find symbol
    if( N == 2 || N == 4 || N == 5 || N == 7|| N == 9){
                                               ^
  symbol:   variable N
  location: class Main
Main.java:6: error: cannot find symbol
    } else if (N == 0 || N == 1 || N == 6 || N == 8){
               ^
  symbol:   variable N
  location: class Main
Main.java:6: error: cannot find symbol
    } else if (N == 0 || N == 1 || N == 6 || N == 8){
                         ^
  symbol:   variable N
  location: class Main
Main.java:6: error: cannot find symbol
    } else if (N == 0 || N == 1 || N == 6 || N == 8){
                                   ^
  symbol:   variable N
  location: class Main
Main.java:6: error: cannot find symbol
    } else if (N == 0 || N == 1 || N == 6 || N == 8){
                                             ^
  symbol:   variable N
  location: class Main
9 errors
Language: Java

import java.util.*;


public class App 
{
    public static void main(String[] args )
    {
        Scanner scan = new Scanner(System.in);
    
        int A = scan.nextInt();
        int B = scan.nextInt();
        int H = scan.nextInt();
        int M = scan.nextInt();
        Double Zc = 0.0;

        Double Mc = 0.0;

        Double Hc = 0.0;

            Mc = M * 6.0;
        
            Hc = H * 30.0;
            Hc += (M/2);

            Zc = Math.abs(Hc - Mc);

            if(Math.abs(Hc - Mc)>180)Zc = 360 - Zc;
        /*
            System.out.println(Zc+"角度");
        
            System.out.println(Math.toRadians(Zc)+"ラジアン");

            System.out.println((int)Math.cos(Math.toRadians(Zc))+"コサインラジアン");
        */
        double ans_z = (Double) Math.sqrt(B * B + A * A - (2 * B * A)*Math.cos(Math.toRadians(Zc)));

        System.out.println(ans_z);

Compiler output:
Main.java:37: error: reached end of file while parsing
        System.out.println(ans_z);
                                  ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define ss second
#define ff first
#define pb push_back
int main(){
    ios_base::sync_with_stdio(0);
    string x;
    cin>>x;
    if(x[x.size-1]=='3'){
        cout<<"bon";
        return 0;
    }
    else if(x[x.size()-1]=='0'||x[x.size()-1]=='1'||x[x.size()-1]=='6'||x[x.size()-1]=='8'){
        cout<<"pon";
    }
    else{
        cout<<"hon";
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |     if(x[x.size-1]=='3'){
      |          ~~^~~~
      |                ()
Language: C++

n = input()
p = [0, 1, 6, 8]
h = [2, 4, 5, 7, 9]
b = [3]
if int(n[-1]) in p:
	print("pon")
elif int(n[-1]) in h:
	print("hon")
else:
	print("bon")

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

include<bits/stdc++.h>
using namespace std;
int main()
{ int n,t;
cin>>n;
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;
return 0;


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>n;
      | ^~~
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"hon"<<endl;
      | ^~~~
a.cc:8:14: error: 'endl' was not declared in this scope
    8 | cout<<"hon"<<endl;
      |              ^~~~
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<< "pon"<<endl;
      | ^~~~
a.cc:10:15: error: 'endl' was not declared in this scope
   10 | cout<< "pon"<<endl;
      |               ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<"bon"<<endl;
      | ^~~~
a.cc:12:14: error: 'endl' was not declared in this scope
   12 | cout<<"bon"<<endl;
      |              ^~~~
a.cc:13:10: error: expected '}' at end of input
   13 | return 0;
      |          ^
a.cc:4:1: note: to match this '{'
    4 | { int n,t;
      | ^