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; break; } } if(ans == 1){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
Main.java:7: error: cannot find symbol ans = 0; ^ symbol: variable ans location: class Main Main.java:11: error: cannot find symbol ans = 1; ^ symbol: variable ans location: class Main Main.java:15: error: cannot find symbol if(ans == 1){ ^ symbol: variable ans location: class Main 3 errors
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:15:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout << "YES" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:15:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 15 | cout << "YES" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout << "NO" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:20:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 20 | cout << "NO" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
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 | else | ^~~~ a.cc:7:38: error: expected ')' before 'else' 7 | cout << "NO" << endl; | ^ | ) 8 | else | ~~~~ a.cc:6:11: note: to match this '(' 6 | if((a%2^c%2) | ^
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){ printf("YES\n"); return 0; } } printf("NO\n"); return 0; }
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(); int sum = 0; String ans = "NO"; for (int i = 1; i <= max; i++) { sum += (a * i) % b; if (sum % b == c) { ans = "YES"; break; } } System.out.println(ans); } }
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" << endl; } }
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 function [-Wreturn-type] 15 | } | ^
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) { | ^ a.cc: In function 'int main()': a.cc:20:11: error: 'yu' cannot be used as a function 20 | if (c%yu(a,b)==0) { | ~~^~~~~
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 0; } } cout<< "YES" <<endl; } } }
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<char>} | int In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 8 | for(int i =0; i<b ;i++){ | ^ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/inc
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 m; } int vec_sum(vector<int> v){ int n=0; for(int i=0;i<v.size();i++) n+=v[i]; return n; } /////////////////////////// int main() { int a=0,b=0,c=0,d=0,m=0,n=0,h=0,w=0,count=0,ans=0; string s; cin>>a>>b>>c; for(int i=1;i<=a;i++){ if(a*i%b==c){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; } ///////////////////////////
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/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /usr/include/c+
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"; else cout<<"NO"; cout<<"\n"; }
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){ cout << "YES" << endl; flag = false; } else{ tmp += A; } } if (flag) { cout << "NO" << endl; } }
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 << "NO" << endl; else { if(gcd(a, b) == gcd(b, c)) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
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 'int' size of 4 bytes 9 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:1:1: error: 'def' does not name a type 1 | def main(): | ^~~
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) #define ALL(x) (x).begin(),(x).end() #define INF 1e9 #define LOOP while(true) const long long MOD = 10e9 + 7; typedef long long ll; int main(){ int A, B, C; cin >> A >> B >> C; int a = A % 2; int b = B % 2; int c = C % 2; string ans = "YES"; if(a == 0){ if(b != c)ans = "NO"; } else { if(b == c)ans = "NO; } cout << ans << endl; }
a.cc:25:33: warning: missing terminating " character 25 | if(b == c)ans = "NO; | ^ a.cc:25:33: error: missing terminating " character 25 | if(b == c)ans = "NO; | ^~~~ a.cc: In function 'int main()': a.cc:26:9: error: expected primary-expression before '}' token 26 | } | ^
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 | printf("NO"\n); | ^ main.c:10:18: error: expected ')' before 'n' 10 | printf("NO"\n); | ~ ^~ | )
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 | printf("NO"\n); | ^ main.c:9:18: error: expected ')' before 'n' 9 | printf("NO"\n); | ~ ^~ | )
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); | ^ main.c:8:16: error: expected ')' before 'n' 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); | ^ main.c:8:16: error: expected ')' before 'n' 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) { text = "YES"; break; }else { text = "NO"; } } System.out.println(text); } } }
Main.java:1: error: class ChooseIntegers is public, should be declared in a file named ChooseIntegers.java public class ChooseIntegers { ^ Main.java:4: error: cannot find symbol try (Scanner sc = new Scanner(System.in);) { ^ symbol: class Scanner location: class ChooseIntegers Main.java:4: error: cannot find symbol try (Scanner sc = new Scanner(System.in);) { ^ symbol: class Scanner location: class ChooseIntegers 3 errors
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).begin(),(x).end() #define fst first #define mp make_pair #define pb push_back using LL #include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <utility> #include <tuple> #include <string> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define SORT(x) sort(x.begin(),x.end()) #define REVE(x) reverse(x.begin(),x.end()) #define all(x) (x).begin(),(x).end() #define fst first #define mp make_pair #define pb push_back using LL = long long; using ULL = unsigned long long; #define FOR(i, m, n) for(int i = m;i < n;i++) template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;} template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} int main(){ cin.tie(0); ios::sync_with_stdio(false); int A, B, C, D; cin >> A >> B >> C; for(int i=A;i<=A*B;i+=A){ if(i%B==C){ cout<<"YES"; return 0; } } cout << "NO"; }
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).begin(),(x).end() #define fst first #define mp make_pair #define pb push_back using LL #include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <utility> #include <tuple> #include <string> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define SORT(x) sort(x.begin(),x.end()) #define REVE(x) reverse(x.begin(),x.end()) #define all(x) (x).begin(),(x).end() #define fst first #define mp make_pair #define pb push_back using LL = long long; using ULL = unsigned long long; #define FOR(i, m, n) for(int i = m;i < n;i++) template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;} template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} int main(){ cin.tie(0); ios::sync_with_stdio(false); int A, B, C, D; cin >> A >> B >> C; for(int i=A;i<=A*B;i+=A){ if(i%B==C){ cout<<"YES"; return 0; } } cout << "NO"; }
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 exit status
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 | } | ^ a.cc: At global scope: a.cc:15:1: error: expected declaration before '}' token 15 | } | ^
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 1000000007 #define LINF (long long)4e18 using ll = long long; int main(){ int A,B,C; cin >> A >> B >> C; int sum = 0; bool ok = false; repr(i,A,BA+1){ sum += A * i; if(sum % B == C) ok = true; } if(ok) cout << "YES" << endl; else cout << "NO" << endl; }
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{int(1e9)}; // inf = 1000000000 // 1e9 はdouble型 using namespace std; typedef long long ll; int main(void) { int a, b, c; cin >> a >> b >> c; REP(i, 1, b) { if ((a*i)%b == c) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }
a.cc:22:20: error: macro "REP" passed 3 arguments, but takes just 2 22 | REP(i, 1, b) { | ^ a.cc:8:9: note: macro "REP" defined here 8 | #define REP(i,n) for(int i=0;i<n;i++) | ^~~ a.cc: In function 'int main()': a.cc:22:9: error: 'REP' was not declared in this scope 22 | REP(i, 1, b) { | ^~~
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, n) vector<int>a(n) #define PQ(a) priority_queue<int>a #define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a #define PAIR pair<int, int> typedef long long ll; typedef pair<ll, ll> l_l; typedef pair<int, int> i_i; #define EPS (1e-7) #define INF (1e10) #define PI (acos(-1)) const ll mod = 1000000007; int main(){ ios::sync_with_stdio(false); cin.tie(0); int A,B,C; cin>>A>>B>>C; int D=A%B; for(int i=0;i<B;i++){ tmp=D; D=tmp*A%B; if(D==C){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; }
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){ if(i%b==c){ cout<<"YES"<<endl; return 0; } x++; } cout<<"NO"<<endl; return 0; }
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===0){ cout<<"YES"<<endl; return 0; } x++; } cout<<"NO"<<endl; return 0; }
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===0){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; return 0; }#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i=0; i<n;i++) #define REPR(i, n) for(int i=n-1 ; i>=0; i--) #define FOR(i, m, n) for(int i=m; i<n; i++) #define INF 2e9 #define ll long long int main(){ int a, b, c; cin>>a>>b>>c; int x = 0; while(b*x+c<=a*a){ if((b*x+c)/a===0){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; return 0; }
a.cc:23:2: error: stray '#' in program 23 | }#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:16:23: error: expected primary-expression before '=' token 16 | if((b*x+c)/a===0){ | ^ a.cc: At global scope: a.cc:23:3: error: 'include' does not name a type 23 | }#include <bits/stdc++.h> | ^~~~~~~ a.cc:33:5: error: redefinition of 'int main()' 33 | int main(){ | ^~~~ a.cc:11:5: note: 'int main()' previously defined here 11 | int main(){ | ^~~~ a.cc: In function 'int main()': a.cc:38:23: error: expected primary-expression before '=' token 38 | if((b*x+c)/a===0){ | ^
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) { | ~~ a.cc:15:7: error: 'else' without a previous 'if' 15 | else { | ^~~~
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: expected declaration before '}' token 16 | } | ^
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 15 | cout << (ok ? "YES" : "NO") << endl; | ^~~~ a.cc:16:1: error: expected declaration before '}' token 16 | } | ^
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 scope 9 | if (A * i % B == C) | ^ a.cc: At global scope: a.cc:14:5: error: expected declaration before '}' token 14 | } | ^ a.cc:15:5: error: 'cout' does not name a type 15 | cout << (ok ? "YES" : "NO") << endl; | ^~~~ a.cc:16:1: error: expected declaration before '}' token 16 | } | ^
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<=b;i++){ | ^ a.cc:8:12: error: 'ia' was not declared in this scope; did you mean 'a'? 8 | if(ia # b =!= c){ | ^~ | a a.cc:8:14: error: expected ')' before 'b' 8 | if(ia # b =!= c){ | ~ ^ ~ | ) a.cc:13:8: error: expected '(' before 'flag' 13 | if flag cout << "YES"; | ^~~~ | ( a.cc:14:5: error: 'else' without a previous 'if' 14 | else cout << "NO"; | ^~~~
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<=b;i++){ | ^ a.cc:8:12: error: 'ia' was not declared in this scope; did you mean 'a'? 8 | if(ia # b =!= c){ | ^~ | a a.cc:8:14: error: expected ')' before 'b' 8 | if(ia # b =!= c){ | ~ ^ ~ | ) a.cc:13:8: error: expected '(' before 'flag' 13 | if flag cout << "Yes"; | ^~~~ | ( a.cc:14:5: error: 'else' without a previous 'if' 14 | else cout << "No"; | ^~~~
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>; using ll = long long; template <class T = int> T in(){ T x; cin >> x; return (x);} int main(int argc, char *argv[]){ int a, b, c; cin >> a >> b >> c; // rep(i, ) string res; if(a % 2 == 0 && b % 2 == 0 && c % 2 != 0){ res = "NO"; }else if(a % 2 != 0 && b % 2 == 0 %% c % 2 == 0){ res = "NO"; }else{ res = "YES"; } cout << res << endl; return 0; }
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') | ^~~~~~~~~~~~~ a.cc:13:19: warning: multi-character character constant [-Wmultichar] 13 | print('YES') | ^~~~~ a.cc:16:11: warning: multi-character character constant [-Wmultichar] 16 | print('NO') | ^~~~ a.cc:1:1: error: 'import' does not name a type 1 | import sys, os | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
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) { cout << "NO" << endl; break; } else { count[sum % B]++; } } } return 0; }
a.cc: In function 'int main()': a.cc:13:9: error: 'memset' was not declared in this scope 13 | memset(count, 0, 100); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include <iostream> +++ |+#include <cstring> 2 | #include <string>
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.println("YES"); return; } } System.out.println("NO"); } }
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%b==c) | ^ a.cc:9:14: error: 'b' was not declared in this scope 9 | if(a%b==c) | ^ a.cc:9:17: error: 'c' was not declared in this scope 9 | if(a%b==c) | ^
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 >> B >> C; int D = A % B; int E = D; do { if (E % B == C) { cout << "YES" << Endl; return 0; } E = (E + D) % B; } while (E != D); cout << "NO" << endl; return 0; }
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){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
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{ cout << "YES" << endl; } }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b >> c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:8:3: error: 'set' was not declared in this scope 8 | set<int> set_int; | ^~~ a.cc:8:3: note: suggested alternatives: In file included from /usr/include/c++/14/set:63, from a.cc:2: /usr/include/c++/14/bits/stl_set.h:96:11: note: 'std::set' 96 | class set | ^~~ /usr/include/c++/14/set:87:13: note: 'std::pmr::set' 87 | using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; | ^~~ a.cc:8:7: error: expected primary-expression before 'int' 8 | set<int> set_int; | ^~~ a.cc:13:14: error: 'set_int' was not declared in this scope; did you mean 'u_int'? 13 | }else if(set_int.count(a%b) != 0){ | ^~~~~~~ | u_int a.cc:16:5: error: 'set_int' was not declared in this scope; did you mean 'u_int'? 16 | set_int.insert(a%b); | ^~~~~~~ | u_int a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 19 | cout << "NO" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 19 | cout << "NO" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 21 | cout << "YES" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:21:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 21 | cout << "YES" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
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; } } } int main() { int a, b, c; std::cin >> a >> b >> c; std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:20:8: error: 'cin' is not a member of 'std' 20 | std::cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | bool test(const int a, const int b, const int c) { a.cc:21:8: error: 'cout' is not a member of 'std' 21 | std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl; | ^~~~ a.cc:21:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:21:55: error: 'endl' is not a member of 'std' 21 | std::cout << (test(a, b, c) ? "YES" : "NO") << std::endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | bool test(const int a, const int b, const int c) {
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); i++) #define P pair<int, int> #define debug(x) cerr << #x << ": " << x << ", " #define debugln(x) cerr << #x << ": " << x << '\n' using namespace std; using ll = long long; const ll mod = 1e9+7; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int a, b, c; cin >> a >> b >> c; for(int i=1; i<200; i++) { if (i*a%b == c) { cout << "YES" < endl; return 0; } } cout << "NO" << endl; }
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/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:33:23: note: couldn't deduce template parameter '_CharT' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 33 | cout << "YES" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3901 | operator<(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed: a.cc:33:23: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2600 | operator<(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr/include/c++/14/bits/stl_vector.h:2089:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2089 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:2089:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/set:63, from a.cc:5: /usr/include/c++/14/bits/stl_set.h:1025:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<(const set<_Key, _Compare, _Allocator>&, const set<_Key, _Compare, _Allocator>&)' 1025 | operator<(const set<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_set.h:1025:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::set<_Key, _Compare, _Allocator>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/set:64: /usr/include/c++/14/bits/stl_multiset.h:1011:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<(const multiset<_Key, _Compare, _Allocator>&, const multiset<_Key, _Compare, _Allocator>&)' 1011 | operator<(const multiset<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_multiset.h:1011:5: note: template argument deduction/substitution failed: a.cc:33:23: note: 'std::basic_ostream<char>' is not derived from 'const std::multiset<_Key, _Compare, _Allocator>' 33 | cout << "YES" < endl; | ^~~~ In file included from /usr/include/c++/14/deque:66, from /usr/include/c++/14/queue:62, from a.cc:8: /usr/include/c++/14/bits/stl_deque.h:2334:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)' 2334 | operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_deque.h:2334:5: note: template argument ded
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" << endl; } }
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 << ans <<endl; }
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") | ^ | ; 15 | } | ~
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 15 | } | ^ a.cc:2:15: note: to match this '{' 2 | int main(void){ | ^
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 15 | } | ^ a.cc:2:15: note: to match this '{' 2 | int main(void){ | ^
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 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){ | ^
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 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){ | ^
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; | ^~~