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

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

int main(void){
	int n,k;
	int m;

	scanf("%d %d",&n,&k);
	m = n/k;
    if(m == 0){
        printf("0\n");
    }else{
        printf("1\n");      
	}
	return 0;
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected '}' before 'else'
   13 |         else{
      |         ^~~~
a.cc:11:15: note: to match this '{'
   11 |     if(m == 0){
      |               ^
a.cc: At global scope:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(void){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(void){
      |     ^~~~
a.cc:35:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   35 | 提出情報
      | ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a;
int main()
{
	cin>>a;
	if(a%7==0||a%4==0||a%7%4==0){
		cout<<"Yes";
		return 0;
	}
	for(int i=1;i<=a;i++){
		if((a-i*4)%7==0||(a-i*7)%4==0){
			cout<<"Yes";
			return 0;
		}
	}
	else {
		cout<<"No";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else {
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
#define pf              printf
#define sf              scanf
#define FOR(i,a,b)      for(i = a; i <= b; i++)
#define For(a,b)        for(int i=a; i<=b; i++)
#define REP(i,a,b)      for(i = a; i >= b; i--)
#define Rep(a,b)        for(int i=a; i>=b; i--)
#define el              endl
#define rtn0            return 0;
#define sqr(a)          ((a) * (a))
int main()
{
//	n to k
	int n,k;
	sf("%d%d",&n,&k);
	int q=0,p=0,ans=0;
	if(n==k)
	{
		ans=0;
	}
	else
	{
		q=(n-(n%k))/k;
		p=n%k;
		ans=abs(q-p);
	}
	cout<<ans<<endl;
	rtn0
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |         cout<<ans<<endl;
      |         ^~~~
      |         std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |         cout<<ans<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(void){
	int n,k;
	int m;

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

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

#include<stdio.h>

int main()
{
	int A, B;
	scanf("%d%d", &A &B);
	
	if (A%B>0)
		printf("%d", 1);


	else;
	printf("%d", 0);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:26: error: invalid operands to binary & (have 'int *' and 'int')
    6 |         scanf("%d%d", &A &B);
      |                       ~~ ^
      |                       |
      |                       int *
Language: C

#include<stdio.h>

int main()
{
    int A,B;
    scanf("%d",&A);
    scanf("%d",&B);
    
    if (A%B>0)
    printf("%d",1);
    
    
    else;
    printf("%d",0);

    return0;
}


Compiler output:
main.c: In function 'main':
main.c:16:5: error: 'return0' undeclared (first use in this function)
   16 |     return0;
      |     ^~~~~~~
main.c:16:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
	int N;
	scanf_s("%d", &N);

	if (N == 0) {
		printf("No\n");
		return 0;
	}

	while (N - 7 >= 0) {
		N = N - 7;
	}

	while (N - 4 >= 0) {
		N = N - 4;
	}

	if (N == 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
	return 0;
}

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

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'k' was not declared in this scope
    8 |   cin>>N>>k;
      |           ^
Language: C

#include<iostream>

int main(void){
   int n,k,d;
   std::cin >> n >> k;
   d=n%k;
     if(k>n){
    d=1;
  }
   std::cout << d;
}

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

#include<bits/stdc++.h>
#define pf              printf
#define sf              scanf
using namespace std;
int main()
{
//	n to k
	int n,k;
	sf("%d%d",&n,&k);
	int q=0,p=0,ans=0;
	q=(n-(n%k))/k;
	p=n%k;
	ans=abs(q-p);
	cout<<ans<<endl;
	rtn0
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'rtn0' was not declared in this scope
   15 |         rtn0
      |         ^~~~
Language: C++

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

int main(){
 cout<<"N"%"K"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: invalid operands of types 'const char [2]' and 'const char [2]' to binary 'operator%'
    5 |  cout<<"N"%"K"<<endl;
      |        ~~~^~~~
      |        |   |
      |        |   const char [2]
      |        const char [2]
Language: Java

package test;

public class Index {
	public static void main(String[] args){
		if (Integer.parseInt(args[0])%Integer.parseInt(args[1]) == 0) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}
}


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

#include <iostream>

using namespace std;

int n , k , ans = 1e9;

void solve(int sum , int num , int MIN , int MAX)
{
    if(sum > n || num > k)
        return ;
    if(sum == n && num == k)
    {
        ans = min(ans , MAX - MIN);
        return ;
    }
    if(vis[sum][num][MIN][MAX])
        return ;
    vis[sum][num][MIN][MAX] ;
    for(int i = 1 ; i <= 100 ; ++i)
        solve(sum + i , num+1 , min(MIN , i) , max(MAX , i));
}

int main()
{
    cin>>n>>k ;
    //solve(0 , 0 , 1e9 , 0) ;
    if(n % k == 0)
        cout<<0;
    else
    cout<<1;
    return 0 ;
}


Compiler output:
a.cc: In function 'void solve(int, int, int, int)':
a.cc:16:8: error: 'vis' was not declared in this scope
   16 |     if(vis[sum][num][MIN][MAX])
      |        ^~~
a.cc:18:5: error: 'vis' was not declared in this scope
   18 |     vis[sum][num][MIN][MAX] ;
      |     ^~~
Language: Java

public 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) {
			System.out.println(1);
		} else if(N%K==0) {
			System.out.println(0);
		}else{
			System.out.println(1);
		}
	}
}


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

import java.util.Scanner;
public class B811 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean flg=false;
        int n = sc.nextInt();
        while(n>3){
            if(n%4==0 || n>=28){
                flg=true;
                break;
            }
            n-=7;
        }
        if(flg==true) System.out.println("Yes");
        else System.out.println("No");
    }
}

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean flg=false;
        int n = sc.nextInt();
        while(n>3){
            if(n%4==0 || n>=28){
                flg=true;
                break;
            }
            n-=7;
        }
        if(flg==true) System.out.println("Yes");
        else System.out.println("No");
    }
}

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

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

int main(){
 cout<<N%K<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'N' was not declared in this scope
    5 |  cout<<N%K<<endl;
      |        ^
a.cc:5:10: error: 'K' was not declared in this scope
    5 |  cout<<N%K<<endl;
      |          ^
Language: Java

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

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:3: error: illegal character: '#'
#include <vector>
^
Main.java:4: error: illegal character: '#'
#include <algorithm>
^
Main.java:5: error: illegal character: '#'
#include <unordered_set>
^
Main.java:10: error: not a statement
  cin >> N >> K;
           ^
Main.java:12: error: not a statement
    cout << 0 << endl;
              ^
Main.java:14: error: not a statement
    cout << 1 << endl;
              ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
9 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"0";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"1";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
class Main 
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int j = sc.nextInt();

System.out.println( k % i);
}
}

Compiler output:
Main.java:10: error: cannot find symbol
System.out.println( k % i);
                        ^
  symbol:   variable i
  location: class Main
1 error
Language: C++

import java.util.*;
class Main 
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int j = sc.nextInt();

System.out.println( k % i);
}
}

Compiler output:
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'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main (String[] args)
      |       ^~~~~~~
      |       :
a.cc:4:26: error: 'String' has not been declared
    4 | public static void main (String[] args)
      |                          ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
    4 | public static void main (String[] args)
      |                                   ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:7:9: error: 'sc' was not declared in this scope
    7 | int k = sc.nextInt();
      |         ^~
a.cc:10:1: error: 'System' was not declared in this scope
   10 | System.out.println( k % i);
      | ^~~~~~
a.cc:10:25: error: 'i' was not declared in this scope
   10 | System.out.println( k % i);
      |                         ^
Language: C++

        #include<cstdio>
#include<cmath>
        using namespace std;
        int a,b;
        int main(){
        scanf("%d%d",&a,&b);
        if(a%b==0) printf("0");
else printf("%d",min((a/b)+1)*b-a,a%b));
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: no matching function for call to 'min(int)'
    8 | else printf("%d",min((a/b)+1)*b-a,a%b));
      |                  ~~~^~~~~~~~~
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/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
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'lfabs' was not declared in this scope; did you mean 'llabs'?
    7 |     printf("%d",lfabs(a/b));
      |                 ^~~~~
      |                 llabs
Language: C++

class Main 
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int j = sc.nextInt();

System.out.println( k % i);
}
}

