submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s841515182 | p03730 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();
int result = 0;
ans = 0;
for(int i = 0;i < b;i++){
result = (a * i) % b;
if(result == c){
ans = 1;
... | Main.java:7: error: cannot find symbol
ans = 0;
^
symbol: variable ans
location: class Main
Main.java:11: error: cannot find symbol
ans = 1;
^
symbol: variable ans
location: class Main
Main.java:15: error: cannot find symbol
if(ans == 1){
^
symbol: variable ans
locat... |
s231682678 | p03730 | C++ | #include<iostream>
#include<math.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int ans = 0;
for (int i = 1;i < B; i++) {
ans = A* i% B;
if (ans == C){
ans = 1;
break;
}
if (ans) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:18:10: error: expected '}' at end of input
18 | }
| ^
a.cc:5:12: note: to match this '{'
5 | int main() {
| ^
|
s894201165 | p03730 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int key = 0;
for(int i=1;i<b;i++){
if(a*i%b == c){
cout << "Yes" << endl;
key = 1;
break;
}
}
if(key == 0)
cout << "No" << endl;
}
| a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s842963502 | p03730 | C++ | #include<bits/stdc++.h>
using namespaces std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
//find (a*i) % b = c
for(int i = 1; i <= b; i++)
{
if(a*i % b == c)
{
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
2 | using namespaces std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from ... |
s802349287 | p03730 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >>a>>b>>c;
if((a%2^c%2)
cout << "NO" << endl;
else
cout << "YES" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'cout'
6 | if((a%2^c%2)
| ^
| ;
7 | cout << "NO" << endl;
| ~~~~
a.cc:8:9: error: expected primary-expression before 'else'
8 | els... |
s204173103 | p03730 | C++ | #include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for(int64_t i = 0; i < n; ++i)
using namespace std;
int main() {
int a, b, c;
bool b = 0;
cin >> a >> b >> c;
rep(i, b+1){
if(a*i%b == c){
b = 1;
break;
}
}
if(b) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;... | a.cc: In function 'int main()':
a.cc:8:8: error: conflicting declaration 'bool b'
8 | bool b = 0;
| ^
a.cc:7:10: note: previous declaration as 'int b'
7 | int a, b, c;
| ^
|
s835325173 | p03730 | C | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void){
int a = 0, b = 0, c = 0;
scanf("%d%d%d", &a, &b, &c);
/*
if(a % 2 == 0 && b % 2 == 0 && c % 2 == 1){
printf("NO\n");
return 0;
}
*/
for(int i = 1; i <= b; i++){
if(a * i % b == c){
... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s595759818 | p03730 | Java |
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
... | Main.java:20: error: cannot find symbol
for (int i = 1; i <= max; i++) {
^
symbol: variable max
location: class Main
1 error
|
s571578479 | p03730 | C++ | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main()
{
int A, B, C;
cin >> A >> B >> C;
gcd = gcd(A, B);
if (C % gcd == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:19: error: overloaded function with no contextual type information
11 | gcd = gcd(A, B);
| ^
a.cc:12:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
12 | if (C % gcd == 0) {
|... |
s377960393 | p03730 | C++ | #include<bits/stdc++.h>
using namespace std;
int yu(int a, int b) {
while() {
int temp=a%b;
if(temp==0) {
return b;
}
else {
a=b;
b=temp;
}
}
}
int main () {
int a,b,c;
cin >> a >> b >> c;
if (c%yu(a,b)==0) {
cout << "YES" << endl;
}
else {
cout << "NO" << e... | a.cc: In function 'int yu(int, int)':
a.cc:5:9: error: expected primary-expression before ')' token
5 | while() {
| ^
a.cc:15:1: warning: control reaches end of non-void function [-Wreturn-type]
15 | }
| ^
|
s801123495 | p03730 | 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;... | 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 f... |
s958653902 | p03730 | 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;
}
} | 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) {
| ... |
s815210125 | p03730 | 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;
}
} | a.cc:1:9: fatal error: bits/stdc+.h: No such file or directory
1 | #include<bits/stdc+.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s940332875 | p03730 | C++ | #include <bits/stdc++.h>
using namespace std;
signed main(){
string a,b,c;
cin>> a >>b>>c;
for(int i =0; i<b ;i++){
if ((a%i == 0) && (b%i == 0) &&( a == b)){
cout << "NO" << endl;
return 0;
}
else if ( (a%i == 0) && (b%i == 0) &&(c%i != 0)) {
cout << "NO" << endl;
return... | a.cc: In function 'int main()':
a.cc:8:18: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | for(int i =0; i<b ;i++){
| ~^~
| | |
| | std::string {aka std::__cxx11::basic_string... |
s013963278 | p03730 | C++ | #include <iostream> | /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
|
s258230496 | p03730 | C++ | at
#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
int int_len(int n) {
int s=0;
while(n!=0) s++, n/=10;
return s;
}
int int_sum(int n) {
int m=0,s=0,a=n;
while(a!=0) s++, a/=10;
for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
return ... | a.cc:1:1: error: 'at' does not name a type
1 | at
| ^~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:3:
/usr/include/c++/14/ext/ty... |
s193553807 | p03730 | 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"... | 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;
| ^
|
s106472794 | p03730 | 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){
... | a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'while'
12 | while (A % B == 0){
| ^~~~~
|
s112568699 | p03730 | 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 << "... | a.cc:5:1: error: ISO C++ forbids declaration of 'gcd' with no type [-fpermissive]
5 | gcd(int a, int b) {
| ^~~
|
s482122340 | p03730 | 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() | 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 ... |
s839654747 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'if'
8 | a*=i
| ^
| ;
9 | if(a%b==c){
| ~~
|
s391791582 | p03730 | 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;
} | 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() {
| ^
|
s778996896 | p03730 | 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... | 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... |
s341725590 | p03730 | 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;
| 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(){
| ^
|
s081997247 | p03730 | 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;
} | 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 | prin... |
s579545305 | p03730 | 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;
}
| 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 | print... |
s417576765 | p03730 | 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;
}
| 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);
... |
s668854212 | p03730 | 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;
} | 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);
... |
s834097761 | p03730 | 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;
} | 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++){
| ^
|
s942406727 | p03730 | 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;
} | 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++){
| ^
... |
s352184689 | p03730 | 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) {
... | 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: ... |
s972333873 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:12:32: error: expected ';' before 'return'
12 | cout<<"YES"<<endl
| ^
| ;
13 | return 0;
| ~~~~~~
|
s238365813 | p03730 | 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;
} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s944113962 | p03730 | 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).be... | 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>
| ^~
|
s380934582 | p03730 | 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).be... | 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>
| ^~
|
s224846280 | p03730 | 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;
}
| 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)}
| ^
| ;
|
s964544773 | p03730 | 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;
}
} | 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 exi... |
s519368764 | p03730 | 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;
}
} | 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 | }
| ^
|
s457743993 | p03730 | 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;
}
} | 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 | }
... |
s238473995 | p03730 | 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 100000... | 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++)
| ... |
s693315484 | p03730 | 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");
} | a.cc:7:1: error: expected initializer before 'int'
7 | int main(void){
| ^~~
|
s803607333 | p03730 | 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{... | 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 scop... |
s284803704 | p03730 | 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.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
|
s989993175 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before ':' token
10 | count++:
| ^
| ;
|
s296194751 | p03730 | 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){
... | 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){
| ^
|
s829455270 | p03730 | 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.cc: In function 'int main()':
a.cc:16:23: error: expected primary-expression before '=' token
16 | if((b*x+c)/a===0){
| ^
|
s694962402 | p03730 | 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.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
... |
s107498609 | p03730 | 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;
}
} | 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){
... |
s470732156 | p03730 | 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;
}
}
}
| 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) {
| ~~... |
s216003691 | p03730 | 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;
}
}
} | a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before ')' token
8 | for (int i = 0; i++) {
| ^
| ;
|
s942832957 | p03730 | 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;
}
| 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;
| ^~
|
s209597690 | p03730 | 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;
}
| 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: expe... |
s463087655 | p03730 | 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;
}
| 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
1... |
s799499141 | p03730 | 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;
}
| 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... |
s467328108 | p03730 | 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";
}
| 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... |
s722459715 | p03730 | 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";
}
| 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... |
s661674294 | p03730 | 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... | 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){
| ^
|
s580603466 | p03730 | 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;
} | 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;
| ^~~~~~
|
s384612388 | p03730 | 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()
| 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')
| ^~~~... |
s160938911 | p03730 | 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;
}
| 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
|
s144583151 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:7:33: error: expected unqualified-id before '&' token
7 | scanf("%lld%lld%lld",&a.&b,&c);
| ^
|
s190707724 | p03730 | 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)
{
c... | 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... |
s158077515 | p03730 | 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;
} | 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){
| ^
|
s768723925 | p03730 | 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.printl... | Main.java:7: error: cannot find symbol
int c = ac.nextInt();
^
symbol: variable ac
location: class Main
1 error
|
s865854536 | p03730 | 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";
} | 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() {
| ^
|
s837693959 | p03730 | 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";
}
| 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(){
| ^
|
s045195759 | p03730 | 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;
}
| 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() {
| ^
|
s404535741 | p03730 | 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;
} | 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++){
| ^
| ;
|
s683672861 | p03730 | 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;
} | 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... |
s218866990 | p03730 | 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;
}
| 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+){
| ^
|
s874795436 | p03730 | 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 ... | a.cc: In function 'int main()':
a.cc:25:30: error: 'Endl' was not declared in this scope
25 | cout << "YES" << Endl;
| ^~~~
|
s119355662 | p03730 | 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;
} | main.c: In function 'main':
main.c:4:20: error: expected expression before '%' token
4 | scanf("%d %d %d",%A,%B,%C);
| ^
|
s648881110 | p03730 | 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){
... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s688441767 | p03730 | 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;
} | 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
|
s036938801 | p03730 | 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;
} | 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.
|
s013066235 | p03730 | 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... | 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; ///< Lin... |
s996341193 | p03730 | 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;
... | 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 i... |
s540226147 | p03730 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <climits>
#include <set>
#include <algorithm>
#include <unordered_map>
#include <queue>
#include <iomanip>
#include <map>
#include <utility>
#include <numeric>
#include <chrono>
#include <ctime>
#include <bitset>
#define rep(i,n) for(int i=0; i<(int)(n);... | a.cc: In function 'int main()':
a.cc:33:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
33 | cout << "YES" < endl;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/in... |
s830148130 | p03730 | 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" << e... | 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;
| ^
|
s864159426 | p03730 | C++ | 1 100 97 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1 100 97
| ^
|
s165273777 | p03730 | 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 <... | a.cc:1:10: fatal error: iostre#include <iostream: No such file or directory
1 | #include <iostre#include <iostream>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s907288700 | p03730 | 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;
} | a.cc:2:9: fatal error: windows.h: No such file or directory
2 | #include<windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s530450287 | p03730 | 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;
} | main.c: In function 'main':
main.c:20:5: error: expected '(' before '{' token
20 | if{
| ^
| (
|
s765379529 | p03730 | 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;
} | 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
|
s022934630 | p03730 | 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;
} | 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
|
s076530557 | p03730 | 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;
} | 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
|
s724417469 | p03730 | 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;
} | 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")
| ... |
s136239008 | p03730 | 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;
} | 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
|
s811422757 | p03730 | 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;
} | 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
|
s389274699 | p03730 | 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;
} | main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
15 | }
| ^
|
s214753872 | p03730 | 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;
} | 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 | }
| ^
|
s826091293 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
15 | }
| ^
a.cc:2:15: note: to match this '{'
2 | int main(void){
| ^
|
s784606491 | p03730 | 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;
} | 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
... |
s700902250 | p03730 | 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;
} | 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){
| ^
|
s149183410 | p03730 | 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;
} | 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
... |
s262303243 | p03730 | 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("NO");}
return 0;
} | main.c: In function 'main':
main.c:11:18: error: expected ')' before ';' token
11 | for(i=1;i<101;i++;){
| ~ ^
| )
|
s518330892 | p03730 | 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;
} | 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
|
s468233703 | p03730 | 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;
}
| 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 ... |
s479507314 | p03730 | 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;
}
| 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 ... |
s181176136 | p03730 | 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;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'ans' was not declared in this scope
8 | ans=a*i;
| ^~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.