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

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

int yu(int a, int b) {
  while() {
    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:6:5: error: 'temp' was not declared in this scope; did you mean 'tm'?
    6 |     temp=a%b;
      |     ^~~~
      |     tm
a.cc:15:1: warning: control reaches end of non-void function [-Wreturn-type]
   15 | }
      | ^
Language: C++

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

int yu(a,b) {
  while() {
    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:4:8: error: 'a' was not declared in this scope
    4 | int yu(a,b) {
      |        ^
a.cc:4:10: error: 'b' was not declared in this scope
    4 | int yu(a,b) {
      |          ^
a.cc:4:11: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int yu(a,b) {
      |           ^
a.cc: In function 'int main()':
a.cc:20:11: error: 'yu' cannot be used as a function
   20 |   if (c%yu(a,b)==0) {
      |         ~~^~~~~
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define int long long
int abs(int a,int b){
  int c=max(a,b)-min(a,b);
  return c;
}
int c[10000000];
signed main(){
  cin.tie(NULL);
  ios::sync_with_stdio(false);
  int a,b,c,q=1;
  cin>>a>>b>>c;
  for(int i=1;i<=b;i++){
    if(((b*i)+c)/%a==0) q=1;
  }
  if(q) cout<<"YES";
  else cout<<"NO";
  cout<<"\n";
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected primary-expression before '%' token
   15 |     if(((b*i)+c)/%a==0) q=1;
      |                  ^
Language: C++

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

int main() {
    int A, B, C;
    cin >> A >> B >> C;
    bool flag;
    int tmp = A
    while (A % B == 0){
        if (tmp % B == C){
            cout << "YES" << endl;
            flag = false;
        }
        else{
            tmp += A;
        }
    }
    if (flag) {
        cout << "NO" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'while'
   12 |     while (A % B == 0){
      |     ^~~~~
Language: C++

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

gcd(int a, int b) {
    if(a%b != 0) {
        int c;
        int d;
        c = b;
        d = a % b;
        gcd(c, d);
    }

    return b;
}

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

    if(a%b == 0) cout << "NO" << endl;
    else {
        if(gcd(a, b) == gcd(b, c)) cout << "YES" << endl;
        else cout << "NO" << endl;
    }

    return 0;
}

Compiler output:
a.cc:5:1: error: ISO C++ forbids declaration of 'gcd' with no type [-fpermissive]
    5 | gcd(int a, int b) {
      | ^~~
Language: C++

def main():
    a,b,c=map(int,input().split(' '))
    for i in range(1,b+1):
        if a*i%b==c:
            print('YES')
            exit()
    print('NO')

if __name__ == '__main__':
    main()

Compiler output:
a.cc:5:19: warning: multi-character character constant [-Wmultichar]
    5 |             print('YES')
      |                   ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('NO')
      |           ^~~~
a.cc:9:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    9 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'if'
    8 |     a*=i
      |         ^
      |         ;
    9 |         if(a%b==c){
      |         ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a,b,c;
    string ans="NO";
    cin >>a>>b>>c;
    int d=a%b;
    for(int i=1;i<10000;i++){
       if(d*i%b==c){
         ans="YES";
         break;
       }
        cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define rrep(i, n) for(int i=((int)(n));i>0;i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)	
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define REVSORT(c) SORT(c);REVERSE(c)
#define ALL(x) (x).begin(),(x).end()
#define INF 1e9
#define LOOP while(true)
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	int A, B, C;
	cin >> A >> B >> C;
	int a = A % 2;
	int b = B % 2;
	int c = C % 2;
	string ans = "YES";
	if(a == 0){
		if(b != c)ans = "NO";
	} else {
		if(b == c)ans = "NO;
	}
	cout << ans << endl;
}

Compiler output:
a.cc:25:33: warning: missing terminating " character
   25 |                 if(b == c)ans = "NO;
      |                                 ^
a.cc:25:33: error: missing terminating " character
   25 |                 if(b == c)ans = "NO;
      |                                 ^~~~
a.cc: In function 'int main()':
a.cc:26:9: error: expected primary-expression before '}' token
   26 |         }
      |         ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A >> B >> C;
  bool flag = false;
  // want B + C no baisuu
  for(int i=1;i<=B;++i){
    if(C==A*i%B) flag = true;
  }
  
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;


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

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

Compiler output:
main.c: In function 'main':
main.c:7:19: error: stray '\' in program
    7 |       printf("YES"\n);
      |                   ^
main.c:7:19: error: expected ')' before 'n'
    7 |       printf("YES"\n);
      |             ~     ^~
      |                   )
main.c:10:18: error: stray '\' in program
   10 |       printf("NO"\n);
      |                  ^
main.c:10:18: error: expected ')' before 'n'
   10 |       printf("NO"\n);
      |             ~    ^~
      |                  )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:19: error: stray '\' in program
    7 |       printf("YES"\n);
      |                   ^
main.c:7:19: error: expected ')' before 'n'
    7 |       printf("YES"\n);
      |             ~     ^~
      |                   )
main.c:9:18: error: stray '\' in program
    9 |       printf("NO"\n);
      |                  ^
main.c:9:18: error: expected ')' before 'n'
    9 |       printf("NO"\n);
      |             ~    ^~
      |                  )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:17: error: stray '\' in program
    6 |     printf("YES"\n);
      |                 ^
main.c:6:17: error: expected ')' before 'n'
    6 |     printf("YES"\n);
      |           ~     ^~
      |                 )
main.c:8:16: error: stray '\' in program
    8 |     printf("NO"\n);
      |                ^
main.c:8:16: error: expected ')' before 'n'
    8 |     printf("NO"\n);
      |           ~    ^~
      |                )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:17: error: stray '\' in program
    6 |     printf("YES"\n);
      |                 ^
main.c:6:17: error: expected ')' before 'n'
    6 |     printf("YES"\n);
      |           ~     ^~
      |                 )
main.c:8:16: error: stray '\' in program
    8 |     printf("NO"\n);
      |                ^
main.c:8:16: error: expected ')' before 'n'
    8 |     printf("NO"\n);
      |           ~    ^~
      |                )
Language: C++

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

int main() {
    int A, B, C;
    cin >> A >> B >> C;
    bool flag = false;

    while(int i = 1; i <= B; i++){ 
        if(i*A % B == C){
            flag = true;
        }
    }
    cout << (flag? "YES":"NO") << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ')' before ';' token
    9 |     while(int i = 1; i <= B; i++){
      |          ~         ^
      |                    )
a.cc:9:22: error: 'i' was not declared in this scope
    9 |     while(int i = 1; i <= B; i++){
      |                      ^
Language: C++

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

int main() {
    int A, B, C;
    cin >> A >> B >> C;
    bool flag = false;
    int i = A;
    int j = 1;

    while(int i = 1; i <= B; i++){ 
        if(i*A % B == C){
            flag = true;
        }
    }
    cout << (flag? "YES":"NO") << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ')' before ';' token
   11 |     while(int i = 1; i <= B; i++){
      |          ~         ^
      |                    )
a.cc:11:33: error: expected ';' before ')' token
   11 |     while(int i = 1; i <= B; i++){
      |                                 ^
      |                                 ;
Language: Java

public class ChooseIntegers {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in);) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			String text = "";
			int mul = 0;
			int i = 0;
			for (i = 0; i < b; i++) {
				mul = mul + a;
				if (mul % b == c) {
					text = "YES";
					break;
				}else {
					text = "NO";
				}
			}
			System.out.println(text);
		}
	}
}

Compiler output:
Main.java:1: error: class ChooseIntegers is public, should be declared in a file named ChooseIntegers.java
public class ChooseIntegers {
       ^
Main.java:4: error: cannot find symbol
		try (Scanner sc = new Scanner(System.in);) {
		     ^
  symbol:   class Scanner
  location: class ChooseIntegers
Main.java:4: error: cannot find symbol
		try (Scanner sc = new Scanner(System.in);) {
		                      ^
  symbol:   class Scanner
  location: class ChooseIntegers
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c,i,j;
  cin>>a>>b>>c;
  for(i=1;i<=1000;i++)
    {
      j=a*i;
	  if(j%b==c)
	    {
	      cout<<"YES"<<endl
		  return 0;	
		}	
	}	
  cout<<"NO"<<endl;
  return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: expected ';' before 'return'
   12 |               cout<<"YES"<<endl
      |                                ^
      |                                ;
   13 |                   return 0;
      |                   ~~~~~~
Language: C++

#include<bits/stdc++>
using namespace std;
int main()
{
  int a,b,c,i,j;
  cin>>a>>b>>c;
  for(i=1;i<=1000;i++)
    {
      j=a*i;
	  if(j%b==c)
	    {
	      cout<<"YES"<<endl
		  return 0;	
		}	
	}	
  cout<<"NO"<<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++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(),x.end())
#define REVE(x) reverse(x.begin(),x.end())
#define all(x) (x).begin(),(x).end()
#define fst first
#define mp make_pair
#define pb push_back
using LL #include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(),x.end())
#define REVE(x) reverse(x.begin(),x.end())
#define all(x) (x).begin(),(x).end()
#define fst first
#define mp make_pair
#define pb push_back
using LL = long long;
using ULL = unsigned long long;
#define FOR(i, m, n) for(int i = m;i < n;i++)
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;}
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A, B, C, D;
    cin >> A >> B >> C;
  for(int i=A;i<=A*B;i+=A){
  	if(i%B==C){
  	cout<<"YES";
      return 0;
  	}
     	}
 
  cout << "NO";
  
}

Compiler output:
a.cc:17:10: error: stray '#' in program
   17 | using LL #include <iostream>
      |          ^
a.cc:17:7: error: expected nested-name-specifier before 'LL'
   17 | using LL #include <iostream>
      |       ^~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(),x.end())
#define REVE(x) reverse(x.begin(),x.end())
#define all(x) (x).begin(),(x).end()
#define fst first
#define mp make_pair
#define pb push_back
using LL #include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(),x.end())
#define REVE(x) reverse(x.begin(),x.end())
#define all(x) (x).begin(),(x).end()
#define fst first
#define mp make_pair
#define pb push_back
using LL = long long;
using ULL = unsigned long long;
#define FOR(i, m, n) for(int i = m;i < n;i++)
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;}
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A, B, C, D;
    cin >> A >> B >> C;
  for(int i=A;i<=A*B;i+=A){
  	if(i%B==C){
  	cout<<"YES";
      return 0;
  	}
     	} 
  cout << "NO";
}

Compiler output:
a.cc:17:10: error: stray '#' in program
   17 | using LL #include <iostream>
      |          ^
a.cc:17:7: error: expected nested-name-specifier before 'LL'
   17 | using LL #include <iostream>
      |       ^~
Language: C++

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

int gcd(int a,int b){
	if(b==0)return a;
  	else return gcd(b,a%b)}

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


Compiler output:
a.cc: In function 'long long int gcd(long long int, long long int)':
a.cc:7:31: error: expected ';' before '}' token
    7 |         else return gcd(b,a%b)}
      |                               ^
      |                               ;