Compiler output:
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main (String[] args)
      |       ^~~~~~~
      |       :
a.cc:3:26: error: 'String' has not been declared
    3 | public static void main (String[] args)
      |                          ^~~~~~
a.cc:3:35: error: expected ',' or '...' before 'args'
    3 | public static void main (String[] args)
      |                                   ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:6:9: error: 'sc' was not declared in this scope
    6 | int k = sc.nextInt();
      |         ^~
a.cc:9:1: error: 'System' was not declared in this scope
    9 | System.out.println( k % i);
      | ^~~~~~
a.cc:9:25: error: 'i' was not declared in this scope
    9 | System.out.println( k % i);
      |                         ^
Language: C++

#include <cstdio>

int main(){
   int N;
   scanf("%d",&N);
   for(int i=0; i*4 <= N ; i++){
          for(int j=0 ; i *4 + j *7<=N){
                if(i*4+j*7 == N){
                      printf("Yes");
                     return 0;
                  }
           }
     }
     printf("No");
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: expected ';' before ')' token
    7 |           for(int j=0 ; i *4 + j *7<=N){
      |                                       ^
      |                                       ;
Language: Java

public static void main(String[] args){
	int num = Integer.parseInt(args[0]);
	int numOfPeople = Integer.parseInt(args[1]);
	
	if (num%numOfPeople == 0) {
		System.out.println(0);
	} else {
		System.out.println(1);
	}
}

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

#include<stdlib.h>
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int ans,N,k,m;
cin>>N>>K;
ans=1;
if(N<k){
	ans=1;
}
else {
	m=N%k;
	if(m==0) ans=0;
}

	
cout <<ans<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'K' was not declared in this scope
    7 | cin>>N>>K;
      |         ^
Language: Java

import java.util.Scanner;

public class ProblemA {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		while (sc.hasNext()) {
			int N = sc.nextInt();
			int K = sc.nextInt();

			if (N/K == 0) {
				System.out.println("0");
			} else {
				System.out.println("1");
			}
		}
	}

}


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

package test;

public class Index {
	public static void main(String[] args){
		int num = Integer.parseInt(args[0]);
		int numOfPeople = Integer.parseInt(args[1]);
		
		if (num%numOfPeople == 0) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}
}


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

import java.util.Scanner;

public class ProblemA {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		while (sc.hasNext()) {
			int N = sc.nextInt();
			int K = sc.nextInt();

			if (N/K == 0) {
				System.out.println(0);
			} else {
				System.out.println(1);
			}
		}
	}

}


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


