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

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

Compiler output:
a.cc:1:10: fatal error: iostre#include <iostream: No such file or directory
    1 | #include <iostre#include <iostream>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
long long a,b,c,d;
int main(){
	scanf("%lld%lld%lld",&a,&b,&c);
	d=a;
	for(register int i=1;i<=100000;++i){
		if(a%b==c){
			cout<<"YES"<<endl;
			return 0;
		}
		a+=d;
	}
	cout<<"NO"<<endl;
	system("pause");
	return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:20:5: error: expected '(' before '{' token
   20 |   if{
      |     ^
      |     (
Language: C

#include<stdio.h>
int main(void){
  int A,B,C;
  int i,s=0;
  scanf("%d %d %d",&A,&B,&C);
  for(i=1;i<=b;i++){
    if(A*i%B==C){
     
      s=1;
      break;
    }
  }
    if(s==1){
       printf("Yes/n");
    }
    else printf("No/n");
  
    return 0;
  }

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

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 |  for(i=0,i<=100,i++){
      |                    ^
      |                    ;
main.c:6:20: error: expected expression before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 |  for(i=0,i<=100,i++){
      |                    ^
      |                    ;
main.c:6:20: error: expected expression before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 |  for(i=0,i<=100,i++){
      |                    ^
      |                    ;
main.c:6:20: error: expected expression before ')' token
main.c:14:16: error: expected ';' before '}' token
   14 |  printf("NO\n")
      |                ^
      |                ;
   15 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 |  for(i=0,i<=100,i++){
      |                    ^
      |                    ;
main.c:6:20: error: expected expression before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 |  for(i=0,i<=100,i++){
      |                    ^
      |                    ;
main.c:6:20: error: expected expression before ')' token
Language: C

#include<stdio.h>
int main(void){
  int A,B,C;
  int i;
  scanf("%d %d %d",&A,&B,&C);
  for(i=1;i<=100;i++){
    if(A*i%B==C){
      printf("Yes/n");
      break;
    }
    else{
      printf("No/n");
    }
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C

#include<stdio.h>
int main(void){
    int i,A,B,C,x;
    scanf("%d %d %d",&A,&B,&C);

if((A%2==0)&&(B%2==0){
    if(C%2==1){
        printf("NO");
    }else{
        printf("YES");
    }
}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected ')' before '{' token
    6 | if((A%2==0)&&(B%2==0){
      |   ~                  ^
      |                      )
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: C++

#include<stdio.h>{
int main(void){
  int A,B,C;
  int i;
  scanf("%d %d %d",&A,&b,&C);
  for(i=1;i<=100;i++){
    if(A*i%B==C){
      printf("Yes/n");
      break;
    }
    else{
      printf("No/n");
    }
    return 0;
  }

Compiler output:
a.cc:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>{
      |                  ^
a.cc: In function 'int main()':
a.cc:5:24: error: 'b' was not declared in this scope
    5 |   scanf("%d %d %d",&A,&b,&C);
      |                        ^
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

#include<stdio.h>
int main(void){
  int A,B,C;
  int i;
  scanf("%d %d %d",&A,&b,&C);
  for(i=1;i<=100;i++){
    if(A*i%B==C){
      printf("Yes/n");
      break;
    }
    else{
      printf("No/n");
    }
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'b' was not declared in this scope
    5 |   scanf("%d %d %d",&A,&b,&C);
      |                        ^
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C

#include<stdio.h>

int main(void){
int a,b,c;
int i;
int d;
int e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
for(i=1;i<101;i++;){
d=i*c;
if(d%a==0){
e=1;
break;
}
}
if(e==1){printf("YES");}
else{printf("ＮＯ");}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ')' before ';' token
   11 | for(i=1;i<101;i++;){
      |    ~             ^
      |                  )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |       print("YES\n");
      |       ^~~~~
      |       printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |           ^
main.c:5:17: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |                 ^
main.c:5:23: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |                       ^
main.c:6:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |       print("YES\n");
      |       ^~~~~
      |       printf
main.c:7:17: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                 ^
main.c:7:23: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                       ^
main.c:7:29: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |           ^
main.c:5:17: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |                 ^
main.c:5:23: error: lvalue required as left operand of assignment
    5 |     if(a%2=0,b%2=0,c%2=0){
      |                       ^
main.c:6:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |       print("YES");
      |       ^~~~~
      |       printf
main.c:7:17: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                 ^
main.c:7:23: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                       ^
main.c:7:29: error: lvalue required as left operand of assignment
    7 |     }else if(a%2=1,b%2=1,c%2=1){
      |                             ^
Language: C++

#include <cstdio>
int main()
{
    int a,b,c,num;
    scanf("%d%d%d",&a,&b,&c);
    for(int i=0;i<=1000;i++)
    {
        ans=a*i;
        if(ans%b==c)
        {
            printf("YES\n");
            return 0;
        }
    }
    printf("NO\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ans' was not declared in this scope
    8 |         ans=a*i;
      |         ^~~
Language: C++

#include <cstdio>
int main()
{
    int a,b,c,num;
    scanf("%d%d%d",&a,&b,&c);
    for(i=0;i<=1000;i++)
    {
        ans=a*i;
        if(ans%b==c)
        {
            printf("YES\n");
            return 0;
        }
    }
    printf("NO\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i=0;i<=1000;i++)
      |         ^
a.cc:8:9: error: 'ans' was not declared in this scope
    8 |         ans=a*i;
      |         ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: reference to 'count' is ambiguous
    8 |     count += i*a;
      |     ^~~~~
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:5: note:                 'int count'
    4 | int count = 0;
      |     ^~~~~
a.cc:10:6: error: reference to 'count' is ambiguous
   10 |   if(count % b == c) cout << "Yes" << endl;
      |      ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:5: note:                 'int count'
    4 | int count = 0;
      |     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: reference to 'count' is ambiguous
    8 |     count += i*a
      |     ^~~~~
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:5: note:                 'int count'
    4 | int count = 0;
      |     ^~~~~
a.cc:10:6: error: reference to 'count' is ambiguous
   10 |   if(count % b == c) cout << "Yes" << endl;
      |      ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:5: note:                 'int count'
    4 | int count = 0;
      |     ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    long long a,b,c,i;
    cin>>a>>b>>c;
    for(i=1;i<=1000;++i){
        if((a*i)%b==c){
            cout<<"YES"<<endl;
            goto endapp:
        }
    }
    cout<<"NO"<<endl;
endapp:
    return 0;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ':' token
    9 |             goto endapp:
      |                        ^
      |                        ;
a.cc:9:24: error: expected primary-expression before ':' token
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 *= a){
        if(i % b == c){
            cout << "YES" << endl;
        }
    cout << "NO" << endl;
}

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include "bits/stdc++.h"
using namespace std;
typedef long long unsigned int ll;

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

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()

int main(){
    cin>>a>>b>>c;
    for(int s=a;s<=100000;s+=a)
    {
        if(s%b==c)
        {
            cout<<"YES\n";
            return 0;
        }
    }
    cout<<"NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:10: error: 'a' was not declared in this scope
   30 |     cin>>a>>b>>c;
      |          ^
a.cc:30:13: error: 'b' was not declared in this scope
   30 |     cin>>a>>b>>c;
      |             ^
a.cc:30:16: error: 'c' was not declared in this scope
   30 |     cin>>a>>b>>c;
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'a' was not declared in this scope
    9 |         if((a*s)%b==c)
      |             ^
a.cc:9:15: error: 's' was not declared in this scope
    9 |         if((a*s)%b==c)
      |               ^
a.cc:9:18: error: 'b' was not declared in this scope
    9 |         if((a*s)%b==c)
      |                  ^
a.cc:9:21: error: 'c' was not declared in this scope
    9 |         if((a*s)%b==c)
      |                     ^
Language: C++

int main()
{
    int A, B, C;
    scanf("%d %d %d", &A, &B, &C);
    
    while(A != 0 && B != 0) {
        int a = A, b = B;
        if(a > b) {
            A = a % b;
        } else {
            B = b % a;
        }
    }
   
    printf("%s", (A != 0 && C % A == 0 || B != 0 && C % B == 0) ? "YES" : "NO");
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d %d %d", &A, &B, &C);
      |     ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("%s", (A != 0 && C % A == 0 || B != 0 && C % B == 0) ? "YES" : "NO");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C

#include<stdio.h>
int main()
{
    int a,b,c,f=0;
    // 整数の入力
    // スペース区切りの整数の入力
    scanf("%d %d %d",&a,&b,&c);
    // 出力
  for(int i=1;i<=b;i++){
    if((a*i-c)%b==0){
      printf("YES");
      f=1;
      break;
    }
  }

Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>C;
    REP(i,b){
        if(i*a%b==c){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'C' was not declared in this scope
    7 |     cin>>a>>b>>C;
      |                ^
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-c)%b==0){
      printf("YES");
  }
    printf("NO");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
    int a,b,c;
    // 整数の入力
    // スペース区切りの整数の入力
    scanf("%d,%d %d",&a,&b,&c);
    // 出力
  for(int i=0;i<b;i++){
    if((a*i-c)%b==0){
      printf("YES");
      }else printf(“NO”);
  }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: stray '\342' in program
   12 |       }else printf(<U+201C>NO<U+201D>);
      |                    ^~~~~~~~
main.c:12:23: error: stray '\342' in program
   12 |       }else printf(<U+201C>NO<U+201D>);
      |                              ^~~~~~~~
main.c:12:21: error: 'NO' undeclared (first use in this function)
   12 |       }else printf(“NO”);
      |                     ^~
main.c:12:21: 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;
    // 整数の入力
    // スペース区切りの整数の入力
    scanf("%d,%d %d",&a,&b,&c);
    // 出力
  for(int i=0;i<b;i++){
    if((a*n-c)%b==0){
      printf("YES");
      }else printf(“NO”);
  }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: 'n' undeclared (first use in this function)
   10 |     if((a*n-c)%b==0){
      |           ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:20: error: stray '\342' in program
   12 |       }else printf(<U+201C>NO<U+201D>);
      |                    ^~~~~~~~
main.c:12:23: error: stray '\342' in program
   12 |       }else printf(<U+201C>NO<U+201D>);
      |                              ^~~~~~~~
main.c:12:21: error: 'NO' undeclared (first use in this function)
   12 |       }else printf(“NO”);
      |                     ^~
Language: C++

#include <iostream>

using namespace std;

bool check(int A, int B, int C){
  for(int i=0; i<B; i++){
    if((A*i))%B == C) return true;
  }
  return false;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);//高速化、endlは使わない

  int A, B, C;

  cin >> A >> B >> C;

  if (check(A,B,C))  cout << "Yes" << "\n";
  else cout << "No" << "\n";
}


Compiler output:
a.cc: In function 'bool check(int, int, int)':
a.cc:7:14: error: expected primary-expression before '%' token
    7 |     if((A*i))%B == C) return true;
      |              ^
Language: C++

a, b, c = map(int, input().split())
def judhe(a, b, c):
    for i in range(b+1):
        if (a*i) % b == c:
            return 1
    return 0
print("YES" if judhe(a, b, c) else "NO")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int, input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
#define LL long long
using namespace std;
int main(){
  int a,b,c; cin>>a>>b>>c;
  if(a==1) cout<<"YES"<<endl
  if(a%2 && b%2) cout<<"YES"<<endl;
  //else if(a%2 && !(b%2) && c%2) cout<<"YES"<<endl;
  else if(!(a%2) && !(b%2) && !(c%2)) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ';' before 'if'
    6 |   if(a==1) cout<<"YES"<<endl
      |                             ^
      |                             ;
    7 |   if(a%2 && b%2) cout<<"YES"<<endl;
      |   ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(!(a%2) && !(b%2) && c%2) cout<<"NO"<<endl;
  else if(a%2 && !(b%2) && !(c%2)) cout<<"NO"<<endl;
  else if(a%s && b%2 && !(c%2)) cout<<"NO"<<endl;
  else cout<<"YES"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 's' was not declared in this scope
    8 |   else if(a%s && b%2 && !(c%2)) cout<<"NO"<<endl;
      |             ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define FOR(i,a,b) for(int i=(a); i<=(b); ++i)
#define FORD(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) FOR(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //ATTENTION: <a> must be sorted in advance

lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n

const int MOD = 1000000007; //10^9+7


/*********** variables ************/
string A, B, C;
/**********************************/

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> A >> B >> C;

    FOR(i, 1, 200) {
        int a = i*A;
        if(a%B == C) {
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:18: error: no match for 'operator*' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   28 |         int a = i*A;
      |                 ~^~
      |                 | |
      |                 | std::string {aka std::__cxx11::basic_string<char>}
      |                 int
a.cc:29:13: error: no match for 'operator%' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   29 |         if(a%B == C) {
      |            ~^~
      |            | |
      |            | std::string {aka std::__cxx11::basic_string<char>}
      |            int
Language: Java

\import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A,B,C,num2=0;
        A=sc.nextInt();
        B=sc.nextInt();
        C=sc.nextInt();
        for(int a=A;a<=B*A;a++){
            int num = a%B;
            if(num == C) num2 = 1;
        }
        if(B<=C) System.out.println("NO");
        if(num2!=0) System.out.println("YES");
        else System.out.println("NO");
    }
}

Compiler output:
Main.java:1: error: illegal character: '\'
\import java.util.*;
^
Main.java:1: error: class, interface, enum, or record expected
\import java.util.*;
        ^
2 errors
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	int p[100];
	for(int i=1;i<=b;i++)p[i-1]=a*i%b;
	for(int i=0;i<n;i++){
		if(p[i]==c){
			cout<<"YES"<<endl;
			return 0;
		}
	}
	cout<<"NO"<<endl;
    return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected primary-expression before ')' token
    6 |   for(int i = 1; i <= b; i**){
      |                             ^
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();
  boolean b = false;
  for(int i = 0;i < a*b;i += a){
    if(i%b == c){
      b = true;
      break;
    }
  }
  if(b)System.out.println("YES");
  else System.out.println("NO");
}}


Compiler output:
Main.java:8: error: variable b is already defined in method main(String[])
  boolean b = false;
          ^
Main.java:9: error: bad operand types for binary operator '*'
  for(int i = 0;i < a*b;i += a){
                     ^
  first type:  int
  second type: boolean
Main.java:10: error: bad operand types for binary operator '%'
    if(i%b == c){
        ^
  first type:  int
  second type: boolean
3 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();
  boolean b = false;
  for(int i = 0;i < a*b;i += a){
    if(i%b == c){
      b = true;
      break
    }
  }
  if(b)System.out.println("YES");
  else System.out.println("NO");
}}

Compiler output:
Main.java:12: error: ';' expected
      break
           ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner();
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int d = a % b;
    int k = d;
    while(true){
      if(c==k){
        System.out.println("YES");
        return;                
      }
      k += d;
      if(k > d){
      k -= d;
      }
      if(k == d){
        System.out.println("NO");
        return;
      
      }
    }
  }

}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner sc = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
#include <cmath>
#include <algorithm>

using namespace std;

int main(void){
	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:12:17: error: 'gcd' was not declared in this scope
   12 |         if (c % gcd(a, b) == 0)
      |                 ^~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(void){
	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:11:17: error: 'gcd' was not declared in this scope
   11 |         if (c % gcd(a, b) == 0)
      |                 ^~~
Language: C++

#include <iostream>
#include <gcd>

using namespace std;

int main(void){
	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:2:10: fatal error: gcd: No such file or directory
    2 | #include <gcd>
      |          ^~~~~
compilation terminated.
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int a, b, c, flag;
int main(){
	wihle(cin>>a>>b>>c){
		int q == c % b;
		flag = 0;
		for(int i = 1; i <= 100; i++){
			if((a * i) % b == q){
				cout<<"YES"<<endl;
				flag = 1;
				break;
			}
		}
		if(flag == 0)
			cout<<"NO"<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'wihle' was not declared in this scope
   10 |         wihle(cin>>a>>b>>c){
      |         ^~~~~
Language: C++

#include<iostream> 
#include<algorithm> 
#include<cstdio> 
#include<cmath> 
#include<cstring> 
using namespace std;
int main()
{
	int a,b,c,i;
	scanf("%d%d%d",&a,&b,&c);
	n=c%b;
	for(i=0;i<=1000;i++){
		if((n+b*i)%a==0)
		{
			printf("YES\n");
			break;
		}
	}
	printf("NO\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'n' was not declared in this scope
   11 |         n=c%b;
      |         ^
Language: Java

#include <bits/stdc++.h>
typedef long long LL;
const int MAX = 1000;
using namespace std;

int tu[MAX+5][MAX+5],m,n;
int main(){
	int a,b,c;
	while(cin>>a>>b>>c){
		int m = c%b;
		int flag=0,sum=1;
		for(int  i=1; i<=100; ++i){
			sum=a*i;
			if(sum==m){
				flag=1;
				break;
			}
		}
		if(flag)cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
		
	}
	return 0;	
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: class, interface, enum, or record expected
const int MAX = 1000;
^
Main.java:4: error: class, interface, enum, or record expected
using namespace std;
^
Main.java:6: error: class, interface, enum, or record expected
int tu[MAX+5][MAX+5],m,n;
^
Main.java:19: error: not a statement
		if(flag)cout<<"YES"<<endl;
		                   ^
Main.java:20: error: not a statement
		else cout<<"NO"<<endl;
		               ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
8 errors
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int A, B, C,;
    cin >> A;
    cin >> B;
    cin >> C;
    for (int a = 0; ; a++)
{
    if (A % B == 0)
    {
        cout << "NO" << endl;
        return 0;
    }
    if (A * a % B == C)
    {
        cout << "YES" << endl;
        return 0;
    }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected unqualified-id before ';' token
    5 |     int A, B, C,;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int A, B, C,;
    cin >> A;
    cin >> B;
    cin >> C;
    for (int a = 0; ; a++)
{
    if (A % B == 0)
    {
        cout << "NO" << endl;
        return 0;
    }
    if (A * a % B == C)
    {
        cout << "YES" << endl;
        return 0;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected unqualified-id before ';' token
    5 |     int A, B, C,;
      |                 ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

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

#define PrintLn(X) cout << X << endl
int main(void)
{
	int A, B, C;
	cin >> A >> B >> C;

	int n = 1;
	while(1){
		if((A * n) % B == C){
			PrintLn("YES");
			return 0;
		}else if((A * n) % B == A % B){
			PrintLn("NO");
			return 0;
		}
		n++
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected ';' before '}' token
   21 |                 n++
      |                    ^
      |                    ;
   22 |         }
      |         ~
Language: C++

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


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

#include<iostream>
using namespace std;

int A[1000];

int main(){
    int a,b,c;
    cin>>a>>b>>c;
    int baisu=a;
    while(!A[baisu]){
        A[baisu]=1
        baisu+=a;
        int amari=baisu%b;
        baisu=amari;
        if(amari==c){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before 'baisu'
   11 |         A[baisu]=1
      |                   ^
      |                   ;
   12 |         baisu+=a;
      |         ~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <sstream>
#include <algorithm>
#include <bitset>
#include <limits>
#include <map>
#include <set>
#include <iomanip>
#include <cmath>

using namespace std;

typedef long long int ll;
typedef std::numeric_limits<double> dbl;
const long long int LL_INF=1LL<<60;

vector<string> split(const string& input, char delimiter)
{
    stringstream stream(input);
    
    string field;
    vector<string> result;
    while (getline(stream, field, delimiter)) {
        result.push_back(field);
    }
    return result;
}

//#define DEBUG

ll A, B, M, N, D, K, Q, W, H, T, X, Y;

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

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

#include <iostream>
#include<sstream>
#include<vector>
#include<iterator>
using namespace std;

int main(void)
{
	int A, B, C;
	cin >> A >> B >> C;

	vector<int> table;
	table.push_back(A%B);
	do
	{
		int a = table.back() + A;
		a %= B;
		table.push_back(a);
	}while(table.front() !=table.back());

	string ret;
	if(find(table.begin(), table.end(), C) != table.end())
		ret = "YES";
	else
		ret = "NO";

	cout << ret << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   22 |         if(find(table.begin(), table.end(), C) != table.end())
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:22:16: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   22 |         if(find(table.begin(), table.end(), C) != table.end())
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
typedef unsigned long long ll;
#define rep(i,a,n) for(ll i = (a);i < (n);i++)
#define lp(i,a,n) for(ll i = (a);i <= (n);i++)
#define MAX 50000000000000ull

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'i' was not declared in this scope
   14 |   }else if(a == i){
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'INT_MAX' was not declared in this scope
    7 | for(x=1;x<INT_MAX;x++)
      |           ^~~~~~~
a.cc:2:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include<stdio.h>
  +++ |+#include <climits>
    2 | int main()
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>

using namespace std;

int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);

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

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

   import java.util.Scanner;

    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();
      
      for(int i = 1; i ++) {
          if(a % b ==c) {
            System.out.println("YES");
            break;
          } else {
            a *= a * i;
          }
  }
}

Compiler output:
Main.java:11: error: ';' expected
      for(int i = 1; i ++) {
                         ^
Main.java:19: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

object Main {
	val s = new java.util.Scanner(System.in)
	def main(args: Array[String]) {
		val a, b, c = s.nextInt()
		for (i <- 1 to b)
			if (a * i % b == c) {
				println("YES")
				return
			}
		println("NO")
	}
}


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

#include <iostream>
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	int A,B,C;
	std::cin >> A;
	std::cin >> B;
	std::cin >> C;
	for(int i=1; i<B; i++)
	{
		int modAB = (A*i) % B;
		bool result = modAB==C;
		if(result){
			std::cout << "YES" << std::endl;
			return 0;
		}
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin.tie(0);
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:9: error: 'ios' has not been declared
    5 |         ios::sync_with_stdio(false);
      |         ^~~
Language: Java

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();

		if((b-c) % a == 0) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	}

}


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

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		a = a % b;
		
		wihle(true){
			
			if(c == 0){
				System.out.println("NO");
				break;
			}

			a = a - c;
			
			if(a == 0){
				System.out.println("YES");
				break;
			} else if(a < 0){
				System.out.println("NO");
				break;
			}
		}
	}
}

Compiler output:
Main.java:13: error: ';' expected
		wihle(true){
		           ^
1 error
Language: C++

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

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

	int n = 0;
	bool found = false;
	int c_digits = 0; int tmp_c = C;
	while(tmp_c != 0){
		tmp_c >>= 1;
		c_digits++;
	}
	while(n <= pow(10, c_digits) && !found){
		if((n * A) % B == C){
			found = true;
		}
		n++;
	}

	if(found) cout << "YES" << endl;
	else cout << "NO" << endl;

	return 0;



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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |     if(sum==C)key=1
      |                    ^
      |                    ;
   12 |   }
      |   ~
Language: C

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

char a[]="0123456789";
int main(){
int a,b,c;
int x=0;
int i;
int c=0;
scanf("%d%d%d",&a,&b,&c);
for(i=0;i<1000;i++){
	x+=i*a;
	if(x%b==c){
		
		
		c++;
		
	}
	
	
	
	
	
	
	
}
if(c>0){
	
	printf("YES\n");
	
}else{
	printf("NO\n");
	
}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: redeclaration of 'c' with no linkage
    9 | int c=0;
      |     ^
main.c:6:9: note: previous declaration of 'c' with type 'int'
    6 | int a,b,c;
      |         ^
Language: C++

#include <iostream>
using namespace std;

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

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

//------------入力------------
		int A = 0, B = 0, C = 0;
		cin >> A >> B >> C;

		//------------出力------------
		int j = 0;
		for (int i = 1; i <= B; ++i) {
			if (i*A % B == C) {
				cout << "YES" << endl;
				j = 1;
				break;
			}
		}

		if (j == 0) cout << "NO" << endl;

Compiler output:
a.cc:3:17: error: 'cin' does not name a type
    3 |                 cin >> A >> B >> C;
      |                 ^~~
a.cc:7:17: error: expected unqualified-id before 'for'
    7 |                 for (int i = 1; i <= B; ++i) {
      |                 ^~~
a.cc:7:33: error: 'i' does not name a type
    7 |                 for (int i = 1; i <= B; ++i) {
      |                                 ^
a.cc:7:41: error: expected unqualified-id before '++' token
    7 |                 for (int i = 1; i <= B; ++i) {
      |                                         ^~
a.cc:15:17: error: expected unqualified-id before 'if'
   15 |                 if (j == 0) cout << "NO" << endl;
      |                 ^~