Language: C++

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

int maun(){
int a,b,c;
  cin>>a>>b>>c;
  for(int i=1;i<=a;i++){
    if(a*i%b==c){
      cout<<"YES"<<endl;
      break;
    }
  if(i==a)
    cout<<"NO"<<endl;
}
}

Compiler output:
a.cc: In function 'int maun()':
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
/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>
using namespace std;

int maun(){
int a,b,c,;
  cin>>a>>b>>c;
  for(int i=1;i<=a;i++){
    if(a*i%b==c){
      cout<<"YES"<<endl;
      break;
    }
  if(i==a)
    cout<<"NO"<<endl;
}
}

Compiler output:
a.cc: In function 'int maun()':
a.cc:5:11: error: expected unqualified-id before ';' token
    5 | int a,b,c,;
      |           ^
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
Language: C++

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

int maun(){
int a,b,c,;
  cin>>a>>b>>c;
  for(int i=1;i<=a;i++)
    if(a*i%b==c){
      cout<<"YES"<<endl;
      break;
    }
  if(i==a)
    cout<<"NO"<<endl;
}
}

Compiler output:
a.cc: In function 'int maun()':
a.cc:5:11: error: expected unqualified-id before ';' token
    5 | int a,b,c,;
      |           ^
a.cc:12:6: error: 'i' was not declared in this scope
   12 |   if(i==a)
      |      ^
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bitset>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<iomanip>
using namespace std;

