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

mport java.util.Scanner;

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

		System.out.println(n % k == 0 ? 0 : 1);
	}
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: warning: division by zero [-Wdiv-by-zero]
    6 |   if(a/b%=0)
      |      ~~~^~~
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(a/b%=0)
      |      ~^~
Language: C++

#include<bits/stdc++>h>
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:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc:7:10: warning: missing terminating " character
    7 |   printf("%d\n”,a%b != 0);
      |          ^
a.cc:7:10: error: missing terminating " character
    7 |   printf("%d\n”,a%b != 0);
      |          ^~~~~~~~~~~~~~~~~
a.cc: In function 'int mian()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc:7:10: error: extended character ” is not valid in an identifier
    7 |   printf(”%d\n”,a%b != 0);
      |          ^
a.cc:7:13: error: stray '\' in program
    7 |   printf(”%d\n”,a%b != 0);
      |             ^
a.cc:7:14: error: extended character ” is not valid in an identifier
    7 |   printf(”%d\n”,a%b != 0);
      |              ^
a.cc: In function 'int mian()':
a.cc:7:10: error: '\U0000201d' was not declared in this scope
    7 |   printf(”%d\n”,a%b != 0);
      |          ^
a.cc:7:12: error: 'd' was not declared in this scope
    7 |   printf(”%d\n”,a%b != 0);
      |            ^
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

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

Compiler output:
a.cc:5:9: error: extended character ” is not valid in an identifier
    5 |   scanf(”%d%d”, &a, &b);
      |         ^
a.cc:5:13: error: extended character ” is not valid in an identifier
    5 |   scanf(”%d%d”, &a, &b);
      |             ^
a.cc:6:10: error: extended character ” is not valid in an identifier
    6 |   printf(”%d\n”, a%b != 0);
      |          ^
a.cc:6:13: error: stray '\' in program
    6 |   printf(”%d\n”, a%b != 0);
      |             ^
a.cc:6:14: error: extended character ” is not valid in an identifier
    6 |   printf(”%d\n”, a%b != 0);
      |              ^
a.cc: In function 'int main()':
a.cc:5:9: error: '\U0000201d' was not declared in this scope
    5 |   scanf(”%d%d”, &a, &b);
      |         ^
a.cc:5:11: error: 'd' was not declared in this scope
    5 |   scanf(”%d%d”, &a, &b);
      |           ^
a.cc:5:13: error: 'd\U0000201d' was not declared in this scope
    5 |   scanf(”%d%d”, &a, &b);
      |             ^~
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc:6:9: error: extended character ” is not valid in an identifier
    6 |   scanf(”%d%d”, &a, &b);
      |         ^
a.cc:6:13: error: extended character ” is not valid in an identifier
    6 |   scanf(”%d%d”, &a, &b);
      |             ^
a.cc:7:10: error: extended character ” is not valid in an identifier
    7 |   printf(”%d\n”, a%b != 0);
      |          ^
a.cc:7:13: error: stray '\' in program
    7 |   printf(”%d\n”, a%b != 0);
      |             ^
a.cc:7:14: error: extended character ” is not valid in an identifier
    7 |   printf(”%d\n”, a%b != 0);
      |              ^
a.cc: In function 'int main()':
a.cc:6:9: error: '\U0000201d' was not declared in this scope
    6 |   scanf(”%d%d”, &a, &b);
      |         ^
a.cc:6:11: error: 'd' was not declared in this scope
    6 |   scanf(”%d%d”, &a, &b);
      |           ^
a.cc:6:13: error: 'd\U0000201d' was not declared in this scope
    6 |   scanf(”%d%d”, &a, &b);
      |             ^~
Language: C++

#include <bits/stdc++.h>

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


Compiler output:
a.cc:6:7: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |       ^
a.cc:6:11: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |           ^
a.cc:6:31: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |                               ^
a.cc:6:34: error: stray '\' in program
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |                                  ^
a.cc:6:35: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |                                   ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201d' was not declared in this scope
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |       ^
a.cc:6:9: error: 'd' was not declared in this scope
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |         ^
a.cc:6:11: error: 'd\U0000201d' was not declared in this scope
    6 | scanf(”%d%d”, &a, &b); printf(”%d\n”, a%b != 0);
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '.' token
    7 |   int n. k;
      |        ^
a.cc:8:10: error: 'n' was not declared in this scope
    8 |   cin >> n >> k;
      |          ^
a.cc:8:15: error: 'k' was not declared in this scope
    8 |   cin >> n >> k;
      |               ^
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int k=scan.nextInt();
		if(n/k!=0)
		{
		System.out.println(n%k);
	}
    }
}

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

