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

#include <iostream>
#include <climits>
#include <set>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#define MAX 1000000007


using namespace std;
#define ll long long
#define dbg if(0)
#define ISRANGE(val,lo,hi) ((lo<=val)&&(val<hi))

int main(){
    ll ans=0,n,k;
    cin >>n>>k;
    ans=(n>=k)?((n%k>0)?1:0):()1;
    cout <<ans<<endl;

    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: expected primary-expression before ')' token
   19 |     ans=(n>=k)?((n%k>0)?1:0):()1;
      |                               ^
Language: C++

#include <iostream>
#include <climits>
#include <set>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#define MAX 1000000007


using namespace std;
#define ll long long
#define dbg if(0)
#define ISRANGE(val,lo,hi) ((lo<=val)&&(val<hi))

int main(){
    ll ans=0,n,k;
    cin >>n>>k;
    ans=n%k
    cout <<ans<<endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: expected ';' before 'cout'
   19 |     ans=n%k
      |            ^
      |            ;
   20 |     cout <<ans<<endl;
      |     ~~~~
Language: C++

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

int main(){
  int N,i;
  cin >> N >> i;
  cout << (N-1)(i-1) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expression cannot be used as a function
    7 |   cout << (N-1)(i-1) << endl;
      |           ~~~~~^~~~~
Language: C++

//1,2,3,5,6,9,10,13,17
#include <bits/tsdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> da(9);
  bool ans=true;
  da={1,2,3,5,6,9,10,13,17};
  for(int i=0;i<9;i++){
    if(n==da[i])
      ans=false;
  }
  if(ans)
    cout << "Yes" << endl;
  alse
    cot << "No" < endl;
}


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

#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string>
#include <typeinfo>
#include <vector>
//#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<vector<bool>> vvb;
typedef vector<vector<int>> vvi;

#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define all(a) (a).begin(), (a).end()

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

  return 0;
}

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

#include <cstdio>
#include <cmath>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <climits>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <deque>
#include <vector>
#include <string>
#include <bitset>
#define y0 qvya13579
#define y1 qvyb24680
#define j0 qvja13579
#define j1 qvjb24680
#define next qvne13579xt
#define prev qvpr13579ev
#define INF 1000000007
#define PI acos(-1.0)
#define endl "\n"
#define IOS cin.tie(0);ios::sync_with_stdio(false)
#define M_P make_pair
#define P_B push_back
#define U_B upper_bound
#define L_B lower_bound
#define P_Q priority_queue
#define FIR first
#define SEC second
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define REP_R(i,n) for(int i=((int)(n)-1);i>=0;--i)
#define FOR(i,m,n) for(int i=((int)(m));i<(int)(n);++i)
#define FOR_R(i,m,n) for(int i=((int)(m)-1);i>=(int)(n);--i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define SIZ(x) ((int)(x).size())
#define COUT(x) cout<<(x)<<endl
#define CIN(x) cin>>(x)
#define CIN2(x,y) cin>>(x)>>(y)
#define CIN3(x,y,z) cin>>(x)>>(y)>>(z)
#define CIN4(x,y,z,w) cin>>(x)>>(y)>>(z)>>(w)
#define SCAND(x) scanf("%d",&(x))
#define SCAND2(x,y) scanf("%d%d",&(x),&(y))
#define SCAND3(x,y,z) scanf("%d%d%d",&(x),&(y),&(z))
#define SCAND4(x,y,z,w) scanf("%d%d%d%d",&(x),&(y),&(z),&(w))
#define SCANLLD(x) scanf("%lld",&(x))
#define SCANLLD2(x,y) scanf("%lld%lld",&(x),&(y))
#define SCANLLD3(x,y,z) scanf("%lld%lld%lld",&(x),&(y),&(z))
#define SCANLLD4(x,y,z,w) scanf("%lld%lld%lld%lld",&(x),&(y),&(z),&(w))
#define PRINTD(x) printf("%d\n",(x))
#define PRINTLLD(x) printf("%lld\n",(x))
typedef long long int lli;
using namespace std;

int ctoi(char c)
{
  if( c >= '0' and c <= '9' )
    {
      return (int)(c-'0');
    }

  return -1;
}

int alphabet_pos(char c) 
{
  if( c >= 'a' and c <= 'z' )
    {
      return (int)(c-'a');
    }

  return -1;
}


int alphabet_pos_capital(char c)
{
  if( c >= 'A' and c <= 'Z' )
    {
      return (int)(c-'A');
    }

  return -1;
}


vector<string> split(string str, char ch)
{
  int first = 0;
  int last = str.find_first_of(ch);
  
  if(last == string::npos)
    {
      last = SIZ(str);
    }

  vector<string> result;

  while( first < SIZ(str) )
    {
      string Ssubstr(str, first, last - first);
      result.push_back(Ssubstr);
      first = last + 1;
      last = str.find_first_of(ch, first);

      if(last == string::npos)
	{
	  last = SIZ(str);
	}
    }
  
  return result;
}

/*--------------- the end of the template --------------------*/









int main()
{
  //IOS; /* making cin faster */
  int N,K;
  SCAND2(N,K);

  if( N % K == 0 )
    {
      PRINTD(0);
      
    }
  else
    {
      PRINTD(!);
      
    }

  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:35: error: expected primary-expression before ')' token
   58 | #define PRINTD(x) printf("%d\n",(x))
      |                                   ^
a.cc:146:7: note: in expansion of macro 'PRINTD'
  146 |       PRINTD(!);
      |       ^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <set> 
#include <bitset>
#include <cmath>
using namespace std;
typedef long long ll;
#define REP(i,n) for(int i=0;i<n;i++)

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

    if(n % k > 0) {
        cout << 1 << endl;
    } else {
        cout << 0 << << endl;
    } 
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: expected primary-expression before '<<' token
   21 |         cout << 0 << << endl;
      |                      ^~
Language: C

#include<stdio.h>
int main(void){
  int n,k;
  scanf("%d %d",&n,&k);
  printf("%d",n%k=!0);
  return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:5:18: error: lvalue required as left operand of assignment
    5 |   printf("%d",n%k=!0);
      |                  ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: warning: missing terminating " character
    6 |     printf("1;
      |            ^
main.c:6:12: error: missing terminating " character
    6 |     printf("1;
      |            ^~~
main.c:7:3: error: expected expression before '}' token
    7 |   }
      |   ^
main.c:6:12: error: expected ';' before '}' token
    6 |     printf("1;
      |            ^
      |            ;
    7 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   11 |     pritnf("0");
      |     ^~~~~~
      |     printf
Language: C++

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

Compiler output:
a.cc:3:1: error: 'nt' does not name a type; did you mean 'int'?
    3 | nt main() {
      | ^~
      | int
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a%b==0)
    cout<<'0'<<endl;
  else
    cout<<'1'<<endl:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before ':' token
    9 |     cout<<'1'<<endl:
      |                    ^
      |                    ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected primary-expression before '<<' token
    9 |         else if(N%K==0) << 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;
    }
    else{
        cout << 1 << endl;
    }
}


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

#import<iostream>
main(){int n,k;std::cin>>n>>k;puts(n%k?1:0);}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int n,k;std::cin>>n>>k;puts(n%k?1:0);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:39: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    2 | main(){int n,k;std::cin>>n>>k;puts(n%k?1:0);}
      |                                    ~~~^~~~
      |                                       |
      |                                       int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 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/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'k' was not declared in this scope
    8 |   cout << (N%k==0?0:1) << endl;
      |              ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		if(a%b!=0){
			System.out.println(1);
		}else {
			System.out.println(0);


		}
	

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

import java.util.Scanner;

public class A105 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int g = a%b;

		int h = a%b + a;
		if(g >= h) {
			System.out.println(h);
		}else {
			System.out.println(g);
		}
	}

}

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

mport java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		System.out.println(a%b);
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
using namespace std;
int main(){
  int N;K;cin>>N>>K;
  cout << N%K << endl;
}

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

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  cout << (a%b==0?"0":'1');
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: operands to '?:' have different types 'const char*' and 'char'
    6 |   cout << (a%b==0?"0":'1');
      |            ~~~~~~^~~~~~~~
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:9:2: error: expected primary-expression before ')' token
    9 |  )
      |  ^