#include <stdio.h>
#inckude <stdlib.h>

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


Compiler output:
main.c:3:2: error: invalid preprocessing directive #inckude; did you mean #include?
    3 | #inckude <stdlib.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:12:21: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   12 |         *k = (int *)malloc(sizeof(int) * K);
      |                     ^~~~~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    2 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    3 | #inckude <stdlib.h>
main.c:12:21: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   12 |         *k = (int *)malloc(sizeof(int) * K);
      |                     ^~~~~~
main.c:12:21: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:12:12: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   12 |         *k = (int *)malloc(sizeof(int) * K);
      |            ^
Language: C++

#include<iostream>

int main()
{
  int N,K;
  std::cin>>N>>k;
  std::cout<<N%K<<std::endl;
  return 0;
}

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

#include <iostream>
#include <stdio.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  printf("%d\n",(a%b==0)?0:1);
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: C++

#include <iostream>

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:5:5: 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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << 0 << 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:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << 0 << 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)
      |     ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << 1 << 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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << 1 << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:20: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   10 |         k = (int *)malloc(sizeof(int) * K);
      |                    ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:20: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   10 |         k = (int *)malloc(sizeof(int) * K);
      |                    ^~~~~~
main.c:10:20: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:10:11: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   10 |         k = (int *)malloc(sizeof(int) * K);
      |           ^
main.c:13:20: error: subscripted value is neither array nor pointer nor vector
   13 |                 ++k[(++i % K)];
      |                    ^
main.c:17:16: error: subscripted value is neither array nor pointer nor vector
   17 |         max = k[(i - 1) % n];
      |                ^
Language: Java