#define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) repr(i, 0, n)
#define INF 2e9
#define MOD 1000000007
#define LINF (long long)4e18

using ll = long long;


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



Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: 'BA' was not declared in this scope; did you mean 'B'?
   26 |     repr(i,A,BA+1){
      |              ^~
a.cc:13:56: note: in definition of macro 'repr'
   13 | #define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
      |                                                        ^
Language: C++

#include <bits/stdc++.h>
#define IO(i, o) freopen(i, "r", stdin), freopen(o, "w", stdout)

using namespace std;
int A, B, C

int main(void){
	//IO("test.in", "test.out");
	scanf("%d%d%d", &A, &B, &C);
	if((C % B) % A == 0) printf("Yes\n");
	else printf("No\n");
}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(void){
      | ^~~
Language: C++

//#include<bits/stdc++.h>	// 全てのヘッダーファイルをinclude
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<set>
#define REP(i,n) for(int i=0;i<n;i++)
#define REPR (i,n) for(int i=n;i>0;i--)
#define FOR(i,m,n) for(int i=m;i<n;i++)
#define MOD 1e9+7	// int 1000000007
const int inf{int(1e9)};	// inf = 1000000000 // 1e9 はdouble型
using namespace std;
typedef long long ll;


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

	REP(i, 1, b) {
		if ((a*i)%b == c) {
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;
	return 0;
}

Compiler output:
a.cc:22:20: error: macro "REP" passed 3 arguments, but takes just 2
   22 |         REP(i, 1, b) {
      |                    ^
a.cc:8:9: note: macro "REP" defined here
    8 | #define REP(i,n) for(int i=0;i<n;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:22:9: error: 'REP' was not declared in this scope
   22 |         REP(i, 1, b) {
      |         ^~~
Language: C++

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
 
int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int A,B,C;
  cin>>A>>B>>C;
  int D=A%B;
  for(int i=0;i<B;i++){
    tmp=D;
    D=tmp*A%B;
    if(D==C){
      cout<<"YES"<<endl;
      return 0;
    }
  }
  cout<<"NO"<<endl;

}
     







Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   27 |     tmp=D;
      |     ^~~
      |     tm
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int A,B,C;
  cin >> A >> B >> C;
  int count=0;
  for(;A<A*B;A++){
  	if(A%B==C){
    	count++:
      break;
    } 
  }
  if(count) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before ':' token
   10 |         count++:
      |                ^
      |                ;
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ')' before ';' token
   15 |     while(int i=a; i<=a*b; i+=a){
      |          ~       ^
      |                  )
a.cc:15:20: error: 'i' was not declared in this scope
   15 |     while(int i=a; i<=a*b; i+=a){
      |                    ^
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    int a, b, c;
    cin>>a>>b>>c;
    int x = 0;
    while(b*x+c<=a*a){
        if((b*x+c)/a===0){
            cout<<"YES"<<endl;
            return 0;
        }
        x++;
    }
    cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected primary-expression before '=' token
   16 |         if((b*x+c)/a===0){
      |                       ^
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    int a, b, c;
    cin>>a>>b>>c;
    int x = 0;
    while(b*x+c<=a*a){
        if((b*x+c)/a===0){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
    return 0;
}#include <bits/stdc++.h>
using namespace std;

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    int a, b, c;
    cin>>a>>b>>c;
    int x = 0;
    while(b*x+c<=a*a){
        if((b*x+c)/a===0){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc:23:2: error: stray '#' in program
   23 | }#include <bits/stdc++.h>
      |  ^
a.cc: In function 'int main()':
a.cc:16:23: error: expected primary-expression before '=' token
   16 |         if((b*x+c)/a===0){
      |                       ^
a.cc: At global scope:
a.cc:23:3: error: 'include' does not name a type
   23 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main(){
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:38:23: error: expected primary-expression before '=' token
   38 |         if((b*x+c)/a===0){
      |                       ^
Language: C++

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

int main(void){
    int A, B, C;
    cin >> A >> B >> C;
    long i = 1;
    long tmp;
    while(i <= A * B){
        tmp = A * i;
        i++
        if(tmp % B == C){
            cout << "Yes" << endl;
            break;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before 'if'
   12 |         i++
      |            ^
      |            ;
   13 |         if(tmp % B == C){
      |         ~~  
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: lvalue required as left operand of assignment
    7 |   N % A = 0;
      |   ~~^~~
a.cc:11:22: error: expected ';' before 'if'
   11 |       0 < x < (N + 1)
      |                      ^
      |                      ;
   12 |       if (A * x % B == C) {
      |       ~~              
a.cc:15:7: error: 'else' without a previous 'if'
   15 |       else {
      |       ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before ')' token
    8 |         for (int i = 0; i++) {
      |                            ^
      |                            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = false;
    for (int i = 1; i < B + 1; i++)
    {
        if (a * i % b == c)
        {
            flag = true;
        }
    }
    cout << (ok ? "YES" : "NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'B' was not declared in this scope
    7 |     for (int i = 1; i < B + 1; i++)
      |                         ^
a.cc:14:14: error: 'ok' was not declared in this scope
   14 |     cout << (ok ? "YES" : "NO") << endl;
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = false;
    for (int i = 1; i < B + 1; i++)
    {
        if (a * i % b == c)
        {
            flag = true;
        }
    } 
    }
    cout << (ok ? "YES" : "NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'B' was not declared in this scope
    7 |     for (int i = 1; i < B + 1; i++)
      |                         ^
a.cc: At global scope:
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout << (ok ? "YES" : "NO") << endl;
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = false;
    for (int i = 1; i < B + 1; i++)
    {
        if (a * i % b == c)
        {
            flag = true;
        }
    } }
    }
    cout << (ok ? "YES" : "NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'B' was not declared in this scope
    7 |     for (int i = 1; i < B + 1; i++)
      |                         ^
a.cc: At global scope:
a.cc:14:5: error: expected declaration before '}' token
   14 |     }
      |     ^
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout << (ok ? "YES" : "NO") << endl;
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = false;
    for (int i = 1; i < B + 1; i++)
    {
        if (A * i % B == C)
        {
            flag = true;
        }
    } }
    }
    cout << (ok ? "YES" : "NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'B' was not declared in this scope
    7 |     for (int i = 1; i < B + 1; i++)
      |                         ^
a.cc:9:13: error: 'A' was not declared in this scope
    9 |         if (A * i % B == C)
      |             ^
a.cc:9:26: error: 'C' was not declared in this scope
    9 |         if (A * i % B == C)
      |                          ^
a.cc: At global scope:
a.cc:14:5: error: expected declaration before '}' token
   14 |     }
      |     ^
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout << (ok ? "YES" : "NO") << endl;
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = true;
    for(var i = 1;i<=b;i++){
        if(ia # b =!= c){
            flag = false;
            break;
        }
    }
    if flag cout << "YES";
    else cout << "NO"; 
}


Compiler output:
a.cc:8:15: error: stray '#' in program
    8 |         if(ia # b =!= c){
      |               ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'var' was not declared in this scope
    7 |     for(var i = 1;i<=b;i++){
      |         ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     for(var i = 1;i<=b;i++){
      |                   ^
a.cc:8:12: error: 'ia' was not declared in this scope; did you mean 'a'?
    8 |         if(ia # b =!= c){
      |            ^~
      |            a
a.cc:8:14: error: expected ')' before 'b'
    8 |         if(ia # b =!= c){
      |           ~  ^  ~
      |              )
a.cc:13:8: error: expected '(' before 'flag'
   13 |     if flag cout << "YES";
      |        ^~~~
      |        (
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else cout << "NO";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    bool flag = true;
    for(var i = 1;i<=b;i++){
        if(ia # b =!= c){
            flag = false;
            break;
        }
    }
    if flag cout << "Yes";
    else cout << "No"; 
}


Compiler output:
a.cc:8:15: error: stray '#' in program
    8 |         if(ia # b =!= c){
      |               ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'var' was not declared in this scope
    7 |     for(var i = 1;i<=b;i++){
      |         ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     for(var i = 1;i<=b;i++){
      |                   ^
a.cc:8:12: error: 'ia' was not declared in this scope; did you mean 'a'?
    8 |         if(ia # b =!= c){
      |            ^~
      |            a
a.cc:8:14: error: expected ')' before 'b'
    8 |         if(ia # b =!= c){
      |           ~  ^  ~
      |              )
a.cc:13:8: error: expected '(' before 'flag'
   13 |     if flag cout << "Yes";
      |        ^~~~
      |        (
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else cout << "No";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rfor(i, a, b) for(int i = a; i < (int)b; i++)
#define all(ary) (ary).begin(), (ary).end()
#define debug(x) cerr << #x << ": " << x << '\n'
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
using namespace std;
using v = vector<int>;
using ll = long long;
template <class T = int> T in(){ T x; cin >> x; return (x);}

int main(int argc, char *argv[]){
    int a, b, c; cin >> a >> b >> c;
    // rep(i, )
    string res;
    if(a % 2 == 0 && b % 2 == 0 && c % 2 != 0){
        res = "NO";
    }else if(a % 2 != 0 && b % 2 == 0 %% c % 2 == 0){
        res = "NO";
    }else{
        res = "YES";
    }
    cout << res << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:19:40: error: expected primary-expression before '%' token
   19 |     }else if(a % 2 != 0 && b % 2 == 0 %% c % 2 == 0){
      |                                        ^
Language: C++

#include<stdio.h>
int main(void){
	
int A,B,C;
int sum = 0;
int i;

scanf("%d %d %d",&A,&B,&C);
for(i=0;i<B;i++){
	sum += A;
	if(sum % B == C){
		printf("YES\n");
		return 0;
	}
}
printf("NO\");

return 0;
}

Compiler output:
a.cc:16:8: warning: missing terminating " character
   16 | printf("NO\");
      |        ^
a.cc:16:8: error: missing terminating " character
   16 | printf("NO\");
      |        ^~~~~~~
a.cc: In function 'int main()':
a.cc:18:1: error: expected primary-expression before 'return'
   18 | return 0;
      | ^~~~~~
Language: C++

import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b,c = f()
    a = a%b
    c = c%b
    for i in range(b):
        if (a*i)%b == c:
            print('YES')
            return
    
    print('NO')

solve()


Compiler output:
a.cc:4:4: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 | if 'local' in os.environ :
      |    ^~~~~~~
a.cc:5:22: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    5 |     sys.stdin = open('./input.txt', 'r')
      |                      ^~~~~~~~~~~~~
a.cc:13:19: warning: multi-character character constant [-Wmultichar]
   13 |             print('YES')
      |                   ^~~~~
a.cc:16:11: warning: multi-character character constant [-Wmultichar]
   16 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, os
      | ^~~~~~
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;
  bool f = 0;
  for(int i = a; i <= ab; i++) {
    if(i % b == c) f = 1;
  }
  if(f) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'ab' was not declared in this scope; did you mean 'b'?
    8 |   for(int i = a; i <= ab; i++) {
      |                       ^~
      |                       b
Language: C++

#include<cstdio>
using namespace std;
long long a,b,c,i;
int main()
{
	
	scanf("%lld%lld%lld",&a.&b,&c);
	bool flag=false;
	if(a%b==c)
	{
		printf("YES");
	}
	for(i=2;i<=b;i++)
	{
		if((a*i)%b==c)
		{
			printf("YES");
			return 0;
		}
	}
	printf("NO");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected unqualified-id before '&' token
    7 |         scanf("%lld%lld%lld",&a.&b,&c);
      |                                 ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	int A, B, C;
	int count[100];
	int i = 1;
	int sum = 0;

	memset(count, 0, 100);

	cin >> A >> B >> C;

	while (true)
	{
		sum += A;
		if (sum % B == C)
		{
			cout << "YES" << endl;
			break;
		}
		else
		{
			if (count[sum % B] > 0)
			{
				cout << "NO" << endl;
				break;
			}
			else
			{
				count[sum % B]++;
			}
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'memset' was not declared in this scope
   13 |         memset(count, 0, 100);
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'a' was not declared in this scope
   13 |         if(i==a*b){
      |               ^
a.cc:13:17: error: 'b' was not declared in this scope
   13 |         if(i==a*b){
      |                 ^
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 = ac.nextInt();
        
        for(int i=0; i<=100; i++){
            if(a*i%b==c){
                System.out.println("YES");
                return;
            }
        }
        System.out.println("NO");
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        int c = ac.nextInt();
                ^
  symbol:   variable ac
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B, C; cin >> A >> B >> C;
  for (int i = 0; i < B; i++) {
    if(A * i % B == C) {
      cout << "YES" << "\n";
      return 0;
    }
  cout << "NO" << "\n";
}

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

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

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


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before 'int'
    7 |     int(i=1; i<=b; i++){
      |     ^~~
a.cc:7:23: error: expected ';' before ')' token
    7 |     int(i=1; i<=b; i++){
      |                       ^
      |                       ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
	int k;
	for(int i=0;i<n;i++){	
	k++;
	a*=k;
	}
	if(a%b==c)
	{
		cout<<"YES"<<endl;
		return 0;
	}
	cout<<"NO"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: 'n' was not declared in this scope
    5 |         for(int i=0;i<n;i++){
      |                       ^
a.cc:7:9: error: 'a' was not declared in this scope
    7 |         a*=k;
      |         ^
a.cc:9:12: error: 'a' was not declared in this scope
    9 |         if(a%b==c)
      |            ^
a.cc:9:14: error: 'b' was not declared in this scope
    9 |         if(a%b==c)
      |              ^
a.cc:9:17: error: 'c' was not declared in this scope
    9 |         if(a%b==c)
      |                 ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected primary-expression before ')' token
    8 |   for(int i = 1; i<=a*b; i+){
      |                            ^
Language: C++

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

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int main()
{
    int A, B, C;
    cin >> A >> B >> C;
    int D = A % B;

    int E = D;
    do
    {
        if (E % B == C)
        {
            cout << "YES" << Endl;
            return 0;
        }
        E = (E + D) % B;
    } while (E != D);
    cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:30: error: 'Endl' was not declared in this scope
   25 |             cout << "YES" << Endl;
      |                              ^~~~
Language: C

#include<stdio.h>
int main(){
  int A,B,C;
  scanf("%d %d %d",%A,%B,%C);
  for(int i = A;i < A * B;i++){
    if(i % B == C){
      printf("YES");
      return 0;
    }
  }
  printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before '%' token
    4 |   scanf("%d %d %d",%A,%B,%C);
      |                    ^
Language: C

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

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a,b,c;cin >> a >> b >> c;
	int sum=0;
	rep(i,100000){
		sum+=a;
		if(sum%b==c){
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'i' undeclared (first use in this function)
    8 |   for (i = 1; i < B; i++){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h.

int main(){
  int A, B, C, r;
  
  scanf("%d %d %d", &A, &B, &C);
  
  r = A%B;
  if(C%r == 0){
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  
  return 0;
}

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h.
      |                  ^
main.c:1:9: fatal error: stdio.h.: No such file or directory
    1 | #include<stdio.h.
      |         ^
compilation terminated.
Language: C++

#include <iostream>
#include <set>

int main(void){
  int a,b,c;
  cin >> a >> b >> c;
  int flag = 0;
  set<int> set_int;
  while(true){
    if(a%b==c){
      flag = 1;
      break;
    }else if(set_int.count(a%b) != 0){
      break;
    }
    set_int.insert(a%b);
  }
  if(flag == 0){
    cout << "NO" << endl;
  }else{
    cout << "YES" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'set' was not declared in this scope
    8 |   set<int> set_int;
      |   ^~~
a.cc:8:3: note: suggested alternatives:
In file included from /usr/include/c++/14/set:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_set.h:96:11: note:   'std::set'
   96 |     class set
      |           ^~~
/usr/include/c++/14/set:87:13: note:   'std::pmr::set'
   87 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
a.cc:8:7: error: expected primary-expression before 'int'
    8 |   set<int> set_int;
      |       ^~~
a.cc:13:14: error: 'set_int' was not declared in this scope; did you mean 'u_int'?
   13 |     }else if(set_int.count(a%b) != 0){
      |              ^~~~~~~
      |              u_int
a.cc:16:5: error: 'set_int' was not declared in this scope; did you mean 'u_int'?
   16 |     set_int.insert(a%b);
      |     ^~~~~~~
      |     u_int
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     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:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout << "NO" << 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:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |     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:21:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |     cout << "YES" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

bool test(const int a, const int b, const int c) {
  const int mod_a = a % b;
  if (mod_a == 0) {
    return (c == 0);
  }
  int current_mod = mod_a;
  while (true) {
    current_mod = (current_mod + mod_a) % b;
    if (c == current_mod) {
      return true;
    }
    if (current_mod == mod_a) {
      return false;
    }
  }
}

int main() {
  int a, b, c;
  std::cin >> a >> b >> c;
  std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: 'cin' is not a member of 'std'
   20 |   std::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 | bool test(const int a, const int b, const int c) {
a.cc:21:8: error: 'cout' is not a member of 'std'
   21 |   std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl;
      |        ^~~~
a.cc:21:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:55: error: 'endl' is not a member of 'std'
   21 |   std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl;
      |                                                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | bool test(const int a, const int b, const int c) {
Language: C++

#include<iostream> 
#include<vector> 
#include<string> 
#include<algorithm> 
using namespace std; 
int main()
{
	int a, b, c; 
	cin >> a >> b >> c; 
	int b = 0; 
	for (int i = 1; i < b; i++)
	{
		if (a*i%b == c)
		{
			b = 1; 
			break; 
		}
	} 
	if (b==1) 
	{
		cout << "YES" << endl; 

	} 
	else
	{
		cout << "NO" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: redeclaration of 'int b'
   10 |         int b = 0;
      |             ^
a.cc:8:16: note: 'int b' previously declared here
    8 |         int a, b, c;
      |                ^