submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s356314090
p04043
C
#include<stdio.h> int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a+b+c==17 && a*b*c==175)){ printf("Yes"); } else{ printf("No"); } return 0; }
main.c: In function 'main': main.c:6:34: error: expected statement before ')' token 6 | if(a+b+c==17 && a*b*c==175)){ | ^ main.c:9:7: error: 'else' without a previous 'if' 9 | else{ | ^~~~
s258190675
p04043
C++
#include <bits/stdc++.h> using namespace std; int main () { int A , B ,C ; cin >> A >> B >>C; if (A*B*C==175){ cout << "YES" <<; } else { cout <<"NO"<<; } }
a.cc: In function 'int main()': a.cc:9:21: error: expected primary-expression before ';' token 9 | cout << "YES" <<; | ^ a.cc:12:18: error: expected primary-expression before ';' token 12 | cout <<"NO"<<; | ^
s436752919
p04043
C++
#include <iostream> using namespace std; int main(){ int abc[3]; cin >> abc[0] >> abc[1] >> abc[2]; sort(abc, abc+3); if(abc[0] == 5 && abc[1] == 5 && abc[2] == 7){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'? 7 | sort(abc, abc+3); | ^~~~ | short
s186198624
p04043
C++
a, b, c = map(int, input().split()) five = 0; if a == 5: five = five + 1; elif a == 7: seven = seven + 1; if b == 5: five = five + 1; elif b == 7: seven = seven + 1; if c == 5: five = five + 1; elif c == 7: seven = seven + 1; if five == 2 and seven == 1: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, input().split()) | ^ a.cc:3:1: error: expected unqualified-id before 'if' 3 | if a == 5: | ^~ a.cc:5:1: error: 'elif' does not name a type 5 | elif a == 7: | ^~~~ a.cc:7:1: error: expected unqualified-id before 'if' 7 | if b == 5: | ^~ a.cc:9:1: error: 'elif' does not name a type 9 | elif b == 7: | ^~~~ a.cc:11:1: error: expected unqualified-id before 'if' 11 | if c == 5: | ^~ a.cc:13:1: error: 'elif' does not name a type 13 | elif c == 7: | ^~~~ a.cc:15:1: error: expected unqualified-id before 'if' 15 | if five == 2 and seven == 1: | ^~
s637756428
p04043
C++
dat = list(map(int, input().split())) dat.sort() if dat == [5, 5, 7]: print("YES") else: print("NO")
a.cc:1:1: error: 'dat' does not name a type 1 | dat = list(map(int, input().split())) | ^~~
s170439585
p04043
C++
#include "bits/stdc++.h" using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; if(a==5){ if(b==5||b==7){ if(b+c==12){ cout << "YES" << endl; } } }else if(a==7){ if(b==c&&c==5){ cout >> "YES" << endl; } } cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:14:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 14 | cout >> "YES" << endl; | ~~~~ ^~ ~~~~~ | | | | | 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:14:17: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 14 | cout >> "YES" << endl; | ^~~~ 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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ 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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:11: required from here 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ 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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /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:14:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 14 | cout >> "YES" << endl; | ^~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _T
s241081782
p04043
C++
DASASSSSSSSSSSSSSSSSSSSSSSSSSSS DDDDDDDDDDDDDDDDDDDDDDDDD SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS A AASDADASDASDDS
a.cc:1:1: error: 'DASASSSSSSSSSSSSSSSSSSSSSSSSSSS' does not name a type 1 | DASASSSSSSSSSSSSSSSSSSSSSSSSSSS | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s690165671
p04043
C++
#include <iostream> #include <utility.h> using namespace std; int main(){ int N,L; cin >> N >> L; string word; vector<string> words; for(int i=0;i<N;i++){ cin >> word; words(i)=word; } for(int i=1;i<N;i++){ for(int j=0;j<L;j++){ if ('words[i-1][j]'>'words[i][j]'){ std::swap(words[i-1],words[i]); } } } for(int i=0;i<N;i++){ cout << words[i] << endl; } }
a.cc:2:10: fatal error: utility.h: No such file or directory 2 | #include <utility.h> | ^~~~~~~~~~~ compilation terminated.
s504631188
p04043
C++
hjkll
a.cc:1:1: error: 'hjkll' does not name a type 1 | hjkll | ^~~~~
s365043531
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin >> a >> b >> c; int list[3] = {a,b,c}; for(int i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_counter && 1 == seven_counter) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s389184262
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin << a << b << c; int list[3] = {a,b,c}; for(i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_counter && 1 == seven_counter) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidate: 'operator<<(int, int)' (built-in) 6 | cin << a << b << c; | ~~~~^~~~ a.cc:6: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:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << a << b << c; | ^~~ In file included from /usr/include/c++/14/bits/ios_base.h:46: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)' 689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a << b << c; | ^ /usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ /usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed: /usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]': a.cc:6:10: required from here 6 | cin << a << b << c; | ^ /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:8:8: error: found ':' in nested-name-specifier, expected '::' 8 | for(i:list) { | ^ | :: a.cc:8:7: error: 'i' has not been declared 8 | for(i:list) { | ^ a.cc:23:2: error: expected primary-expression at end of input 23 | } | ^ a.cc:23:2: error: expected ';' at end of input 23 | } | ^ | ; a.cc:23:2: error: expected primary-expression at end of input a.cc:23:2: error: expected ')' at end of input 23 | } | ^ | ) a.cc:8:6: note: to match this '('
s579213332
p04043
C++
#include <iosteam> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin << a << b << c; int list[3] = {a,b,c}; for(i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_counter && 1 == seven_counter) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc:1:10: fatal error: iosteam: No such file or directory 1 | #include <iosteam> | ^~~~~~~~~ compilation terminated.
s018661739
p04043
Java
#include <iostream> using namespace std; int main(){ int a, b, c; int countFive = 0; int countSeven = 0; cin >> a >> b >> c; if (a == 5) countFive++; if (a == 7) countSeven++; if (b == 5) countFive++; if (b== 7) countSeven++; if (c == 5) countFive++; if (c == 7) countSeven++; if (countFive == 2 && countSeven == 1) cout << "YES" << endl; else cout << "NO" << endl; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:8: error: not a statement cin >> a >> b >> c; ^ Main.java:15: error: not a statement if (countFive == 2 && countSeven == 1) cout << "YES" << endl; ^ Main.java:16: error: not a statement else cout << "NO" << endl; ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) 6 errors
s689680170
p04043
C++
using System; namespace AtCoderPractice { class Program { static void Main(string[] args) { // args = Console.ReadLine().Split(' '); int[] Lngs = new int[11]; foreach (var str in args) { int Lng; if (Int32.TryParse(str,out Lng)) { Lngs[Lng]++; } } if ((Lngs[5] == 2) && (Lngs[7] == 1)) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } // Console.ReadLine(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:5:34: error: 'string' has not been declared 5 | static void Main(string[] args) { | ^~~~~~ a.cc:5:43: error: expected ',' or '...' before 'args' 5 | static void Main(string[] args) { | ^~~~ a.cc:21:10: error: expected ';' after class definition 21 | } | ^ | ; a.cc: In static member function 'static void AtCoderPractice::Program::Main(int*)': a.cc:7:28: error: structured binding declaration cannot have type 'int' 7 | int[] Lngs = new int[11]; | ^~ a.cc:7:28: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:7:28: error: empty structured binding declaration a.cc:7:31: error: expected initializer before 'Lngs' 7 | int[] Lngs = new int[11]; | ^~~~ a.cc:8:34: error: 'var' was not declared in this scope 8 | foreach (var str in args) { | ^~~ a.cc:8:25: error: 'foreach' was not declared in this scope 8 | foreach (var str in args) { | ^~~~~~~ a.cc:14:30: error: 'Lngs' was not declared in this scope 14 | if ((Lngs[5] == 2) && (Lngs[7] == 1)) { | ^~~~ a.cc:15:33: error: 'Console' was not declared in this scope 15 | Console.WriteLine("YES"); | ^~~~~~~ a.cc:17:33: error: 'Console' was not declared in this scope 17 | Console.WriteLine("NO"); | ^~~~~~~
s687899638
p04043
C++
def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No"
a.cc:1:1: error: 'def' does not name a type 1 | def solve(a,b,c): | ^~~
s222643380
p04043
C++
# 関数 solve は,もちろん,問題に応じて書き換える def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No" # ここから下は,入力・出力形式が同じであれば,変えなくて良い. def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)) def main(): a, b, c = readQuestion() answer = solve(a, b, c) print(answer) if __name__ == '__main__': main()
a.cc:2:3: error: invalid preprocessing directive #\U000095a2\U00006570 2 | # 関数 solve は,もちろん,問題に応じて書き換える | ^~~~ a.cc:10:3: error: invalid preprocessing directive #\U00003053\U00003053\U0000304b\U00003089\U00004e0b\U0000306f\U0000ff0c\U00005165\U0000529b\U000030fb\U000051fa\U0000529b\U00005f62\U00005f0f\U0000304c\U0000540c\U00003058\U00003067\U00003042\U0000308c\U00003070\U0000ff0c\U00005909\U00003048\U0000306a\U0000304f\U00003066\U0000826f\U00003044\U0000ff0e 10 | # ここから下は,入力・出力形式が同じであれば,変えなくて良い. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:21:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 21 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:3:1: error: 'def' does not name a type 3 | def solve(a,b,c): | ^~~
s269425667
p04043
C++
import sys # 関数 solve は,もちろん,問題に応じて書き換える def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No" # ここから下は,入力・出力形式が同じであれば,変えなくて良い. def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)) def main(): a, b, c = readQuestion() answer = solve(a, b, c) print(answer) if __name__ == '__main__': main()
a.cc:3:3: error: invalid preprocessing directive #\U000095a2\U00006570 3 | # 関数 solve は,もちろん,問題に応じて書き換える | ^~~~ a.cc:11:3: error: invalid preprocessing directive #\U00003053\U00003053\U0000304b\U00003089\U00004e0b\U0000306f\U0000ff0c\U00005165\U0000529b\U000030fb\U000051fa\U0000529b\U00005f62\U00005f0f\U0000304c\U0000540c\U00003058\U00003067\U00003042\U0000308c\U00003070\U0000ff0c\U00005909\U00003048\U0000306a\U0000304f\U00003066\U0000826f\U00003044\U0000ff0e 11 | # ここから下は,入力・出力形式が同じであれば,変えなくて良い. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:22:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 22 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:1:1: error: 'import' does not name a type 1 | import sys | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s201543651
p04043
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #include <iomanip> #include <bitset> #define PB push_back #define MP make_pair #define YES cout<<"YES"<<endl #define Yes cout<<"Yes"<<endl #define NO cout<<"NO"<<endl #define No cout<<"No"<<endl #define INF (1<<30) #define LLINF (1<<60) #define MOD 1000000007 #define REP(i, n) for(int i=0;i<n;i++) using ll = long long; using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a*b*c = 175)YES; else NO; return 0; }
a.cc: In function 'int main()': a.cc:36:12: error: lvalue required as left operand of assignment 36 | if (a*b*c = 175)YES; | ~~~^~
s578210508
p04043
C++
#include<iostream> using namespace std; #include<vector> void no(){ cout << "NO" << endl; } int main(){ int a,b,c; cin >> a >> b >> c; vector<int> abc = {a,b,c}; sort(abc.begin(), abc.end()); if(abc.at(0) == 5){ if(abc.at(1) == 5){ if(abc.at(2) == 7){ cout << "YES" << endl; } else no(); } else no(); } else no(); }
a.cc: In function 'int main()': a.cc:17:5: error: 'sort' was not declared in this scope; did you mean 'short'? 17 | sort(abc.begin(), abc.end()); | ^~~~ | short
s435315080
p04043
C++
66666666666666666666666666666666666666666666666666666666666666 6666666666666666666666666666666666666666666666666666666
a.cc:1:1: warning: integer constant is too large for its type 1 | 66666666666666666666666666666666666666666666666666666666666666 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:2:1: warning: integer constant is too large for its type 2 | 6666666666666666666666666666666666666666666666666666666 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 66666666666666666666666666666666666666666666666666666666666666 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s107322939
p04043
C++
#include<iostream> using namespace std; int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ cout << "YES"; }else{ cout<<"NO"; } return 0; } #include<iostream> int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ cout << "YES"; }else{ cout<<"NO"; } return 0; }
a.cc:26:5: error: redefinition of 'int main()' 26 | int main(){ | ^~~~ a.cc:5:5: note: 'int main()' previously defined here 5 | int main(){ | ^~~~
s808132549
p04043
C++
#include<iostream> int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ cout << "YES"; }else{ cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>A>>B>>C; | ^~~ | std::cin In file included from 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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | 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:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | cout<<"NO"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s037200220
p04043
C++
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; int total; total = A*B*C; if (total == 175) { cout >> "YES"; } else if (total != 175) {cout >> "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:10:28: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 10 | if (total == 175) { cout >> "YES"; } | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | if (total == 175) { cout >> "YES"; } | ^~~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:10:23: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 10 | if (total == 175) { cout >> "YES"; } | ^~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/iostream:42: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | if (total == 175) { 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:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | if (total == 175) { 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:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | if (total == 175) { 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:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | if (total == 175) { 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:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | if (total == 175) { 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:10:31: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | if (total == 175) { 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:10:31: required from here 10 | if (total == 175) { 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) | ^~~~~~~~ a.cc:11:32: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]') 11 | else if (total != 175) {cout >> "NO"; } | ~~~~ ^~ ~~~~ | | | | | const char [3] | std::ostream {aka std::basic_ostream<char>} /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:11:35: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 11 | else if (total != 175) {cout >> "NO"; } | ^~~~ /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:11:27: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 11 | else if (total != 175) {cout >> "NO"; } | ^~~~ /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:11:35: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 11 | else if (total != 175) {cout >> "NO"; } | ^~~~ /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:11:35: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 11 | else if (total != 175) {cout >> "NO"; } | ^~~~ /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:11:35: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 11 | else if (total != 175) {cout >> "NO"; } | ^~~~ /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)
s117575689
p04043
C++
A=list(map(int,input().strip().split())) if A.count(5)==2 and A.count(7)==1: print('YES') else: print('NO')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('YES') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('NO') | ^~~~ a.cc:1:1: error: 'A' does not name a type 1 | A=list(map(int,input().strip().split())) | ^
s336114212
p04043
C++
#include<Cstdio> main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5 && B==5 && C==7) printf("YES"); else if(A==5 && B==7 && C==5) printf("YES"); else if(A==7 && B==5 && C==5) printf("YES"); else printf("NO"); return 0; }
a.cc:1:9: fatal error: Cstdio: No such file or directory 1 | #include<Cstdio> | ^~~~~~~~ compilation terminated.
s604921301
p04043
C++
#include<Cstdio> main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5 && B==5 && C==7) printf("YES,Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku."); else if(A==5 && B==7 && C==5) printf("YES,Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku."); else if(A==7 && B==5 && C==5) printf("YES,Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku."); else printf("NO"); return 0; }
a.cc:1:9: fatal error: Cstdio: No such file or directory 1 | #include<Cstdio> | ^~~~~~~~ compilation terminated.
s104631332
p04043
C++
X={int(input()),int(input()),int(input())} if X in [{5,5,7},{5,7,5},{7,5,5}]: print("YES") else: print("NO")
a.cc:1:1: error: 'X' does not name a type 1 | X={int(input()),int(input()),int(input())} | ^ a.cc:2:1: error: expected unqualified-id before 'if' 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^~ a.cc:2:17: error: expected unqualified-id before ',' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^ a.cc:2:18: error: expected unqualified-id before '{' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^ a.cc:2:25: error: expected unqualified-id before ',' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^ a.cc:2:26: error: expected unqualified-id before '{' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^ a.cc:2:33: error: expected unqualified-id before ']' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^
s751229177
p04043
C++
#include <iostream> #include <string> #include <vector> #include <cstdlib> #include <cstdio> #include <cmath> #include <algorithm> #include <map> #include <stack> #include <queue> #include <set> using namespace std; #define vsort(v) sort(v.begin(), v.end()); // 昇順 #define vsort_reverse(v) sort(v.begin(), v.end(), greater<int>()); // 降順 #define bsearch(v, n) binary_search(v.begin(), v.end(), n) int main(){ cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int cnt7 = 0, cnt5 = 0; if(a == 5) cnt5++; else cnt7++; if(b == 5) cnt5++; else cnt7++; if(c == 5) cnt5++; else cnt7++; if(cnt5 == 2 and cnt7==1) cout << “YES” << endl; else cout << “NO” << endl; }
a.cc:32:35: error: extended character “ is not valid in an identifier 32 | if(cnt5 == 2 and cnt7==1) cout << “YES” << endl; | ^ a.cc:32:35: error: extended character ” is not valid in an identifier a.cc:33:14: error: extended character “ is not valid in an identifier 33 | else cout << “NO” << endl; | ^ a.cc:33:14: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:32:35: error: '\U0000201cYES\U0000201d' was not declared in this scope 32 | if(cnt5 == 2 and cnt7==1) cout << “YES” << endl; | ^~~~~ a.cc:33:14: error: '\U0000201cNO\U0000201d' was not declared in this scope 33 | else cout << “NO” << endl; | ^~~~
s407735872
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int H,N,U; cin >> H >> N >> U; if(N==7&&H==5&&U==5||N==5&&H==7&&==U==5||N==5&&H==5&&U==7){ cout << "YES" << endl; }else{ cout << "NO" << endl;} }
a.cc: In function 'int main()': a.cc:7:36: error: expected primary-expression before '==' token 7 | if(N==7&&H==5&&U==5||N==5&&H==7&&==U==5||N==5&&H==5&&U==7){ | ^~
s060867430
p04043
C++
#include<iostream> #include<cmath> using namespace std; int main() { int a=8.0; for(float i=1.0;i<=100.0;i+=1.0) { for(float j=1.0;j<=100.0;j+=1.0) { if(i*i+j*j+a*i> =a*sqrt(i*i+j*j))cout<<"@"; else cout<<" "; } cout<<endl; } }
a.cc: In function 'int main()': a.cc:11:41: error: expected primary-expression before '=' token 11 | if(i*i+j*j+a*i> =a*sqrt(i*i+j*j))cout<<"@"; | ^
s293522056
p04043
C++
#include <iostream> #include <vector> using namespace std; int main() { vector<int> s(3); for (int i = 0; i < 3; ++i) cin >> s.at(i); cout << (count(s.begin(), s.end(), 5) == 2 && count(s.begin(), s.end(), 7) == 1 ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:14: error: 'count' was not declared in this scope 9 | cout << (count(s.begin(), s.end(), 5) == 2 && count(s.begin(), s.end(), 7) == 1 ? "YES" : "NO") << endl; | ^~~~~
s354156875
p04043
C++
#include<iostream> using namespace; int main(){ int a,b,c; cin >> a; cin >> b; cin >> c; if(a == 5 && b == 5 && c == 7){ cout << "YES" << endl; } else if(a == 7 && b == 5 && c ==5){ cout << "YES" << endl; } else if(a == 5 && b ==7 && c == 5){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc:2:16: error: expected identifier before ';' token 2 | using namespace; | ^ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a; | ^~~ | 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | 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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | 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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | 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:13:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 13 | cout << "YES" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 16 | 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:16:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 16 | cout << "YES" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 19 | cout << "NO" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 19 | cout << "NO" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s170697384
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> a >> b >> c; vector<int> v = {a,b,c}; sort(v.begin(),v.end()); if(v.at(0) == 5 && v.at(1) == 5 && v.at(2) == 7) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:10: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:15: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:20: error: 'c' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:6:25: error: could not convert '{a, b, c}' from '<brace-enclosed initializer list>' to 'std::vector<int>' 6 | vector<int> v = {a,b,c}; | ^ | | | <brace-enclosed initializer list>
s489358996
p04043
C++
macro_rules! input { (source = $s:expr, $($r:tt)*) => { let mut iter = $s.split_whitespace(); let mut next = || { iter.next().unwrap() }; input_inner!{next, $($r)*} }; ($($r:tt)*) => { let stdin = std::io::stdin(); let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock())); let mut next = move || -> String{ bytes .by_ref() .map(|r|r.unwrap() as char) .skip_while(|c|c.is_whitespace()) .take_while(|c|!c.is_whitespace()) .collect() }; input_inner!{next, $($r)*} }; } macro_rules! input_inner { ($next:expr) => {}; ($next:expr, ) => {}; ($next:expr, $var:ident : $t:tt $($r:tt)*) => { let $var = read_value!($next, $t); input_inner!{$next $($r)*} }; } macro_rules! read_value { ($next:expr, ( $($t:tt),* )) => { ( $(read_value!($next, $t)),* ) }; ($next:expr, [ $t:tt ; $len:expr ]) => { (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>() }; ($next:expr, chars) => { read_value!($next, String).chars().collect::<Vec<char>>() }; ($next:expr, usize1) => { read_value!($next, usize) - 1 }; ($next:expr, $t:ty) => { $next().parse::<$t>().expect("Parse error") }; } fn main() { input!{ A: u8, B: u8, C: u8, } match A + B + C { 17 => println!("YES"), _ => println!("NO"), } }
a.cc:38:10: error: too many decimal points in number 38 | (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>() | ^~~~~~~ a.cc:1:1: error: 'macro_rules' does not name a type 1 | macro_rules! input { | ^~~~~~~~~~~ a.cc:22:1: error: 'macro_rules' does not name a type 22 | macro_rules! input_inner { | ^~~~~~~~~~~ a.cc:32:1: error: 'macro_rules' does not name a type 32 | macro_rules! read_value { | ^~~~~~~~~~~ a.cc:54:1: error: 'fn' does not name a type 54 | fn main() { | ^~
s321159064
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int arr[3]; cin >> arr[0] >> arr[1] >> arr[2]; sort(arr, arr+3); if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) cout << "YES"; eles cout << "NO"; }
a.cc: In function 'int main()': a.cc:12:3: error: 'eles' was not declared in this scope 12 | eles | ^~~~
s943685073
p04043
C++
#include<iostream> int main() { int a,b,c = 0; std::cin >> a >> b >> c; if ((a=5)&&(b=5)&&(c=7)){ std::cout << "yes" << endl; } else if ((a=5)&&(b=7)&&(c=5)){ std::cout << "yes" << endl; } else if ((a=7)&&(b=5)&&(c=7)){ std::cout << "yes" << endl; } else { std::cout << "no" << endl; } return 0; }
a.cc:5:16: error: extended character   is not valid in an identifier 5 | int a,b,c = 0; | ^ a.cc: In function 'int main()': a.cc:5:16: error: '\U000030000' was not declared in this scope 5 | int a,b,c = 0; | ^~~ a.cc:7:21: error: expected ')' before '\U0000ff06\U0000ff06' 7 | if ((a=5)&&(b=5)&&(c=7)){ | ~ ^~~~ | ) a.cc:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | std::cout << "yes" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:11:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | std::cout << "yes" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:14:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 14 | std::cout << "yes" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:17:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 17 | std::cout << "no" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s065677001
p04043
C++
#include<cstdio> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if("a==5&&b==5&&c==7")printf("yes"); else if("a==5&&b==7&&c==5")printf("yes"); else if("a==7&&b==5&&c==5")printf("yes"); else()printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: expected primary-expression before ')' token 9 | else()printf("no"); | ^
s079351119
p04043
C++
#include<cstdio> int main() { int a,b,c; scanf("%d%d%d\n",&a,&b,&c); if("a==5&&b==5&&c==7")printf("yes"); else if("a==5&&b==7&&c==5")printf("yes"); else if("a==7&&b==5&&c==5")printf("yes"); else()printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: expected primary-expression before ')' token 9 | else()printf("no"); | ^
s817267147
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a = 5 && b = 7 && c = 5)printf("YES\n"); else if(a = 5 && b = 5 && c = 7)printf("YES\n"); else if(a = 7 && b = 5 && c = 5)printf("YES\n"); else printf("NO"); return 0; }
a.cc: In function 'int main()': a.cc:6:27: error: lvalue required as left operand of assignment 6 | if(a = 5 && b = 7 && c = 5)printf("YES\n"); | ~~^~~~ a.cc:7:32: error: lvalue required as left operand of assignment 7 | else if(a = 5 && b = 5 && c = 7)printf("YES\n"); | ~~^~~~ a.cc:8:32: error: lvalue required as left operand of assignment 8 | else if(a = 7 && b = 5 && c = 5)printf("YES\n"); | ~~^~~~
s040493557
p04043
C
#include<cstdio> int main() { int a, b, c; scanf("%d %d %d",&a, &b, &c); if(a==5 && b==7 && c==5) printf("YSE\n"); else if(a==7 && b==5 && c==5) printf("YSE\n"); else if(a==5 && b==5 && c==7) printf("YSE\n"); else printf("NO\n"); return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s328281100
p04043
C
#include<cstdio> int main() { int a, b, c; scanf("%d %d %d",&a, &b, &c); if(a==5 && b==7 &&c==5) printf("YSE\n"); else if(a==7 && b==5 &&c==5) printf("YSE\n"); else if(a==5 && b==5 &&c==7) printf("YSE\n"); else printf("NO\n"); return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s561285593
p04043
Java
import java.util.*; public class Main { public static void main(String[] args) { // 自分の得意な言語で // Let's チャレンジ!! Scanner sc = new Scanner(System.in); int []n=new int[3]; int m[]=new int[]{5,5,7}; for(int i=0;i<3;i++){ n[i]=sc.nextInt(); } Arrays.sort(n); boolean b=false; for(int i=0;i<3;i++){ if(n[i]!=m[i]){ b=true; break; } } if(b) System.out.println("YES"); } else System.out.println("NO"); }
Main.java:26: error: illegal start of type else System.out.println("NO"); ^ Main.java:26: error: <identifier> expected else System.out.println("NO"); ^ Main.java:26: error: illegal start of type else System.out.println("NO"); ^ 3 errors
s300485070
p04043
C++
#include<iostream> int main(){ int a,b,c; cin>>a>>b>>c; if((a==7&&b==5&&c==5) ||(a==5&&b==7&&c==5) ||(a==5&&b==5&&c==7)) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | 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:5: 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout<<"YES"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | else cout<<"NO"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | else cout<<"NO"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s840387710
p04043
C++
#include<cstdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5&&b==5&&c==7) printf("Yes"); else if(a==5&&b==7&&c==5) printf("Yes"); else if(a==7&&b==5&&c==5) printf("Yes"); else printf("No"); }
a.cc:1:9: fatal error: cstdio.h: No such file or directory 1 | #include<cstdio.h> | ^~~~~~~~~~ compilation terminated.
s816202428
p04043
C
#include<cstdio> int main() { int a,b,c; scanf("%d,%d,%d,&a,&b,&c); if(a==5 && b==5 && c==5); if(a==7 && b==5 && c==5); printf("yes\n"); else printf("no"); }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s152155148
p04043
C++
#include<stdio.h> int main(){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5,B==5,C==7||A==5,B==7,C==5||A==7,B==5,C==5) {printf("yes");} else {printf("no"),} return 0; }
a.cc: In function 'int main()': a.cc:6:24: error: expected primary-expression before '}' token 6 | else {printf("no"),} | ^
s865944204
p04043
C++
#include<stdio.h> int main(){ int A,B,C; scanf("%d %d %d",A,B,C); if(A==5,B==5,C==7||A==5,B==7,C==5||A==7,B==5,C==5) {printf("yes");} else {printf("no"),} return 0; }
a.cc: In function 'int main()': a.cc:6:24: error: expected primary-expression before '}' token 6 | else {printf("no"),} | ^
s126323030
p04043
C++
#include<stdio.h> int main(){ int A,B,C; scanf("%d%d%d",A,B,C); if(A==5,B==5,C==7||A==5,B==7,C==5||A==7,B==5,C==5) {printf("yes");} else {printf("no")} return 0; }
a.cc: In function 'int main()': a.cc:6:23: error: expected ';' before '}' token 6 | else {printf("no")} | ^ | ;
s695577840
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf(%d %d %d",&a,&b,&c); if(a==5 && b==5 && c=7) printf("YES\n"); else if(a==7 && b==5 && c==5) printf("YES\n"); else if(a==5 && b==7 && c==5) printf("YES\n"); else printf("NO\n"); return 0 }
a.cc:5:23: warning: missing terminating " character 5 | scanf(%d %d %d",&a,&b,&c); | ^ a.cc:5:23: error: missing terminating " character 5 | scanf(%d %d %d",&a,&b,&c); | ^~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:5:15: error: expected primary-expression before '%' token 5 | scanf(%d %d %d",&a,&b,&c); | ^ a.cc:5:16: error: 'd' was not declared in this scope 5 | scanf(%d %d %d",&a,&b,&c); | ^ a.cc:8:9: error: 'else' without a previous 'if' 8 | else if(a==7 && b==5 && c==5) | ^~~~ a.cc:13:17: error: expected ';' before '}' token 13 | return 0 | ^ | ; 14 | } | ~
s911354233
p04043
C++
#include<cstido> int main() { int a=0,b=0,c=0; scanf("%d %d %d",&a,&b,&c); if((a==5,b==5,c==7)||(a==5,b==7,c==5)||(a==7,b==5,c==5)) { printf("yes");} else{ printf("no"); } return 0; }
a.cc:1:9: fatal error: cstido: No such file or directory 1 | #include<cstido> | ^~~~~~~~ compilation terminated.
s377462691
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5) printf("yes"); else printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: expected ')' before numeric constant 7 | if (5 5 7,5 7 5,7 5 5) printf("yes"); | ~ ^~ | )
s578074873
p04043
C++
#include<stdio.h> int main(){ int a,b,c; scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5); {printf("yes");} else; {printf("no");} return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: expected ')' before numeric constant 6 | if (5 5 7,5 7 5,7 5 5); | ~ ^~ | ) a.cc:8:5: error: 'else' without a previous 'if' 8 | else; | ^~~~
s899128460
p04043
C++
#include<stdio.h> int main(){ scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5); printf("yes"); else; printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:3:27: error: 'a' was not declared in this scope 3 | scanf("%d\n%d\n%d\n",&a,&b,&c); | ^ a.cc:3:30: error: 'b' was not declared in this scope 3 | scanf("%d\n%d\n%d\n",&a,&b,&c); | ^ a.cc:3:33: error: 'c' was not declared in this scope 3 | scanf("%d\n%d\n%d\n",&a,&b,&c); | ^ a.cc:5:10: error: expected ')' before numeric constant 5 | if (5 5 7,5 7 5,7 5 5); | ~ ^~ | ) a.cc:7:5: error: 'else' without a previous 'if' 7 | else; | ^~~~
s335454091
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("%d,%d,%d\n",A,B,C); scanf("%d%d%d\n"&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:5:26: error: 'A' undeclared (first use in this function) 5 | printf("%d,%d,%d\n",A,B,C); | ^ main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in main.c:5:28: error: 'B' undeclared (first use in this function) 5 | printf("%d,%d,%d\n",A,B,C); | ^ main.c:5:30: error: 'C' undeclared (first use in this function) 5 | printf("%d,%d,%d\n",A,B,C); | ^ main.c:6:22: error: invalid operands to binary & (have 'char *' and 'int') 6 | scanf("%d%d%d\n"&a,&b,&c); | ~~~~~~~~~~^ | | | char * main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s172208086
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C= "); scanf("%d%d%d\n",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s773079167
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C\n"); scanf("%d%d%d\n",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s687134217
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C\n"); scanf("%d%d%d",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s414824803
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int[] unko=new int[3]; int sum=1; for(int i=0; i<3; i++){ unko[i]=cs.nextInt(); sum*=unko[i]; } if(sum==175){ System.out.println("YES"); } else{ System.out.println("NO"); } } }
Main.java:9: error: cannot find symbol unko[i]=cs.nextInt(); ^ symbol: variable cs location: class Main 1 error
s528811561
p04043
C++
#include<stdio.h> #include<stdlib.h> int main(void){ int A,B,C; scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); if(A+B+C=17){ printf("Yes\n"); }else if(A+B+C>17); { printf("No\n"); }else(A+B+C<17){ printf("No\n"); } system("pause"); return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: lvalue required as left operand of assignment 8 | if(A+B+C=17){ | ~~~^~ a.cc:13:10: error: 'else' without a previous 'if' 13 | }else(A+B+C<17){ | ^~~~ a.cc:13:24: error: expected ';' before '{' token 13 | }else(A+B+C<17){ | ^ | ;
s985900941
p04043
C++
#include<stdio.h> #include<stdlib.h> int main(void){ int A,B,C; scanf("%d",&A); scanf("%D",&B); scanf("%D",&C); if(A+B+C=17){ printf("Yes\n"); }else(A+B+C>17&A+B+C<17); { printf("No\n"); } system("pause"); return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: lvalue required as left operand of assignment 8 | if(A+B+C=17){ | ~~~^~
s270746850
p04043
C++
#include<stdio.h> int main(void){ int f,s; int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5){ f++; }else if(a==7){ s++; } if(b==5){ f++; }else if(b==7){ s++; } if(c==5){ f++; }else if(c==7){ s++; } if(f==2 && s==1){ printf("YES\n"); }else{ printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:38:2: error: expected '}' at end of input 38 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s933929643
p04043
Java
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int a = 0, b = 0; if(A == 5) a++; else if(A == 7) b++; if(B == 5) a++; else if(B == 7) b++; if(C == 5) a++; else if(C == 7) b++; if(a == 2 && b == 1) System.out.println("YES"); else System.out.println("NO"); } }
Main.java:3: error: class Test is public, should be declared in a file named Test.java public class Test { ^ 1 error
s446888124
p04043
Java
package com.ACM; import java.util.Scanner; public class Haiku { public void syllables(int A,int B,int C) { if((A<0||A>10)||(B<0||B>10)||(C<0||C>10)) { System.exit(0); }else { switch(A) { case 5: if((B==5&&C==7)||(B==7&&C==5)) { System.out.println("Yes"); }else { System.out.println("No"); } break; case 7: if(B==5&&C==5) { System.out.println("Yes"); }else { System.out.println("No"); } break; default: System.out.println("No"); break; } } } public static void main(String[] args) { // TODO 自动生成的方法存根 Scanner sc=new Scanner(System.in); System.out.println("输入"); int A=sc.nextInt(); int B=sc.nextInt(); int C=sc.nextInt(); new Haiku().syllables(A,B,C); } }
Main.java:5: error: class Haiku is public, should be declared in a file named Haiku.java public class Haiku { ^ 1 error
s697467267
p04043
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define LL long long #define ULL unsigned long long #define E 1e-8 #define mod 1000000007 #define P pair<int,int> using namespace std; int main() { int a[3]; while(cin>>a[0]>>a[1]>>a[2]) { int sum = 0,sum2 = 0; for(int i=0;i<3;i++){ if(a[i] == 5) sum++; else if(a[i] == 7) sum2++; } if((sum == 2) && (sum2 == 1)) cout << "YES" <<endl; else cout<<"NO"<<endl; } }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define LL long long #define ULL unsigned long long #define E 1e-8 #define mod 1000000007 #define P pair<int,int> using namespace std; int main() { int a[3]; while(cin>>a[0]>>a[1]>>a[2]) { int sum = 0,sum2 = 0; for(int i=0;i<3;i++){ if(a[i] == 5) sum++; else if(a[i] == 7) sum2++; } if((sum == 2) && (sum2 == 1)) cout << "YES" <<endl; else cout<<"NO"<<endl; } } | ^ /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
s723877686
p04043
C++
# include 〈stdio.h〉 int main ( ) { int a,b,c; if (a=c=5,b=7) else()
a.cc:1:11: error: extended character 〈 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:1:11: error: #include expects "FILENAME" or <FILENAME> 1 | # include 〈stdio.h〉 | ^~~~~~~ a.cc:1:19: error: extended character 〉 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:2:10: error: expected initializer before '\U0000ff08' 2 | int main ( ) | ^~
s872779164
p04043
C++
# include 〈stdio.h〉 int main ( ) { int A,B,C; if (A=C=5,B=7) (A=B=5,C=7)(B=C=7,A=5)printf("yes.\n") else(A=C=7,B=5)(A=B=7,C=5)(B=C=7,A=5)printf("no.\n") return 0 }
a.cc:1:11: error: extended character 〈 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:1:11: error: #include expects "FILENAME" or <FILENAME> 1 | # include 〈stdio.h〉 | ^~~~~~~ a.cc:1:19: error: extended character 〉 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:2:10: error: expected initializer before '\U0000ff08' 2 | int main ( ) | ^~
s724959454
p04043
C++
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; scanf_s("%d%d%d", &a, &b, &c); if (a == 7, b == 5, c == 5 || a == 5, b == 7, c == 5 || a == 5, b == 5, c == 7) { printf("yes\n"); } else printf("NO\n"); system("pause"); }
a.cc: In function 'int main()': a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%d%d%d", &a, &b, &c); | ^~~~~~~ | scanf
s003679842
p04043
C++
#include<iostream> using namespace std; int main() { long long int n,a,b,s=0; cin>>a>>b>>c; if(a==5&&b==5&&c==7) { cout<<"YES"<<endl; return 0; } if(a==5&&b==7&&c==5) { cout<<"YES"<<endl; return 0; } if(a==7&&b==5&&c==5) { cout<<"YES"<<endl; return 0; } cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:20: error: 'c' was not declared in this scope 6 | cin>>a>>b>>c; | ^
s749932751
p04043
C
#include <stdio.h> #include <stdlib.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(( a==5&&b==5&&c==7)||( a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)) printf("YES\n"); else printf("NO\n"); return o; }
main.c: In function 'main': main.c:11:16: error: 'o' undeclared (first use in this function) 11 | return o; | ^ main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
s293970072
p04043
C
#include <stdio.h> int main() { int n5 = 0, n7 = 0, i, A[4]; scanf_s("%d %d %d", &A[1], &A[2], &A[3]); for (i = 1; i < 4; i++) { if (A[i] = 5)n5++; if (A[i] = 7)n7++; } if (n5 == 2 & n7 == 1)printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 7 | scanf_s("%d %d %d", &A[1], &A[2], &A[3]); | ^~~~~~~ | scanf
s115512958
p04043
C
#include "stdafx.h" int main() { int n5 = 0, n7 = 0, i, A[4]; scanf_s("%d %d %d", &A[1], &A[2], &A[3]); for (i = 1; i < 4; i++) { if (A[i] = 5)n5++; if (A[i] = 7)n7++; } if (n5 == 2 & n7 == 1)printf("YES"); else printf("NO"); return 0; }
main.c:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s443992442
p04043
C
#include<stdio.h> int main() { float,A,B,C; printf ("please enter YES and NO"); scanf (%d ,%d,%d,&A,&B,&C); if(A=5,&&B=5,&&C=7) printf("YES"); else if(A=7,&&B=5,&&C=7)printf("YES"); else if(A=7,&&B=5,&&C=5)printf("YES"); else puts ("NO") return 0; }
main.c: In function 'main': main.c:3:12: error: expected identifier or '(' before ',' token 3 | { float,A,B,C; | ^ main.c:5:12: error: expected expression before '%' token 5 | scanf (%d ,%d,%d,&A,&B,&C); | ^ main.c:6:9: error: 'A' undeclared (first use in this function) 6 | if(A=5,&&B=5,&&C=7) printf("YES"); | ^ main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in main.c:6:16: error: lvalue required as left operand of assignment 6 | if(A=5,&&B=5,&&C=7) printf("YES"); | ^ main.c:6:22: error: lvalue required as left operand of assignment 6 | if(A=5,&&B=5,&&C=7) printf("YES"); | ^ main.c:8:16: error: lvalue required as left operand of assignment 8 | if(A=7,&&B=5,&&C=7)printf("YES"); | ^ main.c:8:22: error: lvalue required as left operand of assignment 8 | if(A=7,&&B=5,&&C=7)printf("YES"); | ^ main.c:10:17: error: lvalue required as left operand of assignment 10 | if(A=7,&&B=5,&&C=5)printf("YES"); | ^ main.c:10:23: error: lvalue required as left operand of assignment 10 | if(A=7,&&B=5,&&C=5)printf("YES"); | ^ main.c:11:23: error: expected ';' before 'return' 11 | else puts ("NO") | ^ | ; 12 | return 0; | ~~~~~~ main.c:10:7: error: label 'C' used but not defined 10 | if(A=7,&&B=5,&&C=5)printf("YES"); | ^~ main.c:10:7: error: label 'B' used but not defined
s632784486
p04043
C
#include<stdio.h> int main() { float,A,B,C; printf ("please enter YES and NO"); scanf (%d ,%d,%d,&A,&B,&C); if(A=5,&&B=5,&&C=7) puts("YES"); else if(A=7,&&B=5,&&C=7)puts("YES"); else if(A=7,&&B=5,&&C=5)puts("YES"); else puts ("NO") return 0; }
main.c: In function 'main': main.c:3:12: error: expected identifier or '(' before ',' token 3 | { float,A,B,C; | ^ main.c:5:12: error: expected expression before '%' token 5 | scanf (%d ,%d,%d,&A,&B,&C); | ^ main.c:6:9: error: 'A' undeclared (first use in this function) 6 | if(A=5,&&B=5,&&C=7) puts("YES"); | ^ main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in main.c:6:16: error: lvalue required as left operand of assignment 6 | if(A=5,&&B=5,&&C=7) puts("YES"); | ^ main.c:6:22: error: lvalue required as left operand of assignment 6 | if(A=5,&&B=5,&&C=7) puts("YES"); | ^ main.c:8:16: error: lvalue required as left operand of assignment 8 | if(A=7,&&B=5,&&C=7)puts("YES"); | ^ main.c:8:22: error: lvalue required as left operand of assignment 8 | if(A=7,&&B=5,&&C=7)puts("YES"); | ^ main.c:10:17: error: lvalue required as left operand of assignment 10 | if(A=7,&&B=5,&&C=5)puts("YES"); | ^ main.c:10:23: error: lvalue required as left operand of assignment 10 | if(A=7,&&B=5,&&C=5)puts("YES"); | ^ main.c:11:23: error: expected ';' before 'return' 11 | else puts ("NO") | ^ | ; 12 | return 0; | ~~~~~~ main.c:10:7: error: label 'C' used but not defined 10 | if(A=7,&&B=5,&&C=5)puts("YES"); | ^~ main.c:10:7: error: label 'B' used but not defined
s883983071
p04043
C
#include<cstdio> #include<iostream> using namespace std; int main() { int a[3]; int x=0,y=0; for(int i=0;i<3;i++) { cin >> a[i]; if(a[i]==5) x++; if(a[i]==7) y++; } if(x==2&&y==1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s271359572
p04043
C++
#include<bits/stdc++.h> int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO"); }
a.cc:2:7: error: expected initializer before 'B' 2 | int A B C | ^
s622391200
p04043
C++
#include<iostream> #include<string> using namespace std; int main() { int n, f = 0, s = 0; for (i = 0; i < 3; i++) { cin >> n; if (n == 5) f += 1; if (n == 7) s += 1; } if (f == 2 && s == 1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:10: error: 'i' was not declared in this scope 8 | for (i = 0; i < 3; i++) { | ^
s020556456
p04043
C
#include<bits/> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
main.c:1:9: fatal error: bits/: No such file or directory 1 | #include<bits/> | ^~~~~~~ compilation terminated.
s692868773
p04043
C++
#include<bits/stdc++.h> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc: In function 'int main()': a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ~~~~^~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^~~ a.cc:8:23: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:8:30: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:9:23: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:9:30: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:7:20: error: label 'B' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^ a.cc:7:28: error: label 'C' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^
s020819268
p04043
C++
#include<bits/stdc++.h> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc: In function 'int main()': a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ~~~~^~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^~~ a.cc:8:23: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:8:30: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:9:23: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:9:30: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:7:20: error: label 'B' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^ a.cc:7:28: error: label 'C' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^
s905209419
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C; | ^ a.cc: In function 'int main()': a.cc:6:27: error: 'A' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:31: error: 'B' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:35: error: 'C' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ~~~~^~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^~~ a.cc:8:23: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:8:30: error: lvalue required as left operand of assignment 8 | else if (A==5 ,&&B=5, &&C=7) puts("YES"); | ^~~ a.cc:9:23: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:9:30: error: lvalue required as left operand of assignment 9 | else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); | ^~~ a.cc:7:20: error: label 'B' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^ a.cc:7:28: error: label 'C' used but not defined 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ^
s204480155
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else puts("NO"); }
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C; | ^ a.cc: In function 'int main()': a.cc:6:27: error: 'A' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:31: error: 'B' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:35: error: 'C' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^
s622424584
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO"); }
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C | ^
s757226066
p04043
C
#include<bits/stdc++.h> using namespace std; int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO"); }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s380259444
p04043
C
#include<bits/stdc++.h> using namespace std; int A,B,C int main() { scanf("%d %d",&A,&B,&C); if(A == 5 &&B ==7 C==5)puts("YES"); while(A == 5 &&B==5 &&C==7)puts(“YES”); while(A==7 &&B==5 &&C==5)puts(“YES”) else puts(“NO”) }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s133340267
p04043
C
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); return 0; }
main.c: In function 'main': main.c:6:10: error: called object is not a function or function pointer 6 | printf("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); | ^~~~~~
s336949665
p04043
C
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); puts("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); return 0; }
main.c: In function 'main': main.c:6:8: error: called object is not a function or function pointer 6 | puts("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); | ^~~~~~
s644089509
p04043
C++
#include<iostream> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; if(a==5&&b==5&&c==7){cout<<"YES"<<endl;return 0;} if(a==5&&b==7&&c==5){cout<<"YES"<<endl;return 0;} if(a==7&&b==5&&c==5){cout<<"YES"<<endl;return 0;}//三种情况 else cout<<"NO"<<endl;/ return 0; }
a.cc: In function 'int main()': a.cc:9:27: error: expected primary-expression before '/' token 9 | else cout<<"NO"<<endl;/ | ^ a.cc:10:5: error: expected primary-expression before 'return' 10 | return 0; | ^~~~~~
s746102566
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> a >> b >> c; if ((a == 5 && b == 7 && c == 5) || (a == 5 && b == 5 && c == 7) || (a == 7 && b == 5 && c == 5)) cout << "YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:5:12: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:22: error: 'c' was not declared in this scope 5 | cin >> a >> b >> c; | ^
s687625351
p04043
C++
#include<bits/stdc++.h> using namespace std; int a,b[10001]; int main() { for(int i=1;i<=n;i++) { cin>>a; b[a]++; } if(b[5]==2&&b[7]==1) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:24: error: 'n' was not declared in this scope 6 | for(int i=1;i<=n;i++) | ^
s598997418
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[3]; cin>>a[0]>>a[1]>>c[2]; sort(a,a+3); if(a[0]==5&&a[1]==5&&a[2]==7){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
a.cc: In function 'int main()': a.cc:6:26: error: 'c' was not declared in this scope 6 | cin>>a[0]>>a[1]>>c[2]; | ^
s798406162
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a=="557"||a=="575"||a=="755") { cout<<"No"; } else { cout<<"Yes"; } }
a.cc: In function 'int main()': a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a=="557"||a=="575"||a=="755") | ~^~~~~~~ a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a=="557"||a=="575"||a=="755") | ~^~~~~~~ a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a=="557"||a=="575"||a=="755") | ~^~~~~~~
s553997319
p04043
C++
#include <bits/stdc++.h> using namespace std; int a[3]; int main() { for(i=1;i<=3;i++) { cin>>a[i]; } if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:13: error: 'i' was not declared in this scope 6 | for(i=1;i<=3;i++) | ^ a.cc:10:23: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 10 | if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES"; | ^ a.cc:10:24: error: expected ')' before '||' token 10 | if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES"; | ~ ^~ | )
s811726522
p04043
Java
import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}}
Main.java:1: error: bad operand types for binary operator '^' import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}} ^ first type: int second type: boolean 1 error
s506410870
p04043
C++
#include <bits/stdc++.h> using namespace std ; int main () { int a [ 4 ] ; for ( int i = 1 ; i <= 3 ; ++ i ){ cin >> a [ i ] ; } sort ( a + 1 , a + 1 + a ) ; if ( a [ 1 ] == 5 && a [ 2 ] == 5 && a [ 3 ] == 7 ){ cout << "YES" ; return 0 ; } cout << "NO" ; return 0 ; }
a.cc: In function 'int main()': a.cc:11:26: error: invalid operands of types 'int*' and 'int [4]' to binary 'operator+' 11 | sort ( a + 1 , a + 1 + a ) ; | ~~~~~ ^ ~ | | | | int* int [4]
s469605001
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c;cin>>a>>b>>c; if(a==5&&b==5&&c==7) { cout<<"YES"<<endl; } else if(a==7&&b==7&&c==5) { cout<<"YES"<<endl; } else if(a==5&&b==7&&c==5) { cout<<5/0<<endl; } else if(a==5&&b==7&&c==7) { while(1){} } else if(a==7&&b==5&&c==5) { long long int e[1000000000][10000000000]; long long int f[1000000000][10000000000]; long long int g[1000000000][10000000000]; long long int h[1000000000][10000000000]; long long int j[1000000000][10000000000]; long long int k[1000000000][10000000000]; long long int l[1000000000][10000000000]; long long int m[1000000000][10000000000]; long long int n[1000000000][10000000000]; long long int o[1000000000][10000000000]; long long int p[1000000000][10000000000]; long long int q[1000000000][10000000000]; long long int r[1000000000][10000000000]; long long int s[1000000000][10000000000]; long long int t[1000000000][10000000000]; } return 0; }
a.cc:22:9: error: extended character   is not valid in an identifier 22 | else if(a==7&&b==5&&c==5) | ^ a.cc: In function 'int main()': a.cc:16:16: warning: division by zero [-Wdiv-by-zero] 16 | cout<<5/0<<endl; | ~^~ a.cc:22:9: error: 'else\U00003000if' was not declared in this scope 22 | else if(a==7&&b==5&&c==5) | ^~~~~~~~
s405146786
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c;cin>>a>>b>>c; if(a==5&&b==7&&c==5)cout<<"YES"<<endl; else if(a==7&&b==5&&c==5)cout<<"NO"<<endl; else if(a==7&&b==7&&c==5) { while(1){} } else if(a==5&&b==7&&c==7) { int d[10000000000][10000000000]={0}; } else { int e=0; int f=100/e; } return 0; }
a.cc: In function 'int main()': a.cc:14:13: error: size of array 'd' exceeds maximum object size '9223372036854775807' 14 | int d[10000000000][10000000000]={0}; | ^
s669212286
p04043
C++
#include <stdio.h> int main(void) #include<stdio.h> int main(void) { int n[3], i, count5 = 0, count7 = 0; for (i = 0; i < 3; i++) { scanf("%d", &n[i]); if (n[i] == 5) { count5 ++; } else if (n[i] == 7) { count7 ++; } } if (count5 == 2 && count7 == 1) { printf("YES\n"); } else { printf("NO\n"); } }
a.cc:7:1: error: expected initializer before 'int' 7 | int main(void) | ^~~
s255001088
p04043
C++
#include<stdio.h> int main(void){ int a[3]; for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int jud = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) jud = 0; else if(a[1]==7) jud = 0: } else if(a[0]==7){ if(a[1]==5) jud = 0; } } if(jud = 0) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:12:37: error: expected ';' before ':' token 12 | else if(a[1]==7) jud = 0: | ^ | ;
s837886469
p04043
C++
#include<stdio.h> int main(void){ int a[3] for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int jud = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) jud = 0; else if(a[1]==7) jud = 0: } else if(a[0]==7){ if(a[1]==5) jud = 0; } } if(jud = 0) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: expected initializer before 'for' 5 | for(int i=0;i<3;i++){ | ^~~ a.cc:5:17: error: 'i' was not declared in this scope 5 | for(int i=0;i<3;i++){ | ^ a.cc:9:9: error: 'a' was not declared in this scope 9 | if((a[0]+a[1]+a[2])==17){ | ^ a.cc:12:37: error: expected ';' before ':' token 12 | else if(a[1]==7) jud = 0: | ^ | ;
s969155331
p04043
C++
#include<stdio.h> int main(void){ int a[3] for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int true = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) true = 0; else if(a[1]==7) true = 0: } else if(a[0]==7){ if(a[1]==5) true = 0; } } if(true = 0) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: expected initializer before 'for' 5 | for(int i=0;i<3;i++){ | ^~~ a.cc:5:17: error: 'i' was not declared in this scope 5 | for(int i=0;i<3;i++){ | ^ a.cc:8:9: error: expected unqualified-id before 'true' 8 | int true = 1; | ^~~~ a.cc:9:9: error: 'a' was not declared in this scope 9 | if((a[0]+a[1]+a[2])==17){ | ^ a.cc:11:32: error: lvalue required as left operand of assignment 11 | if(a[1]==5) true = 0; | ^ a.cc:12:37: error: lvalue required as left operand of assignment 12 | else if(a[1]==7) true = 0: | ^ a.cc:15:32: error: lvalue required as left operand of assignment 15 | if(a[1]==5) true = 0; | ^ a.cc:18:15: error: lvalue required as left operand of assignment 18 | if(true = 0) printf("YES\n"); | ^