submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s128681131 | p03693 | C++ | #include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(void)
{
char r[10];
char g[10];
char b[10];
char s[20];
cin >> r >> g >> b;
sprintf_s (s,"%s%s%s",r,g,b);
int i = atoi(s);
if (i % 4 == 0)
{
cout << "Yes";
}
else
{
cout<<"No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
13 | sprintf_s (s,"%s%s%s",r,g,b);
| ^~~~~~~~~
| sprintf
|
s035542099 | p03693 | C++ | #include<iostream>
using namespace std;
int main()
{
int valuePlace100, valuePlace10, valuePlace1;
cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
if(sum % 4 == 0)
cout << "YES";
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'sum' was not declared in this scope
7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
| ^~~
a.cc:7:10: error: 'valuePlace' was not declared in this scope; did you mean 'valuePlace1'?
7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
| ^~~~~~~~~~
| valuePlace1
|
s726457332 | p03693 | C++ | #include<iostream>
int main()
{
int valuePlace100, valuePlace10, valuePlace1;
cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
if(sum % 4 == 0)
cout << "YES";
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
| ^~~
| 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:3: error: 'sum' was not declared in this scope
7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
| ^~~
a.cc:7:10: error: 'valuePlace' was not declared in this scope; did you mean 'valuePlace1'?
7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
| ^~~~~~~~~~
| valuePlace1
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "YES";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s970601485 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r,g,b,make;
cin >> r >> g >> b;
make = 100 * r + 10 * g + b;
if(make % 4 == 0){
cout << "Yes";
}else{
cout "No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before string constant
11 | cout "No";
| ^~~~~
| ;
|
s059134171 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r,g,b,make;
cin >> r >> g >> b;
make = 100 * r + 10 * g + b;
if(make % 4 == 0){
cout << 'Yes';
}else{
cout 'No';
}
return 0;
} | a.cc:9:11: warning: multi-character character constant [-Wmultichar]
9 | cout << 'Yes';
| ^~~~~
a.cc:11:8: warning: multi-character character constant [-Wmultichar]
11 | cout 'No';
| ^~~~
a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before '\x4e6f'
11 | cout 'No';
| ^~~~~
| ;
|
s430257095 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
a = g * 10 + b;
if (a % 4 == 0) {cout << "Yes" << endl;}
else {cout << "No" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'a' was not declared in this scope
7 | a = g * 10 + b;
| ^
|
s981623959 | p03693 | C++ | #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:7:23: error: lvalue required as left operand of assignment
7 | if ((100*r+10*g+b)% 4 = 0) cout << "Yes" << endl;
| ~~~~~~~~~~~~~~^~~
|
s374923496 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int a, g, b;
cin >> r >> g >> b;
a = g * 10 + b;
if (a % 4 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: 'r' was not declared in this scope
6 | cin >> r >> g >> b;
| ^
|
s481705461 | p03693 | Java | import java.util.*;
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((r*100+g*10+b)%4==0){
System.out.print("YES")
}else{
System.out.print("NO")
}
}
} | Main.java:11: error: ';' expected
System.out.print("YES")
^
Main.java:13: error: ';' expected
System.out.print("NO")
^
2 errors
|
s029510224 | p03693 | C++ | #include <iostream>
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:14:2: error: expected '}' at end of input
14 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s382827748 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
int niketa = g*10+b;
if(niketa % 4 == 0){
cout << "YES" << endl;}
else{
cout << "NO" << endl;}
| a.cc: In function 'int main()':
a.cc:13:27: error: expected '}' at end of input
13 | cout << "NO" << endl;}
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s540271349 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r,g,b;
cin << r << g << b;
int niketa = g*10+b;
if(niketa % 4 == 0){
cout >> "YES" >> endl;}
else{
cout >> "NO" >> endl;} | a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
7 | cin << r << g << b;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:7:7: note: candidate: 'operator<<(int, int)' (built-in)
7 | cin << r << g << b;
| ~~~~^~~~
a.cc:7:7: 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | 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:7:10: required from here
7 | 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)
| ^~~~~~~~
a.cc:11:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
11 | cout >> "YES" >> endl;}
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:55:
/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 |
s772321258 | p03693 | C++ | #include <cstdio>
#include <string>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
if((g*10+b)%4==0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
8 | cin >> r >> g >> b;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <string>
+++ |+#include <iostream>
3 |
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << "YES" << endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
10 | cout << "YES" << endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include <string>
+++ |+#include <ostream>
3 |
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "NO" << endl;
| ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:21: error: 'endl' was not declared in this scope
12 | cout << "NO" << endl;
| ^~~~
a.cc:12:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s965667468 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int number = 10 * b + c;
if(number % 4 = 0){
cout << 'Yes' << endl;
}else{
cout << 'No' << endl;
}
return 0;
} | a.cc:9:11: warning: multi-character character constant [-Wmultichar]
9 | cout << 'Yes' << endl;
| ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
11 | cout << 'No' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(number % 4 = 0){
| ~~~~~~~^~~
|
s610011280 | p03693 | C++ | #include <iostream>
using namespace std;
int a,b,c;
cin >> a >> b >> c;
int number = 10 * b + c;
if(number % 4 = 0){
cout << 'Yes' << endl;
}else{
cout << 'No' << endl;
}
return 0;
} | a.cc:8:11: warning: multi-character character constant [-Wmultichar]
8 | cout << 'Yes' << endl;
| ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
10 | cout << 'No' << endl;
| ^~~~
a.cc:4:1: error: 'cin' does not name a type
4 | cin >> a >> b >> c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(number % 4 = 0){
| ^~
a.cc:9:4: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
a.cc:12:1: error: expected unqualified-id before 'return'
12 | return 0;
| ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s084315518 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
char a,b,c;
cin >> a >> b >> c;
int number = 100 * a + 10 * b + c;
if(number % 4 = 0){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(number % 4 = 0){
| ~~~~~~~^~~
|
s784030841 | p03693 | C | #include<stdio.h>
int main (){
int a,b,c;
scanf ("%d%d%d",&a,&b,&c);
if ((10*b+c)%4==0){
printf ("YES");
}
else{
printf ("NO")
}
return 0;
} | main.c: In function 'main':
main.c:9:16: error: expected ';' before '}' token
9 | printf ("NO")
| ^
| ;
10 | }
| ~
|
s684940878 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:7:29: error: lvalue required as left operand of assignment
7 | if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
| ~~~~~~~~~~~~~~~~~~~^~~
|
s385890990 | p03693 | C++ | #include<iostream>
int main(){
int r, g, b;
cin >> r >> g >> b;
if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: 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:25: error: lvalue required as left operand of assignment
6 | if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
| ~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
| ^~~~
| 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:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | 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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | else cout << "NO" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s517137846 | p03693 | C++ | temp = input().rstrip().split(" ")
r = temp[0]
g = temp[1]
b = temp[2]
ans = int(r+g+b)
if ans % 4 == 0 :
print("YES")
else:
print("NO") | a.cc:1:1: error: 'temp' does not name a type
1 | temp = input().rstrip().split(" ")
| ^~~~
|
s359266296 | p03693 | C++ | #include <iostream>
use namespace 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;
}
| a.cc:3:1: error: 'use' does not name a type
3 | use namespace std;
| ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> 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:34: error: expected primary-expression before '==' token
7 | if(((r*100) + (g*10) + b) % 4) == 0) cout << "YES" << endl;
| ^~
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
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)
| ^~~~
|
s709109388 | p03693 | C++ | #include<stdio.h>
int main()
{
int r g b sum;
scanf("%d %d %d",&r,&g,&b);
sum = 2*g + b;
if (sum % 4 == 0) printf("YES");
else printf ("NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:4:15: error: expected initializer before 'g'
4 | int r g b sum;
| ^
a.cc:5:27: error: 'r' was not declared in this scope
5 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:5:30: error: 'g' was not declared in this scope
5 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:5:33: error: 'b' was not declared in this scope
5 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:6:9: error: 'sum' was not declared in this scope
6 | sum = 2*g + b;
| ^~~
|
s236205557 | 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"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| std::basic_ostream<char>
a.cc:6:31: note: candidate: 'operator==(int, int)' (built-in)
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1199: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>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1274: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>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<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:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| |
s339368385 | 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"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| std::basic_ostream<char>
a.cc:6:31: note: candidate: 'operator==(int, int)' (built-in)
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1199: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>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1274: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>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<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:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| ^
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl;
| |
s872871262 | 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"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| std::basic_ostream<char>
a.cc:6:31: note: candidate: 'operator==(int, int)' (built-in)
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1199: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>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1274: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>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<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:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| ^
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:33: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl;
| |
s996358347 | p03693 | C++ | $0=($2*10+$3)%4?"NO":"YES" | a.cc:1:1: error: '$0' does not name a type
1 | $0=($2*10+$3)%4?"NO":"YES"
| ^~
|
s433537796 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main() {
//cout.precision(10);
int a, b, ;
cin >> a >> b >> c;
if(b * 10 + c % 4 == 0){
cout << "YES" <<endl;
} else {
cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:15: error: expected unqualified-id before ';' token
12 | int a, b, ;
| ^
a.cc:13:22: error: 'c' was not declared in this scope
13 | cin >> a >> b >> c;
| ^
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:10:12: note: to match this '{'
10 | int main() {
| ^
|
s495854957 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main() {
//cout.precision(10);
int a, b, ;
cin >> a >> b >> c;
if(b * 10 + c % 4 == 0){
cout << "Yes" <<endl;
} else {
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:15: error: expected unqualified-id before ';' token
12 | int a, b, ;
| ^
a.cc:13:22: error: 'c' was not declared in this scope
13 | cin >> a >> b >> c;
| ^
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:10:12: note: to match this '{'
10 | int main() {
| ^
|
s712794972 | p03693 | C++ | public:
| a.cc:1:1: error: expected unqualified-id before 'public'
1 | public:
| ^~~~~~
|
s250000493 | p03693 | C++ | #include<iostream>
using namespace std
int main(){
int r,g,b;
cin>>r>>g>>b;
((10*g+r)%4==0)?cout<<"YES":cout<<"NO";
return 0;
}
| a.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 | int main(){
| ~~~
|
s638475749 | p03693 | C++ | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
using namespace std;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int r, g, g;
cin >> r >> g >> b;
cout << ((r*100+g*10+b)%4==0 ?"YES":"NO") << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:19:19: error: redeclaration of 'int g'
19 | int r, g, g;
| ^
a.cc:19:16: note: 'int g' previously declared here
19 | int r, g, g;
| ^
a.cc:20:26: error: 'b' was not declared in this scope
20 | cin >> r >> g >> b;
| ^
|
s556484586 | p03693 | C | #include <stdio.h>
int main(){
int r,g,b,s;
scanf("%d %d %d",&r,&g,&b);
s=r*100+g*10+b;
if (s%4 == 0) printf("YES\n");
else printf("NO\n);
return 0;
} | main.c: In function 'main':
main.c:7:15: warning: missing terminating " character
7 | else printf("NO\n);
| ^
main.c:7:15: error: missing terminating " character
7 | else printf("NO\n);
| ^~~~~~~
main.c:8:3: error: expected expression before 'return'
8 | return 0;
| ^~~~~~
main.c:8:12: error: expected ';' before '}' token
8 | return 0;
| ^
| ;
9 | }
| ~
|
s504135172 | p03693 | C | int main(){
int r,g,b,s;
scanf("%d %d %d",&r,&g,&b);
s=r*100+g*10+b;
if (s%4 == 0) printf("YES\n");
else printf("NO\n);
return 0;
} | main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | scanf("%d %d %d",&r,&g,&b);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | scanf("%d %d %d",&r,&g,&b);
| ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | if (s%4 == 0) printf("YES\n");
| ^~~~~~
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
6 | else printf("NO\n);
| ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:15: warning: missing terminating " character
6 | else printf("NO\n);
| ^
main.c:6:15: error: missing terminating " character
6 | else printf("NO\n);
| ^~~~~~~
main.c:7:3: error: expected expression before 'return'
7 | return 0;
| ^~~~~~
main.c:7:12: error: expected ';' before '}' token
7 | return 0;
| ^
| ;
8 | }
| ~
|
s260924905 | p03693 | C | main(){
int r,g,b,s;
scanf("%d %d %d",r,g,b);
s=r*100+g*10+b;
if (s%4 == 0) printf("YES\n");
else printf("NO\n);
} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(){
| ^~~~
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | scanf("%d %d %d",r,g,b);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | scanf("%d %d %d",r,g,b);
| ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | if (s%4 == 0) printf("YES\n");
| ^~~~~~
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
6 | else printf("NO\n);
| ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:15: warning: missing terminating " character
6 | else printf("NO\n);
| ^
main.c:6:15: error: missing terminating " character
6 | else printf("NO\n);
| ^~~~~~~
main.c:7:15: error: expected expression before '}' token
7 | }
| ^
main.c:6:15: error: expected ';' before '}' token
6 | else printf("NO\n);
| ^
| ;
7 | }
| ~
|
s968728225 | p03693 | C++ | r, g, b = map(str, input().split( ))
ans = 'NO'
if int(r + g + b) % 4 ==0:
ans = 'YES'
print(ans) | a.cc:2:7: warning: multi-character character constant [-Wmultichar]
2 | ans = 'NO'
| ^~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
5 | ans = 'YES'
| ^~~~~
a.cc:1:1: error: 'r' does not name a type
1 | r, g, b = map(str, input().split( ))
| ^
|
s833836394 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
string ans = "NO";
if((10 * b + c) % 4 == 0) ans = "YES";
cout >> ans;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | cout >> ans;
| ~~~~ ^~ ~~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/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 >> ans;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/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 >> ans;
| ^~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597: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 >> ans;
| ^~~
In file included from /usr/include/c++/14/istream:1109,
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/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 >> ans;
| ^~~
/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 >> ans;
| ^~~
/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 >> ans;
| ^~~
/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 >> ans;
| ^~~
/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 >> ans;
| ^~~
/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 >> ans;
| ^~~
/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 = std::__cxx11::basic_string<char>&]':
a.cc:8:13: required from here
8 | cout >> ans;
| ^~~
/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)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509: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 >> ans;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76: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 >> ans;
| ^~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106: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 >> ans;
| ^~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137: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 >> ans;
| ^~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177: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 >> ans;
| ^~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207: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 >> ans;
| ^~~
/usr/include/c++/14/iomanip:237:5: note: candidate: 'template |
s846752842 | p03693 | C | #include <stdio.h>
int main(void){
int tmp[8] = {0};
int b=0,cnt=0,max=0,i,n;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
if(a[i] >= 3200){
b++;
}else{
tmp[a[i]/400]++;
}
}
for(i=0;i<8;i++){
if(tmp[i] > 0){
cnt++;
}
}
max = cnt;
if(max < 8){
for(;max < 8 && b > 0;b--){
max++;
}
}
if(cnt == 0){
cnt++;
}
}
if(b==0){
max++;
}
printf("%d %d",cnt,max);
} | main.c:30:5: error: expected identifier or '(' before 'if'
30 | if(b==0){
| ^~
main.c:33:12: error: expected declaration specifiers or '...' before string constant
33 | printf("%d %d",cnt,max);
| ^~~~~~~
main.c:33:20: error: unknown type name 'cnt'; did you mean 'int'?
33 | printf("%d %d",cnt,max);
| ^~~
| int
main.c:33:24: error: unknown type name 'max'
33 | printf("%d %d",cnt,max);
| ^~~
main.c:34:1: error: expected identifier or '(' before '}' token
34 | }
| ^
|
s112172314 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
cout<<((100*r+20*g+b)%4==0?"YeS":"NO")<<endl;
return 0;
}
~ | a.cc:10:2: error: expected class-name at end of input
10 | ~
| ^
|
s357811283 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
score = r * 100 + g * 10 + b;
if(score % 4 == 0)cout << "YES" << endl;
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:9: error: 'score' was not declared in this scope
6 | score = r * 100 + g * 10 + b;
| ^~~~~
|
s504135098 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
score = r * 100 + g * 10 + b;
if(score % 4 == 0)cout << "YES" << endl;
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:9: error: 'score' was not declared in this scope
6 | score = r * 100 + g * 10 + b;
| ^~~~~
|
s569030348 | p03693 | C | #include<stdio.h>
int main()
{
int r, g, b, ama;
scanf("%d %d %d", &r, &g, &b);
ama = (10*g+b)%4;
if (ama == 0)
{
printf("YES");
}
else
{
printf("NO");
}
return 0;
}
return 0;
} | main.c:21:2: error: expected identifier or '(' before 'return'
21 | return 0;
| ^~~~~~
main.c:22:2: error: expected identifier or '(' before '}' token
22 | }
| ^
|
s232267018 | p03693 | C | #include<stdio.h>
int main()
{
int r, g, b, ama;
scanf("%d %d %d", &r, &g, &b);
ama = (10*g+b)%4
if (10*g+b % 4 == 0)
{
printf("YES");
}
else
{
printf("NO");
}
printf("%d", ama);
return 0;
} | main.c: In function 'main':
main.c:6:18: error: expected ';' before 'if'
6 | ama = (10*g+b)%4
| ^
| ;
7 |
8 | if (10*g+b % 4 == 0)
| ~~
|
s036552462 | p03693 | C++ | r_str, g_str, b_str = input().split(" ")
print("YES" if int(g_str+b_str)%4 == 0 else "NO") | a.cc:1:1: error: 'r_str' does not name a type
1 | r_str, g_str, b_str = input().split(" ")
| ^~~~~
|
s364629438 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
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:7:3: error: 'S' was not declared in this scope
7 | S=a*100+b*10+c;
| ^
|
s957922442 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((10*a+b)%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout<<"NO"<endl;
| ~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: couldn't deduce template parameter '_CharT'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
10 | cout<<"NO"<endl;
| ^~~~
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::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::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s309725080 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((10*a+b)%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout<<"NO"<endl;
| ~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: couldn't deduce template parameter '_CharT'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
10 | cout<<"NO"<endl;
| ^~~~
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::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::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s473300701 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((10*a+b)%4==0)){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ')' token
6 | if((10*a+b)%4==0)){
| ^
a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout<<"NO"<endl;
| ~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
10 | cout<<"NO"<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:10:16: note: couldn't deduce template parameter '_CharT'
10 | cout<<"NO"<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:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
10 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
10 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:10:16: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
10 | cout<<"NO"<endl;
| ^~~~
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::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::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s314118528 | p03693 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
num = 10*g + b;
if(num%4==0) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'num' was not declared in this scope; did you mean 'enum'?
8 | num = 10*g + b;
| ^~~
| enum
|
s078738950 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define dump(x) cout << (x) << endl
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> V;
int main() {
int r, g, b;
cin >> r >> g >> b;
dump((10*g+b)%4 == 0 ? "YES" : "NO")
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:3: error: expected ';' before 'return'
12 | return 0;
| ^~~~~~
|
s739132619 | p03693 | C++ | include <stdio.h>
int main() {
int r,g,b
scanf("%d %d %d",r,g,b)
if (gb%4!=0) {
printf(NO)
}
if (gb%4=0) {
printf()
} | a.cc:1:1: error: 'include' does not name a type
1 | include <stdio.h>
| ^~~~~~~
|
s741354492 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
char "word1" = YES;
char "word2" = NO;
scanf("%d %d %d",&r,&g,&b);
int c=r*100+g*10+b;
if (c%4==0)
{
printf("%c\n",word1);
}
else
{
printf("%d\n",word2);
}
} | main.c: In function 'main':
main.c:7:8: error: expected identifier or '(' before string constant
7 | char "word1" = YES;
| ^~~~~~~
main.c:8:8: error: expected identifier or '(' before string constant
8 | char "word2" = NO;
| ^~~~~~~
main.c:13:19: error: 'word1' undeclared (first use in this function)
13 | printf("%c\n",word1);
| ^~~~~
main.c:13:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:19: error: 'word2' undeclared (first use in this function)
17 | printf("%d\n",word2);
| ^~~~~
|
s504138726 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
char "word1" = YES;
char "word2" = NO;
scanf("%d %d %d",&r,&g,&b);
int c=r*100+g*10+b;
if (c%4==0)
{
printf("%c\n",word1);
}
else
{
printf("%d\n",word2);
}
} | main.c: In function 'main':
main.c:7:8: error: expected identifier or '(' before string constant
7 | char "word1" = YES;
| ^~~~~~~
main.c:8:8: error: expected identifier or '(' before string constant
8 | char "word2" = NO;
| ^~~~~~~
main.c:13:19: error: 'word1' undeclared (first use in this function)
13 | printf("%c\n",word1);
| ^~~~~
main.c:13:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:19: error: 'word2' undeclared (first use in this function)
17 | printf("%d\n",word2);
| ^~~~~
|
s336339270 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
char a = "YES";
char b = "NO";
scanf("%d %d %d",&r,&g,&b);
int c=r*100+g*10+b;
if (c%4==0)
{
printf("%c\n",a);
}
else
{
printf("%d\n",b);
}
} | main.c: In function 'main':
main.c:7:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
7 | char a = "YES";
| ^~~~~
main.c:8:8: error: conflicting types for 'b'; have 'char'
8 | char b = "NO";
| ^
main.c:6:7: note: previous declaration of 'b' with type 'int'
6 | int b;
| ^
main.c:8:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
8 | char b = "NO";
| ^~~~
|
s722379884 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
char a="YES";
char b="NO";
scanf("%d %d %d",&r,&g,&b);
int c=r*100+g*10+b;
if (c%4==0)
{
printf("%s\n",a);
}
else
{
printf("%s\n",b);
}
} | main.c: In function 'main':
main.c:7:10: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
7 | char a="YES";
| ^~~~~
main.c:8:8: error: conflicting types for 'b'; have 'char'
8 | char b="NO";
| ^
main.c:6:7: note: previous declaration of 'b' with type 'int'
6 | int b;
| ^
main.c:8:10: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
8 | char b="NO";
| ^~~~
|
s913450904 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf("%d %d %d",&r,&g,&b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
}
} | main.c: In function 'main':
main.c:11:19: error: 'YES' undeclared (first use in this function)
11 | printf("%s\n",YES);
| ^~~
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: 'NO' undeclared (first use in this function)
15 | printf("%s\n",NO);
| ^~
|
s785204054 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
}
} | main.c: In function 'main':
main.c:11:19: error: 'YES' undeclared (first use in this function)
11 | printf("%s\n",YES);
| ^~~
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: 'NO' undeclared (first use in this function)
15 | printf("%s\n",NO);
| ^~
|
s017761390 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
}
} | main.c: In function 'main':
main.c:11:19: error: 'YES' undeclared (first use in this function)
11 | printf("%s\n",YES);
| ^~~
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: 'NO' undeclared (first use in this function)
15 | printf("%s\n",NO);
| ^~
|
s761223511 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
} | main.c: In function 'main':
main.c:11:19: error: 'YES' undeclared (first use in this function)
11 | printf("%s\n",YES);
| ^~~
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: 'NO' undeclared (first use in this function)
15 | printf("%s\n",NO);
| ^~
main.c:16:3: error: expected declaration or statement at end of input
16 | }
| ^
|
s933992283 | p03693 | C | #include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf ("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
} | main.c: In function 'main':
main.c:11:19: error: 'YES' undeclared (first use in this function)
11 | printf("%s\n",YES);
| ^~~
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: 'NO' undeclared (first use in this function)
15 | printf("%s\n",NO);
| ^~
main.c:16:3: error: expected declaration or statement at end of input
16 | }
| ^
|
s455191425 | p03693 | C | include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf ("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%s\n",YES);
}
else
{
printf("%s\n",NO);
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s729558529 | p03693 | C | include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf ("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%d\n",YES);
}
else
{
printf("%d\n",NO);
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s071701481 | p03693 | C | include <stdio.h>
int main()
{
int r;
int g;
int b;
scanf ("%d %d %d",r,g,b);
int a=r*100+g*10+b;
if (a%4==0)
{
printf("%c\n",YES);
}
else
{
printf("%c\n",NO);
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s154417130 | p03693 | C++ | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int r, g, b;
cin << r << g << b;
if ((100*r + 10*g + b) % 4 == 0) {
std::cout << "YES" << '\n';
} else {
std::cout << "NO" << '\n';
}
return 0;
} | a.cc: In function 'int main()':
a.cc:22:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
22 | cin << r << g << b;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:22:9: note: candidate: 'operator<<(int, int)' (built-in)
22 | cin << r << g << b;
| ~~~~^~~~
a.cc:22: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/istream:40,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from a.cc:2:
/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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:5: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | cin << r << g << b;
| ^
In file included from /usr/include/c++/14/istream:41:
/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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
22 | 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:22:12: required from here
22 | 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)
| ^~~~~~~~
/usr/include/c++/14/complex:563:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:563 |
s321575683 | p03693 | C++ | #include <stdio.h>
int main(void) {
int r, g, b;
scanf("%d%d%d", &r, &g, &b);
if(!((g * 10 + b) % 4)) printf("YES");
else printf("NO");
return 0;
} | a.cc:6:20: error: extended character is not valid in an identifier
6 | if(!((g * 10 + b) % 4)) printf("YES");
| ^
a.cc:6:23: error: extended character is not valid in an identifier
6 | if(!((g * 10 + b) % 4)) printf("YES");
| ^
a.cc: In function 'int main()':
a.cc:6:20: error: expected ')' before '\U00003000'
6 | if(!((g * 10 + b) % 4)) printf("YES");
| ~ ^~
| )
a.cc:6:42: error: expected ')' before ';' token
6 | if(!((g * 10 + b) % 4)) printf("YES");
| ~ ^
| )
|
s439639539 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define INF 1<<30
#define LINF 1ll<<60ll
#define MOD 1000000007
#define pb(a) push_back(a)
#define vi vector<int>
#define vl vector<long long>
#define vvi vector<vi>
#define P pair<int,int>
#define all(vec) (vec.begin()),(vec.end())
typedef long long ll;
typedef unsigned long long ull;
#define sz(x) ((int)(x).size())
#define in(x) int x;cin>>x
#define bit(n) (1<<(n))
#define REP(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i, n) for(int i = n;i >= 0;--i)
#define REP3(i, m, n) for(int i = m, i##_len=(n);i < i##_len;++i)
#define FORVEC(i, v) for(int i = 0;i < sz(v);++i)
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T &a,const T &b){if(a>b){a=b;return true;}return false;}
#define fil0(i,n) cout<<swet(n)<<setfill('0')<<i<<resetiosflags(ios_base::floatfield)
#define YES(n) cout<<((n)?"YES":"NO")<<endl
#define Yes(n) cout<<((n)?"Yes":"No")<<endl
#define yes(n) cout<<((n)?"yes":"no")<<endl
#define possible(n) cout<<((n)?"possible":"impossible")<<endl
#define Possible(n) cout<<((n)?"Possible":"Impossible")<<endl
int main(){
int r,g,b;
cin>>r>>g>>b;
YES(!(g*10+b)%4));
return 0;
} | a.cc: In function 'int main()':
a.cc:39:21: error: expected ';' before ')' token
39 | YES(!(g*10+b)%4));
| ^
|
s607015514 | p03693 | C | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
if ((100 * r + 10 * g + 1 * b) % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s582186423 | p03693 | C | #include <iostream>
using namespace std;
int main()
{
int r = 0;
int g = 0;
int b = 0;
cin >> r >> g >> b;
if ((100 * r + 10 * g + 1 * b) % 4 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s591522686 | p03693 | C++ | #include<iostream>
using namespace std ;
int r,g,b ;
cin >> r>>g>>b;
int main(){
if((100*r + 10*g + b)%4 ==0){
cout << "YES" << endl ;
}
else cout << "NO" << endl;
return 0 ;
} | a.cc:5:1: error: 'cin' does not name a type
5 | cin >> r>>g>>b;
| ^~~
|
s330016338 | p03693 | C++ | #include<iosream>
using namespace std ;
int r,g,b ;
cin >> r>>g>>b;
int main(){
if((100*r + 10*g + b)%4 ==0){
cout << "YES" << endl ;
}
else cout << "NO" << endl;
return 0 ;
} | a.cc:1:9: fatal error: iosream: No such file or directory
1 | #include<iosream>
| ^~~~~~~~~
compilation terminated.
|
s767815423 | p03693 | C++ | #include <iostream>
using namespace std;
int g,b ;
int main(){
cin >>g,b;
if(10 * g + b % 4 ==0 )
cout << "Yes" << endl;
{
else
cout << "no" << endl;
{
} | a.cc: In function 'int main()':
a.cc:9:4: error: 'else' without a previous 'if'
9 | else
| ^~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:8:4: note: to match this '{'
8 | {
| ^
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s327186548 | p03693 | C++ | #include<iostream>
using namespace std;
int main ()
{
int n;
cin>>n;
int l,r,a;
for (int i = 0; i <n ; ++i){ cin<<a;
l=min(l,a);
r=max(r,a);
}
cout<<r-l;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:41: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:8:41: note: candidate: 'operator<<(int, int)' (built-in)
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ~~~^~~
a.cc:8:41: 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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
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:8:38: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^~~
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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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:8:43: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
8 | for (int i = 0; i <n ; ++i){ cin<<a;
| ^
/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 |
s201750600 | p03693 | C++ | #include<iostream>
using namespace std
int main(void){
int r, g, b; cin>>r>>g>>b;
if((g*10+b)%4==0) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 | int main(void){
| ~~~
|
s363235179 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a ,cnt =0;
for(int i=0;i<3;i++)
{
cin >> a;
while(a % 2 == 0)
{
cnt ++;
a /= 2;
}
}
if(cnt >= 2)cout << "YES" << end;
else cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:29: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | if(cnt >= 2)cout << "YES" << end;
| ~~~~~~~~~~~~~~^~~~~~
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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std:: |
s473348338 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a ,cnt =0;
for(int i=0;i<3;i++)
{
cin >> a;
while(a % 2 == 0)
{
cnt ++;
a /= 2;
}
cout << cnt << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
16 | }
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s660174647 | p03693 | C++ | #include <iostream>#include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
int S = 2 * g + b
if(S % 4 == 0)
cout << "YES" << endl;
if(S % 4 != 0)
cout << "NO" << endl;
} | a.cc:1:20: warning: extra tokens at end of #include directive
1 | #include <iostream>#include <bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
8 | if(S % 4 == 0)
| ^~
|
s921773056 | p03693 | C++ | #include <iostream>
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:7:15: error: lvalue required as left operand of assignment
7 | if ((10*g+b)%4=0){
| ~~~~~~~~^~
|
s061379002 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r, t, b;
cin >> r >> g >> b;
int rgb = r * 100 + g * 10 + b * 1;
if(rgb % 4 == 0){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:15: error: 'g' was not declared in this scope
7 | cin >> r >> g >> b;
| ^
|
s099393138 | p03693 | C++ | #include <iostream>
int main()
{
int r, g, b;
cin >> r >> g >> b;
int n = ( r * 100 + g * 10 + b );
std::cout << ( n % 4 == 0 ? "YES" : "NO" ) << std::endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:9: 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
| ^~~
|
s201171311 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>a>>b;
cout<<((a*10+b)%4?"Yes":"No)";
} | a.cc: In function 'int main()':
a.cc:6:32: error: expected ')' before ';' token
6 | cout<<((a*10+b)%4?"Yes":"No)";
| ~ ^
| )
|
s837470196 | p03693 | C | #include<stdio.h>
int main(){
int a,b,c;
scanf_s("%d %d %d",a,b,c);
if((10*b+c)%4==0){
printf("YES");
}else{
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scanf_s("%d %d %d",a,b,c);
| ^~~~~~~
| scanf
|
s541958164 | p03693 | C | #include<stdio.h>
int Main(){
int a,b,c;
scanf("%d %d %d",a,b,c);
if((10*b+c)%4==0){
printf("YES");
}else{
printf("NO");
}
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s202999174 | p03693 | C | #include<stdio.h>
int main(){
int a,b,c;
scanf(d %d %d,a,b,c);
if((10*b+c)%4==0){
printf("YES");
}else{
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:4:9: error: 'd' undeclared (first use in this function)
4 | scanf(d %d %d,a,b,c);
| ^
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
|
s134415336 | p03693 | C | #include<stdio.h>
int main(void){
int a,b,c;
scanf(%d %d %d,a,b,c);
if((10*b+c)%%4==0){
printf(YES);
}else{
printf(NO);
}
return 0;
} | main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
4 | scanf(%d %d %d,a,b,c);
| ^
main.c:6:15: error: expected expression before '%' token
6 | if((10*b+c)%%4==0){
| ^
main.c:7:12: error: 'YES' undeclared (first use in this function)
7 | printf(YES);
| ^~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'NO' undeclared (first use in this function)
9 | printf(NO);
| ^~
|
s875895849 | p03693 | C | #include<stdio.h>
int main(){
int a,b,c;
scanf_s(%d %d %d,a,b,c);
if((10b+c)%%4==0){
printf(YES);
}else{
printf(NO);
}
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scanf_s(%d %d %d,a,b,c);
| ^~~~~~~
| scanf
main.c:4:11: error: expected expression before '%' token
4 | scanf_s(%d %d %d,a,b,c);
| ^
main.c:6:7: error: invalid suffix "b" on integer constant
6 | if((10b+c)%%4==0){
| ^~~
main.c:6:14: error: expected expression before '%' token
6 | if((10b+c)%%4==0){
| ^
main.c:7:12: error: 'YES' undeclared (first use in this function)
7 | printf(YES);
| ^~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'NO' undeclared (first use in this function)
9 | printf(NO);
| ^~
|
s147361273 | p03693 | C | #include<stdio.h>
int main(){
int a,b,c;
scanf_s(%d %d %d,a,b,c);
if((10b+c)%%4=0){
printf(YES);
}else{
printf(NO);
}
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scanf_s(%d %d %d,a,b,c);
| ^~~~~~~
| scanf
main.c:4:11: error: expected expression before '%' token
4 | scanf_s(%d %d %d,a,b,c);
| ^
main.c:6:7: error: invalid suffix "b" on integer constant
6 | if((10b+c)%%4=0){
| ^~~
main.c:6:14: error: expected expression before '%' token
6 | if((10b+c)%%4=0){
| ^
main.c:7:12: error: 'YES' undeclared (first use in this function)
7 | printf(YES);
| ^~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'NO' undeclared (first use in this function)
9 | printf(NO);
| ^~
|
s650366604 | p03693 | C++ | #include <iostream>
#include <cstdio>
int main (){
int a,b,c;
cin >> a >>b >>c;
int t = b*10+c;
if(t%4==0){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >>b >>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:9: 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:26: 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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | 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:11:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s948192096 | p03693 | C++ | #include <iostream>
int main (){
int a,b,c;
cin >> a >>b >>c
int t = b*10+c;
if(t%4==0){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >>b >>c
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:12: error: 't' was not declared in this scope
7 | if(t%4==0){
| ^
a.cc:8:9: 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:26: 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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | 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:11:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s660992838 | 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 if
cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:10:5: error: expected '(' before 'cout'
10 | cout << "NO" << endl;
| ^~~~
| (
|
s040617889 | p03693 | C | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((b*10)+c)%4==0||(b+c)==0){
printf("YES\n");
}
else
printf("N0\n");
return 0;
}
| main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
6 | if((b*10)+c)%4==0||(b+c)==0){
| ^
main.c:6:32: error: expected statement before ')' token
6 | if((b*10)+c)%4==0||(b+c)==0){
| ^
main.c:9:5: error: 'else' without a previous 'if'
9 | else
| ^~~~
|
s073457270 | p03693 | C | #include<stdio.h>
int main(void){
int r;
int g;
int b;
int sum;
sum=100*r+10*g+b;
printf("");
scanf("%d %d %d",&r &g &b);
if (sum%4==0){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:9:22: error: invalid operands to binary & (have 'int *' and 'int')
9 | scanf("%d %d %d",&r &g &b);
| ~~ ^
| |
| int *
|
s912540312 | p03693 | C | #include<stdio.h>
int main(void){
int r;
int g;
int b;
int sum;
sum=100*r+10*g+b;
printf("");
scanf("%d %d %d",&r,&g,&b);
if (sum%4==0){
printf("Yes\n");
}else{
printf("No"\n);
}
return 0;
} | main.c: In function 'main':
main.c:13:16: error: stray '\' in program
13 | printf("No"\n);
| ^
main.c:13:16: error: expected ')' before 'n'
13 | printf("No"\n);
| ~ ^~
| )
|
s642176106 | p03693 | C | #include<stdio.h>
int main(){
int r,g,b;
scanf("%d %d %d",&r,&g,&b);
if((10*g+b)%4=0){
printf("YES\n");
}
else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:5:18: error: lvalue required as left operand of assignment
5 | if((10*g+b)%4=0){
| ^
|
s537077396 | p03693 | C++ | int main(){
int a,b,c;
cin >> a >> b >> c;
int num = 100 * a + 10 * b + c;
if(num % 4 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:6:20: error: 'cout' was not declared in this scope
6 | if(num % 4 == 0) cout << "Yes" << endl;
| ^~~~
a.cc:6:37: error: 'endl' was not declared in this scope
6 | if(num % 4 == 0) cout << "Yes" << endl;
| ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
7 | else cout << "No" << endl;
| ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
7 | else cout << "No" << endl;
| ^~~~
|
s301005646 | p03693 | C++ | #include<iostream>
using namespace std;
int main{
int a,b,c,d;
cin >>a >> b >>c;
int d = a*100+b*10+c;
if ( c % 4 ) cout << "YES" <<endl;
else cout << "NO" << endl;
} | a.cc:3:6: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int a,b,c,d;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
3 | int main{
| ^
a.cc:5:4: error: 'cin' does not name a type
5 | cin >>a >> b >>c;
| ^~~
a.cc:6:12: error: 'a' was not declared in this scope
6 | int d = a*100+b*10+c;
| ^
a.cc:6:18: error: 'b' was not declared in this scope
6 | int d = a*100+b*10+c;
| ^
a.cc:6:23: error: 'c' was not declared in this scope
6 | int d = a*100+b*10+c;
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if ( c % 4 ) cout << "YES" <<endl;
| ^~
a.cc:9:4: error: expected unqualified-id before 'else'
9 | else cout << "NO" << endl;
| ^~~~
a.cc:13:2: error: expected declaration before '}' token
13 | }
| ^
|
s370414577 | p03693 | Java | import java.util.Scanner;
public class RGB_Cards {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int data1 = sc.nextInt();
//System.out.println(data1);
int data2 = sc.nextInt();
//System.out.println(data2);
int data3 = sc.nextInt();
//System.out.println(data3);
int data = (data1 * 100) + (data2 * 10) + data3;
//System.out.println(data);
if (data % 4 == 0) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
| Main.java:3: error: class RGB_Cards is public, should be declared in a file named RGB_Cards.java
public class RGB_Cards {
^
1 error
|
s904877085 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b,s;
cin>>r>>g>>b;
s=10g+b;
if(s%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: unable to find numeric literal operator 'operator""g'
6 | s=10g+b;
| ^~~
|
s239844708 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
if((10g+b)%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: unable to find numeric literal operator 'operator""g'
6 | if((10g+b)%4==0){
| ^~~
|
s451640883 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
r=10g+b
if(r/4==0){
cout<<"YES"<<endl ;
}
else{
cout<<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: unable to find numeric literal operator 'operator""g'
6 | r=10g+b
| ^~~
a.cc:10:3: error: 'else' without a previous 'if'
10 | else{
| ^~~~
|
s184024537 | p03693 | C++ | #include<cstdio>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int n=100*a+10*b+c;
if(n%4==0)printf("YES\n");
else printf("NO\n");
returnn 0;
} | a.cc: In function 'int main()':
a.cc:8:1: error: 'returnn' was not declared in this scope
8 | returnn 0;
| ^~~~~~~
|
s447748288 | 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:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | cout >> "YES";
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/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:9:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | cout >> "YES";
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
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/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES";
| ^~~~~
/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:9:13: required from here
9 | cout >> "YES";
| ^~~~~
/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)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES";
| ^~~~~
/usr/include/c++/14/iomanip:237:5: note: candidate: 'template<class _CharT, class _Tr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.