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

public class Main {

    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
		int k = reader.nextInt();
      	System.out.printf("%d\n",(k/2)*((k+1/2)));
    }

}


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

#include <iostream>
int main {
  int a;
  std::cin >> a;
  std::cout << (a / 2) * ((a + 1) / 2) << std::endl;
}


Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main {
      |     ^~~~
a.cc:3:3: error: expected primary-expression before 'int'
    3 |   int a;
      |   ^~~
a.cc:3:3: error: expected '}' before 'int'
a.cc:2:10: note: to match this '{'
    2 | int main {
      |          ^
a.cc:4:8: error: 'cin' in namespace 'std' does not name a type
    4 |   std::cin >> a;
      |        ^~~
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:5:8: error: 'cout' in namespace 'std' does not name a type
    5 |   std::cout << (a / 2) * ((a + 1) / 2) << std::endl;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

#include <iostream>
int main {
  int a;
  std::cin >> a;
  std::cout << a / 2 * (a + 1) / 2 << std::endl;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main {
      |     ^~~~
a.cc:3:3: error: expected primary-expression before 'int'
    3 |   int a;
      |   ^~~
a.cc:3:3: error: expected '}' before 'int'
a.cc:2:10: note: to match this '{'
    2 | int main {
      |          ^
a.cc:4:8: error: 'cin' in namespace 'std' does not name a type
    4 |   std::cin >> a;
      |        ^~~
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:5:8: error: 'cout' in namespace 'std' does not name a type
    5 |   std::cout << a / 2 * (a + 1) / 2 << std::endl;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <limits>
#include <fstream>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;
int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  cout << (n/2*(n/2+(n%2)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   30 |   cout << (n/2*(n/2+(n%2)) << endl;
      |            ~~~~~~~~~~~~~~~~^~~~~~~
a.cc:30:35: error: expected ')' before ';' token
   30 |   cout << (n/2*(n/2+(n%2)) << endl;
      |           ~                       ^
      |                                   )
Language: C++

#include <cstdio>

int main(){
  int K;
  std::cin >> K;
  int ans = (K / 2) * ((K + 1) / 2);
  std::cout << ans << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin >> K;
      |        ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:7:8: error: 'cout' is not a member of 'std'
    7 |   std::cout << ans << std::endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:28: error: 'endl' is not a member of 'std'
    7 |   std::cout << ans << std::endl;
      |                            ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
	long  N, K,ans,num;
	cin >> N >> K;
	if (K == 2) {
		long even = N / 2;
		long odd = N - even;
		long evengroup = even*even*even;
		long oddgroup = odd*odd*odd;
		ans = evengroup + oddgroup;
	}
	else if(K % 2 != 0){
		num = N / K;
		ans = num*num*num;
	}
	else if (K % 2 == 0) {
		long K2 = K / 2;
		num = N / K;
		long num2 = N / K2 - num; //○.5*K の形
		ans = num*num*num + num2*num2*num2;
	}
 
 
	cout << ans;
 

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

//A
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdlib>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <math.h>
#include <random>
#include <time.h>
#include <cassert>
using namespace std;
#define LL long long
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define LL_MIN -9223372036854775808
#define LL_MAX 9223372036854775807
#define segment_size 65536
#define ROOP() while(true)
int main(){
    
    int K;
    cin >> K;
    cout << K/2 * ((K+1)/2) << endl;
    
    return 0;
}

K = 20
10 * 10
K = 21
10 * 11

Compiler output:
a.cc:38:1: error: 'K' does not name a type
   38 | K = 20
      | ^
Language: C++

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

int main() {
int n,k;
cin >> n >> k;  
int a;
int b[k];
int c;

int e;
for(int i = 1; i < n+1; i++){
if(i%k == k/2){
  c+=1;
}
cout << c*c*c << endl;
}


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

def get(n):
  if(n%2==0):
    return ((n//2)**2)
  else
  return (((n//2)**2)+(n-1)/2)
n=int(input())
z=get(n)
print (z)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def get(n):
      | ^~~
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K; i += 2){
        for(j = 0; j <= K; j += 1){
            (i,j);
        }
    }
  
    for(i = 0; i <= K; ++i)
        if(i % 2 = 0, j % 2 = 1, (i,j)){
           a == a + 1;
        }
    }
    
    printf("%d\n",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:17:18: error: lvalue required as left operand of assignment
   17 |         if(i % 2 = 0, j % 2 = 1, (i,j)){
      |                  ^
main.c:17:29: error: lvalue required as left operand of assignment
   17 |         if(i % 2 = 0, j % 2 = 1, (i,j)){
      |                             ^
main.c: At top level:
main.c:22:12: error: expected declaration specifiers or '...' before string constant
   22 |     printf("%d\n",a);
      |            ^~~~~~
main.c:22:19: error: unknown type name 'a'
   22 |     printf("%d\n",a);
      |                   ^
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C++

def get(n):
  if(n%2==0):
    return ((n/2)**2)
  else
  return (((n/2)**2)+(n-1)/2)
n=int(input())
z=get(n)
print (z)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def get(n):
      | ^~~
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K; i += 2){
        for(j = 0; j <= K; j += 1){
            printf("%d\n", (i,j));
        }
    }
  
    for(i = 0; i <= K; ++i)
        if(i % 2 == 0, j % 2 == 1){
           a == a + 1;
        }
    }
    
    printf("%d\n",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c:22:12: error: expected declaration specifiers or '...' before string constant
   22 |     printf("%d\n",a);
      |            ^~~~~~
main.c:22:19: error: unknown type name 'a'
   22 |     printf("%d\n",a);
      |                   ^
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
import java.util.StringTokenizer;

class Main{

	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	static int[] f = new int[1000001];
	static long ans = 0;

	public static void main(String[] args) {
		FastReader sc = new FastReader();
		int n = sc.nextInt();
		System.out.println(n%2==0?(n/2*n/2):((n/2)*(n/2+1)));
	}

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

#include<vector>
#include<math.h>
#include<queue>
#include<set>
#include<map>
#include<list>

using namespace std;

int main() {
	int k;
	cin >> k;
	int g = k / 2;
	int h = (k + 1) / 2;

	cout << g*h << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> k;
      |         ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include<list>
  +++ |+#include <iostream>
    7 | 
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << g*h << endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |         cout << g*h << endl;
      |                        ^~~~
a.cc:7:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    6 | #include<list>
  +++ |+#include <ostream>
    7 |
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K; i += 2; j = 0; j <= K; j += 1){
        a == a + 1;
    }
    
    printf("%d\n",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:10:30: error: expected ')' before ';' token
   10 |     for(i = 0; i <= K; i += 2; j = 0; j <= K; j += 1){
      |        ~                     ^
      |                              )
Language: C++

#include <instream>
using namespace std;

int main(){
 int k;
cin >> k;

if (k%2 == 0){
cout << k*k/4 << endl;
}else{
cout << (k+1)/2*(k/2) << endl;
}
}

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

#include<bits/stdc++.h>
int main(){
    int k;
    counta=0;
    countb=0;

    cin>>k;
    for(int i=1;i<=k;i++){
        if(i%2==0)counta++;
        else countb++;
    }
    cout<<counta*countb<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'counta' was not declared in this scope
    4 |     counta=0;
      |     ^~~~~~
a.cc:5:5: error: 'countb' was not declared in this scope
    5 |     countb=0;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>k;
      |     ^~~
      |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<counta*countb<<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:12:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<counta*countb<<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>
int main{
    int k;
    counta=0;
    countb=0;

    cin>>k;
    for(int i=1;i<=k;i++){
        if(i%2==0)counta++;
        else countb++;
    }
    cout<<counta*countb<<endl;
}

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

#include<stdio.h>
 
int main(){
  int i;
  scanf("%d", &i);
  printf("%d\n",(i/2)*((i+1)/2);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:32: error: expected ')' before ';' token
    6 |   printf("%d\n",(i/2)*((i+1)/2);
      |         ~                      ^
      |                                )
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K, ++i){
        if(i % 2 == 1){
           for(j = 0; j <= K; ++j){
               if(j % 2 == 0){
                  a == a + 1;
               }
           }
        }
    }
    
    printf("%d\n",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected ';' before ')' token
   10 |     for(i = 0; i <= K, ++i){
      |                           ^
      |                           ;
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K, ++i){
        if(i % 2 == 1){
           for(j = 0; j <= K; ++j){
               if(j % 2 == 0){
                  a == a + 1;
               }
           }
        }
    }
    
    printf("%d\",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected ';' before ')' token
   10 |     for(i = 0; i <= K, ++i){
      |                           ^
      |                           ;
main.c:20:12: warning: missing terminating " character
   20 |     printf("%d\",a);
      |            ^
main.c:20:12: error: missing terminating " character
   20 |     printf("%d\",a);
      |            ^~~~~~~~~
main.c:22:5: error: expected expression before 'return'
   22 |     return 0;
      |     ^~~~~~
main.c:22:14: error: expected ';' before '}' token
   22 |     return 0;
      |              ^
      |              ;
   23 | }
      | ~
Language: C

main()
{int k,i,count=0;
 do
 { scanf("%d",&k);
 }while(k<2||k>100)
 for(i=1;i<=k;i++)
     if(i%2==0)
        count++;
  printf("%d",count*(k-count));
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main()
      | ^~~~
main.c: In function 'main':
main.c:4:4: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |  { scanf("%d",&k);
      |    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main()
main.c:4:4: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  { scanf("%d",&k);
      |    ^~~~~
main.c:4:4: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: expected ';' before 'for'
    5 |  }while(k<2||k>100)
      |                    ^
      |                    ;
    6 |  for(i=1;i<=k;i++)
      |  ~~~                
main.c:6:18: error: expected ';' before ')' token
    6 |  for(i=1;i<=k;i++)
      |                  ^
      |                  ;
main.c:6:18: error: expected statement before ')' token
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%d",count*(k-count));
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K, ++i){
        if(i % 2 == 1);
           for(j = 0; j <= K; ++j){
               if(j % 2 == 0);
                  a == a + 1;
           }
    }
    
    printf("%d\",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected ';' before ')' token
   10 |     for(i = 0; i <= K, ++i){
      |                           ^
      |                           ;
main.c:18:12: warning: missing terminating " character
   18 |     printf("%d\",a);
      |            ^
main.c:18:12: error: missing terminating " character
   18 |     printf("%d\",a);
      |            ^~~~~~~~~
main.c:20:5: error: expected expression before 'return'
   20 |     return 0;
      |     ^~~~~~
main.c:20:14: error: expected ';' before '}' token
   20 |     return 0;
      |              ^
      |              ;
   21 | }
      | ~
Language: C

#include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K, ++i){
        if(i % 2 = 1);
           for(j = 0; j <= K; ++j){
               if(j % 2 = 0);
                  a = a + 1;
           }
    }
    
    printf("%d\",a);
    
    return 0;
}
    
    
           


Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected ';' before ')' token
   10 |     for(i = 0; i <= K, ++i){
      |                           ^
      |                           ;
main.c:11:18: error: lvalue required as left operand of assignment
   11 |         if(i % 2 = 1);
      |                  ^
main.c:13:25: error: lvalue required as left operand of assignment
   13 |                if(j % 2 = 0);
      |                         ^
main.c:18:12: warning: missing terminating " character
   18 |     printf("%d\",a);
      |            ^
main.c:18:12: error: missing terminating " character
   18 |     printf("%d\",a);
      |            ^~~~~~~~~
main.c:20:5: error: expected expression before 'return'
   20 |     return 0;
      |     ^~~~~~
main.c:20:14: error: expected ';' before '}' token
   20 |     return 0;
      |              ^
      |              ;
   21 | }
      | ~
Language: Java

import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double b = a/2;
        int x = Math.ceil(b);
        int y = Math.floor(b);
        int z = x * y;
        System.out.print(z);
        scan.close();
    }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
        int x = Math.ceil(b);
                         ^
Main.java:9: error: incompatible types: possible lossy conversion from double to int
        int y = Math.floor(b);
                          ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main() {
	int k;
	cin >> k;
	if (k % 2 == 1) {
		int s;
		s = k + 1;
		int l;
		l = s / 2;
		int j;
		j = l * (l - 1);
	}
	else if (k % 2 == 0) {
		int s;
		s = k / 2;
		int j;
		j = s * s;
	}
	cout << j << endl;

	return 0;
}

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

include<stdio.h>
int main(){

    int a, i, j, K;
    
    a = 0;
    
    scanf("%d", &K);
    
    for(i = 0; i <= K, ++i){
        if(i % 2 = 1);
           for(j = 0; j <= K; ++j){
               if(j % 2 = 0);
                  a = a + 1;
           }
    }
    
    return 0;
}
    
    
           

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

#include <stdio.h>

int main(void){
  int a,b,k;
  scanf ("%d",&k);
  if(k % 2 = 0){
    k / 2 = a;
    b = a;
  }
  else{
    (k + 1) / 2 = b;
    a = b - 1;
  }
  k = a * b 
  printf ("%d\n",k);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: lvalue required as left operand of assignment
    6 |   if(k % 2 = 0){
      |            ^
main.c:7:11: error: lvalue required as left operand of assignment
    7 |     k / 2 = a;
      |           ^
main.c:11:17: error: lvalue required as left operand of assignment
   11 |     (k + 1) / 2 = b;
      |                 ^
main.c:14:12: error: expected ';' before 'printf'
   14 |   k = a * b
      |            ^
      |            ;
   15 |   printf ("%d\n",k);
      |   ~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main() {
	int k;
	cin >> k;
	if (k % 2 == 1) {
		int s;
		s = k + 1;
		int l;
		l = s / 2;
		int j;
		j = l * (l - 1);
	}
	else if (k % 2 == 0) {
		int s;
		s = k/2
		int j;
		j = s * s;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: expected ';' before 'int'
   16 |                 s = k/2
      |                        ^
      |                        ;
   17 |                 int j;
      |                 ~~~     
a.cc:18:17: error: 'j' was not declared in this scope
   18 |                 j = s * s;
      |                 ^
Language: Java

import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = double (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
   }

Compiler output:
Main.java:6: error: '.class' expected
        double a = double (num);
                          ^
Main.java:6: error: not a statement
        double a = double (num);
                           ^
Main.java:6: error: ';' expected
        double a = double (num);
                              ^
3 errors
Language: Java

import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = int num;
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
   }

Compiler output:
Main.java:6: error: '.class' expected
        double a = int num;
                       ^
1 error
Language: Java

import java.util.Scanner;
public class main {
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
   }

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

import java.util.Scanner;
public class test {
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
   }

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

import java.util.Scanner;
 public class test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
   }

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

#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace     std;
int main()
{int a=3,b=6,c=11,d=50;
if(cin>>a);
cout <<2;
cout <<30;
if (cin>>b);
cout <<9;
if (cin>>c);
cout 30;
if (cin>>d);
cout <<625;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ';' before numeric constant
   13 | cout 30;
      |     ^~~
      |     ;
Language: C

#include<stdio.h>
int main(void){
    int kodd,even;
    scanf("%d",&k);
    odd=k/2+1/2;
    even=k/2;
    printf("%d",odd*even);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'k' undeclared (first use in this function)
    4 |     scanf("%d",&k);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'odd' undeclared (first use in this function); did you mean 'kodd'?
    5 |     odd=k/2+1/2;
      |     ^~~
      |     kodd
Language: Java

import java.util.Scanner;
 
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }

Compiler output:
Main.java:3: 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: Java

import java.util.Scanner;
 
public class test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

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

import java.util.Scanner;
 
public class  {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

Compiler output:
Main.java:3: error: <identifier> expected
public class  {
            ^
1 error
Language: C

#include<stdio.h>
int main(void){
    int kodd,even;
    scanf("%d",&k);
    odd=k/2+1;
    even=k/2;
    printf("%d",odd*even);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'k' undeclared (first use in this function)
    4 |     scanf("%d",&k);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'odd' undeclared (first use in this function); did you mean 'kodd'?
    5 |     odd=k/2+1;
      |     ^~~
      |     kodd
Language: Java

import java.util.Scanner;
 
public class aa {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

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

import java.util.Scanner;
 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = (num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

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

import java.util.Scanner;
 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double a = new double(num);
        double sum = a/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

Compiler output:
Main.java:7: error: '[' expected
        double a = new double(num);
                             ^
Main.java:7: error: ']' expected
        double a = new double(num);
                                  ^
2 errors
Language: Java

import java.util.Scanner;
 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double num = double(num);
        double sum = num/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

Compiler output:
Main.java:7: error: '.class' expected
        double num = double(num);
                           ^
Main.java:7: error: not a statement
        double num = double(num);
                            ^
Main.java:7: error: ';' expected
        double num = double(num);
                               ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespce std;
int main(void){
	int n;
	cin >> n;
	cout << (n / 2) * (n - n/2) << endl;
  	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: 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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << (n / 2) * (n - n/2) << 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:6:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << (n / 2) * (n - n/2) << 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: Java

import java.util.Scanner;
 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        double num = new double(num);
        double sum = num/2;
        double x = Math.ceil(sum);
        double y = Math.floor(sum);
        double z = x * y;
        System.out.print(z);
        scan.close();
    }
}

Compiler output:
Main.java:7: error: '[' expected
        double num = new double(num);
                               ^
Main.java:7: error: ']' expected
        double num = new double(num);
                                    ^
2 errors
Language: Java

public class Test {
  public static void main(String... a) {
    int k = Integer.parseInt(a[0]);
    int nOdd = k / 2 + k % 2;
    int nEven = k / 2;
    System.out.print(nOdd * nEven);
  }
}


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

using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;


namespace ABC108A
{
    class Class1
    {
        static void Main()
        {
            Console.WriteLine("sga");
            var K = int.Parse(Console.ReadLine());
            if (K % 2 == 0)
            {
                Console.WriteLine((K / 2) * (K / 2));
            }
            else
            {
                Console.WriteLine(((K - 1) / 2) * ((K + 1) / 2));
            }
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Text;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Collections;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'static'
    6 | using static System.Console;
      |       ^~~~~~
a.cc:7:7: error: expected nested-name-specifier before 'static'
    7 | using static System.Math;
      |       ^~~~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC108A::Class1::Main()':
a.cc:16:13: error: 'Console' was not declared in this scope
   16 |             Console.WriteLine("sga");
      |             ^~~~~~~
a.cc:17:13: error: 'var' was not declared in this scope
   17 |             var K = int.Parse(Console.ReadLine());
      |             ^~~
a.cc:18:17: error: 'K' was not declared in this scope
   18 |             if (K % 2 == 0)
      |                 ^
Language: C++

#include <stdio.h>

int main() {
	int K;
	std::cin >> K;
	int odd, even;
	even = K / 2;
	if ((K % 2) == 0)odd = even;
	else odd = even + 1;

	int pair_num = odd * even;
	std::cout << pair_num <<std:: endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::cin >> K;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:12:14: error: 'cout' is not a member of 'std'
   12 |         std::cout << pair_num <<std:: endl;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:39: error: 'endl' is not a member of 'std'
   12 |         std::cout << pair_num <<std:: endl;
      |                                       ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C++

#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace     std;
int main()
{if>>3;
cout <<2;
if>>6;
cout <<9;
if>>11;
cout <<30;

if>>50;
cout <<625;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected '(' before '>>' token
    6 | {if>>3;
      |    ^~
      |    (
a.cc:8:3: error: expected '(' before '>>' token
    8 | if>>6;
      |   ^~
      |   (
a.cc:10:3: error: expected '(' before '>>' token
   10 | if>>11;
      |   ^~
      |   (
a.cc:13:3: error: expected '(' before '>>' token
   13 | if>>50;
      |   ^~
      |   (
Language: C++

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

using namespace std;

int main()
{
	// 2<=K<=100
	int K;

	cin >> K;
	int K2 = K / 2;

	// Kが奇数
	if (K%2) {
		K2 = K2 * (K2 + 1);

	}// Kが偶数
	else {
		K2 = K2 * K2;
	}

	cout << K2;

    return 0;
}


Compiler output:
a.cc:2:10: fatal error: tchar.h: No such file or directory
    2 | #include <tchar.h>
      |          ^~~~~~~~~
compilation terminated.
Language: Java

public class Main {
  public static void main(String... a) {
    int k = Integer.parseInt(a);
    int nOdd = k / 2 + k % 2;
    int nEven = k / 2;
    System.out.print(nOdd * nEven);
  }
}


Compiler output:
Main.java:3: error: incompatible types: String[] cannot be converted to String
    int k = Integer.parseInt(a);
                             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

#include<stdio.h>
 
int main()
{
int ans = 0,K = 0,M=0;
scanf("%d",&K);
M = K / 2;
 
if(K % 2 == 0)
{
printf("%d",M*M);
}else{
printf("%d",M * (M + 1)):
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ';' before ':' token
   13 | printf("%d",M * (M + 1)):
      |                         ^
      |                         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define fileio freopen("in.in", "r", stdin),freopen("out.out", "w", stdout);
#define ll long long int
#define FF first
#define SS second
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define pll pair<long long int,long long int>
#define sd(x) scanf("%d",&x)
#define slld(x) scanf("%lld",&x)
#define pd(x) printf("%d\n",x)
#define plld(x) printf("%lld\n",x)
#define pss printf
#define MOD 1000000007
#define INF 1e18
#define eps 0.00001
#define endl '\n'
#define debug(n1) cout<<n1<<endl
const int N = 1e5;  // limit for array size
ll n;  // array size

int main(){
	int k;cin>>k;
	if(k%2==0){
		cout<<(k/2)*(k/2)<<endl;
	}
	else{
		cout<<(k/2)*(k/2+1)<<endl;1
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:44: error: expected ';' before '}' token
   31 |                 cout<<(k/2)*(k/2+1)<<endl;1
      |                                            ^
      |                                            ;
   32 |         }
      |         ~
Language: C

#include <stdio.h>

int main(){
  int k;
  scanf("%d",&k);
   if(k%2){
     int s=int(k/2);
     printf("%d",s*(s+1));
   }
  else{
    printf("%d",(k/2)*(k/2));
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before 'int'
    7 |      int s=int(k/2);
      |            ^~~
Language: C

#include<stdio.h>

int main()
{
int ans = 0,K = 0,M=0;
scanf("%d",&K);
M = K / 2;

if(K % 2 == 0)
{
printf("%d",M*M);
}else{
printf("%d",M * (M + 1):
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ')' before ':' token
   13 | printf("%d",M * (M + 1):
      |       ~                ^
      |                        )
main.c:13:25: error: expected ';' before '}' token
   13 | printf("%d",M * (M + 1):
      |                         ^
      |                         ;
   14 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
    int a=0;
    
    scanf("%d", &a);
    if(a/2% == 0){
    printf("%d",(a/2)*(a/2));
    }
    if(a/2% == 1){
    printf("%d",((a-1)/2)*(((a-1)/2)+1));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '==' token
    7 |     if(a/2% == 0){
      |             ^~
main.c:10:13: error: expected expression before '==' token
   10 |     if(a/2% == 1){
      |             ^~
Language: C

#include <stdio.h>

int main(){
  scanf("%d",&k);
   if(k%2){
     s=int(k/2);
     printf("%d",s*(s+1));
   }
  else{
    printf("%d",(k/2)*(k/2));
  }
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'k' undeclared (first use in this function)
    4 |   scanf("%d",&k);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:6: error: 's' undeclared (first use in this function)
    6 |      s=int(k/2);
      |      ^
main.c:6:8: error: expected expression before 'int'
    6 |      s=int(k/2);
      |        ^~~
Language: C

#include<stdio.h>

int main()
{
 int ans = 0,K = 0,M=0;
 scanf("%d",&K);
 M = K / 2;

 if(K % 2 == 0)
{
 printf("%d",M*M);
}else{
 printf("%d",M * (M + 1):
}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ')' before ':' token
   13 |  printf("%d",M * (M + 1):
      |        ~                ^
      |                         )
main.c:13:26: error: expected ';' before '}' token
   13 |  printf("%d",M * (M + 1):
      |                          ^
      |                          ;
   14 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
    int a=0;
    
    scanf("%d", &a);
    if(a/2%==0){
    printf("%d",(a/2)*(a/2));
    }
    if(a/2%==1){
    printf("%d",((a-1)/2)*(((a-1)/2)+1));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '=' token
    7 |     if(a/2%==0){
      |             ^
main.c:10:13: error: expected expression before '=' token
   10 |     if(a/2%==1){
      |             ^
Language: C++

#include <iostream>
using namespace std;

main(){
  int a,ans;
  cin >> a;
  for(int i=2;i<=k;i++){
    if(i%2==0){
      for(int j=1;j<=k;j++){
        if(j%2==1){
          ans++;
        }
      }
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:18: error: 'k' was not declared in this scope
    7 |   for(int i=2;i<=k;i++){
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  
  int n;
  int ans;
  cin >> n;
  
  if (n%2==0) {
    ans = n/2 * n/2;
    
  }
  else {
    ans = (n/2)*(n/2+1);
  }
  
  cout << ana;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'ana' was not declared in this scope; did you mean 'ans'?
   18 |   cout << ana;
      |           ^~~
      |           ans
Language: C

#include<stdio.h>
int main()
{
    int a=0;
    
    scanf("%d", &a);
    if(a/2%==0){
    printf("%d",(a/2)*(a/2));
    }
    if(a/2%==1){
    printf("%d",((a-1)/2)*(((a-1)/2)+1));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '=' token
    7 |     if(a/2%==0){
      |             ^
main.c:10:13: error: expected expression before '=' token
   10 |     if(a/2%==1){
      |             ^
Language: C

#include<stdio.h>
int main(void)
{
    int a;
    
    scanf("%d", &a);
    if(a/2%==0){
    printf("%d",(a/2)*(a/2));
    }
    if(a/2%==1){
    printf("%d",((a-1)/2)*(((a-1)/2)+1))
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '=' token
    7 |     if(a/2%==0){
      |             ^
main.c:10:13: error: expected expression before '=' token
   10 |     if(a/2%==1){
      |             ^
main.c:11:41: error: expected ';' before '}' token
   11 |     printf("%d",((a-1)/2)*(((a-1)/2)+1))
      |                                         ^
      |                                         ;
   12 |     }
      |     ~
Language: C

#include<stdio.h>
int main()
{
    int a;
    
    scanf("%d", &a);
    if(a/2%==0){
    printf("%d",(a/2)*(a/2));
    }
    if(a/2%==1){
    printf("%d",((a-1)/2)*(((a-1)/2)+1))
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '=' token
    7 |     if(a/2%==0){
      |             ^
main.c:10:13: error: expected expression before '=' token
   10 |     if(a/2%==1){
      |             ^
main.c:11:41: error: expected ';' before '}' token
   11 |     printf("%d",((a-1)/2)*(((a-1)/2)+1))
      |                                         ^
      |                                         ;
   12 |     }
      |     ~
Language: Java

import java.util.*;
public class main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// 出力
		System.out.println(((a-1)/2)*((a+1)/2));
	}
}

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

import java.util.*;
public class a {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// 出力
		System.out.println(((a-1)/2)*((a+1)/2));
	}
}

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

import java.util.*;
public class a {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// 出力
		System.out.println((a-1)/2)*((a+1)/2);
	}
}

Compiler output:
Main.java:8: error: not a statement
		System.out.println((a-1)/2)*((a+1)/2);
		                           ^
1 error
Language: C

#include <stdio.h>

int main(void)
{
  int K;
  int sum, num;

  scanf("%d", &K);

  while(K > 0) {
    num = K/2;
    sum += num;
    k = k -1;
  }

printf("%d", K);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:5: error: 'k' undeclared (first use in this function)
   13 |     k = k -1;
      |     ^
main.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std

int main(){
  
  int n;
  cin >> n;
  
  cout << n/2;
  
  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~