package test;

public class Index {
	public static void main(String[] args){
		int num = Integer.parseInt(args[0]);
		int numOfPeople = Integer.parseInt(args[1]);
		
		if (num/numOfPeople == 0) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}
}

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

#include <iostream>
#include <stdio.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  std::cout<<(a%b==0)?0:1<<std::endl;
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   std::cout<<(a%b==0)?0:1<<std::endl;
      |                         ~^~~~~~~~~~~
a.cc:7:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: Java

public class Index {
	public static void main(String[] args){
		int num = Integer.parseInt(args[0]);
		int numOfPeople = Integer.parseInt(args[1]);
		
		if (num/numOfPeople == 0) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}
}

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

import java.util.Scanner;

public class ProblemA {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		while (!sc.hasNext()) {
			int N = sc.nextInt();
			int K = sc.nextInt();

			if (N/K == 0) {
				System.out.println(0);
			} else {
				System.out.println(1);
			}
		}
	}

}


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

	public static void main(String[] args){
		int num = Integer.parseInt(args[0]);
		int numOfPeople = Integer.parseInt(args[1]);
		
		if (num/numOfPeople == 0) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}


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

#include <iostream>
using namespace std;
int main(){
  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:10: error: 'N' was not declared in this scope
    4 |   cin >> N >> K;
      |          ^
a.cc:4:15: error: 'K' was not declared in this scope
    4 |   cin >> N >> K;
      |               ^
Language: C

#include<stdio.h>

int main(){
	int n;
	scanf("%d",&n);
	int i=0;
	if(n%4==0){
		puts("Yes");
		return 0;
	}
	while(i*7=>n)i++;
	if((i*7-n)%3==0)puts("Yes");
	else puts("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: expected expression before '>' token
   11 |         while(i*7=>n)i++;
      |                   ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <numeric>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main() {
  int N, K;

  cin >> N >> K;

  //cout << (N%K) << endl;
  if (N % K == 0){
    cout << 0 << endl;
  } else {
    cout << 1 << endkl
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: 'endkl' was not declared in this scope
   33 |     cout << 1 << endkl
      |                  ^~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<random>
#include<numeric>
#include<string>
#include<cstring>
typedef long long ll;
typedef long double ld;
using namespace std;
ll dx[] = { 0,0,1,-1 };
ll dy[] = { 1,-1,0,0 };

ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}
ll lcm(ll a, ll b) {
	return a / gcd(a, b)*b;
}
ll prime(ll x) {
	ll i;
	if (x < 2)return 0;
	else if (x == 2) return 1;
	if (x % 2 == 0) return 0;
	for (i = 3; i*i <= x; i += 2) {
		if (x%i == 0) return 0;
	}
	return 1;
}

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:13: error: 'N' was not declared in this scope
   40 |         if (N%K == 0)
      |             ^
a.cc:40:15: error: 'K' was not declared in this scope
   40 |         if (N%K == 0)
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    int n,k,amari,ans = 0;
    int cok[100];
    cin >> n >> k;
    amari = n % k;
    if (amari == 0){
        ans = 0;
    } else if{
        ans = 1;
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected '(' before '{' token
   10 |     } else if{
      |              ^
      |              (
Language: C++

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

int main ()
{
  unsigned double N, K;
  cin >> N >> K;
  
  if (K > N)
  {
      cout << 0 << endl;
      return 0;
  }
  
  cout << abs((N / K) + (N % K) - (N / K)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'unsigned' specified with 'double'
    7 |   unsigned double N, K;
      |   ^~~~~~~~
a.cc:7:3: error: 'unsigned' specified with 'double'
a.cc:16:28: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   16 |   cout << abs((N / K) + (N % K) - (N / K)) << endl;
      |                          ~ ^ ~
      |                          |   |
      |                          |   double
      |                          double
Language: C++

#include <stdio.h>
using namespace std;
int main ()
{
int n,k;
cin>>n>>k;
cout<<n%k;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>n>>k;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<n%k;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main ()
{
  unsigned int N, K;
  cin >> N >> K;
  
  if (K > N)
  {
      cout << 0;
      return;
  }
  
  cout << abs((N / K) + (N % K) - (N / K)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
a.cc:16:14: error: call of overloaded 'abs(unsigned int)' is ambiguous
   16 |   cout << abs((N / K) + (N % K) - (N / K)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

#include <cstdio>

int main(){
   int N,K;
   cin >> N >> K;
   if(N%K==0){
        printf("0");
   }else{
        printf("1");
   }
return 0;
}

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

#include<iostream>
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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(N%K==0)cout << 0 << 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:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(N%K==0)cout << 0 << 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)
      |     ^~~~
a.cc:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(N%K!=0)cout << 1 << 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:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(N%K!=0)cout << 1 << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++


int main(void){
	int n,k;
	int m;

	scanf("%d %d",&n,&k);
	m = n/k;
	printf("%d\n",m);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d %d",&n,&k);
      |         ^~~~~
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf("%d\n",m);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 |
Language: C++

#include<bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n >> k;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 cout << 0;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << 1 << 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:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout << 1 << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;
public class A811 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        if(n%k==0){
            System.out.println("0");
        }
        else System.out.println("1");
    }


}


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

int main(){
  int 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:4:20: error: 'cout' was not declared in this scope
    4 |   if( N % K == 0 ) cout << 0 << endl;
      |                    ^~~~
a.cc:4:33: error: 'endl' was not declared in this scope
    4 |   if( N % K == 0 ) cout << 0 << endl;
      |                                 ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout << 1 << endl;
      |        ^~~~
a.cc:5:21: error: 'endl' was not declared in this scope
    5 |   else cout << 1 << endl;
      |                     ^~~~
Language: C++

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

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

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


Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected expression before ')' token
    8 |   printf("1\n", );
      |                 ^
Language: C++

// Devarshi

/*
We will not return to the countless mistakes of the past
I will not relive the failures of the man I once was

Only through dedication will I destroy all preconception

No longer will I let myself be truly satisfied with the standard
We will not return to the countless mistakes of the past

Only through dedication will I destroy all preconception

Let this be
Be the day
Day of my
My declaration
Let this be the day of my declaration

Join me,
Walk with me

Shatter the bonds that tie us
To what we strive to never be

Join me,
Walk with me
*/
#include<bits/stdc++.h>

#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i,n) for(i=0;i<n;i++)
#define forn(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define for1(i, n) for (ll i = 1; i <= (ll)(n); ++i)
#define ford(i, n) for (ll i = (ll)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (ll i = (ll)(a); i <= (ll)(b); ++i)
#define fora(it,x) for(auto it:x)
#define PI 3.14159265
#define sync ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

using namespace std;

typedef pair<ll, ll> pii;
typedef vector<ll> vi;
typedef vector<pii> vpi;
typedef vector<vi> vvi;
typedef long long i64;
typedef vector<i64> vi64;
typedef vector<vi64> vvi64;
typedef pair<i64, i64> pi64;
typedef double ld;

template<class T> bool uin(T &a, T b) { return a > b ? (a = b, true) : false; }
template<class T> bool uax(T &a, T b) { return a < b ? (a = b, true) : false; }

const int maxn=1000001;


int main(){

int n,k;
cin>>n>>k;
n=n%k
cout<<n;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:70:6: error: expected ';' before 'cout'
   70 | n=n%k
      |      ^
      |      ;
   71 | cout<<n;
      | ~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
#include <list>
#define INF 0x3f3f3f3f
#define maxn 105000
#define maxnn 6000
#define juzheng 300
#define line cout << "-------------------------" << endl;
#define PI acos(-1.0)
#define mem(a,b) memset(a,b,sizeof(a))
#define fill_(a,b,n) fill(a,a + n,b)
#define esp 1e-9

#define ri(n) scanf("%d",&n)
#define ri2(a,b) scanf("%d %d",&a,&b)
#define ri3(a,b,c) scanf("%d %d %d",&a,&b,&c)
#define rd(n) scanf("%lf",&n)
#define rd2(a,b) scanf("%lf %lf",&a,&b)
#define rd3(a,b,c) scanf("%lf %lf %lf",&a,&b,&c)
#define rl(n) scanf("%lld",&n)
#define rl2(a,b) scanf("%lld %lld",&a,&b)
#define rl3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c)
#define rui(n) scanf("%u",&n)
#define rui2(a,b) scanf("%u %u",&a,&b)
#define rui3(a,b,c) scanf("%u %u %u",&a,&b,&c)
#define rs(str) scanf("%s",str)
#define pr(n) cout << n << endl
#define ll long long
#define int64 __int64
#define ui unsigned int

using namespace std;

const ll mod = 1e9 + 7;

//Date:2018-8-11
//Author：HarryBlackCat

int main() {
	//cin.sync_with_stdio(false);//降低cin，cout时间
	int n,k;
	while(~ri2(n,k)) {
		if(n < k)
			put("1");
		else {
			if(n == 1)
				pr(k);
			else
				pr(n % k);
		}

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:25: error: 'put' was not declared in this scope; did you mean 'putw'?
   55 |                         put("1");
      |                         ^~~
      |                         putw
Language: C++

#include<stdio.h>
int main()
{
  int in,dev;
  scanf("%d %d",&inp,&dev);
  printf("%d",inp%dev==0);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'inp' was not declared in this scope; did you mean 'in'?
    5 |   scanf("%d %d",&inp,&dev);
      |                  ^~~
      |                  in
Language: C++

// Devarshi

/*
We will not return to the countless mistakes of the past
I will not relive the failures of the man I once was

Only through dedication will I destroy all preconception

No longer will I let myself be truly satisfied with the standard
We will not return to the countless mistakes of the past

Only through dedication will I destroy all preconception

Let this be
Be the day
Day of my
My declaration
Let this be the day of my declaration

Join me,
Walk with me

Shatter the bonds that tie us
To what we strive to never be

Join me,
Walk with me
*/
#include<bits/stdc++.h>

#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i,n) for(i=0;i<n;i++)
#define forn(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define for1(i, n) for (ll i = 1; i <= (ll)(n); ++i)
#define ford(i, n) for (ll i = (ll)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (ll i = (ll)(a); i <= (ll)(b); ++i)
#define fora(it,x) for(auto it:x)
#define PI 3.14159265
#define sync ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

using namespace std;

typedef pair<ll, ll> pii;
typedef vector<ll> vi;
typedef vector<pii> vpi;
typedef vector<vi> vvi;
typedef long long i64;
typedef vector<i64> vi64;
typedef vector<vi64> vvi64;
typedef pair<i64, i64> pi64;
typedef double ld;

template<class T> bool uin(T &a, T b) { return a > b ? (a = b, true) : false; }
template<class T> bool uax(T &a, T b) { return a < b ? (a = b, true) : false; }

const int maxn=1000001;


int main(){

int n,k;
n=n%k
cout<<n;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:69:6: error: expected ';' before 'cout'
   69 | n=n%k
      |      ^
      |      ;
   70 | cout<<n;
      | ~~~~
Language: C++

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

int main(){
  int N,K;
  int ans;
  cin>>N>>K;
  ans = 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:9:12: error: expected ';' before 'if'
    9 |   ans = N/K
      |            ^
      |            ;
   10 |   if(N%K==0)cout<<0<<endl;
      |   ~~
Language: C++

#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdlib>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'N' was not declared in this scope
   12 |     scanf("%d%d",&N,&K);
      |                   ^
a.cc:12:22: error: 'K' was not declared in this scope
   12 |     scanf("%d%d",&N,&K);
      |                      ^
a.cc:13:10: error: 'k' was not declared in this scope
   13 |     if(N%k)
      |          ^
Language: Java

import java.util.*;
public class Atcoder1 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		System.out.println(n%k); 
		}
}

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

#include <iostream>
using namespace std;

int main(void) {
	float n,k;
	cin >> n >> k;
    cout << n%k;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    7 |     cout << n%k;
      |             ~^~
      |             | |
      |             | float
      |             float
Language: C

#include<stdio.h>

int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	if(a%k==0)puts("0");
	else puts("1");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'k' undeclared (first use in this function)
    6 |         if(a%k==0)puts("0");
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>

int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	if(a%k==0)puts("0");
	else puts("1");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'k' was not declared in this scope
    6 |         if(a%k==0)puts("0");
      |              ^