#i n cl u d e <s t d i o . h>
i n t main ( )
{
i n t a , b ;
s c a n f (”%d%d ” , &a , &b ) ;
p r i n t f (”%d\n ” , a%b != 0 ) ;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
a.cc:5:12: error: extended character ” is not valid in an identifier
    5 | s c a n f (”%d%d ” , &a , &b ) ;
      |            ^
a.cc:5:18: error: extended character ” is not valid in an identifier
    5 | s c a n f (”%d%d ” , &a , &b ) ;
      |                  ^
a.cc:6:14: error: extended character ” is not valid in an identifier
    6 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |              ^
a.cc:6:17: error: stray '\' in program
    6 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |                 ^
a.cc:6:20: error: extended character ” is not valid in an identifier
    6 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |                    ^
a.cc:2:1: error: 'i' does not name a type
    2 | i n t main ( )
      | ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n >> k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << 0 << '\n';
      |         ^~~~
      |         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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 1 << '\n';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(),x.end()
#define rep(i,j,n) for (long long i = j; i < (long long)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//name[i][j]-> vvl name(i,vl(j))
//map<int,int>mp
//余りを切り上げる =>  (a + b - 1) / b 

signed main(){
	int a,b; cin>>a>>b;
	cout<<a&b<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   20 |         cout<<a&b<<endl;
      |                 ~^~~~~~
Language: C++

#include <stdc/bits++.h>
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:1:10: fatal error: stdc/bits++.h: No such file or directory
    1 | #include <stdc/bits++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

   ans = (n % k == 0) ? 0 : 1;

   cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |    ans = (n % k == 0) ? 0 : 1;
      |    ^~~
      |    abs
Language: C++

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

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

   cout << (n % k == 0) ? 0 : 1 << endl;
}

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

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
using P = pair<int,int>;
using pq = priority_queue<int>;
typedef long long ll;

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


Compiler output:
a.cc:4:11: error: 'pair' does not name a type
    4 | using P = pair<int,int>;
      |           ^~~~
a.cc:5:12: error: 'priority_queue' does not name a type
    5 | using pq = priority_queue<int>;
      |            ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:19: error: 'cin' was not declared in this scope
   10 |         int n, k; 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:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << 1 << endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:30: error: 'endl' was not declared in this scope
   12 |                 cout << 1 << 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;
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << 0 << endl;
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout << 0 << endl;
      |                              ^~~~
a.cc:14:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main() {
  int N;
  cin >>N;
  int count=0;
  for(int a=0;a<N/4;a++){
    for(int b=0;a<N/7;b++){
      int sum=4*a+7*b;
      if (sum==N){
        count++;
      }
    }
  }
  if(count!==0){ 
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before '=' token
   17 |   if(count!==0){
      |             ^
Language: C++

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

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


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

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

signed main() {
    int a,b;
    cin >> a >> b;
    cout << a % b != 0 << endl;
}

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

// https://ei1333.github.io/luzhiled/
// http://beet-aizu.hatenablog.com/entry/2017/01/04/113233
// http://www.prefield.com/algorithm/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<string>;
using vb = vector<bool>;
using vvl = vector<vector<ll>>;
using vvd = vector<vector<ld>>;
using vvs = vector<vector<string>>;
using vvb = vector<vector<bool>>;
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
template<class T> using vc = vector<T>;
template<class T> using vvc = vector<vector<T>>;
using Graph = vector<vector<ll>>;
const ll INF = 1LL << 60;
void init() {cin.tie(0);ios::sync_with_stdio(false);cout << fixed << setprecision(15);}
const ll tl= 1000000007;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REREP(i, n) for (ll i = n; i >= 0; i--)
#define FOR(i, a, n) for (ll i = a; i < n; i++)
#define REFOR(i, n, a) for (ll i = n; i >= a; i--)
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ) //被り削除
#define debug cout << "line : " << __LINE__ << " debug" << endl;
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ind(...) long double __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
#define inc(...) char __VA_ARGS__; in(__VA_ARGS__)
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << endl;} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
template<typename T>void die(T x){out(x); exit(0);}
#define in1(A) REP(i,A.size()) in(A[i]);
#define in2(A,B) REP(i,A.size()) in(A[i],B[i]);
#define in3(s,t,u) REP(i,sz(s)){in(s[i] , t[i] , u[i]);}
#define in4(s,t,u,v) REP(i,sz(s)){in(s[i] , t[i] , u[i] , v[i]);}
#define each(x,v) for(auto& x : v)
#define all(v) (v).begin(),(v).end()
#define sz(v) ((int)(v).size())
struct Point{ ld x,y; };
ld dist(Point a, Point b){return sqrt(abs(a.x-b.x)*abs(a.x-b.x)+abs(a.y-b.y)*abs(a.y-b.y));} // ２点間の距離 
ll gcd(ll a, ll b) { return b != 0 ? gcd(b, a % b) : a; }
ll lcm(ll a,ll b){ return a / gcd(a,b) * b;} 
ll fact(ll n){ if(n < 2) return 1; return (n * fact(n-1))%tl; } //階乗
inline ll updiv(ll a,ll b){ return (a + b - 1) / b; } //切り上げ
template<typename T,typename U>ll ceil(T a,U b){return (a + b - 1) / b;}
template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }
//-------------------------------------------------------------------------------------------------
struct grid{
    ll t,y;
};
int main(){
    init();
	inl(n,k);
  if(n%K==0) out(0);
  else out(1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:63:8: error: 'K' was not declared in this scope
   63 |   if(n%K==0) out(0);
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'H' undeclared (first use in this function)
    6 |     h=H%K;
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     scanf("%d%d",&N,&K);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main (void)
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d%d",&N,&K);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:7: error: 'H' undeclared (first use in this function)
    5 |     h=H%K;
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("%d\n",h);
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: 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 << endl;
  }else{
    cout << 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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: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:18: 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:31: 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:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else 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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else 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 <bits/stdc++.h>
using namespace std;
#define rep(i,n); for(int i = 0;i<n;++i)
using ll = long long;
using P = pair<int,int>;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if(a % b == 0) ans = 0;
      |                  ^~~
      |                  abs
a.cc:11:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   else ans = 1;
      |        ^~~
      |        abs
a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ';' before '}' token
    5 |   printf("%d\n",a%b!=0)
      |                        ^
      |                        ;
    6 | }
      | ~
Language: C++

i n t a , b ;
s c a n f (”%d%d ” , &a , &b ) ;
p r i n t f (”%d\n ” , a%b != 0 ) ;


Compiler output:
a.cc:2:12: error: extended character ” is not valid in an identifier
    2 | s c a n f (”%d%d ” , &a , &b ) ;
      |            ^
a.cc:2:18: error: extended character ” is not valid in an identifier
    2 | s c a n f (”%d%d ” , &a , &b ) ;
      |                  ^
a.cc:3:14: error: extended character ” is not valid in an identifier
    3 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |              ^
a.cc:3:17: error: stray '\' in program
    3 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |                 ^
a.cc:3:20: error: extended character ” is not valid in an identifier
    3 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      |                    ^
a.cc:1:1: error: 'i' does not name a type
    1 | i n t a , b ;
      | ^
a.cc:2:1: error: 's' does not name a type
    2 | s c a n f (”%d%d ” , &a , &b ) ;
      | ^
a.cc:3:1: error: 'p' does not name a type
    3 | p r i n t f (”%d\n ” , a%b != 0 ) ;
      | ^
Language: C++

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

Compiler output:
a.cc:5:12: error: stray '\' in program
    5 |   printf(%d\n,a%b!=0)
      |            ^
a.cc: In function 'int main()':
a.cc:4:9: error: expected primary-expression before '%' token
    4 |   scanf(%d%d,&a,&b);
      |         ^
a.cc:4:10: error: 'd' was not declared in this scope
    4 |   scanf(%d%d,&a,&b);
      |          ^
a.cc:5:10: error: expected primary-expression before '%' token
    5 |   printf(%d\n,a%b!=0)
      |          ^
Language: C++

#include<bits/stdc++>

using namespace std;
int func(int n);

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<(a % b!=0 ? 1:0) <<endl;
    
    return 0;

}   

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

# | Its_Rashid | #
a , b = map(int , input().split())
print(max(a , b) % min(a , b))

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #|
    1 | # | Its_Rashid | #
      |   ^
a.cc:2:1: error: 'a' does not name a type
    2 | a , b = map(int , input().split())
      | ^
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:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~
Language: C++

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


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

#include<iostream>

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:10:25: error: expected '}' at end of input
   10 |   cout << n % k << endl;
      |                         ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(){
  int n,k;
  
  cin >> n >> k;
  
  cout << n % k << endl;
}


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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before ')' token
    8 | if (k % n == )
      |              ^
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |         cout<<"1"
      |                  ^
      |                  ;
   14 |     }
      |     ~