a.cc:9:3: error: expected '}' at end of input
    9 |  )
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(N =< K){
      |         ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  bool flg = false;
  for (int i = 0; i < n / 4 ; i++){
    for (int j = 0 ; j < n / 7 ; j ++){
      if ( 4 * i + 7 * j == n) {
      flg = true;
      break;
    }
  }
  }
  if(flg) cout << "Yes";
  else cout << "No";
}

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

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

int main() {
  int N;
  cin >> N;
  
  bool flg = false;
  for (int i = 0; N - ( 4 * i) => 0 ; i++){
    if ( (N - (4 * i)) % 7 == 0) {
      flg = true;
      break;
    }
  }
    
  if(flg) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected primary-expression before '>' token
    9 |   for (int i = 0; N - ( 4 * i) => 0 ; i++){
      |                                 ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <algorithm>
#include <numeric>
#include <math.h>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)

typedef long long ll;
typedef long long int lli;

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


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

#include <stdio.h>

int main(void) {
  int n, k, ans; scanf("%d %d", &n, &k);
  if(n < k) {
    if(k - n == 1) { ans = 1; } else { ans = 0; }
  }
  else {
    if( n%k == 0) { ans = 0; } else { ans = a; }
  }
  printf("%d\n", ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:45: error: 'a' undeclared (first use in this function)
    9 |     if( n%k == 0) { ans = 0; } else { ans = a; }
      |                                             ^
main.c:9:45: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
	int a, b;
	cin >> a >> b;
	if (a%b == 0) {
		cout << 0 << endl;
	}
	else[
		cout << 1 << endl;
	]
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: warning: capture of variable 'std::cout' with non-automatic storage duration
   13 |                 cout << 1 << endl;
      |                 ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:21: error: expected ',' before '<<' token
   13 |                 cout << 1 << endl;
      |                     ^~~
      |                     ,
a.cc:13:22: error: expected identifier before '<<' token
   13 |                 cout << 1 << endl;
      |                      ^~
a.cc:13:34: error: expected ']' before ';' token
   13 |                 cout << 1 << endl;
      |                                  ^
      |                                  ]
a.cc: In lambda function:
a.cc:13:34: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:14:9: error: expected primary-expression before ']' token
   14 |         ]
      |         ^
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int K = reader.nextInt();

		reader.close();
		System.out.print(N % K);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

//ABC110 A-train
#include<bits/stdc++.h>
using namespace std;
int main(){
    int N,K;cin >> N >> K;
    if(N == K | N % K == 0){
        cout << 0 << endl;
        }
    else{
        cout << 1 << endl;
    }
    }
    return 0;
}

Compiler output:
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

//ABC110 A-atcoder crackers
#include<bits/stdc++.h>
using namespace std;
int main(){
    int N,K;cin >> N >> K;
    if(N == K){
        cout << 0 << endl;
        }
    else{
        cout << 1 << endl;
    }
    }
    return 0;
}

