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

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

int main() {
  int A<B<C;
  cin >> A >> B >> C;
  for(int i=1;i<B+1){
    if((A*i)%B==C){
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '<' token
    5 |   int A<B<C;
      |        ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |          ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |               ^
a.cc:6:20: error: 'C' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |                    ^
a.cc:7:20: error: expected ';' before ')' token
    7 |   for(int i=1;i<B+1){
      |                    ^
      |                    ;
Language: C++

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

int main() {
  int A,B,C,sum=0;
  cin >> A >> B >> C;
  bool a=false;
  for(int i=A;i<B*A+1;i+=A){
    sum+=A;
    if(sum%B==C){
      a=true;
      break;
    }
  }
  if(a){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }A
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected ';' before '}' token
   20 |   }A
      |     ^
      |     ;
   21 | }
      | ~
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 a,b,c;
  cin >>a >>b >>c;
  for(int i = 1; i<=b; i++){
    if(i*a%b==c){
      cout << "YES" << endl;
      return 0;
  }
  cout << "NO" << endl;
  return 0;
}


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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
int main() {
    int a,b,c;cin>>a>>b>>c;
    b=b/_gcd(a,b);
    if(c%b==0){
        cout<<"NO"<<endl;
    }else{
        cout<<"YES"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:9: error: '_gcd' was not declared in this scope
   41 |     b=b/_gcd(a,b);
      |         ^~~~
Language: C++

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


#define ll long long int
#define vll vector<ll>
#define vllv vector<vector<ll>> 
#define sz size()
#define pb push_back
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)

ll ceil1(ll n,ll m){if(n%m==0){return n/m;}return n/m +1;}
vll factor(ll n){
    vll ans;
    if(n>0)ans.pb(1);if(n==2)ans.pb(2);
    for(ll i=2;i*i<=n;i++){if(n%i==0){ans.pb(i);if(n/i!=i)ans.pb(n/i);}}if(n>2)ans.pb(n);
    return ans;
}
ll fact(ll n){
	
    ll res = 1; 
    for (ll i = 2; i <= n; i++) 
        res = res * i; 
    return res; 
} 
  
int nCr(ll n, ll r) 
{ 
    return fact(n) / (fact(r) * fact(n - r)); 
} 
  
void dfs(vllv &v,ll k,vll &par,vll &dis,ll p)
{
 
    par[k]=p;
    dis[k]=dis[p]+1;
    for(ll i=0;i<v[k].sz;i++){
        if(v[k][i]!=p){
            dfs(v,v[k][i],par,dis,k);
        }
    }
}
bool sortbysec(const pair<string,int> &a,const pair<string,int> &b){return (a.second<b.second);} 


ll ston(string s) 
{ 
    stringstream geek(s); 
    ll x = 0; 
    geek >> x; 
    
  
    return x; 
}
ll pow2(ll n,ll k){ll ans=1;
    while(k>0){
        if(k%2==1)ans=ans*n;n=n*n;k/=2;
    }return ans;}
bool prime(int n){
    int i,j;
    for(i=2;i<=sqrt(n);i++){
        if(n%i==0){
            return false;
        }
    }
    return true;
}
bool bserch(vector<string> a, string s){
	
	ll l=0,r=a.sz-1,mid;
	while(l<=r){
		mid=(l+r)/2;
		if(a[mid]==s)return true;
		if(a[mid]<s){
			l=mid+1;
		}else{
			r=mid-1;
		}
	}
	return false;
}

bool sortcol( const vector<int>& v1, 
               const vector<int>& v2 ) { 
 return v1[0] < v2[0]; 
} 

 ll degit(ll n)
 {
 	ll t=0;
 	while(n>0)
 	{
 		t++;
 		n/=10; 	}
 		return t;
 }
 

void solve()
{
	ll a,b,c;
	cin>>a>>b>>c;
	if(c%_gcd(a,b)!=0)
		cout<<"NO";
	else
		cout<<"YES";
	
	return;	
}

int main()
{
	fast;
    ll q;
    q=1;
    // cin>>q;
    while(q--)
    {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:108:14: error: '_gcd' was not declared in this scope
  108 |         if(c%_gcd(a,b)!=0)
      |              ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define INF 1000000007
// cin.eof() 入力個数の問題
int main(){
int a,b,c;
cin>>a>>b>>c;

for(int i=a;i<a*b+1;i++){
    if(i%b==c){
        cout<<"YES"<<endl;
        return 0;
    }
}

cout<<"NO";
  return 0;
}
#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define INF 1000000007
// cin.eof() 入力個数の問題
int main(){
int a,b,c;
cin>>a>>b>>c;

for(int i=a;i<a*b+1;i++){
    if(i%b==c){
        cout<<"YES"<<endl;
        return 0;
    }
}

cout<<"NO";
  return 0;
}


Compiler output:
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main(){
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;


int main(){
    Init();
    ll a, b, c; cin >> a >> b >> c;

     ll add = a%b;

    if(add == 0){
         if(add == c){
         cout<<"YES"<<endl;
         else cout<<"NO"<<endl;
         }
        return 0;
    }

    for(ll i=add; i<=10000; i+=add)
    {
        if(i%b == c){
            cout<<"YES";
          return 0; }
    }
    NO();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'Init' was not declared in this scope
    7 |     Init();
      |     ^~~~
a.cc:8:5: error: 'll' was not declared in this scope
    8 |     ll a, b, c; cin >> a >> b >> c;
      |     ^~
a.cc:8:24: error: 'a' was not declared in this scope
    8 |     ll a, b, c; cin >> a >> b >> c;
      |                        ^
a.cc:8:29: error: 'b' was not declared in this scope
    8 |     ll a, b, c; cin >> a >> b >> c;
      |                             ^
a.cc:8:34: error: 'c' was not declared in this scope
    8 |     ll a, b, c; cin >> a >> b >> c;
      |                                  ^
a.cc:10:8: error: expected ';' before 'add'
   10 |      ll add = a%b;
      |        ^~~~
      |        ;
a.cc:12:8: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   12 |     if(add == 0){
      |        ^~~
      |        std::filesystem::perm_options::add
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:219:7: note: 'std::filesystem::perm_options::add' declared here
  219 |       add       = 0x2,
      |       ^~~
a.cc:15:10: error: expected '}' before 'else'
   15 |          else cout<<"NO"<<endl;
      |          ^~~~
a.cc:13:22: note: to match this '{'
   13 |          if(add == c){
      |                      ^
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'for'
   20 |     for(ll i=add; i<=10000; i+=add)
      |     ^~~
a.cc:20:19: error: 'i' does not name a type
   20 |     for(ll i=add; i<=10000; i+=add)
      |                   ^
a.cc:20:29: error: 'i' does not name a type
   20 |     for(ll i=add; i<=10000; i+=add)
      |                             ^
a.cc:26:9: error: expected constructor, destructor, or type conversion before ';' token
   26 |     NO();
      |         ^
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

/*
int main(){
    Init();
    ll a, b, c; cin >> a >> b >> c;

     ll add = a%b;

    if(add == 0){
         if(add == c){
         cout<<"YES"<<endl;
         else cout<<"NO"<<endl;
         }
        return 0;
    }

    for(ll i=add; i<=10000; i+=add)
    {
        if(i%b == c){
            cout<<"YES";
          return 0; }
    }
    NO();
}

Compiler output:
a.cc:5:1: error: unterminated comment
    5 | /*
      | ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, c) for (int i = 0; i < (int)c; i++)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
const int inf = 1000000000; //10^9
const ll MOD = 1e9 + 7;
//加算代入演算子は+=！！！！！
//int 2^31 10^9まで
//intは10桁、long longは18桁、doubleは308桁、long double は4932桁
int main()
{
    int main()
    {
        int A, B, C;
        string ans = "NO";

        cin >> A >> B >> C;

        for (int i = 1; i < B + 1; i++)
        {
            if ((A * i) % B == C)
            {
                ans = "YES";
                break;
            }
        }

        cout << ans << endl;

        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   15 |     int main()
      |             ^~
a.cc:15:13: note: remove parentheses to default-initialize a variable
   15 |     int main()
      |             ^~
      |             --
a.cc:15:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:16:5: error: a function-definition is not allowed here before '{' token
   16 |     {
      |     ^
Language: C++

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

int main() {
    int A,B,C;
    cin >> A >> B >> C;
    if(C%gcd__(A,B) == 0) {
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'gcd__' was not declared in this scope
    7 |     if(C%gcd__(A,B) == 0) {
      |          ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull; 
typedef vector<int> vi;
typedef pair<int,int> pi;

#define F first
#define S second
#define PB push_back
#define MP make_pair
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define SQ(a) (a)*(a)

template <class T, class U> ostream& operator<< (ostream &out, pair<T,U> c) { out << "(" << c.first << " "; out << c.second << ")"; return out; }
template <class T> ostream& operator<< (ostream &out, vector<T> c) { for (auto it = c.begin(); it != c.end(); ++it) { if (it != c.begin()) out << " "; out << *it; } return out; }
const double PI  = 3.141592653589793238463;


int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int a, b, c;
    cin >> a >> b >> c;
    set<int> rem;
    bool t = true;
    while (t)
    {
        if(a%b == c){
            cout << "YES";
            break;
        }
        else
        {
            if(rem.find(a%b) == rem.end()){
                rem.insert(a%b);
                a += a
            }
            else
            {
                cout << "NO";
                break;
            }
            
        }
        
    }
    
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:23: error: expected ';' before '}' token
   39 |                 a += a
      |                       ^
      |                       ;
   40 |             }
      |             ~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <cmath>
#include <tuple>
#include <cassert>
#include <array>
#include <iomanip>

using namespace std;
using pii = pair<int, int>;
using ti = tuple<int, int, int>;

const double eps=1e-14;
const int mod = 1e9 + 7;
const int inf = ((1<<30));
const long long linf = (1LL<<60);

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b, c;
    cin >> a >> b >> c;
    a %= b;
    ok = false;
    for(int i=0; i<b; i++)
    {
        int tmp = a*i;
        tmp %= b;
        if(tmp == c)
        {
            ok = true;
            break;
        }
    }
    if(ok) cout << "YES" << endl;
    else cout << "NO" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:41:5: error: 'ok' was not declared in this scope
   41 |     ok = false;
      |     ^~
Language: C++

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

int main() {
  int A,B,C;
  if (B<=C) cout << "NO" << endl;
  else {
      for (int i=0; i<A; i++) {
          if (A%i==0 && B%i==0 && C%i!=0) {
              cout << "NO" << break;
          }
          if (i==A-1) cout << "YES" << endl;
      }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected primary-expression before 'break'
   10 |               cout << "NO" << break;
      |                               ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9+7;
 

 
 
int main() {
	ll N,T;
  	cin >> N >> T;
  	vll t(N);
  	rep(i,n){
    	cin >> t[i];
    }
  	ll ans=T;
  	rep(i,n){
    	if(t[i] >= T) ans += T;
      	else ans += t[i];
    }
  	cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'vll' was not declared in this scope; did you mean 'll'?
   17 |         vll t(N);
      |         ^~~
      |         ll
a.cc:18:15: error: 'n' was not declared in this scope
   18 |         rep(i,n){
      |               ^
a.cc:5:38: note: in definition of macro 'rep'
    5 | #define rep(i, n) for(int i = 0; i < n; i++)
      |                                      ^
a.cc:19:16: error: 't' was not declared in this scope
   19 |         cin >> t[i];
      |                ^
a.cc:22:15: error: 'n' was not declared in this scope
   22 |         rep(i,n){
      |               ^
a.cc:5:38: note: in definition of macro 'rep'
    5 | #define rep(i, n) for(int i = 0; i < n; i++)
      |                                      ^
a.cc:23:12: error: 't' was not declared in this scope
   23 |         if(t[i] >= T) ans += T;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9+7;
 
int gcd(int a, int b){
   if (a%b == 0)  return(b);
   else return(gcd(b, a%b));
}


int main() {
	int A,B,C;
  	cin >> A >>B >>C;
  	bool frag;
	g = gcd(A,B);
  	if(C%g == 0)cout << "YES" << endl;
  	else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'g' was not declared in this scope
   21 |         g = gcd(A,B);
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main(){
    int a,b,c;
    ll wa=0;
    bool hantei=false;
    cin >> a >> b >> c;
    rep(i,100{
        wa += a;
        if(wa%b == c) hantei=true;
    }
    if(hantei) cout << "YES"<<endl;
    else cout << "NO" <<endl;
}

Compiler output:
a.cc:16:2: error: unterminated argument list invoking macro "rep"
   16 | }
      |  ^
a.cc: In function 'int main()':
a.cc:10:5: error: 'rep' was not declared in this scope
   10 |     rep(i,100{
      |     ^~~
a.cc:10:8: error: expected '}' at end of input
   10 |     rep(i,100{
      |        ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

long long gcd(long long a, long long b){
  if (b==0) return a;
  else return gcd(b,a%b);
}
long long chmax(long long a,long long b){
  a = max(a,b);
}
long long chmin(long long a, long long b){
  a = min(a,b);
}

int main() {
  long long n,k,sum=0,a=0,b=0,c=0,d=0,ans=0;
  long long MOD = 1000000007;
  long long INF = 1LL << 60;
  string S="";
  cin >> a >> b >> c;
  if(c%gcd(a,b)==0) S = "YES";
  else S = "NO"
  
  cout << S << endl;
}

Compiler output:
a.cc: In function 'long long int chmax(long long int, long long int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'long long int chmin(long long int, long long int)':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
a.cc: In function 'int main()':
a.cc:22:16: error: expected ';' before 'cout'
   22 |   else S = "NO"
      |                ^
      |                ;
   23 | 
   24 |   cout << S << endl;
      |   ~~~~
Language: C

#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)



int main() {
    int a, b, c; cin >> a >> b >> c;

    int zero_count=0;
    int tmp = 1;
    while(zero_count < 1) {
        int tmp_c = a*tmp%b;
        if(tmp_c == c) {
            cout << "YES" << endl;
            return 0;
        }
        if(tmp_c == 0) zero_count++;
        tmp++;
    }

    cout << "NO" << endl;
    return 0;
    

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

 #include<bits/stdc++.h>
 
 using namespace std;
 typedef long long ll;
 #define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
 
 
 
 int main() {
     int a, b, c; cin >> a >> b >> c;
 
     int zero_count=0;
     int tmp = 1;
     while(zero_count < 1) {
         int tmp_c = a*tmp%b;
         if(tmp_c == c) {
             cout << "YES" << endl;
             return 0;
         }
         if(tmp_c == 0) zero_count++;
         tmp++;
     }
 
     cout << "NO" << endl;
     return 0;
     
 }
 

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

import java.io.*;
import java.util.*;
class Main{
	static final long MOD = 1_000_000_007; // 10^9+7
    static final int MAX = 2_147_483_646; // intMax 
    static final int INF = 1_000_000_000; // 10^9  
    public static void main(String[] args) throws Exception {
		hayami saori = new hayami();
		int a = saori.saori_hayami();
		int b = saori.saori_hayami();
		int c = saori.saori_hayami();
		for (int i = 1; i <= b; i++) {
			if ((a * i) % b == c) {
				ans = "YES";
				break;
			}
		}
		System.out.println(ans);
		saori.close();
    }
}

class hayami implements Closeable {
	private final InputStream in = System.in;
	private final byte[] hayami = new byte[1024];
	private int Hayami = 0;
	private int saori = 0;
	private boolean HayamiSaori() {
		if (Hayami < saori) {
			return true;
		}else{
			Hayami = 0;
			try {
				saori = in.read(hayami);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (saori <= 0) {
				return false;
			}
		}
		return true;
	}
	private int SaoriHayami() { 
		if (HayamiSaori()) {
            return hayami[Hayami++];
         }else{
             return -1;
         }
	}
	private static boolean hayami_saori(int hayami) { 
		return 33 <= hayami && hayami <= 126;
	}
	public boolean hayamisaori() { 
		while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
	}
	public String nextHayami() {
		if (!hayamisaori()) throw new NoSuchElementException();
		StringBuilder hayamin = new StringBuilder();
		int saori = SaoriHayami();
		while(hayami_saori(saori)) {
			hayamin.appendCodePoint(saori);
			saori = SaoriHayami();
		}
		return hayamin.toString();
	}
	public long saorihayami() {//nextLong
		if (!hayamisaori()) throw new NoSuchElementException();
		long hayami = 0;
		boolean misao = false;
		int saori = SaoriHayami();
		if (saori == '-') {
			misao = true;
			saori = SaoriHayami();
		}
		if (saori < '0' || '9' < saori) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= saori && saori <= '9') {
				hayami *= 10;
				hayami += saori - '0';
			}else if(saori == -1 || !hayami_saori(saori)){
				return misao ? -hayami : hayami;
			}else{
				throw new NumberFormatException();
			}
			saori = SaoriHayami();
		}
	}
	public int saori_hayami() {//nextInt
		long hayami = saorihayami();
		if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) hayami;
	}
	public double Hayamin() { //nextDouble
		return Double.parseDouble(nextHayami());
	}
	public void close() {
		try {
			in.close();
		} catch (IOException e) {
		}
    }
    
}

Compiler output:
Main.java:14: error: cannot find symbol
				ans = "YES";
				^
  symbol:   variable ans
  location: class Main
Main.java:18: error: cannot find symbol
		System.out.println(ans);
		                   ^
  symbol:   variable ans
  location: class Main
2 errors
Language: C++

import math
a, b, c = map(int,input().split())

for i in range(10**7):
    n = a * i
    if n % b == c:
        print('YES')
        quit()
print('NO')

Compiler output:
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('YES')
      |               ^~~~~
a.cc:9:7: warning: multi-character character constant [-Wmultichar]
    9 | print('NO')
      |       ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

// include
// ------------------------------------------------
#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#include <math.h>

using namespace std;

// func
// ------------------------------------------------
int CalcSumOfDigit(int n);      // 各桁の和を計算する。
string upper(string str);       // 英字を大文字に変換する。
string lower(string str);       // 英字を小文字に変換する。

// define
// ------------------------------------------------
#define all(a)        (a).begin(),(a).end()
#define rall(a)       (a).rbegin(),(a).rend()
#define sz(a)         int((a).size())
#define rep(i,n)      for(int(i)=0;(i)<(n);(i)++)
#define repe(i,n)     for(int(i)=0;(i)<=(n);(i)++)
#define vsort(v)      sort((v).begin(),(v).end())
#define rvsort(v)     sort(rall((v)))
#define vi            vector<int>
#define GCD(a,b)      __gcd((a),(b))
#define LCM(a,b)      (a)/GCD((a),(b))*(b)
#define kiriage(a,b)  ((a)+(b)-1)/(b)

const int INF = 1e9;

// code
// ------------------------------------------------
int main() {

  int a,b,c;
  cin >> a >> b >> c;

  for(int i = a;i = a * b;i++)
  {
    if(i % b == c) {cout <<"YES"<<endl;return 0;
  }

  cout << "NO" << endl;

  return 0;
}
// funcの実体
// ------------------------------------------------
int CalcSumOfDigit(int n)
{
  int s = 0;
  while(n)
  {
    s += n % 10;
    n = n / 10;
  }
  return s;
}

string upper(string str)
{
  for(auto itr = str.begin();itr != str.end() ; itr++)
  {
    if(97 <= *itr && *itr <= 122)
    {
      *itr = *itr - 32;
    }
  }
  return str;
}

string lower(string str)
{
  for(auto itr = str.begin();itr != str.end() ; itr++)
  {
    if(65 <= *itr && *itr <= 90)
    {
      *itr = *itr + 32;
    }
  }
  return str;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:1: error: a function-definition is not allowed here before '{' token
   51 | {
      | ^
a.cc:62:1: error: a function-definition is not allowed here before '{' token
   62 | {
      | ^
a.cc:74:1: error: a function-definition is not allowed here before '{' token
   74 | {
      | ^
a.cc:83:2: error: expected '}' at end of input
   83 | }
      |  ^
a.cc:34:12: note: to match this '{'
   34 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long; // ll は long long　と同じとする。
int main () {
    int A , B , C;
    cin >> A >> B >> C;
    for(ll i = 0; i < N; )
    for(int i = 0; i < B; i++){
        if((i * A) % B == C){
            cout << "YES";
            return 0;
        }
    }
        cout << "No" << endl;
}


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

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
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; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	int a, b, c;
	vector<bool>d(b);
	cin >> a >> b >> c;
	for (int i = 1;i < 1010;++i) {
		int target = a * i;
		int amari = target % b;
		if (b[amari]) {
			break;
		}
		b[amari] = true;
	}
	if (b[c])puts("YES");
	else puts("NO");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:67:22: error: invalid types 'int[int]' for array subscript
   67 |                 if (b[amari]) {
      |                      ^
a.cc:70:18: error: invalid types 'int[int]' for array subscript
   70 |                 b[amari] = true;
      |                  ^
a.cc:72:14: error: invalid types 'int[int]' for array subscript
   72 |         if (b[c])puts("YES");
      |              ^
Language: C++

#include <bits/stdc++.h>
using nameapase std;
int main(){
	int A,B,C;
  	cin >> A >> B >> C;
  	bool res = false;
  	for(int i =1;i <B;i++){
    	if(k*A%B == C)ans = true;
    }
  	if(ans)cout << "Yes" << endl;
  	else cout << "No" <<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameapase'
    2 | using nameapase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> A >> B >> C;
      |         ^~~
      |         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:8:12: error: 'k' was not declared in this scope
    8 |         if(k*A%B == C)ans = true;
      |            ^
a.cc:8:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |         if(k*A%B == C)ans = true;
      |                       ^~~
      |                       abs
a.cc:10:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         if(ans)cout << "Yes" << endl;
      |            ^~~
      |            abs
a.cc:10:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         if(ans)cout << "Yes" << 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:10:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         if(ans)cout << "Yes" << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         else cout << "No" <<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:11:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         else cout << "No" <<endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int m = lcm(a,b);
    if(C%m==0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
  
  //最大公約数・最小公倍数（セットで使う）
public static int gcd (int a, int b) {return b>0?gcd(b,a%b):a;}
public static int lcm (int a, int b) {return a*b/gcd(a,b);}

  
}


Compiler output:
Main.java:8: error: cannot find symbol
    int m = lcm(a,b);
                ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
    int m = lcm(a,b);
                  ^
  symbol:   variable b
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int m = lcm(a,b);
    if(C%m==0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
  
  //最大公約数・最小公倍数（セットで使う）
static int gcd (int a, int b) {return b>0?gcd(b,a%b):a;}
static int lcm (int a, int b) {return a*b/gcd(a,b);}

  
}

Compiler output:
Main.java:8: error: cannot find symbol
    int m = lcm(a,b);
                ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
    int m = lcm(a,b);
                  ^
  symbol:   variable b
  location: class Main
2 errors
Language: C

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

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   int a,b,c;scanf("%d%d%d",&a,&b,&c);
   int sum=a;
   for(int i = 0;i < 1000000000000;i++){
      if(sum%b==c){
         //printf("%d %d %d %d\n",a,b,c,a*i%b);
         printf("YES\n");
         return 0;
      }
      sum+=a
   }
   printf("NO\n");
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:13: error: expected ';' before '}' token
   18 |       sum+=a
      |             ^
      |             ;
   19 |    }
      |    ~
Language: C

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

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   int a,b,c;scanf("%d%d%d",&a,&b,&c);
   int i=1;
   int _a= a;
   if(_a%b == (_a+a*(i+1))%b){
      printf("NO\n");
      break;
   }
   while(1){
      if(_a%b == c){
         printf("YES\n");
         break;
      }
      i++;
       _a += a*i;
   }
}


Compiler output:
main.c: In function 'main':
main.c:15:7: error: break statement not within loop or switch
   15 |       break;
      |       ^~~~~
Language: C

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

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   int a,b,c;scanf("%d%d%d",&a,&b,&c);
   int i=1;
   int _a=0;
   while(1){
      _a += a*i
      if(_a%b == c){
         printf("YES\n");
         break;
      }
      if(_a%b == _a+a*(i+1)%b){
         printf("NO\n");
         break;
      }
      i++;
   }
}

Compiler output:
main.c: In function 'main':
main.c:14:16: error: expected ';' before 'if'
   14 |       _a += a*i
      |                ^
      |                ;
   15 |       if(_a%b == c){
      |       ~~
Language: C++

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

int main() {

    long long a,b,c;
    cin >> a >> b >> c;

    rep(i,10000000){
        if((a*i +1 ) % b == 0){
            cout << "Yes" << endl;
            return 0;
        }
    }
    
    cout << "No" << endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | N#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'N' does not name a type
    1 | N#include <bits/stdc++.h>
      | ^
a.cc:4:11: error: 'pair' does not name a type
    4 | using P = pair<int, int>;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> a >> b >> c;
      |     ^~~
a.cc:13:13: error: 'cout' was not declared in this scope
   13 |             cout << "Yes" << endl;
      |             ^~~~
a.cc:13:30: error: 'endl' was not declared in this scope
   13 |             cout << "Yes" << endl;
      |                              ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "No" << endl;
      |     ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

import math
A,B,C=map(int,input().split())
lcm = A*B//math.gcd(A,B)
#A*(i+j)%B=C
#A*(i+j)=BX+C
i=A
while i<=lcm:
  if i%B==C:
    print("YES")
    exit()
  i*=A
print("NO")

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #A
    4 | #A*(i+j)%B=C
      |  ^
a.cc:5:2: error: invalid preprocessing directive #A
    5 | #A*(i+j)=BX+C
      |  ^
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main() {
    int A, B, C; cin >> A >> B >> C;
    for (int i = A; i <= B*A; i++) {
        if (i%B == C) {
            cout << "YES" << endl;
            return;
        }
    }
    cout << "NO" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |             return;
      |             ^~~~~~
Language: C++

#include<stdio.h>
#include<string.h>
//言語は「C++14(GCC 5.4.1)」
//AtCoder Beginner Contest 60-A

int main(void)
{
	int i, A, B, C, K=0;
	scanf("%d", &A);
	scanf("%d", &B);
	scanf("%d", &C);
	for (i = 1; i < 5051; i++)
	{
		A = A * i;
		if (A%B == C)
		{
			K = 15;
			break;
		}
	}
	if (K == 15)
		printf("YES");
	else
		printf("NO");
	return 0;
}#include<stdio.h>
#include<string.h>
//言語は「C++14(GCC 5.4.1)」
//AtCoder Beginner Contest 60-A

int main(void)
{
	int i, A, B, C, K=0;
	scanf("%d", &A);
	scanf("%d", &B);
	scanf("%d", &C);
	for (i = 1; i < 5051; i++)
	{
		A = A * i;
		if (A%B == C)
		{
			K = 15;
			break;
		}
	}
	if (K == 15)
		printf("YES");
	else
		printf("NO");
	return 0;
}

Compiler output:
a.cc:26:2: error: stray '#' in program
   26 | }#include<stdio.h>
      |  ^
a.cc:26:3: error: 'include' does not name a type
   26 | }#include<stdio.h>
      |   ^~~~~~~
Language: C++

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

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int amari = A%B;
  vector<int> num(B);
  for(i = 1; i <= 100; i++){
    num[A%B]++;
    A = A*(i + 1)/i;
  }
  if(num[C] > 0) cout << "YES" << endl;
  else cout << "NO" << endl;
}

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

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

template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}

template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}

using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int total = 0;
  for (size_t i = 1; i < 10000; i++) {
    if (i % a == 0) {
      total += a;
      if (total % b == c) {
        cout << "YES" << endl;
        return 0;
      }
    } = 0;
  }

  cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:7: error: expected primary-expression before '=' token
   36 |     } = 0;
      |       ^
Language: C++

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

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  vector<int> data(B);
  int count = 0;
  int point = 0;
  for(int i = 0; i < B; i++){
    data.at(i) = ((i+1)*A)%B;
    count += data.at(i);
    if(count == C){
      point = 1;
      break;
    }
  }
  if(point == 1) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude <bits/stdc++.h>
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> data(B);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #iclude <bits/stdc++.h>
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> data(B);
      |          ^~~
a.cc:11:5: error: 'data' was not declared in this scope
   11 |     data.at(i) = ((i+1)*A)%B;
      |     ^~~~
a.cc:18:18: error: 'cout' was not declared in this scope
   18 |   if(point == 1) cout << "YES" << endl;
      |                  ^~~~
a.cc:18:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:35: error: 'endl' was not declared in this scope
   18 |   if(point == 1) cout << "YES" << endl;
      |                                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <bits/stdc++.h>
a.cc:19:8: error: 'cout' was not declared in this scope
   19 |   else cout << "NO" << endl;
      |        ^~~~
a.cc:19:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:24: error: 'endl' was not declared in this scope
   19 |   else cout << "NO" << endl;
      |                        ^~~~
a.cc:19:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();
    int result = 0;
    ans = 0;
    for(int i = 0;i < b;i++){
      result = (a * i) % b;
      if(result == c){
        ans = 1;
        break;
      }
    }
    if(ans == 1){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
    ans = 0;
    ^
  symbol:   variable ans
  location: class Main
Main.java:11: error: cannot find symbol
        ans = 1;
        ^
  symbol:   variable ans
  location: class Main
Main.java:15: error: cannot find symbol
    if(ans == 1){
       ^
  symbol:   variable ans
  location: class Main
3 errors
Language: C++

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

int main() {
	int A, B, C;
	cin >> A >> B >> C;
	int ans = 0;
	for (int i = 1;i < B; i++) {
		 ans = A* i% B;
		if (ans == C){
			ans = 1;
			break;
	}
	if (ans) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
	}














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

#include<bits/stdc++>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int key = 0;
  for(int i=1;i<b;i++){
    if(a*i%b == c){
      cout << "Yes" << endl;
      key = 1;
      break;
    }
  }
  if(key == 0)
    cout << "No" << endl;
}


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

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

int main()
{
  int a, b, c;
  cin >> a >> b >> c;
  
  //find (a*i) % b = c
  
  for(int i = 1; i <= b; i++)
  {
    if(a*i % b == c)
    {
      cout << "YES" << endl;
      return 0;
    }
  }
  
  cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b >> c;
      |   ^~~
      |   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:15:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |       cout << "YES" << 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:15:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |       cout << "YES" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   cout << "NO" << 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:20:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   cout << "NO" << 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;
int main(){
	int a,b,c;
	cin >>a>>b>>c;
	if((a%2^c%2)
		cout << "NO" << endl;
	else
		cout << "YES" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'cout'
    6 |         if((a%2^c%2)
      |                     ^
      |                     ;
    7 |                 cout << "NO" << endl;
      |                 ~~~~ 
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else
      |         ^~~~
a.cc:7:38: error: expected ')' before 'else'
    7 |                 cout << "NO" << endl;
      |                                      ^
      |                                      )
    8 |         else
      |         ~~~~                          
a.cc:6:11: note: to match this '('
    6 |         if((a%2^c%2)
      |           ^
Language: C++

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

int main() {
  int a, b, c;
  bool b = 0;
  cin >> a >> b >> c;
  rep(i, b+1){
    if(a*i%b == c){
      b = 1;
      break;
    }
  }
  if(b) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: conflicting declaration 'bool b'
    8 |   bool b = 0;
      |        ^
a.cc:7:10: note: previous declaration as 'int b'
    7 |   int a, b, c;
      |          ^
Language: C

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

int main(void){
    int a = 0, b = 0, c = 0; 

    scanf("%d%d%d", &a, &b, &c);

    /*
    if(a % 2 == 0 && b % 2 == 0 && c % 2 == 1){
        printf("NO\n");
        return 0;
    }
    */

    for(int i = 1; i <= b; i++){
        if(a * i % b == c){
            printf("YES\n");
            return 0;
        }
    }

    printf("NO\n");

    return 0;

} 


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


import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

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

		

			int sum = 0;
			String ans = "NO";

			for (int i = 1; i <= max; i++) {
				sum += (a * i) % b;
				if (sum % b == c) {
					ans = "YES";
					break;
				}
			}

			System.out.println(ans);
	}
}

Compiler output:
Main.java:20: error: cannot find symbol
			for (int i = 1; i <= max; i++) {
			                     ^
  symbol:   variable max
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#include <math.h>

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main()
{
    int A, B, C;
    cin >> A >> B >> C;
    gcd = gcd(A, B);
    if (C % gcd == 0) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: overloaded function with no contextual type information
   11 |     gcd = gcd(A, B);
      |                   ^
a.cc:12:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
   12 |     if (C % gcd == 0) {
      |         ~~^~~~~
Language: C++

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

int yu(int a, int b) {
  while() {
    int temp=a%b;
    if(temp==0) {
      return b;
    }
    else {
      a=b;
      b=temp;
    }
  }
}

int main () {
  int a,b,c;
  cin >> a >> b >> c;
  if (c%yu(a,b)==0) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int yu(int, int)':
a.cc:5:9: error: expected primary-expression before ')' token
    5 |   while() {
      |         ^
a.cc:15:1: warning: control reaches end of non-void function [-Wreturn-type]
   15 | }
      | ^