Language: C++

//AtCoderCrackers

#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:9:24: error: expected ';' before 'endl'
    9 |     cout<<(N%K==0? 0:1)endl;
      |                        ^~~~
      |                        ;
Language: C++

//AtCoderCrackers

#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:9:18: error: expected ')' before numeric constant
    9 |     cout<<(N%K==0 0:1)endl;
      |           ~      ^~
      |                  )
Language: C++

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

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:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<"0";
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<N%K;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc:2:1: error: 'i' does not name a type
    2 | i n t main ( )
      | ^
Language: C++

#include<s t d i o . h>
int main( )
{
int a , b ;
scanf ("%d%d" , &a , &b ) ;
printf("%d\n ", a%b != 0 ) ;
}

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

#i n cl u d e <s t d i o . h>
i n t main ( )
{
int a , b ;
scanf ("%d%d" , &a , &b ) ;
printf("%d\n ", a%b != 0 ) ;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
a.cc:2:1: error: 'i' does not name a type
    2 | i n t main ( )
      | ^
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>;
Using namespace std;
Int main(){
Int k,n;
Cin>>k>>n;
If (k%n==1){cout>>1;}
Else if(k%n==0){cout>>0;}
Return 0;



}


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:2:1: error: 'Using' does not name a type
    2 | Using namespace std;
      | ^~~~~
a.cc:3:1: error: 'Int' does not name a type; did you mean 'int'?
    3 | Int main(){
      | ^~~
      | int
Language: C++

#include <iostream>;
Using namespace std;
Int main(){
Int k,n;
Cin>>k>>n;
If (k%n==1){cout>>1;}
Else if(k%n==0){cout>>0;}
Return 0;



}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:2:1: error: 'Using' does not name a type
    2 | Using namespace std;
      | ^~~~~
a.cc:3:1: error: 'Int' does not name a type; did you mean 'int'?
    3 | Int main(){
      | ^~~
      | int
Language: C++

#include <iostream>;
Using namespace std;
Int main(){
Int k,n;
Cin>>k>>n;
If (k%n==1){cout<<1;}
Else if(k%n==0){cout<<0;}
Return 0;



}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:2:1: error: 'Using' does not name a type
    2 | Using namespace std;
      | ^~~~~
a.cc:3:1: error: 'Int' does not name a type; did you mean 'int'?
    3 | Int main(){
      | ^~~
      | int
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'using'
    3 | using namespace std;
      | ^~~~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>n>>k;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(n%k==0){cout<<0;}else{cout<<1;}}
      | ^~
a.cc:6:21: error: expected unqualified-id before 'else'
    6 | if(n%k==0){cout<<0;}else{cout<<1;}}
      |                     ^~~~
a.cc:6:35: error: expected declaration before '}' token
    6 | if(n%k==0){cout<<0;}else{cout<<1;}}
      |                                   ^
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:8:7: error: extended character “ is not valid in an identifier
    8 | cout<<“0”;
      |       ^
a.cc:8:7: error: extended character ” is not valid in an identifier
a.cc:11:7: error: extended character “ is not valid in an identifier
   11 | cout<<“1”;
      |       ^
a.cc:11:7: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:7: error: '\U0000201c0\U0000201d' was not declared in this scope
    8 | cout<<“0”;
      |       ^~~
a.cc:11:7: error: '\U0000201c1\U0000201d' was not declared in this scope
   11 | cout<<“1”;
      |       ^~~
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:8:7: error: extended character “ is not valid in an identifier
    8 | Cout<<“0”;
      |       ^
a.cc:8:7: error: extended character ” is not valid in an identifier
a.cc:11:7: error: extended character “ is not valid in an identifier
   11 | Cout<<“1”;
      |       ^
a.cc:11:7: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:1: error: 'If' was not declared in this scope
    7 | If(N%K==0){
      | ^~
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else{
      | ^~~~
a.cc:11:1: error: 'Cout' was not declared in this scope
   11 | Cout<<“1”;
      | ^~~~
a.cc:11:7: error: '\U0000201c1\U0000201d' was not declared in this scope
   11 | Cout<<“1”;
      |       ^~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int n,k,div,i;
    cin>>n>>k;
    div=n/k;
    mul=div*k;
    cout<<n-mul;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'mul' was not declared in this scope
   10 |     mul=div*k;
      |     ^~~
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'N'
    9 |     d = N/K
      |            ^
      |            ;
   10 |     N = N%K
      |     ~       
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout << d <<endl;
      |     ^~~~
Language: C++

#include<cmath>
#include<vector>
#include<string>
#include<cstring>
#include<deque>
#include<queue>
#include<list>

using namespace std;

int main()
{
    int n,k,val,darp;
   cin>>n>>k;
 val=n/k;
    darp=val*k;
    
cout<<n-darp;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'cin' was not declared in this scope
   14 |    cin>>n>>k;
      |    ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include<list>
  +++ |+#include <iostream>
    8 | 
a.cc:18:1: error: 'cout' was not declared in this scope
   18 | cout<<n-darp;
      | ^~~~
a.cc:18:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<cstring>
#include<deque>
#include<queue>
#include<list>

using namespace std;

int main()
{
   long long int n,k,val,darp;
   cin>>n>>k;
 val=n/k;
    darp=val*k;
cout<<abs(n-darp);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'cin' was not declared in this scope
   11 |    cin>>n>>k;
      |    ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<list>
  +++ |+#include <iostream>
    5 | 
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout<<abs(n-darp);
      | ^~~~
a.cc:14:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:7: error: 'abs' was not declared in this scope
   14 | cout<<abs(n-darp);
      |       ^~~
Language: C++

#include<iostream>
using namesapce std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:7:17: 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:25: 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<iostream>
using namesapce std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:7:17: 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:3: error: 'esle' was not declared in this scope
    8 |   esle                  cout<<1;
      |   ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
vector<int > baseK(int N, int k) {
    vector<int> ans;
    if(N == 0) {
        ans.push_back(0);
        return ans;
    }
    const int absK = abs(k);
    while (N != 0) {
        int current = (N % k + absK) % absK;
        ans.push_back(current);
        N -= current;
        N /= k;
    }
    reverse(ans.begin(),ans.end());
    return ans;
}
//-------
void func() {
    int N;
    cin >> N ;
    vector<int > ans = baseK(N,-2);
    string rel = "";
    for (auto num: ans) {
        rel += to_string(num);
    }
    cout << rel << endl;
}

int main() {
    func();
    return 0;


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

#include <iostream>
#include <vector>
using namespace std;
//------------
vector<int > baseK(int N, int k) {
    vector<int> ans;
    if(N == 0) {
        ans.push_back(0);
        return ans;
    }
    const int absK = abs(k);
    while (N != 0) {
        int current = (N % k + absK) % absK;
        ans.push_back(current);
        N -= current;
        N /= k;
    }
    reverse(ans.begin(),ans.end());
    return ans;
}
//-------
void func() {
    int N;
    cin >> N ;
    vector<int > ans = baseK(N,-2);
    string rel = "";
    for (auto num: ans) {
        rel += to_string(num);
    }
    cout << rel << endl;
}

int main() {
    func();
    return 0;
}

Compiler output:
a.cc: In function 'std::vector<int> baseK(int, int)':
a.cc:18:5: error: 'reverse' was not declared in this scope
   18 |     reverse(ans.begin(),ans.end());
      |     ^~~~~~~
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:5:14: error: expected initializer before '.' token
    5 |         int N.K;
      |              ^
a.cc:6:12: error: 'N' was not declared in this scope
    6 |     cin >> N >> K;
      |            ^
a.cc:6:17: error: 'K' was not declared in this scope
    6 |     cin >> N >> K;
      |                 ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |     if (a % b == 0) cout << 0 << endl;
      |         ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     if (a % b == 0) cout << 0 << endl;
      |             ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    if( N % 4 == 0 || N % 7 || 0){
    System.out.println("Yes");   
    } else{
    while(N > 0){
      N -= 7;
    if(N % 4 == 0){
      System.out.println("Yes");
        break;
       }
    }
    if(N < 0 )
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:7: error: bad operand types for binary operator '||'
    if( N % 4 == 0 || N % 7 || 0){
                   ^
  first type:  boolean
  second type: int
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    if( N % 4 == 0 || N % 7 || 0){
    System.out.println("Yes");   
    } else{
    while(N > 0){
      N -= 7
    if(N % 4 == 0){
      System.out.println("Yes");
        break;
       }
    }
    if(N < 0 )
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:11: error: ';' expected
      N -= 7
            ^
1 error
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'bk' was not declared in this scope; did you mean 'k'?
    6 |   cin >> n >> bk;
      |               ^~
      |               k
Language: Java

import java.util.*;

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

Compiler output:
Main.java:7: error: not a statement
    System.out.println(N % K == 0) ? 0 : 1;
                                   ^
1 error
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c:18:2: error: stray '#' in program
   18 | }#include <stdio.h>
      |  ^
main.c:18:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   18 | }#include <stdio.h>
      |           ^
Language: C++

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

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

  cout << a % b == 0 << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   cout << a % b == 0 << endl;
      |           ^
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   cout << a % b == 0 << endl;
      |               ^
a.cc:8:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << a % b == 0 << endl;
      |                    ~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;

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

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

#include<iostream>

using namespace std;

int main() {
  int n1, n2;
  scanf("%d%d", &n1, &n2);
  if (n1%n2 == 0) {
    printf(0);
  } else {
    printf(1);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |     printf(1);
      |            ^
      |            |
      |            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:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~