submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s737950112
p03693
C++
#include <iostream> #include<String> using namespace std; int main() { int a,b,c,sum; cin>>a>>b>>c; sum=(100*a)+(10*b)+c; if(sum%4==0) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
a.cc:2:9: fatal error: String: No such file or directory 2 | #include<String> | ^~~~~~~~ compilation terminated.
s108614976
p03693
C++
#include<iostream> #include<CastingInterop.h> #include<string> using namespace std; int main() { char arr[3]; int arr1[3]; string y; for (int i = 0; i < 3; i++) { cin >> arr[i]; } string s [1000]; for (int i = 0; i < 3; i++) { s[i] = arr[i]; } for (int i = 0; i < 3; i++) { s[i] += s[i +1]+s[i+2]; } }
a.cc:2:9: fatal error: CastingInterop.h: No such file or directory 2 | #include<CastingInterop.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.
s983176674
p03693
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int r, g, b; cin >> r >> b >> b; int num = 100 * r + 10 * g + b; c if (num % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: 'c' was not declared in this scope 8 | c | ^ a.cc:11:5: error: 'else' without a previous 'if' 11 | else cout << "NO" << endl; | ^~~~
s248565593
p03693
C
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n"); }
main.c: In function 'main': main.c:5:44: error: expected ':' before ';' token 5 | (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n"); | ^ | : main.c:5:45: error: expected expression before ':' token 5 | (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n"); | ^
s007878588
p03693
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,z ; cin>>a>>b>>c; z=(a*100)+(b*10)+c; if(s%4==0) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: 's' was not declared in this scope 8 | if(s%4==0) | ^
s735255681
p03693
C++
#include<iostream> using namesapce std; int main(){ int r,g,b;cin>>r>>g>>b; if((r*100+g*10+b)%4==0)cout << "YES"<<endl; else cout <<"NO"<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | int r,g,b;cin>>r>>g>>b; | ^~~ | 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:7:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | if((r*100+g*10+b)%4==0)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:7:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | if((r*100+g*10+b)%4==0)cout << "YES"<<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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | else cout <<"NO"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | else cout <<"NO"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s970817252
p03693
C
#include<stdio.h> int main(void) { int r,g,b,k=0; scanf("%d",&r); scanf("%d",&g); scanf("%d",&b); k=100*r+10*g+b; if(k%4=0){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:11:9: error: lvalue required as left operand of assignment 11 | if(k%4=0){ | ^
s155285489
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b>>c; int total = 100*a + 10*b +c; string s="No": if(total%4==0) {s="Yes";} cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ',' or ';' before ':' token 8 | string s="No": | ^
s969430932
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b>>c; int total = 100*a + 10*b +c; string s="No": if(total%4==0) s="Yes"; cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ',' or ';' before ':' token 8 | string s="No": | ^
s509832650
p03693
C++
#include<bits/stdc++.h> using namaespace std; int main(){ int r, g, d; cin >> r >> g >> d; int a = r * 100 + g * 10 + d; if(a % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:2:7: error: expected nested-name-specifier before 'namaespace' 2 | using namaespace std; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:5:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | int r, g, d; cin >> r >> g >> d; | ^~~ | 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:7:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | if(a % 4 == 0) 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:7:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | if(a % 4 == 0) 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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | else cout << "NO" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | else cout << "NO" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s275247098
p03693
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<n; i++) int main(){ String a,b,c; cin >> a >> b >> c; String d = a + b + c; auto num = atoi(d.c_str()); if(e%4 == 0) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'String' was not declared in this scope 6 | String a,b,c; | ^~~~~~ a.cc:7:10: error: 'a' was not declared in this scope 7 | cin >> a >> b >> c; | ^ a.cc:7:15: error: 'b' was not declared in this scope 7 | cin >> a >> b >> c; | ^ a.cc:7:20: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c; | ^ a.cc:8:9: error: expected ';' before 'd' 8 | String d = a + b + c; | ^~ | ; a.cc:10:19: error: 'd' was not declared in this scope 10 | auto num = atoi(d.c_str()); | ^ a.cc:12:6: error: 'e' was not declared in this scope 12 | if(e%4 == 0) cout << "YES" << endl; | ^
s859488084
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; if ((10*g+b)%4==0) { cout <<"Yes"<<endl; } else { cout<<"NO"<<endl: } }
a.cc: In function 'int main()': a.cc:10:21: error: expected ';' before ':' token 10 | cout<<"NO"<<endl: | ^ | ;
s683874757
p03693
C++
include<bits/stdc++.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >>b; int ans4 = 100 * r + 10 * g + b; if(ans4 % 4 ==0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> r >> g >>b; | ^~~ a.cc:11:5: error: 'cout' was not declared in this scope 11 | cout << "YES" << endl; | ^~~~ a.cc:11:22: error: 'endl' was not declared in this scope 11 | cout << "YES" << endl; | ^~~~ a.cc:13:5: error: 'cout' was not declared in this scope 13 | cout << "NO" << endl; | ^~~~ a.cc:13:21: error: 'endl' was not declared in this scope 13 | cout << "NO" << endl; | ^~~~
s076950862
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >>r >>g >>b; int a = r*100 + g*10 + b; if (a%4 = 0) cout << "YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:10:8: error: lvalue required as left operand of assignment 10 | if (a%4 = 0) | ~^~
s399268675
p03693
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<ll,ll>; //マクロ //forループ関係 //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか //Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++) //xにはvectorなどのコンテナ #define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい #define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく #define MAX(x) *max_element(ALL(x)) //最大値を求める #define MIN(x) *min_element(ALL(x)) //最小値を求める //定数 #define INF 1000000000000 //10^12:極めて大きい値,∞ #define inf 2147483647 //int値の最大値 #define MOD 1000000007 //10^9+7:合同式の法 #define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用) //略記 #define PB push_back //vectorヘの挿入 #define MP make_pair //pairのコンストラクタ #define F first //pairの一つ目の要素 #define S second //pairの二つ目の要素 #define CST(x) cout<<fixed<<setprecision(x)//小数点以下の桁数指定 template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } int gcd(int a, int b) { if (b==0) return a; else return gcd(b, a%b); } int lcm(int a, int b) { return a * b / gcd(a, b); } int two(int n){ ll ans=1; rep(i,n){ ans*=2; } return ans; } int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); int a,b; cin >>a>>b>>c; int N=100*a +b*10 +c; if(N%4==0)cout<<"YES\n"; else cout<<"NO\n"; }
a.cc: In function 'int main()': a.cc:61:17: error: 'c' was not declared in this scope 61 | cin >>a>>b>>c; | ^
s613729965
p03693
C++
#include <cstdio> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if (a * 100 + b * 10 + c) % 4 == 0) { printf("YES"); } else { printf("NO"); } }
a.cc: In function 'int main()': a.cc:7:31: error: expected primary-expression before '%' token 7 | if (a * 100 + b * 10 + c) % 4 == 0) | ^
s400072918
p03693
C++
#include <cstdio> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c) if (a * 100 + b * 10 + c) % 4 == 0) { printf("YES") } else { printf("NO") } }
a.cc: In function 'int main()': a.cc:6:34: error: expected ';' before 'if' 6 | scanf("%d %d %d", &a, &b, &c) | ^ | ; 7 | if (a * 100 + b * 10 + c) % 4 == 0) | ~~ a.cc:12:5: error: 'else' without a previous 'if' 12 | else | ^~~~ a.cc:14:21: error: expected ';' before '}' token 14 | printf("NO") | ^ | ; 15 | } | ~
s672995828
p03693
C++
#include <iostream> using namespace std; int main(void){ int r, g, b; cin >> r >> g >> b; int num = (r * 100) + (g * 10) + b; if(num % 4 == 0){ cout << "YES" << endl; } eles{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:13:5: error: 'eles' was not declared in this scope 13 | eles{ | ^~~~
s703864247
p03693
C++
#include <iostream> using namespace std; int main(void){ int r, g, b; cin >> r >> g > b; int num = (r * 100) + (g * 10) + b; if(num % 4 == 0){ cout << "YES" << endl; } eles{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:19: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 6 | cin >> r >> g > b; | ~~~~~~~~~~~~~ ^ ~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:6:19: note: candidate: 'operator>(int, int)' (built-in) 6 | cin >> r >> g > b; | ~~~~~~~~~~~~~~^~~ a.cc:6:19: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' 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:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >> r >> g > b; | ^ 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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 6 | cin >> r >> g > b; | ^ 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:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/string_view:710: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>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:6:21: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/basic_string.h:3915: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>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 6 | cin >> r >> g > b; | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:6:21: note: mismatched types 'const _CharT*' and 'std::basic_istream<char>' 6 | cin >> r >> g > b; | ^ 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:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 6 | cin >> r >> g > b; | ^ a.cc:13:5: error: 'eles' was not declared in this scope 13 | eles{ | ^~~~
s983380556
p03693
C++
#include <iostream> using namespace std; int main(void) { int r,g,b; cin << r << g << b; if((100*r+10*g+b)%4==0) cout << 'YES' << endl; else cout << 'NO' << endl; }
a.cc:8:37: warning: multi-character character constant [-Wmultichar] 8 | if((100*r+10*g+b)%4==0) cout << 'YES' << endl; | ^~~~~ a.cc:9:18: warning: multi-character character constant [-Wmultichar] 9 | else cout << 'NO' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:6:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:9: note: candidate: 'operator<<(int, int)' (built-in) 6 | cin << r << g << b; | ~~~~^~~~ a.cc:6:9: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' 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/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/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:5: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << r << g << b; | ^~~ In file included from /usr/include/c++/14/bits/ios_base.h:46: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)' 689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ /usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed: /usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]': a.cc:6:12: required from here 6 | cin << r << g << b; | ^ /usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~
s303636811
p03693
C++
#include <bits/stdc++.h> using namespace std; #define int long long #define ii pair<int,int> #define fi first #define sc second #define all(x) (x).begin(),(x).end() int color(int n) { if (n < 400) return 1; else if (n < 800) return 2; else if (n < 1200) return 3; else if (n < 1600) return 4; else if (n < 2000) return 5; else if (n < 2400) return 6; else if (n < 2800) return 7; else if (n < 3200) return 8; else return 0; } signed main() { #ifdef _DEBUG // freopen("in" , "r", stdin ); // freopen("out", "w", stdout); #endif ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; set<int> s; int c = 0; for (int i = 1; i <= n; i++) { int t; cin >> t; t = color(t); if (t) s.insert(t); else c++; } cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n'; }
a.cc: In function 'int main()': a.cc:41:14: error: no matching function for call to 'max(std::set<long long int>::size_type, long long unsigned int)' 41 | cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n'; | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)' 257 | max(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed: a.cc:41:14: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'long long unsigned int') 41 | cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n'; | ~~~^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided In file included from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)' 5706 | max(initializer_list<_Tp> __l) | ^~~ /usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided /usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)' 5716 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed: a.cc:41:14: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int' 41 | cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n'; | ~~~^~~~~~~~~~~~~~~~
s563181686
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >>b; int c = r*100+g*10+b if (c % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'if' 8 | if (c % 4 == 0) cout << "YES" << endl; | ^~ a.cc:9:5: error: 'else' without a previous 'if' 9 | else cout << "NO" << endl; | ^~~~
s214371157
p03693
C
#include <stdio.h> int main(void) { int r,g,b,s; scanf("%d%d%d",&r,&g,&b); s=r*100+d*10+b; if(s%4==0)printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:17: error: 'd' undeclared (first use in this function) 7 | s=r*100+d*10+b; | ^ main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
s029684231
p03693
C
#include <stdio.h> int main(void) { int r,g,b.s; scanf("%d%d%d",&r,&g,&b); s=r*100+d*10+b; if(s%4==0)printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 5 | int r,g,b.s; | ^ main.c:6:31: error: 'b' undeclared (first use in this function) 6 | scanf("%d%d%d",&r,&g,&b); | ^ main.c:6:31: note: each undeclared identifier is reported only once for each function it appears in main.c:7:9: error: 's' undeclared (first use in this function) 7 | s=r*100+d*10+b; | ^ main.c:7:17: error: 'd' undeclared (first use in this function) 7 | s=r*100+d*10+b; | ^
s100345421
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){  int r,g,b;  cin>>r>>g>>b;  int S;  S = (r*100)+(g*10)+b;  if(S%4==0){   cout<<"YES"<<endl;  }else{   cout<<"NO"<<endl;  } }
a.cc:5:1: error: extended character   is not valid in an identifier 5 |  int r,g,b; | ^ a.cc:6:1: error: extended character   is not valid in an identifier 6 |  cin>>r>>g>>b; | ^ a.cc:7:1: error: extended character   is not valid in an identifier 7 |  int S; | ^ a.cc:8:1: error: extended character   is not valid in an identifier 8 |  S = (r*100)+(g*10)+b; | ^ a.cc:9:1: error: extended character   is not valid in an identifier 9 |  if(S%4==0){ | ^ a.cc:10:1: error: extended character   is not valid in an identifier 10 |   cout<<"YES"<<endl; | ^ a.cc:11:1: error: extended character   is not valid in an identifier 11 |  }else{ | ^ a.cc:12:1: error: extended character   is not valid in an identifier 12 |   cout<<"NO"<<endl; | ^ a.cc:13:1: error: extended character   is not valid in an identifier 13 |  } | ^ a.cc: In function 'int main()': a.cc:5:1: error: '\U00003000int' was not declared in this scope 5 |  int r,g,b; | ^~~~~ a.cc:6:1: error: '\U00003000cin' was not declared in this scope 6 |  cin>>r>>g>>b; | ^~~~~ a.cc:6:8: error: 'r' was not declared in this scope 6 |  cin>>r>>g>>b; | ^ a.cc:6:11: error: 'g' was not declared in this scope 6 |  cin>>r>>g>>b; | ^ a.cc:6:14: error: 'b' was not declared in this scope 6 |  cin>>r>>g>>b; | ^ a.cc:7:6: error: expected ';' before 'S' 7 |  int S; | ^~ | ; a.cc:8:1: error: '\U00003000S' was not declared in this scope 8 |  S = (r*100)+(g*10)+b; | ^~~ a.cc:9:6: error: 'S' was not declared in this scope 9 |  if(S%4==0){ | ^ a.cc:9:1: error: '\U00003000if' was not declared in this scope 9 |  if(S%4==0){ | ^~~~ a.cc:11:4: error: 'else' without a previous 'if' 11 |  }else{ | ^~~~ a.cc:12:1: error: '\U00003000' was not declared in this scope 12 |   cout<<"NO"<<endl; | ^~ a.cc:13:3: error: expected ';' before '}' token 13 |  } | ^ | ;
s157714266
p03693
C
#include <stdio.h> int main(void) { int r, g, b; scanf ("%d %d %d", &r, &g, &b); int q = (10g + b)/4; int a = (10g + b) - 4r; if (a = 0){ printf("YES"); }else { printf("NO"); } return 0; }
main.c: In function 'main': main.c:6:12: error: invalid suffix "g" on integer constant 6 | int q = (10g + b)/4; | ^~~ main.c:7:12: error: invalid suffix "g" on integer constant 7 | int a = (10g + b) - 4r; | ^~~ main.c:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow] 7 | int a = (10g + b) - 4r; | ^~~ main.c:7:23: error: fixed-point types not supported for this target 7 | int a = (10g + b) - 4r; | ^~
s768655776
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) Scanner scan = new Scanner(System.in); int r = scan.nextInt(); int g = scan.nextInt(); int b = scan.nextInt(); int rgb = r * 100 + g *10 + b; if((rgb % 4) == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:4: error: ';' expected public static void main(String[] args) ^ Main.java:13: error: illegal start of type if((rgb % 4) == 0){ ^ Main.java:13: error: <identifier> expected if((rgb % 4) == 0){ ^ Main.java:15: error: illegal start of type }else{ ^ Main.java:19: error: class, interface, enum, or record expected } ^ 5 errors
s450431954
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scan = new Scanner(System.in); int r = scan.nextint(); int g = scan.nextint(); int b = scan.nextint(); int rgb = r * 100 + g *10 + b; if((rgb % 4) == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:9: error: cannot find symbol int r = scan.nextint(); ^ symbol: method nextint() location: variable scan of type Scanner Main.java:10: error: cannot find symbol int g = scan.nextint(); ^ symbol: method nextint() location: variable scan of type Scanner Main.java:11: error: cannot find symbol int b = scan.nextint(); ^ symbol: method nextint() location: variable scan of type Scanner 3 errors
s164317337
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scan = new Scanner(System.in); int r = scan.nextint(); int g = scan.nextint(); int b = scan.nextint(); int rgb = r * 100 + g *10 + b if((rgb % 4) == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } } import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scan = new Scanner(System.in); int r = scan.nextint(); int g = scan.nextint(); int b = scan.nextint(); int rgb = r * 100 + g *10 + b; if((rgb % 4) == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } } 提出情報 提出日時
Main.java:13: error: ';' expected int rgb = r * 100 + g *10 + b ^ Main.java:22: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:43: error: class, interface, enum, or record expected ???? ^ 3 errors
s814707761
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scan = new Scanner(System.in); int r = scan.nextint(); int g = scan.nextint(); int b = scan.nextint(); int rgb = r * 100 + g *10 + b if((rgb % 4) == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:13: error: ';' expected int rgb = r * 100 + g *10 + b ^ 1 error
s097476003
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! String card = r + g + b; int num = Integer.parseInt(card); if(num % 4 == 0){ System.out.println("yes"); }else{ System.out.println("no"); } } }
Main.java:6: error: cannot find symbol String card = r + g + b; ^ symbol: variable r location: class Main Main.java:6: error: cannot find symbol String card = r + g + b; ^ symbol: variable g location: class Main Main.java:6: error: cannot find symbol String card = r + g + b; ^ symbol: variable b location: class Main 3 errors
s884486078
p03693
C++
#include<bit/stdc++.h> using namespace std; int main(){ int a,b,c,k; cin >> a >> b >> c; k = b * 10 + c; if(k % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory 1 | #include<bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s943068933
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ char a,b,c; cin >> a >> b >> c; d = 100*a + 10*b + c; if( d%4 == 0 ){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: 'd' was not declared in this scope 9 | d = 100*a + 10*b + c; | ^
s128917690
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if((B * 10 + C) % 4 = 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:19: error: lvalue required as left operand of assignment 7 | if((B * 10 + C) % 4 = 0){ | ~~~~~~~~~~~~~^~~
s166002051
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if((B * 10 + C) % 4 = 0;){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:19: error: lvalue required as left operand of assignment 7 | if((B * 10 + C) % 4 = 0;){ | ~~~~~~~~~~~~~^~~ a.cc:7:27: error: expected primary-expression before ')' token 7 | if((B * 10 + C) % 4 = 0;){ | ^
s370645319
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if((B * 10 + C) % 4 = 0;){ cout << "YES" << endl; } else{ cout << "NO" << endl } }
a.cc: In function 'int main()': a.cc:7:19: error: lvalue required as left operand of assignment 7 | if((B * 10 + C) % 4 = 0;){ | ~~~~~~~~~~~~~^~~ a.cc:7:27: error: expected primary-expression before ')' token 7 | if((B * 10 + C) % 4 = 0;){ | ^ a.cc:11:23: error: expected ';' before '}' token 11 | cout << "NO" << endl | ^ | ; 12 | } | ~
s736480505
p03693
C++
#include <iostream> using namespace std; int main(void){ int r, g, b; cin >> r >> g >> b; int s = r * 100 + g * 10 + b; if (s % 4 == 0) cout << "YES << endl; else cout << "NO" << endl; return 0; }
a.cc:8:29: warning: missing terminating " character 8 | if (s % 4 == 0) cout << "YES << endl; | ^ a.cc:8:29: error: missing terminating " character 8 | if (s % 4 == 0) cout << "YES << endl; | ^~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:5: error: expected primary-expression before 'else' 9 | else cout << "NO" << endl; | ^~~~
s710002880
p03693
C++
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long ll; typedef vector<int> vint; #define rep(i,n) for (ll i = 0; i < (ll)(n); ++i) #define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++) #define mrep(i,n) for (ll i = (ll)(n-1); i > 0; i--) #define be(v) (v).begin(), (v).end() #define scout cout << fixed << setprecision(20) ll INF = 1LL << 60; ll mod = 1e9 + 7; int main() { int a,b,c; cin >> a >> b >> c; itn s=a*100+b*10+c; if(s%4==0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:16:9: error: 'itn' was not declared in this scope; did you mean 'int'? 16 | itn s=a*100+b*10+c; | ^~~ | int a.cc:17:12: error: 's' was not declared in this scope 17 | if(s%4==0) cout << "YES" << endl; | ^
s284430229
p03693
C++
#include<iostream> #include<string> #include<bits/stdc++.h> using namespace std; int main() { String s; cin>>s; int a; int a=stoi(s); if(a%4==0) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:1: error: 'String' was not declared in this scope 7 | String s; | ^~~~~~ a.cc:8:6: error: 's' was not declared in this scope 8 | cin>>s; | ^ a.cc:13:12: error: redeclaration of 'int a' 13 | int a=stoi(s); | ^ a.cc:9:5: note: 'int a' previously declared here 9 | int a; | ^
s272908677
p03693
C++
#include <iostream> #include <climits> #include <algorithm> int main(){ //initialization int r, g ,b; int ans; //input data cin >> r >> g >> b; //solver ans = ((r * 100) + (g * 10) + b) % 4 if(ans == 0){ cout << "YES" << "\n"; } else { cout << "NO" << "\n"; } //output }
a.cc: In function 'int main()': a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 13 | cin >> r >> g >> b; | ^~~ | 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:16:40: error: expected ';' before 'if' 16 | ans = ((r * 100) + (g * 10) + b) % 4 | ^ | ; 17 | if(ans == 0){ | ~~ a.cc:19:5: error: 'else' without a previous 'if' 19 | } else { | ^~~~ a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout << "NO" << "\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s651619352
p03693
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n; cin >> n; int gy = 0, br = 0, gr = 0, cy = 0, bl = 0, yl = 0, org = 0, r = 0, h = 0; for (int i = 0; i < n; i++) { int x; cin >> x; if(x >= 0 && x <= 399) { gy = 1; } else if(x >= 400 && x <= 799) { br = 1; } else if(x >= 800 && x <= 1199) { gr = 1; } else if(x >= 1200 && x <= 1599) { cy = 1; } else if(x >= 1600 && x <= 1999) { bl = 1; } else if(x >= 2000 && x <= 2399) { yl = 1; } else if(x >= 2400 && x <= 2799) { org = 1; } else if(x >= 2800 && x <= 3199) { r = 1; } else { h++; } } // int y = min(8, h); cout << gy + br + gr + cy + bl + yl + org + r << " " << gy + br + gr + cy + bl + yl + org + r + y << endl; return 0; }
a.cc: In function 'int main()': a.cc:46:101: error: 'y' was not declared in this scope 46 | cout << gy + br + gr + cy + bl + yl + org + r << " " << gy + br + gr + cy + bl + yl + org + r + y << endl; | ^
s220794665
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c; cin>>a>>b>>c; string rgb=a+b+c; int abc=stoi(rgb); if(abc % 4==0){ cont<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:10:5: error: 'cont' was not declared in this scope; did you mean 'const'? 10 | cont<<"YES"<<endl; | ^~~~ | const
s889695099
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if((10*g+b)%4==0){ cout << "YES" << endl; }else{ cout << "NO" << emdl; } }
a.cc: In function 'int main()': a.cc:10:21: error: 'emdl' was not declared in this scope 10 | cout << "NO" << emdl; | ^~~~
s490840031
p03693
Java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int amari = (10 * g + b) % 4; if (amari == 0) { System.out.println("YES"); } else { System.out.println("NO"); } }
Main.java:17: error: reached end of file while parsing } ^ 1 error
s967065022
p03693
Java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int amari = (10 * g + b) % 4; if (amari == 0) { System.out.println("YES"); } else { System.out.println("NO"); } }
Main.java:17: error: reached end of file while parsing } ^ 1 error
s613233728
p03693
Java
import java.util.*; import java.io.*; public class solutions { public static void main (String[]args){ String val = ""; Scanner in = new Scanner(System.in); String input = in.nextLine(); // get the entire line after the prompt String[] numbers = input.split(" "); // split by spaces val = numbers[0] + numbers[1] + numbers[2]; if(Integer.parseInt(val)%4==0) { System.out.println("YES"); } else{ System.out.println("NO"); } } }
Main.java:5: error: class solutions is public, should be declared in a file named solutions.java public class solutions { ^ 1 error
s329707846
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int a, b, c; cin >> a >> b>> c; int number = a * 100 + b * 10 + c; if (nunber / 4 == 0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:7: error: 'nunber' was not declared in this scope; did you mean 'number'? 9 | if (nunber / 4 == 0){ | ^~~~~~ | number
s685518722
p03693
C++
#include <stdc++.h> using namespace std; int main(void){ int a, b, c; cin >> a >> b>> c; int number = a * 100 + b * 10 + c; if (nunber / 4 == 0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc:1:10: fatal error: stdc++.h: No such file or directory 1 | #include <stdc++.h> | ^~~~~~~~~~ compilation terminated.
s045875826
p03693
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i=0;i<(n);i++) using namespace std; using ll = long long; using P = pair<int,int>; int main() { int r,g,b; cin >> r >> g >> b; int a=10*g+b; if(a%4==0)cpit << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:12:15: error: 'cpit' was not declared in this scope 12 | if(a%4==0)cpit << "YES" << endl; | ^~~~
s899508468
p03693
C++
// https://ei1333.github.io/luzhiled/ // http://beet-aizu.hatenablog.com/entry/2017/01/04/113233 // http://www.prefield.com/algorithm/ #include <bits/stdc++.h> constexpr char bn = '\n'; using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vd = vector<ld>; using vs = vector<string>; using vb = vector<bool>; using vvl = vector<vector<ll>>; using vvd = vector<vector<ld>>; using vvs = vector<vector<string>>; using vvb = vector<vector<bool>>; #define pb push_back #define eb emplace_back #define fi first #define se second template<class T> using vc = vector<T>; template<class T> using vvc = vector<vector<T>>; using Graph = vector<vector<ll>>; const ll INF = 1LL << 60; void init() {cin.tie(0);ios::sync_with_stdio(false);cout << fixed << setprecision(15);} const ll tl= 1000000007; #define REP(i, n) for (ll i = 0; i < n; i++) #define REREP(i, n) for (ll i = n; i >= 0; i--) #define FOR(i, a, n) for (ll i = a; i < n; i++) #define REFOR(i, n, a) for (ll i = n; i >= a; i--) #define CLR(mat,f) memset(mat, f, sizeof(mat)) #define IN(a, b, x) (a<=x&&x<=b) #define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ) //被り削除 #define debug cout << "line : " << __LINE__ << " debug" << endl; #define ini(...) int __VA_ARGS__; in(__VA_ARGS__) #define inl(...) long long __VA_ARGS__; in(__VA_ARGS__) #define ind(...) long double __VA_ARGS__; in(__VA_ARGS__) #define ins(...) string __VA_ARGS__; in(__VA_ARGS__) #define inc(...) char __VA_ARGS__; in(__VA_ARGS__) void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);} void out(){cout << endl;} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);} template<typename T>void die(T x){out(x); exit(0);} #define in1(A) REP(i,A.size()) in(A[i]); #define in2(A,B) REP(i,A.size()) in(A[i],B[i]); #define in3(s,t,u) REP(i,sz(s)){in(s[i] , t[i] , u[i]);} #define in4(s,t,u,v) REP(i,sz(s)){in(s[i] , t[i] , u[i] , v[i]);} #define each(x,v) for(auto& x : v) #define all(v) (v).begin(),(v).end() #define sz(v) ((int)(v).size()) struct Point{ ld x,y; }; ld dist(Point a, Point b){return sqrt(abs(a.x-b.x)*abs(a.x-b.x)+abs(a.y-b.y)*abs(a.y-b.y));} // 2点間の距離 ll gcd(ll a, ll b) { return b != 0 ? gcd(b, a % b) : a; } ll lcm(ll a,ll b){ return a / gcd(a,b) * b;} ll modpow(ll a, ll n, ll mod) { ll res = 1; while (n > 0) { if (n & 1) res = res * a % mod; a = a * a % mod; n >>= 1; } return res; } ll fact(ll n){ if(n < 2) return 1; return (n * fact(n-1))%tl; } //階乗 inline ll updiv(ll a,ll b){ return (a + b - 1) / b; } //切り上げ template<typename T,typename U>ll ceil(T a,U b){return (a + b - 1) / b;} template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); } template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); } #define YES(n) ((n) ? "YES" : "NO" ) #define Yes(n) ((n) ? "Yes" : "No" ) #define yes(n) ((n) ? "yes" : "no" ) //------------------------------------------------------------------------------------------------- int main(){ init(); ll ans= 0; inl(r,g,b); // vl A(n); in1(A); out(YES((r*100+g*10+b)%4); }
a.cc: In function 'int main()': a.cc:80:30: error: expected ')' before ';' token 80 | out(YES((r*100+g*10+b)%4); | ~ ^
s980752294
p03693
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (n); i++) #define rep2(i, a, b) for(int i = (a); i < (b); i++) typedef long long ll; int main() { int r, b, b; cin >> r >> g >> b; if ((r + 100 + g * 10 + b) % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:14: error: redeclaration of 'int b' 8 | int r, b, b; | ^ a.cc:8:11: note: 'int b' previously declared here 8 | int r, b, b; | ^ a.cc:9:16: error: 'g' was not declared in this scope 9 | cin >> r >> g >> b; | ^
s083547007
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0 (b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:5: error: expression cannot be used as a function 6 | if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0 | ~ 7 | (b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){ | ^~~~~~~~
s783509072
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin A >> B >> C; if(B * 10 + C % 4 == 0){ cout << "No" << endl; } if(B * 10 + C % 4 != 0){ cout << "Yes" << endl; } }
a.cc: In function 'int main()': a.cc:6:7: error: expected ';' before 'A' 6 | cin A >> B >> C; | ^~ | ;
s233761760
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin A >> B >> C; if(B * 10 + C % 4 == 0){ cout << "No" << endl; } if(B * 10 + C % 4 != 0){ cout << "Yes" << endl; } }
a.cc: In function 'int main()': a.cc:6:7: error: expected ';' before 'A' 6 | cin A >> B >> C; | ^~ | ;
s932083997
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin A >> B >> C; if(B * 10 + C % 4 = 0){ cout << "No" << endl; } if(B * 10 + C % 4 != 0){ cout << "Yes" << endl; } }
a.cc: In function 'int main()': a.cc:6:7: error: expected ';' before 'A' 6 | cin A >> B >> C; | ^~ | ; a.cc:8:13: error: lvalue required as left operand of assignment 8 | if(B * 10 + C % 4 = 0){ | ~~~~~~~^~~~~~~
s509686456
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << ((a * 100 + b * 10 + c) % 4 == 0 ? "YES" : "NO") << cout; }
a.cc: In function 'int main()': a.cc:7:60: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ostream' {aka 'std::basic_ostream<char>'}) 7 | cout << ((a * 100 + b * 10 + c) % 4 == 0 ? "YES" : "NO") << cout; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~ | | | | basic_ostream<[...]> basic_ostream<[...]> a.cc:7:60: note: candidate: 'operator<<(int, int)' (built-in) 7 | cout << ((a * 100 + b * 10 + c) % 4 == 0 ? "YES" : "NO") << cout; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ a.cc:7:60: note: no known conversion for argument 2 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' 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, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const vo
s468030395
p03693
C
#include<stdio.h> int main(void){ scanf("%d%d%d",&int a,&int b,&int c); if((a*100+b*10+c)%4==0) printf("Yes"); else printf("No"); return 0; }
main.c: In function 'main': main.c:3:19: error: expected expression before 'int' 3 | scanf("%d%d%d",&int a,&int b,&int c); | ^~~ main.c:4:7: error: 'a' undeclared (first use in this function) 4 | if((a*100+b*10+c)%4==0) | ^ main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in main.c:4:13: error: 'b' undeclared (first use in this function) 4 | if((a*100+b*10+c)%4==0) | ^ main.c:4:18: error: 'c' undeclared (first use in this function) 4 | if((a*100+b*10+c)%4==0) | ^
s158891861
p03693
C++
v#include<iostream> #include<algorithm> #include<cmath> #include<vector> #include<queue> using namespace std; #define int long long #define REP(i,s,e) for((i)=(s);(i)<(e);(i)++) #define RREP(i,s,e) for((i)=((s)-1);(i)>=(e);(i)--) signed main(){ int R,G,B; cin>>R>>G>>B; if((R*100+G*10+B)%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:1:2: error: stray '#' in program 1 | v#include<iostream> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include<iostream> | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from a.cc:2: /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' 164 | __is_null_pointer(std::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:295:27: error: 'size_t' has not been declared 295 | template <typename _Tp, size_t = sizeof(_Tp)> | ^~~~~~ /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::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:984:26: error: 'size_t' has not been declared 984 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:985:40: error: '_Size' was not declared in this scope 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:985:46: error: template argument 1 is invalid 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std' 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /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' 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /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' 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /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' 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /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:1451:32: error: 'size_t' was not declared in this scope 1451 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:64:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 63 | #include <bits/version.h> +++ |+#include <cstddef> 64 | /usr/include/c++/14/type_traits:1451:41: error: template argument 1 is invalid 1451 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1451:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1453:26: error: 'size_t' has not been declared 1453 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1454:23: error: '_Size' was not declared in this scope 1454 | struct extent<_Tp[_Size], 0> | ^~~~~ /usr/include/c++/14/type_traits:1454:32: error: template argument 1 is invalid 1454 | struct extent<_Tp[_Size], 0> | ^ /usr/include/c++/14/type_traits:1455:32: error: 'size_t' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1455:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1455:40: error: '_Size' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~ /usr/include/c++/14/type_traits:1455:45: error: template argument 1 is invalid 1455 | : public integral_constant<size_t, _Size> { }; | ^ /usr/include/c++/14/type_traits:1455:45: error: template argument 2 is invalid /usr/include/c++/14/type_traits:1457:42: error: 'size_t' has not been declared 1457 | template<typename _Tp, unsigned _Uint, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1458:23: error: '_Size' was not declared in this scope 1458 | struct extent<_Tp[_Size], _Uint> | ^~~~~ /usr/include/c++/14/type_traits:1458:36: error: template argument 1 is invalid 1458 | struct extent<_Tp[_Size], _Uint> | ^ /usr/include/c++/14/type_traits:1463:32: error: 'size_t' was not declared in this scope 1463 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1463:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1463:41: error: template argument 1 is invalid 1463 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1463:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1857:26: error: 'size_t' does not name a type 1857 | { static constexpr size_t __size = sizeof(_Tp); }; | ^~~~~~ /usr/include/c++/14/type_traits:1857:26: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1859:14: error: 'size_t' has not been declared 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~~~~ /usr/include/c++/14/type_traits:1859:48: error: '_Sz' was not declared in this scope 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~ /usr/include/c++/14/type_traits:1860:14: error: no default argument for '_Tp' 1860 | struct __select; | ^~~~~~~~ /usr/include/c++/14/type_traits:1862:14: error: 'size_t' has not been declared 1862 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1863:23: error: '_Sz' was not declared in this scope 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^~~ /usr/include/c++/14/type_traits:1863:57: error: template argument 1 is invalid 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^ /usr/include/c++/14/type_traits:1866:14: error: 'size_t' has not been declared 1866 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1867:23: error: '_Sz' was not declared in this scope 1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false> | ^~~ /usr/include/c++/14/type_traits:1867:58: error: template argument 1 is invalid 1867
s765242141
p03693
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #include<set> #include<math.h> #define pai 3.14159265358979323846264338327950288; #define keta(n) cout << fixed << setprecision((n)); using ll = long long; int main(){ int r,g,b; cin>>r>>g>>b; if((10*g+b)%4==0)cout<<"Yes"<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:12:31: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ~~~~~~~~~~~^~~~~ 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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: couldn't deduce template parameter '_Bi_iter' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: couldn't deduce template parameter '_Bi_iter' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ /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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ 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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ 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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 12 | if((10*g+b)%4==0)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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 12 | if((10*g+b)%4==0)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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 12 | if((10*g+b)%4==0)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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 12 | if((10*g+b)%4==0)cout<<"Yes"<endl; | ^~~~ 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:12:32: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | if((10*g+b)%4==0)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:12:32: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | if((10*g+b)%4==0)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:12:32: note: couldn't deduce template parameter '_CharT' 12 | if((10*g+b)%4==0)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:12:32: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 12
s736938132
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { string r,g,b; cin >> r >> g >> b; if(atoi(g + b) % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:13: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*' 7 | if(atoi(g + b) % 4 == 0) { | ~~^~~ | | | std::__cxx11::basic_string<char> In file included from /usr/include/c++/14/cstdlib:79, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42, from a.cc:1: /usr/include/stdlib.h:105:30: note: initializing argument 1 of 'int atoi(const char*)' 105 | extern int atoi (const char *__nptr) | ~~~~~~~~~~~~^~~~~~
s598364905
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, num; cin >> r >> g >>b; num = r*100 + g*10 + b; if (num%4 == 0){ cout << "YES" << endl; } else { cout << "NO << endl; } }
a.cc:15:13: warning: missing terminating " character 15 | cout << "NO << endl; | ^ a.cc:15:13: error: missing terminating " character 15 | cout << "NO << endl; | ^~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:16:3: error: expected primary-expression before '}' token 16 | } | ^
s605615737
p03693
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N =sc.nextInt(); int a=sc.nextInt(); for(int i=1;i<N;i++){ int Min; int Max; if(Min>a)Min=a; if(Max<a)Max=a; System.out.println(Max-Min);} } }
Main.java:10: error: variable Min might not have been initialized if(Min>a)Min=a; ^ Main.java:11: error: variable Max might not have been initialized if(Max<a)Max=a; ^ 2 errors
s428991002
p03693
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int N=sc.nextInt(); int a=sc.nextInt(); for(int i=1;i<N;i++){ int Min=a; int Max=a; System.out.println(Max-Min);} } }
Main.java:4: error: cannot find symbol int N=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int a=sc.nextInt(); ^ symbol: variable sc location: class Main 2 errors
s230516024
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; int red = a*100; int green = g*10; int blue = c; int num = red + green + blue; if(num % 4 == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:15: error: 'g' was not declared in this scope 8 | int green = g*10; | ^
s652469431
p03693
C++
#include <iostream.h> using namespace std; int main(){ int r,g,b,sum; cin>>r>>g>>b; sum=r*100+g*10+b; if(sum%4==0){ cout<<YES<<endl; }else{ cout<<NO<<endl; } }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s512716014
p03693
C
#inclde<stdio.h> int main(void){ int a, b, c; int sum; scanf("%d %d %d",&a &b &c); sum = 100*a + 10*b + c; if(sum % 4 == 0){ puts("YES\n"); }else{ puts("NO\n"); } reutn 0; }
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde<stdio.h> | ^~~~~~ | include main.c: In function 'main': main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | scanf("%d %d %d",&a &b &c); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #inclde<stdio.h> main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 5 | scanf("%d %d %d",&a &b &c); | ^~~~~ main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:5:23: error: invalid operands to binary & (have 'int *' and 'int') 5 | scanf("%d %d %d",&a &b &c); | ~~ ^ | | | int * main.c:8:5: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 8 | puts("YES\n"); | ^~~~ main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'puts' main.c:12:3: error: 'reutn' undeclared (first use in this function) 12 | reutn 0; | ^~~~~ main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in main.c:12:8: error: expected ';' before numeric constant 12 | reutn 0; | ^~ | ;
s098576032
p03693
C++
#include <bists/stdc++.h> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; int x=100*r+10*g+b; cout<<(x%4==0?"YES":"NO")<<endl; }
a.cc:1:10: fatal error: bists/stdc++.h: No such file or directory 1 | #include <bists/stdc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s378602418
p03693
C++
#include <bits/stdc++.h> using namespace std; main(){ // ここにプログラムを追記 int A,B,C; cin>> A >>B>>C; int X=100*A+10*B+C; if (X % 4 =0) {cout <<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:8:9: error: lvalue required as left operand of assignment 8 | if (X % 4 =0) {cout <<"YES"<<endl; | ~~^~~
s005031842
p03693
C++
#include <bits/stdc++.h> using namespace std; main(){ // ここにプログラムを追記 int A,B,C; cin>> A >>B>>C; int X=100*A+10*B+C; if (X %4 =0) {cout <<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:8:9: error: lvalue required as left operand of assignment 8 | if (X %4 =0) {cout <<"YES"<<endl; | ~~^~
s862662785
p03693
C++
#include <bits/stdc++.h> using namespace std; // ここにプログラムを追記 int A,B,C; cin>> A >>B>>C; int X=100*A+10*B+C; if (X %4 =0) {cout <<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:6:3: error: 'cin' does not name a type 6 | cin>> A >>B>>C; | ^~~ a.cc:8:3: error: expected unqualified-id before 'if' 8 | if (X %4 =0) {cout <<"YES"<<endl; | ^~ a.cc:11:1: error: expected unqualified-id before 'else' 11 | else{ cout<<"NO"<<endl; | ^~~~ a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s537886081
p03693
C++
#include <bits/stdc++.h> using namespace std; // ここにプログラムを追記 int A,B,C; cin>> A >>B>>C; int X=100*A+10*B+C; if (X %4 =0)cout <<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:6:3: error: 'cin' does not name a type 6 | cin>> A >>B>>C; | ^~~ a.cc:8:3: error: expected unqualified-id before 'if' 8 | if (X %4 =0)cout <<"YES"<<endl; | ^~ a.cc:9:1: error: expected unqualified-id before 'else' 9 | else cout<<"NO"<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s202557869
p03693
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int r,g,b; Scanner sc=new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if((100*r+10*g+b)%4==0){ System.out.println("YES");} else{System.out.println("NO");} } }
Main.java:6: error: variable r is already defined in method main(String[]) int r = sc.nextInt(); ^ Main.java:7: error: variable g is already defined in method main(String[]) int g = sc.nextInt(); ^ Main.java:8: error: variable b is already defined in method main(String[]) int b = sc.nextInt(); ^ 3 errors
s571239308
p03693
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if ((100 * r + 10 * g + b) % 4 == 0) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s441947060
p03693
Java
import java.util.ArrayDeque; import java.util.Deque; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; public class Main__ { public static void main(String[] args) { Deque<Integer> list = new ArrayDeque<>(List.of(2,1,0)); try (Scanner sc = new Scanner(System.in)) { int sum = Stream.of(sc.nextLine().split(" ")) .map(Integer::valueOf) .reduce(0, (x, y) -> x + y * (int) Math.pow(10,list.removeFirst())); System.out.println((sum % 4 == 0) ? "Yes" : "No"); } } }
Main.java:7: error: class Main__ is public, should be declared in a file named Main__.java public class Main__ { ^ 1 error
s428405849
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; int c = (100*a)+(10*b)+c; if(c%4 == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: redeclaration of 'int c' 9 | int c = (100*a)+(10*b)+c; | ^ a.cc:7:13: note: 'int c' previously declared here 7 | int a,b,c; | ^
s277880115
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; a *= 100; b *= 10; t = a+b+c; if (t%4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: 't' was not declared in this scope 8 | t = a+b+c; | ^
s781276926
p03693
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int r,g,b; Scanner sc=new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if((100*r+10*g+b)%4==0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:6: error: variable r is already defined in method main(String[]) int r = sc.nextInt(); ^ Main.java:7: error: variable g is already defined in method main(String[]) int g = sc.nextInt(); ^ Main.java:8: error: variable b is already defined in method main(String[]) int b = sc.nextInt(); ^ 3 errors
s393325337
p03693
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int r,g,b; Scanner sc=new Scanner(System.in); int r = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if((100*r+10*g+b)%4==0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:6: error: variable r is already defined in method main(String[]) int r = sc.nextInt(); ^ Main.java:7: error: variable b is already defined in method main(String[]) int b = sc.nextInt(); ^ 2 errors
s181988476
p03693
Java
public class Main{ public static void main(String[] args){ int r; int g; int b; if((100*r+10*g+b)%4==0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:6: error: variable r might not have been initialized if((100*r+10*g+b)%4==0){ ^ Main.java:6: error: variable g might not have been initialized if((100*r+10*g+b)%4==0){ ^ Main.java:6: error: variable b might not have been initialized if((100*r+10*g+b)%4==0){ ^ 3 errors
s127547078
p03693
Java
public class Main{ public static void main(String[] args){ int r,g,b; if((100*r+10*g+b)%4==0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:4: error: variable r might not have been initialized if((100*r+10*g+b)%4==0){ ^ Main.java:4: error: variable g might not have been initialized if((100*r+10*g+b)%4==0){ ^ Main.java:4: error: variable b might not have been initialized if((100*r+10*g+b)%4==0){ ^ 3 errors
s681990199
p03693
Java
public class Main{ public static void main(String[] args){ int r,g,b; if((100r+10g+b)%4==0){ System.out.println("Yes"); else{System.out.println("No"); } }
Main.java:4: error: ')' expected if((100r+10g+b)%4==0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4==0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4==0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4==0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4==0){ ^ Main.java:6: error: 'else' without 'if' else{System.out.println("No"); ^ Main.java:8: error: reached end of file while parsing } ^ 7 errors
s598955515
p03693
Java
public class Main{ public static void main(String[] args){ int r,g,b; if((100r+10g+b)%4==0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:4: error: ')' expected if((100r+10g+b)%4==0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4==0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4==0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4==0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4==0){ ^ Main.java:6: error: 'else' without 'if' else{System.out.println("No");} ^ 6 errors
s079140380
p03693
Java
public class Main{ public static void main(String[] args){ int r,g,b; if((100r+10g+b)%4 == 0){ System.out.println("Yes");} else{System.out.println("No");} } }
Main.java:4: error: ')' expected if((100r+10g+b)%4 == 0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4 == 0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4 == 0){ ^ Main.java:4: error: not a statement if((100r+10g+b)%4 == 0){ ^ Main.java:4: error: ';' expected if((100r+10g+b)%4 == 0){ ^ Main.java:6: error: 'else' without 'if' else{System.out.println("No");} ^ 6 errors
s865772134
p03693
C++
#include<iostream> #include<string> #include<math.h> using namespace std; int main(){ int r,g,b; cin >> r > g >> b; if((10*g + b) % 4 == 0)cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:9:12: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 9 | cin >> r > g >> b; | ~~~~~~~~ ^ ~~~~~~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:9:12: note: candidate: 'operator>(int, int)' (built-in) 9 | cin >> r > g >> b; | ~~~~~~~~~^~~~~~~~ a.cc:9:12: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' 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:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | cin >> r > g >> b; | ^ 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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 9 | cin >> r > g >> b; | ^ 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:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/string_view:710: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>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:9:19: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/basic_string.h:3915: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>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 9 | cin >> r > g >> b; | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:9:19: note: mismatched types 'const _CharT*' and 'std::basic_istream<char>' 9 | cin >> r > g >> b; | ^ 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:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:9:19: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 9 | cin >> r > g >> b; | ^
s650639840
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; x = a * 100 + b * 10 + c; if (x % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: 'x' was not declared in this scope 8 | x = a * 100 + b * 10 + c; | ^
s629483811
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; x = a * 100 + b * 10 + c; if (x % 4 = 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: 'x' was not declared in this scope 8 | x = a * 100 + b * 10 + c; | ^
s576121854
p03693
C
#include<stdio.h> int main(void){ int *n[3]; scanf("%d",&n[]); if((*n[0]*100 + *n[1]*10 + *n[2])%4 == 0){ printf("YES"); } else{printf("NO");} return 0; }
main.c: In function 'main': main.c:5:17: error: expected expression before ']' token 5 | scanf("%d",&n[]); | ^
s402974336
p03693
C
#include<stdio.h> int main(void){ int *n[3]; scanf("%d",&n); if((n[0]*100 + n[1]*10 + n[2])%4 == 0){ printf("YES"); } else{printf("NO");} return 0; }
main.c: In function 'main': main.c:7:11: error: invalid operands to binary * (have 'int *' and 'int') 7 | if((n[0]*100 + n[1]*10 + n[2])%4 == 0){ | ~~~~^ | | | int * main.c:7:22: error: invalid operands to binary * (have 'int *' and 'int') 7 | if((n[0]*100 + n[1]*10 + n[2])%4 == 0){ | ~~~~^ | | | int *
s198662838
p03693
C++
#include <iostream> #include <algorithm> #include <math.h> #include <vector> #include <string> #include <queue> #include <map> #include <utility> using namespace std; using ll = long long; int main() { int a,b,c; cin >> a >>b >>c; int a = a*100 + b*10+c; if (a %4 == 0) cout <<"YES" << endl; else cout << "NO" << endl; } #include <iostream> #include <algorithm> #include <math.h> #include <vector> #include <string> #include <queue> #include <map> #include <utility> using namespace std; using ll = long long; int main() { int a,b,c; cin >> a >>b >>c; int d = a*100 + b*10+c; if (d %4 == 0) cout <<"YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:15:7: error: redeclaration of 'int a' 15 | int a = a*100 + b*10+c; | ^ a.cc:13:5: note: 'int a' previously declared here 13 | int a,b,c; | ^ a.cc: At global scope: a.cc:30:5: error: redefinition of 'int main()' 30 | int main() { | ^~~~ a.cc:12:5: note: 'int main()' previously defined here 12 | int main() { | ^~~~
s786677214
p03693
C++
#include <iostream> #include <algorithm> #include <math.h> #include <vector> #include <string> #include <queue> #include <map> #include <utility> using namespace std; using ll = long long; int main() { int a,b,c; cin >> a >>b >>c; int a = a*100 + b*10+c; if (a %4 == 0) cout <<"YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:15:7: error: redeclaration of 'int a' 15 | int a = a*100 + b*10+c; | ^ a.cc:13:5: note: 'int a' previously declared here 13 | int a,b,c; | ^
s551908241
p03693
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >>c; int d = 10 * b + c; if d % 4 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:8:8: error: expected '(' before 'd' 8 | if d % 4 == 0) cout << "Yes" << endl; | ^ | ( a.cc:9:5: error: 'else' without a previous 'if' 9 | else cout << "No" << endl; | ^~~~
s762738862
p03693
C++
#include <iostream> #include <bits/stdc++.h> using namespace std;   int main() {  int a, b, c; cin >> a >> b >> c; if ((10*b+c)%4 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc:4:1: error: extended character   is not valid in an identifier 4 |   | ^ a.cc:6:1: error: extended character   is not valid in an identifier 6 |  int a, b, c; | ^ a.cc:4:1: error: '\U000000a0' does not name a type 4 |   | ^
s428129473
p03693
Java
import java.util.Scanner; class Main public static void main(String args[]){ Scanner scan = new Scanner(System.in); int r = scan.nextInt(); int g = scan.nextInt(); int b = scan.nextInt(); int num = 100*r + 10*g + b; int cal = num % 4; if(cal == 0){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
Main.java:2: error: '{' expected class Main ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]){ ^ (use --enable-preview to enable unnamed classes) Main.java:17: error: class, interface, enum, or record expected } ^ 3 errors
s854929335
p03693
C++
#include <bits/stdc++.h> using namespace std; int main () { int r, g, b; cin >> r >> g >> b; int hantei = g * 10 + b if ((hantei % 4) == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: expected ',' or ';' before 'if' 9 | if ((hantei % 4) == 0) { | ^~ a.cc:12:3: error: 'else' without a previous 'if' 12 | else { | ^~~~
s221559910
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b >>; int judge = r * 100 + g * 10 + b; if(judge % 4 == 0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:30: error: expected primary-expression before ';' token 6 | cin >> r >> g >> b >>; | ^
s246803357
p03693
C++
#include<iostream> using namespace std; int main(){ cin >> r >> g >> b; int a = 100*r + 10*g + b; if(a % 4 ==0){ cout <<'Yes'<<endl; }else{ cout << 'No' << endl; } }
a.cc:7:12: warning: multi-character character constant [-Wmultichar] 7 | cout <<'Yes'<<endl; | ^~~~~ a.cc:9:13: warning: multi-character character constant [-Wmultichar] 9 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:4:10: error: 'r' was not declared in this scope 4 | cin >> r >> g >> b; | ^ a.cc:4:15: error: 'g' was not declared in this scope 4 | cin >> r >> g >> b; | ^ a.cc:4:20: error: 'b' was not declared in this scope 4 | cin >> r >> g >> b; | ^
s089512962
p03693
C++
#include<iostream> using namespace std; int main(){ cin >> r >> g >> b; int a = 100*r + 10*g + b; if(a % 4 ==0){ cout <<'Yes'<<endl; }else{ cout << 'No' << endl; }
a.cc:7:12: warning: multi-character character constant [-Wmultichar] 7 | cout <<'Yes'<<endl; | ^~~~~ a.cc:9:13: warning: multi-character character constant [-Wmultichar] 9 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:4:10: error: 'r' was not declared in this scope 4 | cin >> r >> g >> b; | ^ a.cc:4:15: error: 'g' was not declared in this scope 4 | cin >> r >> g >> b; | ^ a.cc:4:20: error: 'b' was not declared in this scope 4 | cin >> r >> g >> b; | ^ a.cc:10:4: error: expected '}' at end of input 10 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s631793154
p03693
C++
#include <iostream> using namespace std; int main(){ cin >> r >> g>> b; int a=100*r+10*g+b; if(a%4==0){ cout<<”Yes”<<endl; }else{cout<<”No”<<endl;} }
a.cc:7:7: error: extended character ” is not valid in an identifier 7 | cout<<”Yes”<<endl; | ^ a.cc:7:7: error: extended character ” is not valid in an identifier a.cc:8:13: error: extended character ” is not valid in an identifier 8 | }else{cout<<”No”<<endl;} | ^ a.cc:8:13: error: extended character ” is not valid in an identifier a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name 2 | using namespace std; | ^~~~~ a.cc:2:22: error: expected ';' before 'int' 2 | using namespace std; | ^ | ; 3 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin >> r >> g>> b; | ^~~ | 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:4:8: error: 'r' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:4:13: error: 'g' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:4:17: error: 'b' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | 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:7:7: error: '\U0000201dYes\U0000201d' was not declared in this scope 7 | cout<<”Yes”<<endl; | ^~~~~ a.cc:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | cout<<”Yes”<<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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | }else{cout<<”No”<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:13: error: '\U0000201dNo\U0000201d' was not declared in this scope 8 | }else{cout<<”No”<<endl;} | ^~~~ a.cc:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | }else{cout<<”No”<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s198579526
p03693
C++
#include <iostream> using namespace std; int main(){ cin >> r >> g>> b; int a=100r+10g+b; if(a%4==0){ cout<<”Yes”<<endl; }else{cout<<”No”<<endl;} }
a.cc:5:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow] 5 | int a=100r+10g+b; | ^~~ a.cc:7:7: error: extended character ” is not valid in an identifier 7 | cout<<”Yes”<<endl; | ^ a.cc:7:7: error: extended character ” is not valid in an identifier a.cc:8:13: error: extended character ” is not valid in an identifier 8 | }else{cout<<”No”<<endl;} | ^ a.cc:8:13: error: extended character ” is not valid in an identifier a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name 2 | using namespace std; | ^~~~~ a.cc:2:22: error: expected ';' before 'int' 2 | using namespace std; | ^ | ; 3 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin >> r >> g>> b; | ^~~ | 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:4:8: error: 'r' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:4:13: error: 'g' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:4:17: error: 'b' was not declared in this scope 4 | cin >> r >> g>> b; | ^ a.cc:5:7: error: fixed-point types not supported in C++ 5 | int a=100r+10g+b; | ^~~~ a.cc:5:12: error: unable to find numeric literal operator 'operator""g' 5 | int a=100r+10g+b; | ^~~ a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | 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:7:7: error: '\U0000201dYes\U0000201d' was not declared in this scope 7 | cout<<”Yes”<<endl; | ^~~~~ a.cc:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | cout<<”Yes”<<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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | }else{cout<<”No”<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:13: error: '\U0000201dNo\U0000201d' was not declared in this scope 8 | }else{cout<<”No”<<endl;} | ^~~~ a.cc:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | }else{cout<<”No”<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s666926592
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin >> r >> g>> b; int a=100r+10g+b; if(a%4==0){ cout<<”Yes”<<endl; }else{cout<<”No”<<endl;} }
a.cc:6:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow] 6 | int a=100r+10g+b; | ^~~ a.cc:8:7: error: extended character ” is not valid in an identifier 8 | cout<<”Yes”<<endl; | ^ a.cc:8:7: error: extended character ” is not valid in an identifier a.cc:9:13: error: extended character ” is not valid in an identifier 9 | }else{cout<<”No”<<endl;} | ^ a.cc:9:13: error: extended character ” is not valid in an identifier a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name 2 | using namespace std; | ^~~~~ a.cc:2:22: error: expected ';' before 'int' 2 | using namespace std; | ^ | ; 3 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> r >> g>> b; | ^~~ | 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:6:7: error: fixed-point types not supported in C++ 6 | int a=100r+10g+b; | ^~~~ a.cc:6:12: error: unable to find numeric literal operator 'operator""g' 6 | int a=100r+10g+b; | ^~~ a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | 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:8:7: error: '\U0000201dYes\U0000201d' was not declared in this scope 8 | cout<<”Yes”<<endl; | ^~~~~ a.cc:8:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout<<”Yes”<<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:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | }else{cout<<”No”<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:13: error: '\U0000201dNo\U0000201d' was not declared in this scope 9 | }else{cout<<”No”<<endl;} | ^~~~ a.cc:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | }else{cout<<”No”<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~