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

#include <stdio.h>

int Main(void){
 int A,B;
 scanf("%d %d",&A,&B);
 
 if(A%B==0){printf("0");}
 else {printf("1");}
 
 return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int Main(void){
 int A,B;
 scanf("%d %d",&A,&B);
 
 if(A%B==0)printf("0");
 else printf("1");
 
 return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

int Main(void){
 int A,B;
 scanf("%d %d",&A,&B);
 
 if(A%B==0)printf("0");
 else printf("1");
 
 return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:3:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |  scanf("%d %d",&A,&B);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int Main(void){
main.c:3:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |  scanf("%d %d",&A,&B);
      |  ^~~~~
main.c:3:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:12: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |  if(A%B==0)printf("0");
      |            ^~~~~~
main.c:5:12: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:12: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:12: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |  else printf("1");
      |       ^~~~~~
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int Main(){
 int A,B;
 scanf("%d %d",A,B);
 
 if(A%B==0)printf("0");
 else printf("1");
 
 return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:3:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |  scanf("%d %d",A,B);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int Main(){
main.c:3:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |  scanf("%d %d",A,B);
      |  ^~~~~
main.c:3:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:12: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |  if(A%B==0)printf("0");
      |            ^~~~~~
main.c:5:12: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:12: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:12: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |  else printf("1");
      |       ^~~~~~
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main (void)
{
  int N, K;
  scanf_s("%d",&N);
  scanf_s("%d",&K);
  if (N % K == 0)
    printf("0");
  else
    printf("1");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |   scanf_s("%d",&N);
      |   ^~~~~~~
      |   scanf
Language: Java




import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		if(a%b==0){
          System.out.println(0);
        }
      else{
         System.out.println(1);
	}
}


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

#include<stdio.h>
int main()
{
double M, N, a, counter=0;
scanf("%lf", &N);
M = (N-7*a)/4;
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter = counter + 1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: invalid operands to binary % (have 'double' and 'int')
    8 | if(M%1 == 0 && M >= 0){
      |     ^
Language: C

#include<stdio.h>
int main()
{
double M, N, a, counter=0;
M = (N-7*a)/4;
scanf("%lf", &N);
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter==1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: invalid operands to binary % (have 'double' and 'int')
    8 | if(M%1 == 0 && M >= 0){
      |     ^
Language: C

#include<stdio.h>
int main()
{
double M, N, a, counter=0;
M = (N-7*a)/4;
scanf("%d", &N);
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter==1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: invalid operands to binary % (have 'double' and 'int')
    8 | if(M%1 == 0 && M >= 0){
      |     ^
Language: C

#include<stdio.h>
main()
{
double M, N, a, counter=0;
M = (N-7*a)/4;
scanf("%d", &N);
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter==1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:5: error: invalid operands to binary % (have 'double' and 'int')
    8 | if(M%1 == 0 && M >= 0){
      |     ^
Language: C

#include<stdio.h>
main()
{
double M;
int N, a, counter=0;
M = (N-7*a)/4;
scanf("%d", &N);
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter==1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:5: error: invalid operands to binary % (have 'double' and 'int')
    9 | if(M%1 == 0 && M >= 0){
      |     ^
Language: C

#include<stdio.h>
main()
{
double M;
int N, a, counter=0;
M = (N-7*a)/4
scanf("%d", &N);
for(a=0; a <=14; a++){
if(M%1 == 0 && M >= 0){
counter==1
break;
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:14: error: expected ';' before 'scanf'
    6 | M = (N-7*a)/4
      |              ^
      |              ;
    7 | scanf("%d", &N);
      | ~~~~~         
main.c:9:5: error: invalid operands to binary % (have 'double' and 'int')
    9 | if(M%1 == 0 && M >= 0){
      |     ^
main.c:10:11: error: expected ';' before 'break'
   10 | counter==1
      |           ^
      |           ;
   11 | break;
      | ~~~~~      
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int N, K;
scanf("%d %d", &N, &K);
if(N<K){
printf("1");
}elseif(N%K == 0){
printf("0");
}else{
printf("1");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    8 | }elseif(N%K == 0){
      |  ^~~~~~
main.c:8:18: error: expected ';' before '{' token
    8 | }elseif(N%K == 0){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
main()
{
int N, K;
scanf("%d %d", &N, &K);
if(N<K){
printf("1");
}elseif(N%K == 0){
printf("0");
}else{
printf("1");
}
return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    8 | }elseif(N%K == 0){
      |  ^~~~~~
main.c:8:18: error: expected ';' before '{' token
    8 | }elseif(N%K == 0){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
main()
{
int N, K;
scanf("%d %d", &N, &K);
if(N<K){
printf("1");
}
elseif(N%K == 0){
printf("0");
}
else{
printf("1");
}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(N%K == 0){
      | ^~~~~~
main.c:9:17: error: expected ';' before '{' token
    9 | elseif(N%K == 0){
      |                 ^
      |                 ;
Language: C

#include<stdio.h>
main()
{
int N, K;
scanf("%d %d", &N, &K);
if(N<K){
printf("1");
}
elseif(N%K == 0){
printf("0");
}
else{
print("1");
}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(N%K == 0){
      | ^~~~~~
main.c:9:17: error: expected ';' before '{' token
    9 | elseif(N%K == 0){
      |                 ^
      |                 ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,K;
    cin >> N >> K;
    if(N%K == 0)
        cout << 0 << endl;
    else
         cout << 1 << endl;
    return 0;
]

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before ']' token
   12 | ]
      | ^
a.cc:12:2: error: expected '}' at end of input
   12 | ]
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        if(N%K == 0){
            Syste.out.println("0");
        }else{
            System.out.println("1");
        }
    }
}

Compiler output:
Main.java:9: error: package Syste does not exist
            Syste.out.println("0");
                 ^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a%b==0)
{
cout<<"0"<<endl;
}
else
{
cout<<"1"<<endl;
}
system(pause);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: 'pause' was not declared in this scope
   17 | system(pause);
      |        ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a%b;
system(pause);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'pause' was not declared in this scope
   10 | system(pause);
      |        ^~~~~
Language: Java

import java.util.Scanner;

public class A_AtCoderCrackers {
	//N枚のせんべいをK人に均等に配ったときに一番多くもらえる人と少ない人との枚数の差

	public static void main(String[] args) {

		int N; //せんべいの枚数
		int K; //人数
		int diff; //差分

		Scanner scan = new Scanner(System.in);

		N = scan.nextInt();
		K = scan.nextInt();

		if ( N % K == 0 ) {
			diff = 0;
		}else {
			diff = 1;
		}

		System.out.println(diff);

		scan.close();

	}

}


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

package atCoder;

import java.util.Scanner;

public class A_AtCoderCrackers {
	//N枚のせんべいをK人に均等に配ったときに一番多くもらえる人と少ない人との枚数の差

	public static void main(String[] args) {

		int N; //せんべいの枚数
		int K; //人数
		int diff; //差分

		Scanner scan = new Scanner(System.in);

		N = scan.nextInt();
		K = scan.nextInt();

		if ( N % K == 0 ) {
			diff = 0;
		}else {
			diff = 1;
		}

		System.out.println(diff);

		scan.close();

	}

}


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

s = raw_input().split(' ')
n, k = int(s[0]), int(s[1])
div, mo = n / k, n % d
if mo == 0:
    print mo
else:
    print div-mo

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = raw_input().split(' ')
      | ^
Language: C

#include<stdio.h>
int main()
{
int n,a;
scanf("%d",&n);
if(n%7==0||n%4==0)
{
printf("Yes");
}
else if
{
a=n%7;
if(a%4==0)
printf("Yes");
}
else
{
printf("No");
}
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected '(' before '{' token
   11 | {
      | ^
      | (
Language: C

#include<stdio.h>
int main()
{
int n,a;
scanf("%d",&n);
if(n%7==0||n%4==0)
{
printf("Yes");
}
elseif
{
a=n%7;
if(a%4==0)
printf("Yes");
}
else
{
printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: 'elseif' undeclared (first use in this function)
   10 | elseif
      | ^~~~~~
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: expected ';' before '{' token
   10 | elseif
      |       ^
      |       ;
   11 | {
      | ~
Language: C

#include<stdio.h>
int main()
{
int n,k,d;
scanf("%d %d",&n,&k);
d=n/k;
if(d==0)
{
printf("%d \n",d);
}
else
{
d=1;
printf("%d\n",d)
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 | printf("%d\n",d)
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C++

use std::io::*;
use std::str::*;

fn main() {
    let cin = stdin();
    let cin = cin.lock();

    let mut sc = Scanner::new(cin);

    let n: i32 = sc.read();
    let k: i32 = sc.read();

    let ans = if n % k == 0 { 0 } else { 1 };

    println!("{}", ans)
}

// いるんさんのスキャナ
// http://ir5.hatenablog.com/entry/20171209/1512821837
// ここから
struct Scanner<'a> {
    cin: StdinLock<'a>,
}

impl<'a> Scanner<'a> {
    fn new(cin: StdinLock<'a>) -> Scanner<'a> {
        Scanner { cin: cin }
    }

    fn read1<T: FromStr>(&mut self) -> Option<T> {
        let token = self
            .cin
            .by_ref()
            .bytes()
            .map(|c| c.unwrap() as char)
            .skip_while(|c| c.is_whitespace())
            .take_while(|c| !c.is_whitespace())
            .collect::<String>();
        token.parse::<T>().ok()
    }

    fn read<T: FromStr>(&mut self) -> T {
        self.read1().unwrap()
    }
}

// ここまで

Compiler output:
a.cc:21:16: warning: missing terminating ' character
   21 | struct Scanner<'a> {
      |                ^
a.cc:21:16: error: missing terminating ' character
   21 | struct Scanner<'a> {
      |                ^~~~~
a.cc:22:20: warning: missing terminating ' character
   22 |     cin: StdinLock<'a>,
      |                    ^
a.cc:22:20: error: missing terminating ' character
   22 |     cin: StdinLock<'a>,
      |                    ^~~~
a.cc:25:6: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   25 | impl<'a> Scanner<'a> {
      |      ^~~~~~~~~~~~~~
a.cc:26:27: warning: multi-character literal with 15 characters exceeds 'int' size of 4 bytes
   26 |     fn new(cin: StdinLock<'a>) -> Scanner<'a> {
      |                           ^~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::*;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main() {
      | ^~
a.cc:21:8: error: 'Scanner' is not a class template
   21 | struct Scanner<'a> {
      |        ^~~~~~~
a.cc:22:5: error: 'cin' was not declared in this scope
   22 |     cin: StdinLock<'a>,
      |     ^~~
a.cc:23:1: error: expected unqualified-id before '}' token
   23 | }
      | ^
a.cc:23:1: error: expected declaration before '}' token
a.cc:25:1: error: 'impl' does not name a type
   25 | impl<'a> Scanner<'a> {
      | ^~~~
Language: C++

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

int main()
{
int n,k,d;
scanf("%d %d",&n,&k);
if(n%k==0)
printf("0");
else
printf("1");
return 0;
}

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

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

int main()
{
int n,k,d;
scanf("%d %d",&n,&k);
if(n%k==0)
printf("0");
else
printf("1")
return 0;
}

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

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

int main()
{
int n,k,d;
(void)scanf("%d %d",&n,&k);
d=n%k;
printf("%d \n",d);
return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int n,m;
int main()
{
    scanf("%d%d"&n,&m);
    printf("%d",(n%m!=0));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid operands of types 'const char [5]' and 'int' to binary 'operator&'
    6 |     scanf("%d%d"&n,&m);
      |           ~~~~~~^~
      |           |      |
      |           |      int
      |           const char [5]
Language: C++

#include<stdio.h>
int a, b;
scanf("%d %d", &a,&b);
printf("%d \n", a%b!=0);

  

Compiler output:
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("%d %d", &a,&b);
      |      ^
a.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | printf("%d \n", a%b!=0);
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long a;
int main()
{
  cin>>a;
  bool kt=false;
  for (int x=0 ; x<=a/4 ; x++)
  {
    int y= (a-4*x)/7;
    if (4*x + 7*y == a))  kt=true;
  }
   if (kt) cout<<"Yes";
  else cout<<"No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected primary-expression before ')' token
   11 |     if (4*x + 7*y == a))  kt=true;
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long a,b;
int main()
{
  cin>>a;
  bool kt=false;
  for (int x=0 ; x<=a/4 ; x++)
  {
    y= (a-4*x)/7;
    if (4*x + 7*y == a))  kt=true;
  }
   if (kt) cout<<"Yes";
  else cout<<"No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'y' was not declared in this scope
   10 |     y= (a-4*x)/7;
      |     ^
a.cc:11:24: error: expected primary-expression before ')' token
   11 |     if (4*x + 7*y == a))  kt=true;
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n , k;
    cin >> n >> k;
    int res = n % k;
    cout << res != 0 << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << res != 0 << endl;
      |                    ~~^~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

    cout << min(abs(k - (n / k))) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: no matching function for call to 'min(int)'
   10 |     cout << min(abs(k - (n / k))) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:10:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |     cout << min(abs(k - (n / k))) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;

int N, K;

int main() {
  cin >> N >> K;
  
  if(N%K == 0) 
    cout << 0 << endl;
  else 
    ctou << 1 << endl;
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'ctou' was not declared in this scope
   12 |     ctou << 1 << endl;
      |     ^~~~
Language: C++

int N, K;

int main() {
  cin >> N >> K;
  
  if(N%K == 0) 
    cout << 0 << endl;
  else 
    ctou << 1 << endl;
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N >> K;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << 0 << endl;
      |     ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout << 0 << endl;
      |                  ^~~~
a.cc:9:5: error: 'ctou' was not declared in this scope
    9 |     ctou << 1 << endl;
      |     ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     ctou << 1 << endl;
      |                  ^~~~
Language: C++

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

 int a , b;
scanf(”%d%d” , &a , &b); printf(”%d\n” , a%b != 0);
}


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

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

int main(void)
{
  int n,k;
  cin>>n>>k;
  if(n < k)
  {
    printf("0/n");
  }
  else
  {
    printf("%d/n",n%k);
  }




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

#include<iostream>
using namespace std;

int main() {
  int n, k;
  cin >> n >> k;
  in//t r = n / k;
  //int g = n % k;
  if (n % k == 0 ) {
    cout << 0 << endl;
  } else {
    cout << 1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'in' was not declared in this scope; did you mean 'n'?
    7 |   in//t r = n / k;
      |   ^~
      |   n
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define start_routine cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false); int begtime = clock();
#define end_routine int endtime = clock(); cerr << endl << "Time elapsed: " << (endtime - begtime)*1000/CLOCKS_PER_SEC << " ms"; return 0
#define endl '\n'
#define contests_de_diya_kar 0
#define PB push_back
#define MP make_pair
#define int long long
#define MOD ((long long) (1000*1000*1000 + 7))
#define inf (int) 2e15
#define exit(a, b) return cout << a, b;
#define eps (double)1e-8
#define forn(a, b, i) for (int i = a; i < b; i += 1)
#define vi vector<int>
#define vb vector<bool>
#define all(v) v.begin(), v.end() 
#define pii pair<int, int>
#define mii map<int, int> 
#define print(stuff) cout << stuff << endl
#define len(stuff) stuff.size()

vector<pair<int, int>> tree;
vector<int> arr;
pair<int, int> qans(MP(-inf, -inf));

void build (int l, int r, int node) {
	if (l == r) {
		tree[node].first = arr[l];
		tree[node].second = -inf;
		return;
	} 
	int mid = (l + r) / 2;
	build(l, mid, 2 * node + 1);
	build(mid + 1, r, 2 * node + 2);
	vi te;
	te.push_back(tree[2 * node + 1].first);
	te.push_back(tree[2 * node + 2].first);
	te.push_back(tree[2 * node + 1].second);
	te.push_back(tree[2 * node + 2].second);

	sort(all(te));
	reverse(all(te));
	tree[node].first = te[0];
	tree[node].second = te[1];
}

void update (int l, int r, int node, int idx, int x) {
	if (l > idx or r < idx) return;
	if (l == r) {
		tree[node].first = x;
		tree[node].second = -inf;
		return;
	}
	int mid = (l + r) / 2;
	update (l, mid, 2 * node + 1, idx, x);
	update (mid + 1, r, 2 * node + 2, idx, x);
	vi te;
	te.push_back(tree[2 * node + 1].first);
	te.push_back(tree[2 * node + 2].first);
	te.push_back(tree[2 * node + 1].second);
	te.push_back(tree[2 * node + 2].second);

	sort(all(te));
	reverse(all(te));
	tree[node].first = te[0];
	tree[node].second = te[1];
}

void query (int l, int r, int node, int lu, int ru) {
	if (l > lu or r < lu) return;
	if (l >= lu and r <= ru) {
		vi te;
		te.push_back(qans.first);
		te.push_back(qans.second);
		te.push_back(tree[node].first);
		te.push_back(tree[node].second);

		sort(all(te));
		reverse(all(te));
		qans.first = te[0], qans.second = te[1];
		return;
	}
	int mid = (l + r) / 2;
	query (l, mid, 2 * node + 1, lu, ru);
	query (mid + 1, r, 2 * node + 2, lu, ru);
}
signed main () {
	start_routine;
	#ifndef ONLINE_JUDGE
	//freopen("input.txt", "r", stdin);
	#endif

	int n, k;
	cin >> n >> k;

	else if (n % k == 0) cout << 0 << endl;
	else cout << 1 << endl;

	end_routine;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:97:9: error: 'else' without a previous 'if'
   97 |         else if (n % k == 0) cout << 0 << endl;
      |         ^~~~
Language: C++

#include<stdio .h>
int main()
{
int a , b;
scanf(”%d%d” , &a , &b );
printf(”%d\n” , a%b != 0);
}

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

#Include <iostream>

int main(void) {
int N, K;
std::cin >> N >> K;
if (N % K == 0) std::cout << "0" << std::endl;
else std::cout << "1" << std::endl;
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' is not a member of 'std'
    5 | std::cin >> N >> K;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include <iostream>
a.cc:6:22: error: 'cout' is not a member of 'std'
    6 | if (N % K == 0) std::cout << "0" << std::endl;
      |                      ^~~~
a.cc:6:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:42: error: 'endl' is not a member of 'std'
    6 | if (N % K == 0) std::cout << "0" << std::endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include <iostream>
a.cc:7:11: error: 'cout' is not a member of 'std'
    7 | else std::cout << "1" << std::endl;
      |           ^~~~
a.cc:7:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:31: error: 'endl' is not a member of 'std'
    7 | else std::cout << "1" << std::endl;
      |                               ^~~~
a.cc:7:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N K;
  cin >> N >> K;
  if (N % K == 0) cout << 0 << endl;
  else cout << 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'K'
    4 |   int N K;
      |         ^
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N >> K;
      |          ^
a.cc:5:15: error: 'K' was not declared in this scope
    5 |   cin >> N >> K;
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main() {
  int N, K;
  cin >> N >> K ;
  if (N % K == 0) cout << 0 << endl;
  else cout << 1 << endl;
  

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

#include<iostream>
#include<string.h>
#include<string>
#include<map>
#include<set>
#include<vector>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<queue>
using namespace std;
const int Maxn=50;
struct team
    {
    string nam;
    int pnts,sc,mis; 
    };
    int n;
team T[Maxn];
void add(const string&s,int a,int b)
{
  for(int i=0;i<n;i++)
    if(T[i].nam==s)
    {
        if(a>b)
        T[i].pnts+=3;
        else if(a==b)
        T[i].pnts+=1;
        T[i].sc+=a;
        break;
    }
}
bool less1(const team &a,const team&b)
{
    if(a.pnts!=b.pnts)
    return a.pnts>b.pnts;
    else if(a.sc-a.mis!=b.sc-b.mis)
    return a.sc-a.mis>b.sc-b.mis;
    else return a.sc>b.sc;
}
bool less2(const team &a,const team &b)
{
    return a.nam<b.nam;
}
int main()
{
    string a,b;
    int c,d;
    cin>>n;
    for(int i=0;i<n;i++)
    cin>>T[i].nam;
    cin.ignore();
    for(int i=0;i<n*(n-1)/2;i++)
    {
        getline(cin,a,'-');
        getline(cin,b,' ');
        scanf("%d:%d",&c,&d);
        cin.ignore();
        add(a,c,d);
        add(b,d,c);
    }
    sort(T,T+n,less1);
    sort(T,T+n/2,less2);
    for(int i=0;i<n/2;i++)
if(i=2)
i++;
for(int i=0;i<T+n/2;i++)    
     and
     
    
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   67 | for(int i=0;i<T+n/2;i++)
      |             ~^~~~~~
a.cc:71:7: error: expected ';' before '(' token
   71 | system("pause");
      |       ^
      |       ;
a.cc:71:1: error: label 'system' used but not defined
   71 | system("pause");
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n,k,a;
  if(n%k=0)
  {
    a=0;
  }
  else
  {
    a=1;
  }
  return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  int n,k,a;
  if(n%k=0)
  {
    a=0;
  }
  else
  {
    a=1;
  }
  return 0+;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(n%k=0)
      |      ~^~
a.cc:14:12: error: expected primary-expression before ';' token
   14 |   return 0+;
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n,k,a;
  if(n%k==0)
  {
    a=0;
  }
  else
  {
    a=1;
  }
  return 0+;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected primary-expression before ';' token
   14 |   return 0+;
      |            ^
Language: C++

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

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

  if (N%K==0) {
    cout << 0 << endl;
  }

  if (N%K!=0) {
    cout << 1 << endl;
  }}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'k'
    5 |   int N k;
      |         ^
a.cc:6:9: error: 'N' was not declared in this scope
    6 |   cin >>N>>K;
      |         ^
a.cc:6:12: error: 'K' was not declared in this scope
    6 |   cin >>N>>K;
      |            ^
Language: C++

#include <iostream>

using namespace std;
int main(int argc, char *argv[]) {
	int a,i = 0;
	cin >> a;
	if(a < 4){
		cout << "No";
	}else if(a%4==0 || a%7==0){
		cout << "Yes";
	}
	}else{
		for( ; ; ){
			a -= 4;
			if(a == (a%7==0)){
				i = 1;
				break;
			}
			if(a < 0){
				i = 0;
				break;
			}
		}
		if(i == 1){
		cout << "Yes";
		}else if(i == 0){
			cout << "No";
		}
	}
}

Compiler output:
a.cc:12:10: error: expected unqualified-id before 'else'
   12 |         }else{
      |          ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N, M;
  cin >> N >> M;
  cout << (N % M == 0) ? 0 : 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (N % M == 0) ? 0 : 1 << endl;
      |                              ~~^~~~~~~
Language: C++

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

int main(){
	auto read_string 	=	[](){ string s; cin >> s; return s; };
	auto read_int       =   [](){ int tmp; cin >> tmp; return tmp; };
	auto read_char      =   [](){ char c; cin >> c; return c; };
	auto str_repeat	 	=	[](string a,int count){	string res = ""; for(size_t i = 0 ; i < count ; i++) res += a; return res;	};
	auto to_lower_case 	= 	[](string s){ string res=""; for(size_t i = 0 ; i < s.size() ; i++) res += tolower(s[i]); return res; };
	auto to_upper_case 	= 	[](string s){ string res=""; for(size_t i = 0 ; i < s.size() ; i++) res += toupper(s[i]); return res; };
	auto read_vec_int   =   [](int count){ vector<int> tmp(count); for(size_t i = 0 ; i < count ; i++) cin >> tmp[i]; return tmp; };
	auto title_case     =   [](string s) { string ret = ""; ret+=toupper(s[0]); ret += s.substr(1); return ret; };

	int n=read_int(),k=read_int();

	if(n%k == 0){
		cout <<  "0" << endl;
		exit(0);
	}

	if(k > n){`
		cout <<  "1" << endl;
		exit(0);
	}

	int min = n / k;
	int max = (n/k) + (n%k);
	cout <<  (max-min)<< endl;
	return 0;
}


Compiler output:
a.cc:21:19: error: stray '`' in program
   21 |         if(k > n){`
      |                   ^
Language: C

#include<stdio.h>
#include<math.h>
int main(){
  int a,N,K;
  1<=N;
  K<=100;
  scanf("%d %d\n", &N &K);
  a=N%K;
  printf("%d\n",a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:23: error: invalid operands to binary & (have 'int *' and 'int')
    7 |   scanf("%d %d\n", &N &K);
      |                    ~~ ^
      |                    |
      |                    int *
Language: C++

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

int main()
{
	int A, B;

	if (scanf("%d %d", &A, &B) == 2)
	{
			printf("%d",A%B);
		
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,k,ans;scanf("%d%d",&n,&k);
    if(n==0||k==0)
    {
        printf("0");
        return 0；
    }
    n=abs(n);k=abs(k);
    if(n%k==0) ans=0;
    else ans=n%k;
    printf("%d",abs(ans));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: unable to find numeric literal operator 'operator""\U0000ff1b'
    9 |         return 0；
      |                ^~~
a.cc:9:19: error: expected ';' before '}' token
    9 |         return 0；
      |                   ^
      |                   ;
   10 |     }
      |     ~
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <queue>
#include <algorithm>
using namespace std;

int main() {
	int n, k;
	cin >> n >> k;
	int a[3];
	if (k > n) {
		cout << 1 << endl;
		return 0;
	}
	a[0] = n / k;
	a[1] = n / k + 1;
	a[2] = n / k - 1;
	cout << min(abs(n - a[0] * (k - 1) - a[0]), abs(n - a[1] * (k - 1) - a[1]), abs(n - a[2] * (k - 1) - a[2])) << endl;
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:20:13:   required from here
   20 |         cout << min(abs(n - a[0] * (k - 1) - a[0]), abs(n - a[1] * (k - 1) - a[1]), abs(n - a[2] * (k - 1) - a[2])) << endl;
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,k;
	scanf("%d %d",&n,&k);
	if(n<k)
	{
		if(n==k-1)
		{
			printf("%d",k%n);
		}
		else
		{
			printf("%d",n)
		}
	}
	else
	{
		printf("%d",n%k);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: expected ';' before '}' token
   15 |                         printf("%d",n)
      |                                       ^
      |                                       ;
   16 |                 }
      |                 ~
Language: C++

#include <cstdio>
#include <stdio>
#include <math>

int main() {
  int n, k;
  int ans;
  scanf("%d", &n);
  scanf("%d", &k);
  (n%k)? ans=1: ans=0;
  printf("%d\n", ans);
  
  return 0;  
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '>' token
    6 |         cin>>>n>>k;
      |              ^
Language: C++

#include<bits/stdc++.h>
usinf namespace std;
int main()
{
	int n;
	int k;
	scanf("%d %d",&n,&k);
	printf("%d",n%k);
	return 0;
}

Compiler output:
a.cc:2:1: error: 'usinf' does not name a type
    2 | usinf namespace std;
      | ^~~~~
Language: C

#include <stdio.h>
int main(void) {
  long long n,m[30],k,ans[30];
  int i,j,d;
  scanf("%lld",&n);
  m[30]=n;
  for(i=30;i>=1;i--){
    if(m[i]<0) m[i]=-m[i];
    k=1;
    for(j=1;j<=i;j++){
      k=k*(-2);
    }
    if(k<0) k=-k;
    if(m[i]>=k) ans[i]=1;
    else ans[i]=0;
  }
  d=30;
  while(ans[d]=0) do{d--;}
  for(i=d;i>=1;i--){
    printf("%d",ans[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:3: error: expected 'while' before 'for'
   19 |   for(i=d;i>=1;i--){
      |   ^~~
main.c:19:19: error: expected ';' before ')' token
   19 |   for(i=d;i>=1;i--){
      |                   ^
      |                   ;
main.c:19:19: error: expected statement before ')' token
Language: C++

include<iostream>
using namespace std;

int main(void){
	int n, k;
	cin >> n, k;
	if(n % k == 0){
		cout << 0 << endl;
	}else{
		cout << 1 << endl;
	}
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> n, k;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << 0 << endl;
      |                 ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |                 cout << 0 << endl;
      |                              ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << 1 << endl;
      |                 ^~~~
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |                 cout << 1 << endl;
      |                              ^~~~
Language: C++

#include<iostream>
using namespase std;
int main(){
  int n,k;
  cin>>n>>k;
  cout<<n%k<<endl;
  }


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<n%k<<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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<n%k<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C


#include <stdio.h>
#include 

int main(void){
	int N,n;
	int K,k[100] = {'0'};
	int i = 0;
	int min = 0,max = 0;
	
	scanf("%d %d",&N,&K);
	n = N; 
	while(N != 0){
		++k[(++i % n)];
		--N;
	}
	min = max = k[0]; 
	for(i = 0;i < n; ++i){
		if(max < k[i])	max = k[i];
		if(k[i] < min)	min = k[i];
	}
	printf("%d",max - min);
	return 0;
}


Compiler output:
main.c:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include
      |          ^
Language: C


#include <stdio.h>

int main(void){
	int N,n;
	int K,k[100] = {'0'};
	int i = 0;
	int min = 0,max = 0;
	
	scanf("%d %d",&N,&K);
	n = N; 
	while(N != 0){
		++k[(++i % n)];
		--N;
	}
	min = max = K[0]; 
	for(i = 0;i < n; ++i){
		if(max < K[i])	max = K[i];
		if(K[i] < min)	min = K[i];
	}
	printf("%d",max - min);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:22: error: subscripted value is neither array nor pointer nor vector
   16 |         min = max = K[0];
      |                      ^
main.c:18:27: error: subscripted value is neither array nor pointer nor vector
   18 |                 if(max < K[i])  max = K[i];
      |                           ^
main.c:18:40: error: subscripted value is neither array nor pointer nor vector
   18 |                 if(max < K[i])  max = K[i];
      |                                        ^
main.c:19:21: error: subscripted value is neither array nor pointer nor vector
   19 |                 if(K[i] < min)  min = K[i];
      |                     ^
main.c:19:40: error: subscripted value is neither array nor pointer nor vector
   19 |                 if(K[i] < min)  min = K[i];
      |                                        ^
Language: C++

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

int main() {
  int n,c=0;
  cin>>n;
  for(int i=1;i*(-2)){
    if(i<n){
      c=i;
    }
    else {
      break;
    }
  }
  for(int x=c;x/(-2)){
    cout<<n%x<<endl;
    if(x==1){
      break;
    }
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before ')' token
    7 |   for(int i=1;i*(-2)){
      |                     ^
      |                     ;
a.cc:15:21: error: expected ';' before ')' token
   15 |   for(int x=c;x/(-2)){
      |                     ^
      |                     ;
Language: C++

#inc]lude <bits/stdc++.h>
using namespace std;

int main() {
	int ans;
	int n, k;

	cin >> n >> k;

	int m = n / k;
	if( m > 0 ) {
		ans = n % m;
	
	else {
		ans = 1;
	}

	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inc
    1 | #inc]lude <bits/stdc++.h>
      |  ^~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> n >> k;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inc]lude <bits/stdc++.h>
a.cc:14:9: error: expected '}' before 'else'
   14 |         else {
      |         ^~~~
a.cc:11:21: note: to match this '{'
   11 |         if( m > 0 ) {
      |                     ^
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << ans << endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:24: error: 'endl' was not declared in this scope
   18 |         cout << ans << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inc]lude <bits/stdc++.h>
Language: C++

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

int main() {
	int ans;
	int n, k;

	cin >> n >> k;

	int m = n / k;
	if( m > 0 ) {
		ans = n % m;
	else {
		ans = 1;
	}

	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected '}' before 'else'
   13 |         else {
      |         ^~~~
a.cc:11:21: note: to match this '{'
   11 |         if( m > 0 ) {
      |                     ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <functional>
#include <cstdio>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'N' was not declared in this scope
   16 |     cin >> N >> K;
      |            ^
a.cc:16:17: error: 'K' was not declared in this scope
   16 |     cin >> N >> K;
      |                 ^
Language: C++

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

#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define sqr(a) (a)*(a)
#define M(a, b) make_pair(a,b)
#define T(a, b, c) make_pair(a, make_pair(b, c))
#define F first
#define S second
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 222222

using namespace std;
//using namespace __gnu_pbds;

typedef long double ld;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vll;
//typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;

const ld pi = 2 * acos(0.0);
template<class T> bool umin(T& a, T b){if(a>b){a=b;return 1;}return 0;}
template<class T> bool umax(T& a, T b){if(a<b){a=b;return 1;}return 0;}
template<class T, class TT> bool pal(T a, TT n){int k=0;for(int i=0;i<=n/2;i++){if(a[i]!=a[n-i-1]){k=1;break;}}return k?0:1;}

//int month[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};

int main()
{
	ll n;
	cin >> n;
	if(n > 0)
	{
		while(n > 0)
		{
			ll k = log2(n);
			if(k & 1)
				k --;
			a[k] = 1;
			k = (1ll << k);
			n -= k;
		}
	}
	else
	{
		n = abs(n);
		while(n > 0)
		{
			ll k = log2(n);
				
		}
	}





	





	getchar();
	getchar();
	return 0;
	//ios::sync_with_stdio(false);
	//cin.tie(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:25: error: 'a' was not declared in this scope
   45 |                         a[k] = 1;
      |                         ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	int N, K;
  	cin >> N >> K;
  	if(N >= K){
        cout << N % K << endl;
    }esle{
        cout << '1' << endl;
    }

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'esle' was not declared in this scope
   10 |     }esle{
      |      ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int N,K;
	cin>>N>>K;
	if(N%K==0) cout<<0
    else cout<<1 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'else'
    8 |         if(N%K==0) cout<<0
      |                           ^
      |                           ;
    9 |     else cout<<1
      |     ~~~~