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

#include <iostream>

using namespace std;

int main(){
  int N;
  cin >> N;
  int count = 0;
  for(int i = 1; i <= N; i++){
    for(int j = 1; i <= N; i++){
      if(i == j) continue;
      if(i % 2 == 0 && j % 2 == 1) count++;
      else if(j % 2 == 0 && i % 2 == 1) count++
    }
  }
  cout  << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:48: error: expected ';' before '}' token
   13 |       else if(j % 2 == 0 && i % 2 == 1) count++
      |                                                ^
      |                                                ;
   14 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    cout << (k%2==0?k*k/4:k*(k+1)/4) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'k' was not declared in this scope
   11 |     cout << (k%2==0?k*k/4:k*(k+1)/4) << endl;
      |              ^
Language: C++

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

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   else{cout<<(K+1)*K?4<<endl;
      |                      ~^~~~~~
a.cc:11:29: error: expected ':' before ';' token
   11 |   else{cout<<(K+1)*K?4<<endl;
      |                             ^
      |                             :
a.cc:11:29: error: expected primary-expression before ';' token
Language: C++

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

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


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

#define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define FOR(i, m, n) for(int i=(m); i<(n); ++i)
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define Cout(x) cout << (x) << endl
#define dump(x) cerr << #x << " = " << (x) << endl;
typedef long long LL;
typedef vector<int> VI;
typedef vector<long long> VL;
typedef vector<string> VS;
typedef vector<vector<int>> VVI;
typedef pair<int, int> PII;
const int inf = (int)1e9;
const long long mod = (long long)1e9 + 7;
const double pi = acos(-1.0);

template <class T>void Sort(vector<T> & a) { sort(a.begin(), a.end()); }
template <class T>void ReSort(vector<T>& a) { sort(a.rbegin(), a.rend()); }
template <class T>void Reverse(vector<T>& a) { reverse(a.begin(), a.end()); }
template <class T>void Unique(vector<T>& a) { a.erase(unique(a.begin(), a.end()), a.end()); }
template <class T>T Sum(vector<T> a, T init = 0) { return accumulate(a.begin(), a.end(), init); }

//INPUT//
void CINPUT() {}
template<class H, class ...T> void CINPUT(H&& h, T&& ...t) { cin >> h; CINPUT(forward<T>(t)...); }
#define in(...) int __VA_ARGS__; CINPUT(__VA_ARGS__);
#define In(T,...) T __VA_ARGS__; CINPUT(__VA_ARGS__);
#define Vin(T,name,n) int n; cin>>n; vector<T> name(n); rep(i,n)cin>>name[i];
#define VIn(T,name,n) vector<T> name(n); rep(i,n)cin>>name[i];

//OUTPUT//
void print() { cout << endl; }
template <class H> void print(H&& h) { cout << h << endl; }
template <class H, class... T> void print(H&& h, T&& ... t) { cout << h << " "; print(forward<T>(t)...); }
template<class T>void out(T n) { cout << n << endl; }
template<class T>void out(vector<T> a, string sep = " ", string end = "\n") { for (int i = 0; i < (int)a.size(); ++i)cout << a[i] << (i == (int)a.size() - 1 ? end : sep); }
void yes(bool f) { puts(f ? "yes" : "no"); }
void Yes(bool f) { puts(f ? "Yes" : "No"); }
void YES(bool f) { puts(f ? "YES" : "NO"); }
void poss(bool f) { puts(f ? "possible" : "impossible"); }
void Poss(bool f) { puts(f ? "Possible" : "Impossible"); }
void POSS(bool f) { puts(f ? "POSSIBLE" : "IMPOSSIBLE"); }

int main() {
	in(k);
	out((k/2)*((k+1)/2))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:29: error: expected ';' before '}' token
   51 |         out((k/2)*((k+1)/2))
      |                             ^
      |                             ;
   52 | }
      | ~
Language: C++

#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
#include <iomanip>
#include <limits>
#include <list>
#include <queue>
#include <tuple>
#include <map>
#include <set>
#include <sstream>
#include <bitset>
#include <string>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define INF (int)(1123456789)
#define LINF (long long int)(112345678901234567)


ll modpow(ll x, ll n) {
    if (n == 0) {
        return 1;
    } else if (n % 2 == 0) {
        ll h = modpow(x, n / 2);
        return h * h % MOD;
    } else {
        return x * modpow(x, n - 1) % MOD;
    }
}

int gcd(int a,int b)  {
	if (a%b==0)  return(b);
	else return(gcd(b,a%b));
}

int main() {
    int K; cin >> K;
    int ans = K/2

    if(K%2) ans *= ans + 1;
    else  ans *= ans;

    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:5: error: expected ',' or ';' before 'if'
   48 |     if(K%2) ans *= ans + 1;
      |     ^~
a.cc:49:5: error: 'else' without a previous 'if'
   49 |     else  ans *= ans;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int k, even, odd;
	cin >> k;
	even = k/2;
	if(k % 2 == 1){
		odd = (k+1)/2;
	}
	else{
		odd = k/2;
	}
	cout << even:odd << endl;

	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: found ':' in nested-name-specifier, expected '::'
   14 |         cout << even:odd << endl;
      |                     ^
      |                     ::
a.cc:14:17: error: 'even' is not a class, namespace, or enumeration
   14 |         cout << even:odd << endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int k, even, odd;
	cin >> k;
	even = k/2;
	if(k % 2 == 1){
		odd = (k+1)/2;
	}
	else{
		odd = k/2;
	}
	cout << even:odd << endl;
	}
	}
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: found ':' in nested-name-specifier, expected '::'
   14 |         cout << even:odd << endl;
      |                     ^
      |                     ::
a.cc:14:17: error: 'even' is not a class, namespace, or enumeration
   14 |         cout << even:odd << endl;
      |                 ^~~~
a.cc: At global scope:
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
a.cc:18:9: error: expected unqualified-id before 'return'
   18 |         return 0;
      |         ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |         if(K%2=1){
      |            ~^~
a.cc:12:18: error: lvalue required as left operand of assignment
   12 |         else if(K%2=0){
      |                 ~^~
Language: C++

#include <iostream>

using namespace std;

int main (){
	int k;
	cout << k/2*k+1/2
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before 'return'
    7 |         cout << k/2*k+1/2
      |                          ^
      |                          ;
......
   11 |         return 0;
      |         ~~~~~~
Language: C++

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

int main() {

  int a,b,c,d,e,f;

  cin >> a ;
  b=a/2
  if(a%2==0) {
    c=b;
  }
          else{
            c=b+1;
          }
  cout<<b*c<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'if'
    9 |   b=a/2
      |        ^
      |        ;
   10 |   if(a%2==0) {
      |   ~~    
a.cc:13:11: error: 'else' without a previous 'if'
   13 |           else{
      |           ^~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

int main()
{
	int k;
	cin >> k;
	printf("%d", (k / 2) * (k - k / 2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:43: error: expected ')' before ';' token
   14 |         printf("%d", (k / 2) * (k - k / 2);
      |               ~                           ^
      |                                           )
Language: C++

#include <iostream>
using namespace std;

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

/* 1からKまでの偶数と奇数の個数の積が組み合わせの個数 */
/* それぞれの個数は偶数ならKの半分個ずつ*/
/* 奇数なら奇数が1個だけ多くなる

Compiler output:
a.cc:24:1: error: unterminated comment
   24 | /* 奇数なら奇数が1個だけ多くなる
      | ^
Language: C++

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

int main(){

  int k;
  cin >> k;
  if(k%2==1){
    cout << ((k-1)*(k+1))/4 << emdl;
  }else{
    cout << (k*k)/4 << endl;
  }


}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: 'emdl' was not declared in this scope
    9 |     cout << ((k-1)*(k+1))/4 << emdl;
      |                                ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |     if (k % 2 = 0){
      |         ~~^~~
a.cc:11:18: error: 'k' cannot be used as a function
   11 |         cout << k(k+2)/4 << endl;
      |                 ~^~~~~
Language: C

#include <stdio.lh>

int
main(int argc, char argv[])
{
  int K, ans;
  scanf("%d", K);
  
  if(K % 2 == 1){
   ans = (K / 2) * (K / 2 + 1);
  }
  else{
   ans = (K / 2) * (K / 2);
  }
  
  printf("%d\n", ans);
  
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
	int a,b,c;
	cin>>a;
	if(a%2=0){
		b=a/2;
		c=a/2;
	}
	else{
		b=a/2;
		c=a/2+1;
	}
	cout<<b*c<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
	int a,b,c;
	cin>>a;
	if(a%2=0){
		b=a/2;
		c=a/2;
	}
	else{
		b=a/2;
		c=a/2 +1;
	}
	cout<<b*c<<endl;
}

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

#include <iostream>

using namespace std;

int main(void){
  int k;
  
  cin >> k;
  
  even = k / 2;
  
  cout << even * (k - even) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'even' was not declared in this scope
   10 |   even = k / 2;
      |   ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(void){
  int k;
  
  cin >> k;
  
  even = k / 2
  
  cout << even * (k - even) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'even' was not declared in this scope
   10 |   even = k / 2
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
void YesNo(bool);
void YESNO(bool);


int main(){
    int k;
    cin >> k;
    int a = k / 2,
    int b = k - a;
    cout << a * b << endl;
    
    
    return 0;
}


void YesNo(bool x){
    if (x) {
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    
}

void YESNO(bool x){
    if (x) {
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected unqualified-id before 'int'
   11 |     int b = k - a;
      |     ^~~
a.cc:12:17: error: 'b' was not declared in this scope
   12 |     cout << a * b << endl;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'g'
    9 |     k+=K/2
      |           ^
      |           ;
   10 |     g+=K/2;
      |     ~
Language: C++

//
//  main.swift
//  AtCoder
//
//  Created on 2019/03/22.
//  Copyright © 2019 yutake2000. All rights reserved.
//

import Foundation

class Scanner {
    var buffer: [String.SubSequence]
    func next() -> String {
        if (buffer.count == 0) {
            if let line = readLine() {
                buffer = line.split(separator: " ")
            }
        }
        return (buffer.count == 0) ? "" : String(buffer.removeFirst())
    }
    func nextInt() -> Int {
        return Int(next())!
    }
    func nextDouble() -> Double {
        return Double(next())!
    }
    init() {
        buffer = []
    }
}

var sc = Scanner()

var K = Int(sc.next())!

if K % 2 == 0 {
    print(K * K / 4)
} else {
    print((K+1) * (K-1) / 4)
}

Compiler output:
a.cc:9:1: error: 'import' does not name a type
    9 | import Foundation
      | ^~~~~~
a.cc:9:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:32:1: error: 'var' does not name a type
   32 | var sc = Scanner()
      | ^~~
a.cc:38:3: error: expected unqualified-id before 'else'
   38 | } else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int　a;
  cin>>a;
  if(a%2==0)cout<<(a/2)*(a/2)<<endl;
  else cout<<((a-1)/2)*((a+1)/2)<<endl;
}

Compiler output:
a.cc:4:3: error: extended character 　 is not valid in an identifier
    4 |   int　a;
      |   ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'int\U00003000a' was not declared in this scope
    4 |   int　a;
      |   ^~~~~~
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a;
      |        ^
Language: C++

include<stdio.h>
int main(void)
{
  int k,gu,ki;
  scanf("%d",&k);
  gu=k/2;
  ki=k-gu;
  printf("%d",gu*ki);
  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C

#include <stdio.h>
 
int main(void) {
    int x1, y1, x2, y2;
    scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
    
    int x = c-a, y = d-b;
    int x3, y3, x4, y4;
    x3 = c - y;
    y3 = d + x;
    x4 = a - y;
    y4 = b + x;

    printf("%d\n %d\n %d\n %d\n", x3, y3, x4, y4 );
    
    return 0;
}   

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'c' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: 'a' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |               ^
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |                      ^
main.c:7:24: error: 'b' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |                        ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
int main(){
    int k;
    cin >> k;
    if(k%2 == 1){
        cout << (k+1)(k-1)/4 << endl;
    }
    else{
        cout << k*k/4 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expression cannot be used as a function
   11 |         cout << (k+1)(k-1)/4 << endl;
      |                 ~~~~~^~~~~
Language: C++

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

int main(){
  int X;
  cin >> X;
  if(X%2==0)cout << X/2 * (X/2);
  else cout << X/2*(X-X/2);
}

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

#include<iostream>
using namespace std;

int main()
{
	int k;
	cin >> k;
	
	int odd=0;
	int even=0;
	
	for(int i=1;i<=K;i++)
	{
		if(i%2==0)
			even++;
		else 
			odd++;
	}
	
	cout << odd*even << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'K' was not declared in this scope
   12 |         for(int i=1;i<=K;i++)
      |                        ^
Language: C

#include <stdio.h>
#include <math.h>

int main(void) {
 int a;
  scanf("%d",&a);
  return (double floor(a/2) * double ceil(a/2))
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ')' before 'floor'
    7 |   return (double floor(a/2) * double ceil(a/2))
      |          ~      ^~~~~~
      |                 )
main.c:8:1: error: expected expression before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n,cnt=0;
  cin>>n;
  for(i=1;i<=n;i++){
    if(i%2==0) cnt+=i/2;
    else cnt+=(i-1)/2;
  }
  cout<<cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=1;i<=n;i++){
      |       ^
Language: C++

// https://atcoder.jp/contests/abc108/tasks/abc108_a

#include <iostream>
using namespace std;

int main()
{
  /* Magic word */
  cin.tie(0);
  ios::sync_with_stdio(false);
  /* ---------- */

  int k,e,o;

  cin >> k;

  e = n / 2;
  o = (n - 1) / 2;

  cout << e * o << '\n';

  return 0;
}


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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<vector>
#include<set>
#include<cctype>
using namespace std;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const long long INF = 1LL << 60;

int main(void){
	ios::sync_with_stdio(false); cin.tie(0);
	
	int a;
	cin>>a;
	if(a%2==0)cout<<a*a/4<<endl;
	else a/2*(a/2+1)<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   20 |         else a/2*(a/2+1)<<endl;
      |              ~~~~~~~~~~~^~~~~~
Language: C++

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

int main() {
  int x1,y1,x2,y2,x3,y3,x4,y4;
  cin>>x>>y1>>x2>>y2;
  x3=x2+y1-y2;
  y3=y2-x1+x2;
  x4=x1+y1-y2;
  y4=y1-x1+y2;
  cout<<x3<<y3<<x4<<y4<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'x' was not declared in this scope; did you mean 'x4'?
    6 |   cin>>x>>y1>>x2>>y2;
      |        ^
      |        x4
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main{
int a,b;
cin >> a;

if (a%2==0){
  b=a*a/4;
}
else{
  b=(a*a-1)/4;
}
cout << b << endl;
}
 

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int a,b;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if (a%2==0){
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else{
      | ^~~~
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << b << endl;
      | ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int a,b;
cin >> a;

if (a%2==0){
  b=a*a/4;
}
else{
  b=(a*a-1)/4;
}
cout << b << endl;
}
 

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (a%2==0){
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else{
      | ^~~~
a.cc:13:1: error: 'cout' does not name a type
   13 | cout << b << endl;
      | ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int a,b;
cin >> a;

if (a%2==0){b=a*a/4;}
else{b=(a*a-1)/4;}
cout << b << endl;
}
 

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (a%2==0){b=a*a/4;}
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else{b=(a*a-1)/4;}
      | ^~~~
a.cc:9:1: error: 'cout' does not name a type
    9 | cout << b << endl;
      | ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

2.#include<iostream>
3.#include<string>
4.#include<algorithm>
5.using namespace std;
6. 
7.int main(){
8.	int n,ans;
9.	cin>>n;
10.	if(n%2==0){
11.		ans=n*n/4;
12.	}
13.	else{
14.		int m=(n-1)/2;
15.		ans=m*(m+1);
16.	}
17.	cout << ans;
18.	return 0;
19.}


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 2.#include<iostream>
      |   ^
a.cc:2:3: error: stray '#' in program
    2 | 3.#include<string>
      |   ^
a.cc:3:3: error: stray '#' in program
    3 | 4.#include<algorithm>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 2.#include<iostream>
      | ^~
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 6.
      | ^~
Language: C++

#include"stdafx.h"
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

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


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

import sys
input = sys.stdin.readline

N = int(input())

if N % 2 == 0:
    print(int(N/2)*int(N/2))
else:
    print(int(N/2)*int(N/2+1))


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

"""AtCoder"""

import sys
input = sys.stdin.readline

N = int(input())

if N % 2 == 0:
    print(int(N/2)*int(N/2))
else:
    print(int(N/2)*int(N/2+1))


Compiler output:
a.cc:1:1: error: expected unqualified-id before string constant
    1 | """AtCoder"""
      | ^~
Language: C++

""" AtCoder"""

import sys
input = sys.stdin.readline

N = int(input())

if N % 2 == 0:
    print(int(N/2)*int(N/2))
else:
    print(int(N/2)*int(N/2+1))


Compiler output:
a.cc:1:1: error: expected unqualified-id before string constant
    1 | """ AtCoder"""
      | ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected primary-expression before ';' token
    8 |     cout<<(K/2)**;
      |                  ^
Language: C++

#include <iostream>
#include <string>
using namespace std;



int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int K,ans;
	cin >> K;
	ans = K / 2 * (K / 2 - 1)
		cout << ans << endl;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: expected ';' before 'cout'
   14 |         ans = K / 2 * (K / 2 - 1)
      |                                  ^
      |                                  ;
   15 |                 cout << ans << endl;
      |                 ~~~~
Language: C

#include <iostream>
#include <cstdio>
using namespace std;

int main() {
  int K, E, O; scanf("%d", &K);

  E = O = 0;

  for(int i=1; i<=K; ++i) {
    if(i%2 == 0) ++E;
    else         ++O;
  }

  printf("%d\n", E*O);
}


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

#include<bits/stdio.h>
int main(){
	int K;
  	cin>>K;
  	cout<<(K/2+K%2)*(K/2)<<endl;
}

Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin>>K;
      |         ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout<<(K/2+K%2)*(K/2)<<endl;
      |         ^~~~
a.cc:5:32: error: 'endl' was not declared in this scope
    5 |         cout<<(K/2+K%2)*(K/2)<<endl;
      |                                ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main(){

    int K;
    cin >> K; 


    int num_even = K/2, num_odd;

    if( K % 2 == 0 ) num_odd = K/2;
    else num_odd = K/2 + 1;

    cout << num_even * num_odd << endl;

    return 0;



Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: expected '}' at end of input
   18 |     return 0;
      |              ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '{' token
   12 |   cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |           ^
a.cc:12:21: error: expected primary-expression before '{' token
   12 |   cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |                     ^
a.cc:12:30: error: expected primary-expression before '<<' token
   12 |   cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |                              ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before '{' token
   12 | cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |         ^
a.cc:12:19: error: expected primary-expression before '{' token
   12 | cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |                   ^
a.cc:12:28: error: expected primary-expression before '<<' token
   12 | cout << {(k-1)/2}*{(k+1)/2}<<endl;
      |                            ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
int K;
cin >> K;
cout << (K / 2) * {(K + 1) / 2} << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before '{' token
    7 | cout << (K / 2) * {(K + 1) / 2} << endl;
      |                   ^
a.cc:7:33: error: expected primary-expression before '<<' token
    7 | cout << (K / 2) * {(K + 1) / 2} << endl;
      |                                 ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
int K;
cin >> K;
cout << {(K / 2) * (K / 2)} << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '{' token
    7 | cout << {(K / 2) * (K / 2)} << endl;
      |         ^
a.cc:7:29: error: expected primary-expression before '<<' token
    7 | cout << {(K / 2) * (K / 2)} << endl;
      |                             ^~
Language: C++

nclude<iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
b==a/2;
if(a%2==0){cout<<b*b;}
else{(b+1)*b;}	
cout<<endl;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:7:12: error: 'cout' was not declared in this scope
    7 | if(a%2==0){cout<<b*b;}
      |            ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<endl;
      | ^~~~
a.cc:9:7: error: 'endl' was not declared in this scope
    9 | cout<<endl;
      |       ^~~~
Language: C++

nclude<iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
b==a/2
if(a%2==0){cout<<b*b;}
else{(b+1)*b;}	
cout<<endl;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:6:7: error: expected ';' before 'if'
    6 | b==a/2
      |       ^
      |       ;
    7 | if(a%2==0){cout<<b*b;}
      | ~~     
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else{(b+1)*b;}
      | ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<endl;
      | ^~~~
a.cc:9:7: error: 'endl' was not declared in this scope
    9 | cout<<endl;
      |       ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int k;
  cin >> k;
  cout << k / 2 * (k - k / 2) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: expected '}' at end of input
    7 |   cout << k / 2 * (k - k / 2) << endl;
      |                                       ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>

#include <pair>

using namespace std;

int main(void){
	int k;
	cin >> k;
	cout << (int)(floor(k/2)) * (int)(ceil(k/2)) << endl;
	return 0;
}

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

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

int main() {

int K;
cin K;

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


}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected ';' before 'K'
    9 | cin K;
      |    ^~
      |    ;
Language: C++

fun main(args: Array<String>) {
    a108(readLineList())
}

fun readLineList(): Array<String> {
    val lineList = mutableListOf<String>()
    while (true) {
        val line = readLine()
        if (line.isNullOrBlank()) {
            break
        } else {
            lineList.add(line!!)
        }
    }
    return lineList.toTypedArray()
}


fun a108(args: Array<String>) {
    if (args.size != 1) {
        throw IllegalArgumentException()
    }
    val num = args[0].toInt()
    fun square(number: Int): Int = number * number
    println(if (num % 2 == 0) square(num / 2) else num / 2 * (num / 2 + 1))
}


Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
a.cc:5:1: error: 'fun' does not name a type
    5 | fun readLineList(): Array<String> {
      | ^~~
a.cc:19:1: error: 'fun' does not name a type
   19 | fun a108(args: Array<String>) {
      | ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'B' undeclared (first use in this function)
    7 | B=K-a;
      | ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;

public class MyClass {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        
        System.out.println(((n+1)/2)*(n/2));
    }
}


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

#include <stdio.h>

int main() {
    int k;
    scanf("%d", &k);

    if(k%2 == 0){
          printf("%d\n", (k/2) * (k/2));
    }else{
          printf("%d\n", (k/2) * (k+1)/2);

     return 0;
}

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

#include "pch.h"
#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <queue>
#include <stack>
#include <string>
#include<map>

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;

using namespace std;


int inputValue() {
  int a;
  cin >> a;
  return a;
};
void inputVector(vector<int>* v) {
  //cin.tie(0);
  //ios::sync_with_stdio(false);
  int a;
  while (cin >> a) {
    if (a == -1)break;
    v->push_back(a);
  }
};

void inputVector(vector<int> * p, int a) {
  rep(i, a) {
    int input;
    cin >> input;
    p->push_back(input);
  }
}

void inputVector2(vector<vector<int>>& v, int r, int c) {
  int temp;
  for (size_t i = 0; i < r; i++)
  {
    for (size_t j = 0; j < c; j++)
    {
      scanf("%d", &temp);
      v[i][j] = temp;
    }
  }
}
void inputVector3(vector<int>* v0, vector<int>* v1) {
  int a;
  unsigned short count = 0b0;
  while (cin >> a) {
    if (a == -1)break;
    if (count)v0->push_back(a); else v1->push_back(a);
    count = count ^ 1;
  }
};

template <typename T>
void output(T a, int precision) {
  if (precision > 0) {
    cout << setprecision(precision) << a << "\n";
  }
  else {
    cout << a << "\n";
  }
}


int main(int argc, const char * argv[]) {
  int k;
  int d;
  scanf("%d", &k);
  if (k % 2 == 1) {
    d = (int)((k + 1) / 2);
    cout << d * (d - 1) << endl;
  }
  else {
    d = (int)(k / 2);
    cout << d * d << endl;
  }

  return 0;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int xone = sc.nextInt();
		// スペース区切りの整数の入力
		int yone = sc.nextInt();
		int xtwo = sc.nextInt();
        int ytwo = sc.nextInt();
		// 文字列の入力
		//String s = sc.next();
		// 出力
		int nagasa = Math.abs(ytwo - yone);
		system.out.print(xtwo + nagasa);
		system.out.print(ytwo);
		system.out.print(xone + nagasa);
		system.out.print(yone);
	}
}

Compiler output:
Main.java:15: error: package system does not exist
		system.out.print(xtwo + nagasa);
		      ^
Main.java:16: error: package system does not exist
		system.out.print(ytwo);
		      ^
Main.java:17: error: package system does not exist
		system.out.print(xone + nagasa);
		      ^
Main.java:18: error: package system does not exist
		system.out.print(yone);
		      ^
4 errors
Language: C++

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <queue>
#include <stack>
#define rep( i, a, n ) for( int i = a; i < n; i++ )
#define per( i, a, n ) for( int i = n - 1; i >= a; i-- )
#define mem( f, x ) memset( f, x, sizeof( f ) )
#define ll long long
#define pii pair<int, int>
#define fi first
#define se second
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define e 2.71828
using namespace std;
const int N = 505;
const int M = 1e6+5;
const int MAX = 5;
const ll inv = 500000004;
const double g = 9.80;
const double PI = acos( -1.0 );
int a[N][N];

struct node{
    pii x, y;
    node( ){ x = y = make_pair( 0, 0 ); }
    node( pii xx, pii yy ){
        x = xx, y = yy;
    }
    void Pri( ){
        printf( "%d %d %d %d\n", x.fi, x.se, y.fi, y.se );
    }
}p[N*N];

int main(){
    ll n;
    while( scanf("%lld", &n) != EOF ){
           printf("%lld\n", (n/2)*((n+1)/2)/4 )
     }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:48: error: expected ';' before '}' token
   43 |            printf("%lld\n", (n/2)*((n+1)/2)/4 )
      |                                                ^
      |                                                ;
   44 |      }
      |      ~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  int K; cin >> K;
  int D, E;
  if (K / 2 == 0){
    D = K / 2;
    cout << D** << endl;
  }
  else {
    D = K / 2;
    E = D + 1;
    cout << D * E << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected primary-expression before '<<' token
   11 |     cout << D** << endl;
      |                 ^~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  int K; cin >> K;
  int D, E;
  if (K / 2 == 0){
    D = K / 2;
    cout << D**2 << endl;
  }
  else {
    D = K / 2;
    E = D + 1;
    cout << D * E << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: invalid type argument of unary '*' (have 'int')
   11 |     cout << D**2 << endl;
      |               ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: 'ednl' was not declared in this scope
    8 |   else cout<<((k+1)/2)*((k-1)/2)<<ednl;
      |                                   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |         cout<<ans(k);
      |               ^~~
      |               abs
a.cc: In function 'int ans()':
a.cc:12:12: error: 'k' was not declared in this scope
   12 |         if(k%2==0){
      |            ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'pow' was not declared in this scope
   10 |         cout << pow(k/2,2) << endl;
      |                 ^~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'pow' was not declared in this scope
   10 |         cout << pow(k/2,2) << endl;
      |                 ^~~
Language: Java

//  abc108a.cpp
#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
    int k;
    cin >> k;
    int odd = k/2;
    int even = k/2;
    
    if (k%2 != 0) {
        odd++;
    }
    cout << odd*even << endl;
}


Compiler output:
Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <algorithm>
^
Main.java:9: error: not a statement
    cin >> k;
        ^
Main.java:16: error: not a statement
    cout << odd*even << endl;
                     ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C

#include<stdio.h>

bool even(int number)
{
    if(number%2==0)
    {
        return true;
    }
    else
    {
        return false;
    }
}

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


Compiler output:
main.c:3:1: error: unknown type name 'bool'
    3 | bool even(int number)
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c: In function 'even':
main.c:7:16: error: 'true' undeclared (first use in this function)
    7 |         return true;
      |                ^~~~
main.c:7:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:16: error: 'false' undeclared (first use in this function)
   11 |         return false;
      |                ^~~~~
main.c:11:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:36: error: expected ';' before 'return'
    5 |     printf("%d\n", (N/2)*(N/2+N%2))
      |                                    ^
      |                                    ;
    6 |     return 0;
      |     ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int k; cin>>k
  cout<<(k%2)*(k-k%2)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before 'cout'
    4 |   int k; cin>>k
      |                ^
      |                ;
    5 |   cout<<(k%2)*(k-k%2)
      |   ~~~~
Language: C++

n =int(input())
print(len([i for i in range(1,n+1) if i % 2 == 1])*len([i for i in range(1,n+1) if i % 2 == 0]))

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expression cannot be used as a function
   10 |     cout << (k+1)(k-1)/4 << endl;
      |             ~~~~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'kaijo' was not declared in this scope
   13 |     cout << kaijo(n-1)/2*(n+1)/2;
      |             ^~~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int kaijo(int n){
  int sum=1;
  for (int i=n; i>1; i--){
    sum*=i;
  }
  n=sum;
  return n;
}
 
int main(){
  int n;
  cin >> n;
  if(n%2==0){
    cout << kaijo(n/2)*kaijo(n/2);
    return 0;
  }else{
    cout << kaijo((n-1)/2)*kaijo((n+1)/2);
    return 0;
  }
  return -1
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: expected ';' before '}' token
   24 |   return -1
      |            ^
      |            ;
   25 | }
      | ~
Language: C++

K = int(input())
if K % 2 == 0:
    res = (K/2)**2
else:
    res = ((K-1)/2)*((K-1)/2 + 1)
print(int(res))

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

import java.util.*

fun main(args: Array<String>) {
    val cin = Scanner(System.`in`)
    val n: Int = cin.nextInt()
    println(n/2 * (n/2 + n %2))
}

Compiler output:
a.cc:4:30: error: stray '`' in program
    4 |     val cin = Scanner(System.`in`)
      |                              ^
a.cc:4:33: error: stray '`' in program
    4 |     val cin = Scanner(System.`in`)
      |                                 ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.util.*;

public class Main {

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

		int k = sc.nextInt();
		
		if(k % 2 == 0) {
			System.out.println(Math.pow(k/2, 2)); 
		} else {
			System.out.println((k/2)*(k+1)/2);
		}
}


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

#i n cl u d e <s t d i o . h>
u si n g namespace s t d ;
i n t main ( )
{
i n t a , b , c , d ;
s c a n f (”%d%d%d%d ” , &a , &b , &c , &d ) ;
i n t x = c − a , y = d − b ;
p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
a.cc:6:12: error: extended character ” is not valid in an identifier
    6 | s c a n f (”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |            ^
a.cc:6:22: error: extended character ” is not valid in an identifier
    6 | s c a n f (”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |                      ^
a.cc:7:13: error: extended character − is not valid in an identifier
    7 | i n t x = c − a , y = d − b ;
      |             ^
a.cc:7:25: error: extended character − is not valid in an identifier
    7 | i n t x = c − a , y = d − b ;
      |                         ^
a.cc:8:14: error: extended character ” is not valid in an identifier
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |              ^
a.cc:8:26: error: stray '\' in program
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                          ^
a.cc:8:29: error: extended character ” is not valid in an identifier
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                             ^
a.cc:8:35: error: extended character − is not valid in an identifier
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                                   ^
a.cc:8:51: error: extended character − is not valid in an identifier
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                                                   ^
a.cc:2:1: error: 'u' does not name a type
    2 | u si n g namespace s t d ;
      | ^
a.cc:3:1: error: 'i' does not name a type
    3 | i n t main ( )
      | ^
Language: C++

#include "bits/stdc++.h"
#define rep(i,a,n) for(ll i=a;i<n;i++)
using namespace std;
typedef long long ll;
struct start { start() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  cout << fixed << setprecision(10);
}; }start;
void in() {}
template <class Head , class... Tail>
void in(Head&& head, Tail&&... tail) {
  cin >> head;
  in(move(tail)...);
}
template <class T>
  void out(T& t) {
  cout << t << 'n';
}
template <class Head , class... Tail...>
void out(Head& head , Tail&... tail) {
  cout << head << ' ';
  out(move(tail)...);
}
int main(void) {
  int k,ans=0;
  rep(i,1,k+1){
    if(!i%2){
      rep(j,1,k+1){
      	if(j%2)ans++;
      }
    }
  }
  out(ans);
  return 0;
}


Compiler output:
a.cc:20:37: error: expected '>' before '...' token
   20 | template <class Head , class... Tail...>
      |                                     ^~~