Compiler output:
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  cout<<min(n%k,1)<<endl;
  ruturn 0;
}


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

#include<iostream>
#include<iostream>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  cout<<min(n%k,1)<<endl;
  ruturn 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ruturn' was not declared in this scope
    7 |   ruturn 0;
      |   ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d", &n, &k);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int n, k;
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d", &n, &k);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:3: error: 'ans' undeclared (first use in this function)
    4 |   ans = n%k!=0;
      |   ^~~
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d\n", ans);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<bits/stdc++.h>
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:6:7: error: lvalue required as left operand of assignment
    6 |   if(n%k=0) cout<<0;
      |      ~^~
Language: C++

#include <bits/stdc++.h>
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:6:9: error: lvalue required as left operand of assignment
    6 |   if (N % K = 0) cout << 0;
      |       ~~^~~
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
typedef long long ll;
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
#define ios ios_base::sync_with_stdio(0) ; cin.tie(0) ; cout.tie(0)
#define so sizeof
#define pb push_back
#define vl vector<ll>
#define endl endl;cf
#define be begin()
#define sz size()
#define en end()
#define all(x) (x).be , (x).en
#define rall(x) (x).rbegin() , (x).rend()
#define acc(x) accumulate((x).be , (x).en , 0)
#define forn(i,a,b) for(ll i=1;i<=b;++i)
#define forr(i,a,b) for(ll i=0;i<b;++i)
#define rngx mt19937 rng(chrono::steady_clock::now().time_since_epoch().count())
#define vll vector<pair<ll,ll> >
#define pll pair<ll,ll>
#define plll pair<ll,pair<ll,ll>>
#define plvl pair<pair<ll,ll> ,ll>
#define mp make_pair
#define cf cout.flush()
int main()
{
    ios;
    ll n  , k ;
    cin >> n >> k ;
    vl v ;
    ll foo =  n ;
    if ( n > k) cout << n % k <<endl;
    else cout << 1 <<endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: 'else' without a previous 'if'
   36 |     else cout << 1 <<endl;
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'usign' does not name a type
    2 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     if(n%k == 0) 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:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     else 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: C++

\#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(long long int i=0;i<n;++i)
typedef long long int ll;

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:1:1: error: stray '\' in program
    1 | \#include<bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include<bits/stdc++.h>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> n >> k;
      |     ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << 0 << endl;
      |         ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |         cout << 0 << endl;
      |                      ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << 1 << endl;
      |         ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |         cout << 1 << endl;
      |                      ^~~~
Language: C++

<?php
fscanf(STDIN,"%d%d",$n,$k);
echo $n%$k==0?0:1;

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: 'echo' does not name a type
    3 | echo $n%$k==0?0:1;
      | ^~~~
Language: C++

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

int main() {
    int a;
    cin >> a >> k;
  	if (a%k == 0) cout << "0" << endl; 
    else cout << "1" << endl;
}

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

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

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

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

#include<bits/stdc++.h>

using namespace std;

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

   cin >> n >> k;
   cout << a=(n % k)<0 ? -a;  << endl;
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ':' before ';' token
    9 |    cout << a=(n % k)<0 ? -a;  << endl;
      |                            ^
      |                            :
a.cc:9:28: error: expected primary-expression before ';' token
a.cc:9:31: error: expected primary-expression before '<<' token
    9 |    cout << a=(n % k)<0 ? -a;  << endl;
      |                               ^~
Language: C++

#include <iostream>

using namespace std;

int main () {

int a, b, ans;
cin >> a >> b;

if (a % b = 0) {
 cout << "0" << endl;
} else {
 cout << "1" << endl;
}

return 0;
}

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

#include <iostream>

using namespace std;

int main () {

int a, b, ans,;

cin >> a >> b;
if (a % b = 0) {
 cout << "0" << endl;
} else {
 cout << "1" << endl;
}

ans

cout << ans << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected unqualified-id before ';' token
    7 | int a, b, ans,;
      |               ^
a.cc:10:7: error: lvalue required as left operand of assignment
   10 | if (a % b = 0) {
      |     ~~^~~
a.cc:16:4: error: expected ';' before 'cout'
   16 | ans
      |    ^
      |    ;
   17 | 
   18 | cout << ans << endl;
      | ~~~~
Language: C++

#include <iostream>

using namespace std;

int main () {

int a, b, ans,;

cin >> a >> b;

if (a % b = 0) {
 cout << "0" << endl;
} if else {
 cout << "1" << endl;
}

ans

cout << ans << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected unqualified-id before ';' token
    7 | int a, b, ans,;
      |               ^
a.cc:11:7: error: lvalue required as left operand of assignment
   11 | if (a % b = 0) {
      |     ~~^~~
a.cc:13:6: error: expected '(' before 'else'
   13 | } if else {
      |      ^~~~
      |      (
a.cc:17:4: error: expected ';' before 'cout'
   17 | ans
      |    ^
      |    ;
   18 | 
   19 | cout << ans << endl;
      | ~~~~
Language: C++

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     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 | using namespace std;
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << N%K<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout << N%K<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>

using namespace std

int main () {

int a, b, ans;
cin >> a >> b;

ans = a % b;
cout << ans << endl;

return 0;
}


Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main () {
      | ~~~
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:11:15: error: lvalue required as left operand of assignment
   11 |         if (!n%k=0){
      |             ~~^~
Language: C++

//c++

#include <iostream>
#include <string>

using namespace std;

#define REP(i,n) for(int i = 0;i < n;i++)

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

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

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("YES");}else{puts("NO");}
const int MX = 200005;

// 整数スキャン（複数）
/*
int x;
scanf("%d",&x);
int y;
scanf("%d",&y);
int z;
scanf("%d",&y);

// n個の整数のスキャン
/*
ll a[n] = {};
rep(i,n){
    scanf("%lld",&a[i]);
}
*/

// 文字列スキャン
/*
string s;
cin >> s;
*/


int main() {
    int n;
    scanf("%d",&n);
    int x;
    scanf("%d",&x);
    int ans = 0;

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




    

    cout << ans << endl;
   
    return 0;
}
 
 


Compiler output:
a.cc: In function 'int main()':
a.cc:85:10: error: 'k' was not declared in this scope
   85 |     if(n%k==0){
      |          ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(N % k == 0 ? 0 : 1);
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
        System.out.println(N % k == 0 ? 0 : 1);
                           ^
  symbol:   variable N
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(N % k == 0 ? 0 : 1);
                               ^
  symbol:   variable k
  location: class Main
2 errors
Language: C++

using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | using namespace std;
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << ans << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |   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 | using namespace std;
Language: C

#include<stdio.h>

int main(){
  int N, K;
  scanf("%d %d", &N, &K);
  
  prntf("%d\n", N % K);
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |   prntf("%d\n", N % K);
      |   ^~~~~
      |   printf
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    bool buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "YES":"NO";
    System.out.println(outstr);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    bool buyflg=false;
    ^
  symbol:   class bool
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    bool buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    bool buyflg=false;
    ^
  symbol:   class bool
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    bool buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for((int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
  }
}

Compiler output:
Main.java:13: error: ',', ')', or '[' expected
	  for((int b=0; b<=N/4; b++){
	            ^
Main.java:13: error: not a statement
	  for((int b=0; b<=N/4; b++){
	      ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,K;
  cin >> N >> B;
  int X = N / K;
  int Y = N % K;
  cout << X - Y << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,K;
  cin >> N >> B;
  int X = N / K
  int Y = N % K
  cout << X - Y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> N >> B;
      |               ^
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int Y = N % K
      |   ^~~
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:
main.c: In function 'main':
main.c:7:1: error: 'else' without a previous 'if'
    7 | else printf("1");
      | ^~~~
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:10:18: error: expected ';' before ':' token
   10 | cout << 1 << endl:
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
int main(void){
int a,b,c,d;
scanf("%d", &a);
scanf("%d", &b);
c==a/b;
d==a%b;
if(a%b)
printf("%d\n", a-c);
else
printf("0\n")




return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ';' before 'return'
   11 | printf("0\n")
      |              ^
      |              ;
......
   16 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(void){
int a,b,c,d
scanf("%d", &a);
scanf("%d", &b);
c==a/b;
d==a%b;

printf("%d\n", c-d);




return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 | scanf("%d", &a);
      | ^~~~~
main.c:7:1: error: 'd' undeclared (first use in this function)
    7 | d==a%b;
      | ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

module M = Map.Make(struct type t = int let compare = compare end)
;;
Scanf.scanf "%d %d\n" (fun n m ->
  let r = Array.make m (0,0) in
  let r2 = Array.make (n+1) [] in
  for i=0 to m-1 do
     Scanf.scanf "%d %d\n" (fun p1 y1->
       r2.(p1) <- y1::r2.(p1);
       r.(i) <- (p1,y1)
    )
  done;
  let r3 = Array.make (n+1) M.empty in
  for i=0 to n do
    let ls = List.sort (fun x y->x-y) r2.(i) in
    let (_,ls)=List.fold_left(fun (i,l) x -> (i+1,M.add x i l)) (1,M.empty) ls in
    r3.(i) <- ls
  done;

  Array.iter (fun (p,y) ->
    let n = M.find y r3.(p) in
    Printf.printf "%06d%06d\n" p n
  ) r
)


Compiler output:
a.cc:1:1: error: 'module' does not name a type
    1 | module M = Map.Make(struct type t = int let compare = compare end)
      | ^~~~~~
a.cc:1:1: note: C++20 'module' only available with '-fmodules-ts'
a.cc:3:1: error: 'Scanf' does not name a type
    3 | Scanf.scanf "%d %d\n" (fun n m ->
      | ^~~~~
a.cc:9:8: error: 'r' does not name a type
    9 |        r.(i) <- (p1,y1)
      |        ^
a.cc:12:3: error: 'let' does not name a type
   12 |   let r3 = Array.make (n+1) M.empty in
      |   ^~~
a.cc:19:3: error: 'Array' does not name a type
   19 |   Array.iter (fun (p,y) ->
      |   ^~~~~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt(), ans = 0;
      for(int i=0; i<=n; i+=4){
        for(int j=0; j<=n; j+=7){
          if(i+j==n){
            System.out.println("i="+i+" j="+j);
            ans++;
          }
        }
      }
      if(ans==0){
        System.out.println("No");
      }
    }
  }
}


Compiler output:
Main.java:19: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: 'g' was not declared in this scope
    7 |   cout << (n % k == 0 ? 0 : 1) << endl;g
      |                                        ^
Language: C

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


return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:12: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 | if(n%k==0) prntf("0");
      |            ^~~~~
      |            printf
Language: C

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


return 0;
}


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

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

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

#include <stdio.h>
int main(){
int N,K,a,b;
a=N%K;
b=N/k;
scanf("%d %d",&N,%K);
if(a==0) printf("0");
else
printf("%d",&b-a);


return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'k' undeclared (first use in this function)
    5 | b=N/k;
      |     ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:18: error: expected expression before '%' token
    6 | scanf("%d %d",&N,%K);
      |                  ^
Language: C

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


Compiler output:
main.c:3:8: error: expected declaration specifiers or '...' before string constant
    3 | scanf ("%d%d",&a,&b);
      |        ^~~~~~
main.c:3:15: error: expected declaration specifiers or '...' before '&' token
    3 | scanf ("%d%d",&a,&b);
      |               ^
main.c:3:18: error: expected declaration specifiers or '...' before '&' token
    3 | scanf ("%d%d",&a,&b);
      |                  ^
main.c:4:1: error: expected identifier or '(' before 'if'
    4 | if (a%b==0){
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else(a%b){
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: lvalue required as left operand of assignment
    6 |            else if(a%b=0)cout<<0<<endl;
      |                    ~^~
Language: C++

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

int main(){long long a,b;cin>>a,b;
           if(a%b!=0)cout<<1<<endl;
           else{cout<<0endl;}
           return 0;}

Compiler output:
a.cc:6:23: error: exponent has no digits
    6 |            else{cout<<0endl;}
      |                       ^~~~~
Language: C++

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

int main(){int a,b;cin>>a,b;
           if(a%b!=0)cout<<1;
           else{cour<<0;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'cour' was not declared in this scope
    6 |            else{cour<<0;}}
      |                 ^~~~
Language: C++

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

int main(){cin>>a,b;
           if(a%b!=0)cout<<1;
           else{cour<<0;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'a' was not declared in this scope
    4 | int main(){cin>>a,b;
      |                 ^
a.cc:4:19: error: 'b' was not declared in this scope
    4 | int main(){cin>>a,b;
      |                   ^
a.cc:6:17: error: 'cour' was not declared in this scope
    6 |            else{cour<<0;}}
      |                 ^~~~
Language: C++

#include<set>
#include<map>
#include<ctime>
#include<queue>
#include<cmath>
#include<cstdio>
#include<vector>
#include<cstring>
#include<iostream>
#include<algorithm>
#define LL long long
using namespace std;
LL read(){
    LL f=1,x=0;char s=getchar();
    while(s<'0'||s>'9'){if(s=='-')f=-1;s=getchar();}  
    while(s>='0'&&s<='9'){x=x*10+s-'0';s=getchar();}
    return x*f;
}
#define MAXN 100
#define INF 0x3f3f3f3f
int main(){
LL a=read(),k=read();
printf("%lld\n",min(a%k,1));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: no matching function for call to 'min(long long int, int)'
   23 | printf("%lld\n",min(a%k,1));
      |                 ~~~^~~~~~~
In file included from /usr/include/c++/14/bits/stl_tree.h:63,
                 from /usr/include/c++/14/set:62,
                 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:   template argument deduction/substitution failed:
a.cc:23:20: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   23 | printf("%lld\n",min(a%k,1));
      |                 ~~~^~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:10:
/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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:23:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   23 | printf("%lld\n",min(a%k,1));
      |                 ~~~^~~~~~~
Language: Java

import java.util.stream.Stream;

public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
			
		int answer = N % K == 0 ? 0 : 1;
		System.out.println(answer);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors