submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s768791830 | p03693 | C++ | #include<iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int ans=0;
ans = 100*a+10*b+c;
if (ans % 4 == 0) cout << "YES" << endl;
else cout ,< "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:11:14: error: expected primary-expression before '<' token
11 | else cout ,< "NO" << endl;
| ^
a.cc:11:21: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
11 | else cout ,< "NO" << endl;
| ~~~~~^~~~~~~
|
s323233490 | p03693 | C++ | #include <iostream> // import 標準入出力
using namespace std; // as *
int main() {
int r, g, b, c;
cin >> r >> g >> b; // cin: キーボード入力
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:6:9: error: redeclaration of 'int c'
6 | int c = r *100 + g * 10 + b;
| ^
a.cc:4:18: note: 'int c' previously declared here
4 | int r, g, b, c;
| ^
|
s244907489 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b >> endl;
if((100*r+10*g+b)%4 == 0){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:20: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
6 | cin >> r >> g >> b >> endl;
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included 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/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from ' |
s097473532 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
string num = a + b + c;
if(num%4 == 0)
cout >> "Yes" >> "\n";
else
cout >> "No" >> "\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
7 | if(num%4 == 0)
| ~~~^~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
8 | cout >> "Yes" >> "\n";
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:55,
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/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
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:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
8 | cout >> "Yes" >> "\n";
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:8:13: required from here
8 | cout >> "Yes" >> "\n";
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
a.cc:10:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]')
10 | cout >> "No" >> "\n";
| ~~~~ ^~ ~~~~
| | |
| | const char [3]
| std::ostream {aka std::basic_ostream<char>}
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:10:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "No" >> "\n";
| ^~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_ |
s298249148 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
if((10*g+b)%4==0)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'g' was not declared in this scope
5 | if((10*g+b)%4==0)cout<<"YES"<<endl;
| ^
a.cc:5:12: error: 'b' was not declared in this scope
5 | if((10*g+b)%4==0)cout<<"YES"<<endl;
| ^
|
s683920691 | 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();
if (((g * 10) + b) % 4 == 0) {
System.out.println("YES");
}
else {
System.out/println("NO");
}
}
} | Main.java:12: error: not a statement
System.out/println("NO");
^
1 error
|
s444585813 | 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();
if (((g * 10) + b) % 4 == 0) {
System.out.println("YES");
}
else {
System.out/println("NO");
}
}
} | Main.java:12: error: not a statement
System.out/println("NO");
^
1 error
|
s176068083 | p03693 | C++ | #include <iostream>
int main() {
int r,g,b,rx100,gx10;
int integer;
cin >> r >> g >> b;
rx100 = r * 100;
gx10 = g * 10;
integer = rx100 + gx10 + b;
if(integer % 4 == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | 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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | 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:14:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | 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:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | 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:16:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s867038207 | p03693 | C++ | #include <iostream>
int main() {
int r,g,b;
int integer;
cin >> r >> g >> b;
rx100 = r * 100;
gx10 = g * 10;
integer = rx100 + gx10 + b;
if(integer % 4 == 0) {
cout << 'YES' << endl;
} else {
cout << 'NO' << endl;
}
return 0;
} | a.cc:14:17: warning: multi-character character constant [-Wmultichar]
14 | cout << 'YES' << endl;
| ^~~~~
a.cc:16:17: warning: multi-character character constant [-Wmultichar]
16 | cout << 'NO' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | 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:8:5: error: 'rx100' was not declared in this scope
8 | rx100 = r * 100;
| ^~~~~
a.cc:9:5: error: 'gx10' was not declared in this scope
9 | gx10 = g * 10;
| ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | 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:14:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | 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:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | 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:16:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | cout << 'NO' << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s404656698 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i, a, b) for(ll (i) = (a); (i) < (b);++i)
ll gcd(ll x, ll y)
{
if (x % y == 0)
{
return y;
}
return gcd(y, x % y);
}
int main()
{
char a[3];
cin >> a[0] >> a[1] >> a[2];
if (int(a[0]) * 100 + int(a[1]) * 10 + int(a[2])) % 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:27:53: error: expected primary-expression before '%' token
27 | if (int(a[0]) * 100 + int(a[1]) * 10 + int(a[2])) % 4 == 0){
| ^
|
s251989127 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int r, g, b;
cin >> r;
cin >> g;
cin >> b;
int num = r * 100 + g * 10 + b;
//cout << num;
if (num % 4 == 0) {
cout < "YES";
} else {
cout << "NO";
}
}
| a.cc: In function 'int main()':
a.cc:13:14: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
13 | cout < "YES";
| ~~~~ ^ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
13 | cout < "YES";
| ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
13 | cout < "YES";
| ^~~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
13 | cout < "YES";
| ^~~~~
/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:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
13 | cout < "YES";
| ^~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
13 | cout < "YES";
| ^~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
13 | cout < "YES";
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>'
13 | cout < "YES";
| ^~~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s974387121 | p03693 | Java | import java.util.Scanner;
public class RGBCards {
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 (((g * 10 + b) % 4) == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:3: error: class RGBCards is public, should be declared in a file named RGBCards.java
public class RGBCards {
^
1 error
|
s949415938 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
int num = 10 * g + b;
if (num % 4 == 0) cout << "YES" <<endl
else cout << "NO" << endl
}
| a.cc: In function 'int main()':
a.cc:8:43: error: expected ';' before 'else'
8 | if (num % 4 == 0) cout << "YES" <<endl
| ^
| ;
9 | else cout << "NO" << endl
| ~~~~
|
s601985091 | p03693 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <functional>
#include <queue>
#include <stack>
#include <cmath>
#define INF 100000000
#define MOD 1000000007
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
if(rgb%4==0){cout<<"YES"<<endl;}
else{cout<<"NO"<<endl;}
} | a.cc: In function 'int main()':
a.cc:16:4: error: 'rgb' was not declared in this scope
16 | if(rgb%4==0){cout<<"YES"<<endl;}
| ^~~
|
s824927861 | p03693 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int a, int b, int c;
int main(){
while(~scanf("%d%d%d", &a, &b, &c)){
if((a * 100+b* 10+c) % 4 == 0) puts("YES");
else puts("NO");
}
} | a.cc:7:8: error: expected unqualified-id before 'int'
7 | int a, int b, int c;
| ^~~
a.cc: In function 'int main()':
a.cc:9:29: error: 'b' was not declared in this scope
9 | while(~scanf("%d%d%d", &a, &b, &c)){
| ^
a.cc:9:33: error: 'c' was not declared in this scope
9 | while(~scanf("%d%d%d", &a, &b, &c)){
| ^
|
s494332790 | p03693 | C++ | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int a, int b, int c;
int main(){
while(~scanf("%d%d%d", &a, &b, &c){
if((a * 100+b* 10+c) % 4 == 0) puts("YES");
else puts("NO");
}
} | a.cc:8:8: error: expected unqualified-id before 'int'
8 | int a, int b, int c;
| ^~~
a.cc: In function 'int main()':
a.cc:10:29: error: 'b' was not declared in this scope
10 | while(~scanf("%d%d%d", &a, &b, &c){
| ^
a.cc:10:33: error: 'c' was not declared in this scope
10 | while(~scanf("%d%d%d", &a, &b, &c){
| ^
a.cc:10:35: error: expected ')' before '{' token
10 | while(~scanf("%d%d%d", &a, &b, &c){
| ~ ^
| )
|
s883392859 | p03693 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int a, int b, int c;
int main(){
while(~scanf("%d%d%d", &a, &b, &c){
if((a * 100+b* 10+c) % 4 == 0) puts("YES");
else puts("NO");
}
} | a.cc:7:8: error: expected unqualified-id before 'int'
7 | int a, int b, int c;
| ^~~
a.cc: In function 'int main()':
a.cc:9:29: error: 'b' was not declared in this scope
9 | while(~scanf("%d%d%d", &a, &b, &c){
| ^
a.cc:9:33: error: 'c' was not declared in this scope
9 | while(~scanf("%d%d%d", &a, &b, &c){
| ^
a.cc:9:35: error: expected ')' before '{' token
9 | while(~scanf("%d%d%d", &a, &b, &c){
| ~ ^
| )
|
s459354703 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> v;
if ( (2*g+b)%2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:20: error: 'v' was not declared in this scope
6 | cin >> r >> g >> v;
| ^
|
s266131347 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
c = r * g * b;
if(c%4 == 0){
cout << "Yes\n";
}else{
cout << "No\n";
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'c' was not declared in this scope
7 | c = r * g * b;
| ^
|
s446254861 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
if((10g+b)%4==0) cout << "YES";
else cout << "NO";
} | a.cc: In function 'int main()':
a.cc:7:13: error: unable to find numeric literal operator 'operator""g'
7 | if((10g+b)%4==0) cout << "YES";
| ^~~
|
s182534639 | p03693 | C | #include <stdio.h>
int abs(int n){
if(n<0){
return -1*n;}else
return n;}
int main(void)
{int N,A,M,B,C,x,i,a,b,c,l,r,g,b,m,tmp;
scanf("%d%d%d",&r,&g,&b);
if((r*100+g*10+b)%4==0){
printf("YES");}
else
printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:7:32: error: redeclaration of 'b' with no linkage
7 | {int N,A,M,B,C,x,i,a,b,c,l,r,g,b,m,tmp;
| ^
main.c:7:22: note: previous declaration of 'b' with type 'int'
7 | {int N,A,M,B,C,x,i,a,b,c,l,r,g,b,m,tmp;
| ^
|
s466048964 | p03693 | C++ | #include <bits/stdc++.h>
#define P pair<int,int>
#define All(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
typedef long long ll;
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const ll LINF = 1e18;
int main() {
int n, cnt = 0, tmp = 0, ans;
bool f[8] = {};
cin >> n;
int a[n];
for (int i = 0; i < n; i++) {
cin >> a[i];
if (a[i] < 3200) {
f[a[i] / 400] = true;
} else {
tmp++;
}
}
for (int i = 0; i < 8; i++) {
if (f[i]) {
cnt++;
}
}
int ans = cnt + tmp;
if (cnt == 0) {
cnt++;
}
cout << cnt << " " << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:27:13: error: redeclaration of 'int ans'
27 | int ans = cnt + tmp;
| ^~~
a.cc:10:34: note: 'int ans' previously declared here
10 | int n, cnt = 0, tmp = 0, ans;
| ^~~
|
s665225668 | p03693 | C++ | #include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int d=100*a+10*b+c;
if(d%4==0)
cout<<"YES":
else
cout<<"NO";
system("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:19:12: error: expected ';' before ':' token
19 | cout<<"YES":
| ^
| ;
|
s120424883 | p03693 | C++ | #include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int a,b,c;
cin>>a>>>b>>c;
int d=100*a+10*b+c;
if(d%4==0)
cout<<"YES":
else
cout<<"NO";
system("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression before '>' token
16 | cin>>a>>>b>>c;
| ^
a.cc:19:12: error: expected ';' before ':' token
19 | cout<<"YES":
| ^
| ;
|
s154215628 | p03693 | C++ | int main() {
int r,g,b;
cin >>r>>g>>b;
if((10*g+b)%4==0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
3 | cin >>r>>g>>b;
| ^~~
a.cc:5:17: error: 'cout' was not declared in this scope
5 | cout << "YES" << endl;
| ^~~~
a.cc:5:34: error: 'endl' was not declared in this scope
5 | cout << "YES" << endl;
| ^~~~
a.cc:7:17: error: 'cout' was not declared in this scope
7 | cout << "NO" << endl;
| ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
7 | cout << "NO" << endl;
| ^~~~
|
s952120649 | p03693 | C | #include<stdio.h>
#include<math.h>
#include<algorithm>
#include<queue>
#include<deque>
#include<string>
#include<string.h>
#include<vector>
#include<set>
#include<map>
#include<bitset>
#include<stdlib.h>
#include<cassert>
#include<time.h>
#include<bitset>
using namespace std;
const long long mod=1000000007;
const long long inf=mod*mod;
const long long d2=(mod+1)/2;
const double EPS=1e-6;
const double PI=acos(-1.0);
int ABS(int a){return max(a,-a);}
long long ABS(long long a){return max(a,-a);}
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a*100+b*10+c)%4==0)printf("YES\n");else printf("NO\n");
}
| main.c:3:9: fatal error: algorithm: No such file or directory
3 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s094488501 | p03693 | C++ | #include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<deque>
#include<queue>
#include<stack>
#include<utility>
#include<array>
#include<cassert>
#include<list>
#include<experimental/any>
#include<cstring>
#include<cctype>
#include<ctime>
#include<cstdbool>
#include<cstdint>
#include<cstddef>
#include<set>
#include<unordered_set>
#include<bitset>
using namespace std;
using experimental::any;
#define SPEEDY cin.tie(0);ios::sync_with_stdio(false);
#define REP(i,n) for(int i=0;i<(n);i++)
#define ARREP(i,n,X) for(int i=0;i<(n);i++)cin>>X[i]
#define FOR(i,X,n) for(int i=(X);i<(n);i++)
#define EREP(i,n) for(int i=1;i<=n;i++)
#define BitFOR(N) REP(Bit,1<<(N))
//#define MODE 1
#ifdef MODE
#define DEB(X) cout<< #X <<": "<<X<<" ";
#define DEB2(X) cout<<X<<" ";
#define ARDEB(i,X) cout<< #X <<"["<<i<<"]: "<<X[i]<<" ";
#define TFDEB(f) (f)? cout<<"true ":cout<<"false ";
#define FORDEB(n,X) for(int i=0;i<(n);i++)ARDEB(i,X)
#define END cout<<endl;
#else
#define DEB(X) {}
#define DEB2(X) {}
#define ARDEB(i,X) {}
#define TFDEB(f) {}
#define FORDEB(n,X) {}
#define END {}
#endif
typedef long long int ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
#define ALL(X) X.begin(),X.end()
struct edge{int to,cost;};
//struct edge{int from,cost,to;};
struct P2{int x,y;};
#define BIT(Bit,n) bitset<n>(Bit)
#define Endl endl
#define YN(f) cout<<((f)?"Yes":"No")<<endl
const int MOD7=1000000007;
const int INF=100000000;
const int SET=1000;
int main(){
int n,a,b;
cin>>n>>a>>b;
if((n*100+a*10+c)%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:72:24: error: 'c' was not declared in this scope
72 | if((n*100+a*10+c)%4==0){
| ^
|
s353168496 | p03693 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
// Your code here!
int x,y,a,b,r,g,b;
cin>>r>>g>>b;
x=r*100+g*10+b;
if(x%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:21: error: redeclaration of 'int b'
6 | int x,y,a,b,r,g,b;
| ^
a.cc:6:15: note: 'int b' previously declared here
6 | int x,y,a,b,r,g,b;
| ^
|
s475003927 | p03693 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((100*a+10*b+c)%4=0){
cout<<"YES"<<endl;
}
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:26: error: lvalue required as left operand of assignment
8 | if((100*a+10*b+c)%4=0){
| ~~~~~~~~~~~~~~^~
|
s524198823 | p03693 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c,x;
cin >> a >> b >> c;
x=100*a+10*b+c;
if(x%4==0)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
| a.cc: In function 'int main()':
a.cc:12:10: error: expected '}' at end of input
12 | return 0;
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s641600048 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
int r,g,b;
cin >> r >> g >> b;
if((100*r+10*g+b)%4==0){
cout << “YES” << endl;
}else{
cout << “NO” << endl;
}
return 0;
} | a.cc:7:11: error: extended character “ is not valid in an identifier
7 | cout << “YES” << endl;
| ^
a.cc:7:11: error: extended character ” is not valid in an identifier
a.cc:9:11: error: extended character “ is not valid in an identifier
9 | cout << “NO” << endl;
| ^
a.cc:9:11: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:11: error: '\U0000201cYES\U0000201d' was not declared in this scope
7 | cout << “YES” << endl;
| ^~~~~
a.cc:9:11: error: '\U0000201cNO\U0000201d' was not declared in this scope
9 | cout << “NO” << endl;
| ^~~~
|
s005635775 | p03693 | C |
int a, b, c;
int main() {
cin >> a >> b >> c;
if((a * 100 + b * 10 + c) % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | main.c: In function 'main':
main.c:5:9: error: 'cin' undeclared (first use in this function)
5 | cin >> a >> b >> c;
| ^~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:45: error: 'cout' undeclared (first use in this function)
6 | if((a * 100 + b * 10 + c) % 4 == 0) cout << "YES" << endl;
| ^~~~
main.c:6:62: error: 'endl' undeclared (first use in this function)
6 | if((a * 100 + b * 10 + c) % 4 == 0) cout << "YES" << endl;
| ^~~~
|
s659406734 | p03693 | C | #include <iostream>
using namespace std;
int a,b,c;
int main() {
cin >> a >> b >> c;
if((a * 100 + b * 10 + c) % 4 == 0){
cout << "YES"" << endI;
}else {
cout << "NO" << endI;
}
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s490469316 | p03693 | Java | import java.util.Scanner;
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((2*g+b)%4==0) {
System.out.println("YES");
}
else {
System.out.println("NO");
}
}
} | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:4: error: illegal character: '\u00a0'
?
^
Main.java:6: error: illegal character: '\u00a0'
?
^
3 errors
|
s913111475 | p03693 | C++ | import java.util.Scanner;
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((2*g+b)%4==0) {
System.out.println("YES");
}
else {
System.out.println("NO");
}
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s469809282 | p03693 | C++ | main :: IO ()
main = do
[r, g, b] <- map (read :: String -> Int) . words <$> getLine
putStr $ (solver g b) ++ "\n"
solver g b =
if (g * 10 + b) `mod` 4 == 0
then "YES"
else "NO"
| a.cc:7:21: error: stray '`' in program
7 | if (g * 10 + b) `mod` 4 == 0
| ^
a.cc:7:25: error: stray '`' in program
7 | if (g * 10 + b) `mod` 4 == 0
| ^
a.cc:1:1: error: 'main' does not name a type
1 | main :: IO ()
| ^~~~
|
s929609215 | p03693 | C++ | #include<bits/stdc+.h>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
cout<<((r*100+g*10+b)%4==0?"YES":"NO")<<endl;
return 0;
} | a.cc:1:9: fatal error: bits/stdc+.h: No such file or directory
1 | #include<bits/stdc+.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s643673182 | p03693 | C++ | r,g,b = gets.split.map(&:to_i)
puts (g+b)%4==0 ? "YES" : "NO" | a.cc:1:1: error: 'r' does not name a type
1 | r,g,b = gets.split.map(&:to_i)
| ^
|
s091390031 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b, a = 0;
cin >> r >> g >> b;
if( g % 2 = 1){
if( b == 2 ){
cout << "YES" << endl;
a = 1;
}else if( b == 6 ){
cout << "YES" << endl;
a = 1;
}
}
else if( g % 2 = 0){
if(b == 0){
cout << "YES" << endl;
a = 1;
}else if( b == 4){
cout << "YES" << endl;
a = 1;
}else if( b == 8){
cout << "YES" << endl;
a = 1;
}
}
if( a = 0){
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
6 | if( g % 2 = 1){
| ~~^~~
a.cc:15:13: error: lvalue required as left operand of assignment
15 | else if( g % 2 = 0){
| ~~^~~
|
s574116817 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b, a = 0;
cin >> r >> g >> b;
if( g % 2 = 1){
if( b == 2 ){
cout << "YES" << endl;
a = 1;
}else if( b == 6 ){
cout << "YES" << endl;
a = 1;
}
}
else if
if( b == 0 ){
cout << "YES" << endl;
a = 1;
}else if( b == 4){
cout << "YES" << endl;
a = 1;
}else if( b == 8){
cout << "YES" << endl;
a = 1;
}
}
if( a = 0){
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
6 | if( g % 2 = 1){
| ~~^~~
a.cc:16:2: error: expected '(' before 'if'
16 | if( b == 0 ){
| ^~
| (
a.cc:19:3: error: 'else' without a previous 'if'
19 | }else if( b == 4){
| ^~~~
a.cc: At global scope:
a.cc:27:1: error: expected unqualified-id before 'if'
27 | if( a = 0){
| ^~
a.cc:30:1: error: expected unqualified-id before 'return'
30 | return 0;
| ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
31 | }
| ^
|
s393211336 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b, a = 0;
cin >> r >> g >> b;
if( g/2 %= 1){
if( b == 2 ){
cout << "YES" << endl;
a = 1;
}else if( b == 6 ){
cout << "YES" << endl;
a = 1;
}
}
else if
if( b == 0 ){
cout << "YES" << endl;
a = 1;
}else if( b == 4){
cout << "YES" << endl;
a = 1;
}else if( b == 8){
cout << "YES" << endl;
a = 1;
}
}
if( a = 0){
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: lvalue required as left operand of assignment
6 | if( g/2 %= 1){
| ~^~
a.cc:16:2: error: expected '(' before 'if'
16 | if( b == 0 ){
| ^~
| (
a.cc:19:3: error: 'else' without a previous 'if'
19 | }else if( b == 4){
| ^~~~
a.cc: At global scope:
a.cc:27:1: error: expected unqualified-id before 'if'
27 | if( a = 0){
| ^~
a.cc:30:1: error: expected unqualified-id before 'return'
30 | return 0;
| ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
31 | }
| ^
|
s488833146 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b, a = 0;
cin >> r >> g >> b;
if( g/2 %= 1){
if( b == 2 ){
cout << "YES" << endl;
a = 1
}else if( b == 6 ){
cout << "YES" << endl;
a = 1
}
}
else if
if( b == 0 ){
cout << "YES" << endl;
a = 1
}else if( b == 4){
cout << "YES" << endl;
a = 1
}else if( b == 8){
cout << "YES" << endl;
a = 1
}
}
if( a = 0){
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: lvalue required as left operand of assignment
6 | if( g/2 %= 1){
| ~^~
a.cc:9:7: error: expected ';' before '}' token
9 | a = 1
| ^
| ;
10 | }else if( b == 6 ){
| ~
a.cc:12:7: error: expected ';' before '}' token
12 | a = 1
| ^
| ;
13 | }
| ~
a.cc:16:2: error: expected '(' before 'if'
16 | if( b == 0 ){
| ^~
| (
a.cc:19:3: error: 'else' without a previous 'if'
19 | }else if( b == 4){
| ^~~~
a.cc:21:7: error: expected ';' before '}' token
21 | a = 1
| ^
| ;
22 | }else if( b == 8){
| ~
a.cc:24:7: error: expected ';' before '}' token
24 | a = 1
| ^
| ;
25 | }
| ~
a.cc: At global scope:
a.cc:27:1: error: expected unqualified-id before 'if'
27 | if( a = 0){
| ^~
a.cc:30:1: error: expected unqualified-id before 'return'
30 | return 0;
| ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
31 | }
| ^
|
s447293469 | p03693 | C | #include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
a=(b*10+c)%4;
printf("%s\n", a?"NO","YES");
return 0;
} | main.c: In function 'main':
main.c:7:30: error: expected ':' before ')' token
7 | printf("%s\n", a?"NO","YES");
| ^
| :
|
s542188065 | p03693 | Java | import java.util.*;
public class main
{
public static void main(String args[])
{
Scanner reader = new Scanner(System.in);
int a=reader.nextInt();
int b=reader.nextInt();
int c=reader.nextInt();
if((100*a+10*b+c)%4==0)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
}
} | Main.java:3: error: class main is public, should be declared in a file named main.java
public class main
^
1 error
|
s920927589 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c; cin >> a >> b >> c;
if ((a*100 + b*10 + c) % 4 == 0) cout << "Yes" << endl;
else cout << "No << endl;
return 0;
} | a.cc:7:18: warning: missing terminating " character
7 | else cout << "No << endl;
| ^
a.cc:7:18: error: missing terminating " character
7 | else cout << "No << endl;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'return'
8 | return 0;
| ^~~~~~
|
s171380163 | p03693 | Java | System.out.println("YES"); | Main.java:1: error: class, interface, enum, or record expected
System.out.println("YES");
^
1 error
|
s052176896 | p03693 | Java | import java.util.*;
import java.io.*;
public class RGB {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Scanner in = new Scanner(new File("RGB"));
int[]arr = new int[3];
String empty = "";
for(int i = 0; i < arr.length; i++)
{
arr[i] = in.nextInt();
empty += arr[i];
}
int num = Integer.parseInt(empty);
if(num % 4 == 0) {
System.out.println("YES");
//System.out.println(num + " is a multiple of 4, and thus YES should be printed.");
}
else {
System.out.println("NO");
//System.out.println(num + " is not a multiple of 4, and thus NO should be printed.");
}
}
}
| Main.java:3: error: class RGB is public, should be declared in a file named RGB.java
public class RGB {
^
1 error
|
s661639781 | p03693 | Java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in));
int[]arr = new int[3];
String empty = "";
for(int i = 0; i < arr.length; i++)
{
arr[i] = in.nextInt();
empty += arr[i];
}
int num = Integer.parseInt(empty);
if(num % 4 == 0) {
System.out.println("YES");
System.out.println(num + " is a multiple of 4, and thus YES should be printed.");
}
else {
System.out.println(num + " is not a multiple of 4, and thus NO should be printed.");
}
}
} | Main.java:8: error: ';' expected
Scanner in = new Scanner(System.in));
^
1 error
|
s427531257 | p03693 | Java | import java.util.Scanner;
public class Prob1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
String rs = String.valueOf(r);
String gs = String.valueOf(g);
String bs = String.valueOf(b);
String num = rs + gs + bs;
int number = Integer.parseInt(num);
if (number % 4 == 0)
System.out.println("YES");
else
System.out.println("NO");
}
} | Main.java:3: error: class Prob1 is public, should be declared in a file named Prob1.java
public class Prob1 {
^
1 error
|
s984936958 | p03693 | Java | public class Prob1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
String rs = String.valueOf(r);
String gs = String.valueOf(g);
String bs = String.valueOf(b);
String num = rs + gs + bs;
int number = Integer.parseInt(num);
if (number % 4 == 0)
System.out.println("YES");
else
System.out.println("NO");
}
} | Main.java:1: error: class Prob1 is public, should be declared in a file named Prob1.java
public class Prob1 {
^
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Prob1
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Prob1
3 errors
|
s414017921 | p03693 | Java |
import Scanner.util.*;
public class Main{
public static void main(String [] args){
inp = new Scanner(System.in);
int r = inp.nextInt();
int g = inp.nextInt();
int b = inp.nextInt();
if(10 * g + b % 4 == 0)
System.out.println("YES");
else
System.out.println("NO");
}
} | Main.java:2: error: package Scanner.util does not exist
import Scanner.util.*;
^
Main.java:6: error: cannot find symbol
inp = new Scanner(System.in);
^
symbol: variable inp
location: class Main
Main.java:6: error: cannot find symbol
inp = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
int r = inp.nextInt();
^
symbol: variable inp
location: class Main
Main.java:8: error: cannot find symbol
int g = inp.nextInt();
^
symbol: variable inp
location: class Main
Main.java:9: error: cannot find symbol
int b = inp.nextInt();
^
symbol: variable inp
location: class Main
6 errors
|
s647348447 | p03693 | Java | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
String rs = String.valueOf(r);
String gs = String.valueOf(g);
String bs = String.valueOf(b);
String num = rs + gs + bs;
int number = Integer.parseInt(num);
if (number % 4 == 0)
System.out.println("YES");
else
System.out.println("NO");
} | Main.java:1: 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)
1 error
|
s499165109 | p03693 | Java | import java.io.*;
import java.util.*;
public class Exp { // "Main" should be used for most online judges
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 ((r * 100 + g * 10 + b) % 4 == 0)
System.out.println("YES");
else
System.out.printf("NO");
}
} | Main.java:4: error: class Exp is public, should be declared in a file named Exp.java
public class Exp { // "Main" should be used for most online judges
^
1 error
|
s548983732 | p03693 | Java | import java.util.Scanner;
public class mult4{
public static void main(String[] args){
Scanner reader = new Scanner(System.in);
int number = 0;
for(int i = 2; i >= 0; i--){
number += reader.nextInt()*Math.pow(10, i);
}
double det = number/4.0;
if((det%1.0) > 0){
System.out.println(" NO");
} else {
System.out.println("YES");
}
}
} | Main.java:3: error: class mult4 is public, should be declared in a file named mult4.java
public class mult4{
^
1 error
|
s635884206 | p03693 | Java |
public class Main{
import Scanner.util.*
public static void main(String [] args){
inp = new Scanner(System.in);
int r = inp.nextInt();
int g = inp.nextInt();
int b = inp.nextInt();
if(10 * g + b % 4 == 0)
System.out.println("YES");
else
System.out.println("NO");
}
} | Main.java:3: error: illegal start of type
import Scanner.util.*
^
Main.java:3: error: <identifier> expected
import Scanner.util.*
^
2 errors
|
s532055603 | p03693 | Java | import java.io.*;
import java.util.*;
public class ICPC_1_P1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int z = sc.nextInt();
int threeDigitValue = 100*x + 10*y + z;
if (threeDigitValue%4 == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:4: error: class ICPC_1_P1 is public, should be declared in a file named ICPC_1_P1.java
public class ICPC_1_P1 {
^
1 error
|
s573521720 | p03693 | Java | import java.util.Scanner;
public class RGB_Cards
{
static void main()
{
Scanner sc=new Scanner(System.in);
System.out.print("Enter the integers: ");
String in=sc.next();
in+=sc.nextLine();
int r=in.charAt(0);
int g=in.charAt(1);
int b=in.charAt(2);
int number=(r*100)+(g*10)+b;
if(number%4==0)
System.out.println("YES");
else
System.out.println("NO");
}
} | Main.java:2: error: class RGB_Cards is public, should be declared in a file named RGB_Cards.java
public class RGB_Cards
^
1 error
|
s237543032 | p03693 | Java | public Main() throws IOException {
Scanner input = new Scanner(System.in);
int r = input.nextInt();
int g = input.nextInt();
int b = input.nextInt();
int newNum = r * 100 + g * 10 + b;
if (newNum % 4 == 0)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
} | Main.java:1: error: class, interface, enum, or record expected
public Main() throws IOException {
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int r = input.nextInt();
^
(use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
if (newNum % 4 == 0)
^
Main.java:13: error: class, interface, enum, or record expected
}
^
Main.java:17: error: class, interface, enum, or record expected
}
^
5 errors
|
s856940990 | p03693 | Java | public class Main {
public static void main(String [] argv) throws Exception{
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int number = a* 100 + b * 10 + c;
if (number % 4 == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
// R G B
}
}
| Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s800680815 | p03693 | Java | import java.util.*;
import java.io.*;
public class main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int r = in.nextInt();
int g = in.nextInt();
int b = in.nextInt();
System.out.println(Integer.parseInt(r+""+g+""+b)%4==0?"YES":"NO");
}
}
| Main.java:4: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s994219064 | p03693 | Java | public class Main { // "Main" should be used for most online judges
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r = sc.nextInt(), g = sc.nextInt(), b = sc.nextInt();
int result = 0;
result = r * 100 + g * 10 + b;
if (result % 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
|
s142253853 | p03693 | C | #include<stdio.h>
int main (void){
int r,g,b,a;
scanf("%d",&r);
scanf("%d",&g);
scanf("%d",&b);
a=r*100+g*10+b;
if(a%4==0){
printf("YES\n");}
else{printf("NO\n");
}
rerurn 0;
}
| main.c: In function 'main':
main.c:12:1: error: 'rerurn' undeclared (first use in this function)
12 | rerurn 0;
| ^~~~~~
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:7: error: expected ';' before numeric constant
12 | rerurn 0;
| ^~
| ;
|
s852101605 | p03693 | C | #include <stdio.h>
int main(){
int x,y,z,sum;
scanf("%d %d %d",&x,&y,&z);
sum = x*100+y+10+z;
if(sum%4=0){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | main.c: In function 'main':
main.c:7:9: error: lvalue required as left operand of assignment
7 | if(sum%4=0){
| ^
|
s720030340 | p03693 | C++ | #include <iostream>
#include <stdio.h>
#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" << endl;
else cout << "NO" << endl;:w
return 0;
} | a.cc: In function 'int main()':
a.cc:12:35: error: expected primary-expression before ':' token
12 | else cout << "NO" << endl;:w
| ^
|
s469730230 | p03693 | C++ | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main(void){
int r,g,b,sum;
cin>>r>>g>>b;
sum+=r*100+g*10+b;
if(sum%4==) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before ')' token
10 | if(sum%4==) cout<<"YES"<<endl;
| ^
|
s923183416 | p03693 | C++ | #include<bits/stdc++.h>
typedef long long ll;
using namespace std;
main(){
int A,B,C,n;
cin >> A >> B >> C;
n = A*100+B*10+C;
if(n%4)cout << "NO" << endl;
else << "YES" << endl;
} | a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '<<' token
9 | else << "YES" << endl;
| ^~
|
s573575816 | p03693 | Java | import java.utill.Scanner;
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();
scan.close();
if((r * 100 + g * 10 + b)%4 == 0) {
System.out.print("YES");
} else {
System.out.print("NO");
}
}
} | Main.java:6: error: illegal character: '\u3000'
??Scanner scan = new Scanner(System.in);
^
Main.java:6: error: illegal character: '\u3000'
??Scanner scan = new Scanner(System.in);
^
Main.java:7: error: illegal character: '\u3000'
??
^
Main.java:7: error: illegal character: '\u3000'
??
^
Main.java:8: error: illegal character: '\u3000'
??int r = scan.nextInt();
^
Main.java:8: error: illegal character: '\u3000'
??int r = scan.nextInt();
^
Main.java:9: error: illegal character: '\u3000'
??int g = scan.nextInt();
^
Main.java:9: error: illegal character: '\u3000'
??int g = scan.nextInt();
^
Main.java:10: error: illegal character: '\u3000'
??int b = scan.nextInt();
^
Main.java:10: error: illegal character: '\u3000'
??int b = scan.nextInt();
^
Main.java:11: error: illegal character: '\u3000'
??
^
Main.java:11: error: illegal character: '\u3000'
??
^
Main.java:12: error: illegal character: '\u3000'
??scan.close();
^
Main.java:12: error: illegal character: '\u3000'
??scan.close();
^
Main.java:13: error: illegal character: '\u3000'
??
^
Main.java:13: error: illegal character: '\u3000'
??
^
Main.java:14: error: illegal character: '\u3000'
??if((r * 100 + g * 10 + b)%4 == 0) {
^
Main.java:14: error: illegal character: '\u3000'
??if((r * 100 + g * 10 + b)%4 == 0) {
^
Main.java:15: error: illegal character: '\u3000'
?? System.out.print("YES");
^
Main.java:15: error: illegal character: '\u3000'
?? System.out.print("YES");
^
Main.java:16: error: illegal character: '\u3000'
??
^
Main.java:16: error: illegal character: '\u3000'
??
^
Main.java:17: error: illegal character: '\u3000'
??} else {
^
Main.java:17: error: illegal character: '\u3000'
??} else {
^
Main.java:18: error: illegal character: '\u3000'
?? System.out.print("NO");
^
Main.java:18: error: illegal character: '\u3000'
?? System.out.print("NO");
^
Main.java:19: error: illegal character: '\u3000'
??}
^
Main.java:19: error: illegal character: '\u3000'
??}
^
Main.java:20: error: illegal character: '\u3000'
??
^
Main.java:20: error: illegal character: '\u3000'
??
^
Main.java:21: error: illegal character: '\u3000'
??}
^
Main.java:21: error: illegal character: '\u3000'
??}
^
Main.java:22: error: illegal character: '\u3000'
??
^
Main.java:22: error: illegal character: '\u3000'
??
^
Main.java:23: error: illegal character: '\u3000'
??}
^
Main.java:23: error: illegal character: '\u3000'
??}
^
Main.java:23: error: illegal start of type
??}
^
37 errors
|
s130261960 | p03693 | C++ | #include <stdio.h>
int main()
{
int r,g,b,a;
scanf("%d", %r);
scanf("%d", %g);
scanf("%d", %b);
a = r*100 + g*10 + b;
if(a%4 == 0){
printf("YES");
}else{
printf("NO");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before '%' token
6 | scanf("%d", %r);
| ^
a.cc:7:16: error: expected primary-expression before '%' token
7 | scanf("%d", %g);
| ^
a.cc:8:16: error: expected primary-expression before '%' token
8 | scanf("%d", %b);
| ^
|
s935452609 | p03693 | C++ | #include <stdio.h>
int main(void){
int r;
int g;
int b;
int goukei;
scanf("%d%d%d",&r,&g,&b);
goukei = ((100*r)+(10*g)+b)%4;
if(goukei==0){
printf(YES);
}else{
printf("NO");
}
} | a.cc: In function 'int main()':
a.cc:14:8: error: 'YES' was not declared in this scope
14 | printf(YES);
| ^~~
|
s256423507 | p03693 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class BC64a {
public static void main(String args[]) {
int r, g, b;
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String buf = br.readLine();
String color[] = buf.split(" ");
r = Integer.parseInt(color[0]);
g = Integer.parseInt(color[1]);
b = Integer.parseInt(color[2]);
int num = g * 10 + b;
if ((num % 4) == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} catch(Exception e) {
System.err.println("Exception: " + e);
}
}
} | Main.java:4: error: class BC64a is public, should be declared in a file named BC64a.java
public class BC64a {
^
1 error
|
s637990952 | p03693 | C++ | #include <stdio.h>
int main() {
int r, g, b, result;
scanf("%d %d %d", &r, &g, &b);
if(r<1 || g<1 || b<1 || r>9 | g>9 || b>9){
printf("error.\n");
retutn 1;
}
result = r*100 + g*10 + b;
if(result%4 == 0) printf("YES.");
else printf("NO.");
return 0;
} | a.cc: In function 'int main()':
a.cc:7:25: error: 'retutn' was not declared in this scope
7 | retutn 1;
| ^~~~~~
|
s470232444 | p03693 | C | #include <stdio.h>
int main() {
int r;
int g;
int b;
char buf[128];
*fgets(buf, 128, stdin);
sscanf(buf, "%d", &r);
*fgets(buf, 128, stdin);
sscanf(buf, "%d", &g);
char*fgets(buf, 128, stdin);
sscanf(buf, "%d", &b);
int X;
X = ((100 * r) + (10 * g) + b);
if(X >= 1000){
printf("error");
return 1;
}
int Y;
Y = X % 4;
if(Y == 0){
printf("YES");
printf("\n");
} else {
printf("NO");
printf("\n");
}
return 0;
} | main.c: In function 'main':
main.c:14:24: error: expected ')' before numeric constant
14 | char*fgets(buf, 128, stdin);
| ^~~~
| )
|
s012876203 | p03693 | C++ | #include <stdlib.h>
int main() {
int r, g, b, result, n;
scanf("%d %d %d", &r, &g, &b);
result = r*100 + g*10 + b;
if(result%4 == 0) printf("YES.");
else printf("NO.");
} | a.cc: In function 'int main()':
a.cc:4:17: error: 'scanf' was not declared in this scope
4 | scanf("%d %d %d", &r, &g, &b);
| ^~~~~
a.cc:6:35: error: 'printf' was not declared in this scope
6 | if(result%4 == 0) printf("YES.");
| ^~~~~~
a.cc:2:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
1 | #include <stdlib.h>
+++ |+#include <cstdio>
2 | int main() {
a.cc:7:22: error: 'printf' was not declared in this scope
7 | else printf("NO.");
| ^~~~~~
a.cc:7:22: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
|
s909722435 | p03693 | C++ | #include <stdio.h>
void main() {
int r, g, b, result;
do{
scanf("%d %d %d", &r, &g, &b);
}while(r<0 || g<0 || b<0 || r>9 || g>9 ||b>9);
result = r*100 + g*10 + b;
if(result%4 == 0) printf("YES.");
else printf("NO.");
} | a.cc:2:9: error: '::main' must return 'int'
2 | void main() {
| ^~~~
|
s169639962 | p03693 | C | #include <stdio.h>
int main(){
int r,g,b,color;
scanf("%d %d %d",&r,&g,%b);
color = 100*r+10*g+b;
if((color%4)==0){
printf("YES\n");
}else{
printf("NO\n");
}
}
| main.c: In function 'main':
main.c:5:26: error: expected expression before '%' token
5 | scanf("%d %d %d",&r,&g,%b);
| ^
|
s836379471 | p03693 | C | #include <stdio.h>
int main(void) {
int r, g, b;
int j;
scanf("%d", &r);
scanf("%d", &g);
scanf("%d", &b);
j = r * 100 + g * 10 + b;
if (j % 4 == 0) {
printf("Yes\n");
}
else {
print("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
16 | print("No\n");
| ^~~~~
| printf
|
s270749808 | p03693 | C | #include <stdio.h>
int main(void) {
int r, g, b;
int j;
scanf("%d,%d,%d", &r, &g, &b);
j = r * 100 + g * 10 + b;
if (j % 4 == 0) {
printf("Yes\n");
}
else {
print("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:14:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
14 | print("No\n");
| ^~~~~
| printf
|
s184452188 | p03693 | C | #include <stdio.h>
int main(void) {
int a[3];
int j;
scanf("%d,%d,%d", &a[0],&a[1],&a[2]);
j = a[0] * 100 + a[1] * 10 + a[2];
if (j % 4 == 0)
printf("Yes\n");
else
print("No\n");
return 0;
} | main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
13 | print("No\n");
| ^~~~~
| printf
|
s123465537 | p03693 | C | #include <stdio.h>
int main(void) {
int a[3];
int j;
scanf("%d,%d,%d", &a[0],&a[1],&a[2]);
j = a[0] * 100 + a[1] * 10 + a[2];
if (j % 4 == 0)
printf("Yes\n");
else
print("No\n");
return 0;
} | main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
13 | print("No\n");
| ^~~~~
| printf
|
s612851022 | p03693 | C | #include <stdio.h>
int main(void) {
int a[3];
int i,j;
for (i = 0; i < 3; i++) {
do {
scanf("%d", &a[i]);
} while (a[i] < 0 || 9 < a[i]);
}
j = a[0] * 100 + a[1] * 10 + a[2];
if (j % 4 == 0)
printf("Yes");
else
print("No");
return 0;
} | main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
16 | print("No");
| ^~~~~
| printf
|
s102779525 | p03693 | C | #include <stdio.h>
int main(void) {
int a[3];
int i,j;
for (i = 0; i < 3; i++) {
do {
scanf("%d", &a[i]);
} while (a[i] < 0 || 9 < a[i]);
}
j = a[0] * 100 + a[1] * 10 + a[2];
if (j % 4 == 0)
printf("Yes");
else
print("No");
return 0;
} | main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
16 | print("No");
| ^~~~~
| printf
|
s410675387 | p03693 | C | #include <stdio.h>
int main(void) {
int a[3];
int i,j;
for (i = 0; i < 3; i++) {
do {
scanf("%d", &a[i]);
} while (a[i] < 0 || 9 < a[i]);
}
j = a[0] * 100 + a[1] * 10 + a[2];
if (j % 4 == 0)
printf("Yes");
else
print("No");
return 0;
} | main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
16 | print("No");
| ^~~~~
| printf
|
s794802201 | p03693 | C++ | #include <stdio.h>
#include <iostream>
using namespace std;
int main(){
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:5: error: extended character × is not valid in an identifier
8 | if((100×r+10×g+b)%4==0){
| ^
a.cc:8:11: error: extended character × is not valid in an identifier
8 | if((100×r+10×g+b)%4==0){
| ^
a.cc: In function 'int main()':
a.cc:8:5: error: unable to find numeric literal operator 'operator""\U000000d7r'
8 | if((100×r+10×g+b)%4==0){
| ^~~~~
a.cc:8:11: error: unable to find numeric literal operator 'operator""\U000000d7g'
8 | if((100×r+10×g+b)%4==0){
| ^~~~
|
s565365681 | p03693 | C++ | #include <stdio.h>
#include <iostream>
using namespace std;
int main(){
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: In function 'int main()':
a.cc:8:5: error: unable to find numeric literal operator 'operator""\U0000ff0ar'
8 | if((100*r+10*g+b)%4==0){
| ^~~~~~
a.cc:8:12: error: unable to find numeric literal operator 'operator""\U0000ff0ag'
8 | if((100*r+10*g+b)%4==0){
| ^~~~~
|
s821347547 | p03693 | C++ | #include <stdio.h>
#include <iostream>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
if((100r+10g+b)%4==0){
cout<<"yes"<<endl;
}else{
cout<<"no"<<endl;
}
} | a.cc:8:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
8 | if((100r+10g+b)%4==0){
| ^~
a.cc: In function 'int main()':
a.cc:8:5: error: fixed-point types not supported in C++
8 | if((100r+10g+b)%4==0){
| ^~~~
a.cc:8:10: error: unable to find numeric literal operator 'operator""g'
8 | if((100r+10g+b)%4==0){
| ^~~
|
s002882684 | p03693 | C++ | using System;
using System.Collections.Generic;
namespace ProCon
{
class Program
{
static void Main(string[] args)
{
string[] input = Console.ReadLine().Split(' ');
int r = int.Parse(input[0]);
int g = int.Parse(input[1]);
int b = int.Parse(input[2]);
if( (r*100+g*10+b)%4 == 0)
{
Console.WriteLine("YES");
}
else
{
Console.WriteLine("NO");
}
}
}
}
| a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:8:26: error: 'string' has not been declared
8 | static void Main(string[] args)
| ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
8 | static void Main(string[] args)
| ^~~~
a.cc:24:6: error: expected ';' after class definition
24 | }
| ^
| ;
a.cc: In static member function 'static void ProCon::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
10 | string[] input = Console.ReadLine().Split(' ');
| ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
10 | string[] input = Console.ReadLine().Split(' ');
| ^
a.cc:11:21: error: expected primary-expression before 'int'
11 | int r = int.Parse(input[0]);
| ^~~
a.cc:12:21: error: expected primary-expression before 'int'
12 | int g = int.Parse(input[1]);
| ^~~
a.cc:13:21: error: expected primary-expression before 'int'
13 | int b = int.Parse(input[2]);
| ^~~
a.cc:16:17: error: 'Console' was not declared in this scope
16 | Console.WriteLine("YES");
| ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
20 | Console.WriteLine("NO");
| ^~~~~~~
|
s582204239 | p03693 | C++ | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon
{
class Program
{
static void Main(string[] args)
{
string[] input = Console.ReadLine().Split(' ');
int r = int.Parse(input[0]);
int g = int.Parse(input[1]);
int b = int.Parse(input[2]);
if( (r*100+g*10+b)%4 == 0)
{
Console.WriteLine("YES");
}
else
{
Console.WriteLine("NO");
}
}
}
}
| a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.IO;
| ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
4 | using System.Linq;
| ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
5 | using System.Text;
| ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
6 | using System.Threading.Tasks;
| ^~~~~~
a.cc:11:26: error: 'string' has not been declared
11 | static void Main(string[] args)
| ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
11 | static void Main(string[] args)
| ^~~~
a.cc:26:6: error: expected ';' after class definition
26 | }
| ^
| ;
a.cc: In static member function 'static void ProCon::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
13 | string[] input = Console.ReadLine().Split(' ');
| ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
13 | string[] input = Console.ReadLine().Split(' ');
| ^
a.cc:14:21: error: expected primary-expression before 'int'
14 | int r = int.Parse(input[0]);
| ^~~
a.cc:15:21: error: expected primary-expression before 'int'
15 | int g = int.Parse(input[1]);
| ^~~
a.cc:16:21: error: expected primary-expression before 'int'
16 | int b = int.Parse(input[2]);
| ^~~
a.cc:19:17: error: 'Console' was not declared in this scope
19 | Console.WriteLine("YES");
| ^~~~~~~
a.cc:23:17: error: 'Console' was not declared in this scope
23 | Console.WriteLine("NO");
| ^~~~~~~
|
s176174184 | p03693 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int r,g,b,num;
cin >> r,g,b;
num = 100*r + 10*g + b % 4
if(num % 4 == 0){
cout << "YES";
}
else{
cout << "NO";
}
getchar();
return 0;
} | a.cc: In function 'int main()':
a.cc:12:35: error: expected ';' before 'if'
12 | num = 100*r + 10*g + b % 4
| ^
| ;
13 | if(num % 4 == 0){
| ~~
a.cc:16:9: error: 'else' without a previous 'if'
16 | else{
| ^~~~
|
s512818112 | p03693 | Java |
import java.util.Scanner;
public class Main {
private static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int r = Integer.parseInt(scan.next());
int g = Integer.parseInt(scan.next());
int b = Integer.parseInt(scan.next());
int numm = 100*r + 10*g + b;
String ans = (num%4 == 0 ? "YES" : "NO");
System.out.println(ans);
scan.close();
}
}
| Main.java:14: error: cannot find symbol
String ans = (num%4 == 0 ? "YES" : "NO");
^
symbol: variable num
location: class Main
1 error
|
s040001270 | p03693 | Java |
import java.util.Scanner;
public class Main {
private static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int r = Integer.parseInt(scan.close());
int g = Integer.parseInt(scan.close());
int b = Integer.parseInt(scan.close());
int numm = 100*r + 10*g + b;
String ans = num%4 == 0 ? "YES" : "NO";
System.out.println(ans);
scan.close();
}
}
| Main.java:9: error: 'void' type not allowed here
int r = Integer.parseInt(scan.close());
^
Main.java:10: error: 'void' type not allowed here
int g = Integer.parseInt(scan.close());
^
Main.java:11: error: 'void' type not allowed here
int b = Integer.parseInt(scan.close());
^
Main.java:14: error: cannot find symbol
String ans = num%4 == 0 ? "YES" : "NO";
^
symbol: variable num
location: class Main
4 errors
|
s616820502 | p03693 | C++ | #include<iostream>
using namespace std;
int main(void){
int r;
int g;
int b;
cin >> r >> g >> b ;
if((r*100 + g*10 + c)% 4 == 0){
cout << "YES";
}else{
cout << "No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:28: error: 'c' was not declared in this scope
10 | if((r*100 + g*10 + c)% 4 == 0){
| ^
|
s732187787 | p03693 | C++ | #include<iostream>
using namespace std;
int main(void){
int r;
int g;
int b;
cin >> r >> g >> b ;
if((r*100 + g+10 + c)% 4 == 0){
cout << "YES";
}else{
cout << "No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:28: error: 'c' was not declared in this scope
10 | if((r*100 + g+10 + c)% 4 == 0){
| ^
|
s305489638 | p03693 | C++ | #include<iostream>
using namespace std;
int main(void){
int r;
int g;
int b;
cin >> r >> g >> b ;
if((r*100 + g+10 + c)% 4 == 0){
cout << "YES";
}else{
cout << "No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:28: error: 'c' was not declared in this scope
10 | if((r*100 + g+10 + c)% 4 == 0){
| ^
|
s699191830 | p03693 | C++ | # -*- coding: utf-8 -*-
import sys
import subprocess
import json
import time
import math
import re
import sqlite3
r, g, b = map(int, input().split())
if (g*10 + b) % 4 == 0: print("YES")
else: print("NO")
| a.cc:1:3: error: invalid preprocessing directive #-
1 | # -*- coding: utf-8 -*-
| ^
a.cc:3:1: error: 'import' does not name a type
3 | import sys
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
|
s494917787 | p03693 | Java | import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] a = { 0, 0, 0, 0 };
int[] b = { 0, 0, 0, 0 };
int n = 0;
for (int i = 1; i < 4; i++) {
do {
do {
a[i] = stdIn.nextInt();
} while (a[i] < 0 && 10 < a[i]);
for (int j = 1; j <= i; j++) {
if (b[j] == a[i]) {
n = 1;
break;
}
else
n = 0;
}
b[i] = a[i];
} while (n == 1);
}
System.out.println();
n = a[1]*100+a[2]*10+a[3];
if(n % 4 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
| Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s953123761 | p03693 | C | include<stdio.h>
int main{
int r,b,g;
int sum;
printf("数字の入力");
scanf("%d %d %d",&r,&b,&g);
sum = r*100 + b*10 + g;
if(sum%4 == 0){
printf("YES");
}else {
printf("NO");
}
return 0;
}
| main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s976699380 | p03693 | Java | import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int d = a * 100 + b * 10 + c;
Boolean h = (d % 4 == 0);
if (h == true){
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
| Main.java:2: error: class test is public, should be declared in a file named test.java
public class test {
^
1 error
|
s054687054 | p03693 | Java | import java.util.Scanner;
public class atooder01 {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] a = { 0, 0, 0, 0 };
int[] b = { 0, 0, 0, 0 };
int n = 0;
for (int i = 1; i < 4; i++) {
do {
do {
a[i] = stdIn.nextInt();
} while (a[i] < 0 && 10 < a[i]);
for (int j = 1; j <= i; j++) {
if (b[j] == a[i]) {
n = 1;
break;
}
else
n = 0;
}
b[i] = a[i];
} while (n == 1);
}
System.out.println();
n = a[1]*100+a[2]*10+a[3];
if(n % 4 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
| Main.java:3: error: class atooder01 is public, should be declared in a file named atooder01.java
public class atooder01 {
^
1 error
|
s883817616 | p03693 | Java | import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] a = { 0, 0, 0, 0 };
int[] b = { 0, 0, 0, 0 };
int n = 0;
for (int i = 1; i < 4; i++) {
do {
do {
a[i] = stdIn.nextInt();
} while (a[i] < 0 && 10 < a[i]);
for (int j = 1; j <= i; j++) {
if (b[j] == a[i]) {
n = 1;
break;
}
else
n = 0;
}
b[i] = a[i];
} while (n == 1);
}
System.out.println();
n = a[1]*100+a[2]*10+a[3];
if(n % 4 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
| Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s642128301 | p03693 | Java | import java.util.Scanner;
public class atooder01 {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] a = { 0, 0, 0, 0 };
int[] b = { 0, 0, 0, 0 };
int n = 0;
for (int i = 1; i < 4; i++) {
do {
do {
a[i] = stdIn.nextInt();
} while (a[i] < 0 && 10 < a[i]);
for (int j = 1; j <= i; j++) {
if (b[j] == a[i]) {
n = 1;
break;
}
else
n = 0;
}
b[i] = a[i];
} while (n == 1);
}
System.out.println();
n = a[1]*100+a[2]*10+a[3];
if(n % 4 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
| Main.java:3: error: class atooder01 is public, should be declared in a file named atooder01.java
public class atooder01 {
^
1 error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.