submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s535970832
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B; getline(cin,A); getline(cin,B); if(A>B){ cout<<"GREATER"; } if(B>A){ cout<<"LESS"; } if(A==B){ cout<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:15:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 15 | cout<"EQUAL"; | ~~~~^~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:15:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:15:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 15 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 15 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 15 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:15:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 15 | cout<"EQUAL"; | ^~~~~~~ /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:15:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 15 | cout<"EQUAL"; | ^~~~~~~ /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,
s305165981
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B; cin>>A>>B; if(A>B){ cout<<"GREATER"; } if(B>A){ cout<<"LESS"; } if(A==B){ cout<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:14:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 14 | cout<"EQUAL"; | ~~~~^~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 14 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 14 | cout<"EQUAL"; | ^~~~~~~ /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:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 14 | cout<"EQUAL"; | ^~~~~~~ /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,
s649970561
p03738
C++
#include<iostream> using namespace std; int main(){ int M,N; cin>>M>>N; cout<<(MN - 1)/2; }
a.cc: In function 'int main()': a.cc:6:16: error: 'MN' was not declared in this scope; did you mean 'N'? 6 | cout<<(MN - 1)/2; | ^~ | N
s021109258
p03738
C++
r#include<iostream> using namespace std; int main(){ int M,N; cin>>M>>N; cout<<(MN - 1)/2; }
a.cc:1:2: error: stray '#' in program 1 | r#include<iostream> | ^ a.cc:1:1: error: 'r' does not name a type 1 | r#include<iostream> | ^ a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>M>>N; | ^~~ a.cc:6:9: error: 'cout' was not declared in this scope 6 | cout<<(MN - 1)/2; | ^~~~ a.cc:6:16: error: 'MN' was not declared in this scope; did you mean 'N'? 6 | cout<<(MN - 1)/2; | ^~ | N
s535637298
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A; string B; cin>>A; cin>>B; "A"=0; "B"=0; if (A>B) cout <<"GREATER"; else if(A<B) cout <<"LESS"; else cout <<"EQUAL"; return 0; }
a.cc: In function 'int main()': a.cc:10:12: error: assignment of read-only location '"A"' 10 | "A"=0; | ~~~^~ a.cc:11:12: error: assignment of read-only location '"B"' 11 | "B"=0; | ~~~^~
s164004293
p03738
C++
#include <bits/std.c++.h> using namespace std; int main(){ string A; string B; cin>>A; cin>>B; "A">=0; "B">=0; if (A>B) cout <<"GREATER"; else if(A<B) cout <<"LESS"; else cout <<"EQUAL"; return 0; }
a.cc:1:10: fatal error: bits/std.c++.h: No such file or directory 1 | #include <bits/std.c++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s414032113
p03738
C++
using namespace std; int main(){ string A; string B; cin>>A; cin>>B; "A">=0; "B">=0; if (A>B) cout <<"GREATER"; else if(A<B) cout <<"LESS"; else cout <<"EQUAL"; return 0; }
a.cc: In function 'int main()': a.cc:4:5: error: 'string' was not declared in this scope 4 | string A; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:5:11: error: expected ';' before 'B' 5 | string B; | ^~ | ; a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>A; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:6:14: error: 'A' was not declared in this scope 6 | cin>>A; | ^ a.cc:7:14: error: 'B' was not declared in this scope 7 | cin>>B; | ^ a.cc:8:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int') 8 | "A">=0; | ~~~^~~ a.cc:9:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int') 9 | "B">=0; | ~~~^~~ a.cc:13:9: error: 'cout' was not declared in this scope 13 | cout <<"GREATER"; | ^~~~ a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:15:9: error: 'cout' was not declared in this scope 15 | cout <<"LESS"; | ^~~~ a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:17:9: error: 'cout' was not declared in this scope 17 | cout <<"EQUAL"; | ^~~~ a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s118627475
p03738
C++
using namespace std; int main(){ string A; string B; cin>>A; cin>>B; "A">=0; "b">=0; if (A>B) cout <<"GREATER"; else if(A<B) cout <<"LESS"; else cout <<"EQUAL"; return 0; }
a.cc: In function 'int main()': a.cc:4:5: error: 'string' was not declared in this scope 4 | string A; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:5:11: error: expected ';' before 'B' 5 | string B; | ^~ | ; a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>A; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:6:14: error: 'A' was not declared in this scope 6 | cin>>A; | ^ a.cc:7:14: error: 'B' was not declared in this scope 7 | cin>>B; | ^ a.cc:8:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int') 8 | "A">=0; | ~~~^~~ a.cc:9:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int') 9 | "b">=0; | ~~~^~~ a.cc:13:9: error: 'cout' was not declared in this scope 13 | cout <<"GREATER"; | ^~~~ a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:15:9: error: 'cout' was not declared in this scope 15 | cout <<"LESS"; | ^~~~ a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:17:9: error: 'cout' was not declared in this scope 17 | cout <<"EQUAL"; | ^~~~ a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s134232499
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a,b;cin>>a>>b; if(a>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator>=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a>=1) | ~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} 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:1165:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1165 | operator>=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1165:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1248: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>&)' 1248 | operator>=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1248:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1341: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>&)' 1341 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1341:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1415:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1415 | operator>=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1415:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1509:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1509 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1509:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1586:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1586 | operator>=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1586:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1686:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1686 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1686:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ 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:1070:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1070 | operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1070:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a>=1) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:476:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 476 | operator>=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:476:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 520 | operator>=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1724 | operator>=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1781 | operator>=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:739:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 739 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:739:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1) | ^ /usr/include/c++/14/string_view:746: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> >)' 746 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:746:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1) | ^ /usr/include/c++/14/string_view:754: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>)' 754 | operator>=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:754:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/basic_string.h:3997: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>&)' 3997 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3997:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/basic_string.h:4011:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 4011 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4011:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const _CharT*' and 'int' 5 | if(a>=1) | ^ /usr
s471327082
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a,b;cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:11: error: invalid types 'double[int]' for array subscript 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ a.cc:5:20: error: invalid types 'double[int]' for array subscript 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^
s260487678
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {int a[int];int b[int];cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:4:8: error: expected primary-expression before 'int' 4 | {int a[int];int b[int];cin>>a>>b; | ^~~ a.cc:4:8: error: expected ']' before 'int' 4 | {int a[int];int b[int];cin>>a>>b; | ^~~ | ] a.cc:4:19: error: expected primary-expression before 'int' 4 | {int a[int];int b[int];cin>>a>>b; | ^~~ a.cc:4:19: error: expected ']' before 'int' 4 | {int a[int];int b[int];cin>>a>>b; | ^~~ | ] a.cc:4:29: error: 'a' was not declared in this scope 4 | {int a[int];int b[int];cin>>a>>b; | ^ a.cc:4:32: error: 'b' was not declared in this scope 4 | {int a[int];int b[int];cin>>a>>b; | ^
s483261387
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {int a;int b;cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:11: error: invalid types 'int[int]' for array subscript 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ a.cc:5:20: error: invalid types 'int[int]' for array subscript 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^
s859643310
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {int a[30];int b[30];cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:4:25: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [30]') 4 | {int a[30];int b[30];cin>>a>>b; | ~~~^~~ | | | | | int [30] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*' 4 | {int a[30];int b[30];cin>>a>>b; | ^ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'short int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(short int)((int*)(& a))' to 'short int&' /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(short unsigned int)((int*)(& a))' to 'short unsigned int&' /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(int)((int*)(& a))' to 'int&' /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'unsigned int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(unsigned int)((int*)(& a))' to 'unsigned int&' /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'long int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(long int)((int*)(& a))' to 'long int&' /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(long unsigned int)((int*)(& a))' to 'long unsigned int&' /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'long long int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(long long int)((int*)(& a))' to 'long long int&' /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive] 4 | {int a[30];int b[30];cin>>a>>b; | ^ | | | int* a.cc:4:27: error: cannot bind rvalue '(long long unsigned int)((int*)(& a))' to 'long long unsigned int&' /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:4:27: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*' 4 | {int a[30];int b[30];cin>>a>>b; | ^ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'int [30]' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'int [30]' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'int [30]' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'int [30]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>
s456283366
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a[38];double b[38];cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:4:31: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double [38]') 4 | {double a[38];double b[38];cin>>a>>b; | ~~~^~~ | | | | | double [38] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'double*' 4 | {double a[38];double b[38];cin>>a>>b; | ^ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'short int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(short int)((double*)(& a))' to 'short int&' /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'short unsigned int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(short unsigned int)((double*)(& a))' to 'short unsigned int&' /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(int)((double*)(& a))' to 'int&' /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'unsigned int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(unsigned int)((double*)(& a))' to 'unsigned int&' /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'long int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(long int)((double*)(& a))' to 'long int&' /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'long unsigned int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(long unsigned int)((double*)(& a))' to 'long unsigned int&' /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'long long int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(long long int)((double*)(& a))' to 'long long int&' /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: invalid conversion from 'double*' to 'long long unsigned int' [-fpermissive] 4 | {double a[38];double b[38];cin>>a>>b; | ^ | | | double* a.cc:4:33: error: cannot bind rvalue '(long long unsigned int)((double*)(& a))' to 'long long unsigned int&' /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:4:33: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*' 4 | {double a[38];double b[38];cin>>a>>b; | ^ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'double [38]' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'double [38]' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'double [38]' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'double [38]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)'
s951154650
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a[10^100];double b[10^100];cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:4:13: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | --- | 1e a.cc:4:11: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^~ | 0xa a.cc:4:30: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | --- | 1e a.cc:4:28: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^~ | 0xa a.cc:4:39: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double [110]') 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ~~~^~~ | | | | | double [110] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'double*' 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'short int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(short int)((double*)(& a))' to 'short int&' /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'short unsigned int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(short unsigned int)((double*)(& a))' to 'short unsigned int&' /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(int)((double*)(& a))' to 'int&' /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'unsigned int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(unsigned int)((double*)(& a))' to 'unsigned int&' /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'long int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(long int)((double*)(& a))' to 'long int&' /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'long unsigned int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(long unsigned int)((double*)(& a))' to 'long unsigned int&' /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'long long int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(long long int)((double*)(& a))' to 'long long int&' /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: invalid conversion from 'double*' to 'long long unsigned int' [-fpermissive] 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ | | | double* a.cc:4:41: error: cannot bind rvalue '(long long unsigned int)((double*)(& a))' to 'long long unsigned int&' /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:4:41: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*' 4 | {double a[10^100];double b[10^100];cin>>a>>b; | ^ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'double [110]' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for a
s875376109
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a[];double b[];cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: storage size of 'a' isn't known 4 | {double a[];double b[];cin>>a>>b; | ^ a.cc:4:20: error: storage size of 'b' isn't known 4 | {double a[];double b[];cin>>a>>b; | ^
s509873128
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a;string b;cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator>=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} 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:1165:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1165 | operator>=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1165:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1248: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>&)' 1248 | operator>=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1248:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1341: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>&)' 1341 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1341:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1415:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1415 | operator>=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1415:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1509:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1509 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1509:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1586:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1586 | operator>=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1586:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1686:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1686 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1686:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ 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:1070:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1070 | operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1070:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:476:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 476 | operator>=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:476:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 520 | operator>=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1724 | operator>=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1781 | operator>=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:739:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 739 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:739:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/string_view:746: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> >)' 746 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:746:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/string_view:754: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>)' 754 | operator>=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:754:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/basic_string.h:3997: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>&)' 3997 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3997:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/basic_string.h:4011:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _Ch
s756282326
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a,b;cin>>a>>b; if(a>=1&&b[0]>=1&&a[0]>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator>=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} 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:1165:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1165 | operator>=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1165:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1248: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>&)' 1248 | operator>=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1248:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1341: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>&)' 1341 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1341:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1415:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1415 | operator>=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1415:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1509:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1509 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1509:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1586:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1586 | operator>=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1586:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/regex.h:1686:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1686 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1686:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ 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:1070:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1070 | operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1070:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:476:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 476 | operator>=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:476:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 520 | operator>=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1724 | operator>=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1781 | operator>=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:739:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 739 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:739:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/string_view:746: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> >)' 746 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:746:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/string_view:754: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>)' 754 | operator>=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:754:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/basic_string.h:3997: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>&)' 3997 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3997:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a>=1&&b[0]>=1&&a[0]>=1) | ^ /usr/include/c++/14/bits/basic_string.h:4011:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _Ch
s159513546
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a,b;cin>>a>>b; if(a>=1&&a[0]>0&&b[0]>0) { if(a>b) cout<<"greater"; if(a<b) cout<<"less"; if(a==b) cout<<"equal"; } return 0; }
a.cc: In function 'int main()': a.cc:5:11: error: invalid types 'double[int]' for array subscript 5 | if(a>=1&&a[0]>0&&b[0]>0) | ^ a.cc:5:19: error: invalid types 'double[int]' for array subscript 5 | if(a>=1&&a[0]>0&&b[0]>0) | ^
s778353376
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double a,b;cin>>a>>b; if(a<=1&&a[0]>0&&b[0]>0) { if(a>b) cout<<"greater"; if(a<b) cout<<"less"; if(a==b) cout<<"equal"; } return 0; }
a.cc: In function 'int main()': a.cc:5:11: error: invalid types 'double[int]' for array subscript 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ a.cc:5:19: error: invalid types 'double[int]' for array subscript 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^
s187207593
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a,b;cin>>a>>b; if(a<=1&&a[0]>0&&b[0]>0) { if(a>b) cout<<"greater"; if(a<b) cout<<"less"; if(a==b) cout<<"equal"; } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a<=1&&a[0]>0&&b[0]>0) | ~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} 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:1154:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1154 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1154:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1260: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>&)' 1260 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1260:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1353: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>&)' 1353 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1353:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1427:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1427 | operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1427:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1521:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1521 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1521:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1599:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1599 | operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1599:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/regex.h:1699:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1699 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1699:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ 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:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 469 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 513 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1704 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1767 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 717 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/string_view:724: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> >)' 724 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/string_view:732: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>)' 732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/basic_string.h:3956: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>&)' 3956 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3956:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a<=1&&a[0]>0&&b[0]>0) | ^ /usr/include/c++/14/bits/basic_string.h:3970:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3970 | operator<=(cons
s296294429
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a,b;cin>>a>>b; if(a<=1&&a[0]!=0&&b[0]!=0) { if(a>b) cout<<"greater"; if(a<b) cout<<"less"; if(a==b) cout<<"equal"; } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} 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:1154:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1154 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1154:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1260: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>&)' 1260 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1260:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1353: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>&)' 1353 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1353:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1427:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1427 | operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1427:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1521:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1521 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1521:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1599:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1599 | operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1599:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/regex.h:1699:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1699 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1699:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ 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:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 469 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 513 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1704 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1767 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 717 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/string_view:724: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> >)' 724 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/string_view:732: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>)' 732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/basic_string.h:3956: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>&)' 3956 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3956:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a<=1&&a[0]!=0&&b[0]!=0) | ^ /usr/include/c++/14/bits/basic_string.h:3970:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _Ch
s702324752
p03738
C++
ً#include<iostream> #include<string> using namespace std; int main(){ double long a,b; cin>>a>>b; if(a>b) cout<<"GREATER\n"; else if(a<b) cout<<"LESS\n"; else cout<<"EQUAL\n"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<iostream> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<iostream> | In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | typedef ptrdiff_t streamsize; // Signed integral type | ^~~~~~~~~ /usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 40 | #include <cwchar> // For mbstate_t +++ |+#include <cstddef> 41 | In file included from /usr/include/c++/14/bits/char_traits.h:50: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/14/cwchar:44, from /usr/include/c++/14/bits/postypes.h:40: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared 144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type 146 | static _GLIBCXX14_CONSTEXPR std::size_t | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared 150 | find(const char_type* __s, std::size_t __n, const char_type& __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared 153 | move(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared 156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared 159 | assign(char_type* __s, std::size_t __n, char_type __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared 187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n) | ^~~ /usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)': /usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~ | __n /usr/include/c++/14/bits/char_traits.h: At global scope: /usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does no
s051108658
p03738
C++
ً#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a>b) cout<<"GRATER"; else if(a<b) cout<<"LESS"; else cout<<"EQUAL"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<bits/stdc++.h> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<bits/stdc++.h> | a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string a,b; | ^~~~~~ a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>a>>b; | ^~~ a.cc:5:14: error: 'a' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout<<"GRATER"; | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout<<"LESS"; | ^~~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout<<"EQUAL"; | ^~~~
s592980681
p03738
C++
ً#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a>b) cout<<"GRATER\n"; else if(a<b) cout<<"LESS\n"; else cout<<"EQUAL\n"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<bits/stdc++.h> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<bits/stdc++.h> | a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string a,b; | ^~~~~~ a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>a>>b; | ^~~ a.cc:5:14: error: 'a' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout<<"GRATER\n"; | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout<<"LESS\n"; | ^~~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout<<"EQUAL\n"; | ^~~~
s556928729
p03738
C++
ً#include<bits\stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a>b) cout<<"GRATER\n"; else if(a<b) cout<<"LESS\n"; else cout<<"EQUAL\n"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<bits\stdc++.h> | ^ a.cc:1:14: error: stray '\' in program 1 | ً#include<bits\stdc++.h> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<bits\stdc++.h> | a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string a,b; | ^~~~~~ a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>a>>b; | ^~~ a.cc:5:14: error: 'a' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin>>a>>b; | ^ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout<<"GRATER\n"; | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout<<"LESS\n"; | ^~~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout<<"EQUAL\n"; | ^~~~
s743207573
p03738
C++
ً#include<iostream> #include<string> using namespace std; int main(){ string a,b; cin>>a>>b; if(a>b) cout<<"GRATER\n"; else if(a<b) cout<<"LESS\n"; else cout<<"EQUAL\n"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<iostream> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<iostream> | In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | typedef ptrdiff_t streamsize; // Signed integral type | ^~~~~~~~~ /usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 40 | #include <cwchar> // For mbstate_t +++ |+#include <cstddef> 41 | In file included from /usr/include/c++/14/bits/char_traits.h:50: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/14/cwchar:44, from /usr/include/c++/14/bits/postypes.h:40: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared 144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type 146 | static _GLIBCXX14_CONSTEXPR std::size_t | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared 150 | find(const char_type* __s, std::size_t __n, const char_type& __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared 153 | move(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared 156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared 159 | assign(char_type* __s, std::size_t __n, char_type __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared 187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n) | ^~~ /usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)': /usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~ | __n /usr/include/c++/14/bits/char_traits.h: At global scope: /usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does no
s120038659
p03738
C++
ً#include<iostream> #include<string> using namespace std; int main(){ string a,b; cin>>a>>b; if(a>b) cout<<"GRATER\n"; else if(a<b) cout<<"LESS\n"; else cout<<"EQUAL\n"; }
a.cc:1:1: error: stray '#' in program 1 | ً#include<iostream> | ^ a.cc:1:1: error: '\U0000064b' does not name a type 1 | ً#include<iostream> | In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | typedef ptrdiff_t streamsize; // Signed integral type | ^~~~~~~~~ /usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 40 | #include <cwchar> // For mbstate_t +++ |+#include <cstddef> 41 | In file included from /usr/include/c++/14/bits/char_traits.h:50: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/14/cwchar:44, from /usr/include/c++/14/bits/postypes.h:40: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared 144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type 146 | static _GLIBCXX14_CONSTEXPR std::size_t | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared 150 | find(const char_type* __s, std::size_t __n, const char_type& __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared 153 | move(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared 156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n); | ^~~ /usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared 159 | assign(char_type* __s, std::size_t __n, char_type __a); | ^~~ /usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared 187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n) | ^~~ /usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)': /usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'? 189 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~ | __n /usr/include/c++/14/bits/char_traits.h: At global scope: /usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does no
s874164375
p03738
C++
#include <iostream> #include <stdio.h> using namespace std; int main() { int long long a, b; scanf_s("%d %d", &a, &b); if (a > b) printf_s("GREATER"); else if (a < b) printf_s("LESS"); else if (a = b) printf_s("EQUAL"); }
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", &a, &b); | ^~~~~~~ | scanf a.cc:8:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'? 8 | printf_s("GREATER"); | ^~~~~~~~ | printf a.cc:10:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'? 10 | printf_s("LESS"); | ^~~~~~~~ | printf a.cc:12:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'? 12 | printf_s("EQUAL"); | ^~~~~~~~ | printf
s048406842
p03738
C++
#include <bits/stdc++.h> #include <math.h> using namespace std; int main(){ int N; long long B; long long X=pow(10,100); scanf("%d%lld",&N,&B); if(N>=1&&B<=X){ if(N>B) cout<"GRATER"; else cout<<"LESS"; } }
a.cc: In function 'int main()': a.cc:8:16: warning: overflow in conversion from 'double' to 'long long int' changes value from '1.0e+100' to '9223372036854775807' [-Woverflow] 8 | long long X=pow(10,100); | ~~~^~~~~~~~ a.cc:12:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [7]') 12 | cout<"GRATER"; | ~~~~^~~~~~~~~ | | | | | const char [7] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:12:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [7]' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:12:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [7]' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | cout<"GRATER"; | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 12 | cout<"GRATER"; | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 12 | cout<"GRATER"; | ^~~~~~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:12:6: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:12:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 12 | cout<"GRATER"; | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: no
s081813785
p03738
C++
#include<iostream> using namespace std; int main(){ long long int int x,y; cin>>x>>y; if(x>y) cout<<"GREATER"; else if (x<y) cout<<"LESS"; else cout<<"EQUAL"; }
a.cc: In function 'int main()': a.cc:4:19: error: two or more data types in declaration of 'x' 4 | long long int int x,y; | ^~~ a.cc:4:19: error: two or more data types in declaration of 'y' a.cc:5:14: error: 'x' was not declared in this scope 5 | cin>>x>>y; | ^ a.cc:5:17: error: 'y' was not declared in this scope 5 | cin>>x>>y; | ^
s136876763
p03738
C++
#include<iostream> using namespace std; int main(){ long long int long long x,y; cin>>x>>y; if(x>y) cout<<"GREATER"; else if (x<y) cout<<"LESS"; else cout<<"EQUAL"; }
a.cc: In function 'int main()': a.cc:4:23: error: 'long long long' is too long for GCC 4 | long long int long long x,y; | ^~~~ a.cc:4:28: error: 'long long long' is too long for GCC 4 | long long int long long x,y; | ^~~~
s031123196
p03738
C++
#include <bits/stdc++.h> using namespace std; int main () { long long A[10^100],B[10^100]; cin>>A[10^100]>>B[10^100]; A[0] =!0; B[0] =!0; if (A[10^100]==B[10^100]) cout<<"EQUAL\n"; else if (A[10^100]>B[10^100]) cout<<"GREATER\n"; else cout<<"LESS\n"; return 0;
a.cc: In function 'int main()': a.cc:6:23: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 6 | long long A[10^100],B[10^100]; | ^ | --- | 1e a.cc:6:21: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 6 | long long A[10^100],B[10^100]; | ^~ | 0xa a.cc:6:33: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 6 | long long A[10^100],B[10^100]; | ^ | --- | 1e a.cc:6:31: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 6 | long long A[10^100],B[10^100]; | ^~ | 0xa a.cc:7:18: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 7 | cin>>A[10^100]>>B[10^100]; | ^ | --- | 1e a.cc:7:16: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 7 | cin>>A[10^100]>>B[10^100]; | ^~ | 0xa a.cc:7:29: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 7 | cin>>A[10^100]>>B[10^100]; | ^ | --- | 1e a.cc:7:27: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 7 | cin>>A[10^100]>>B[10^100]; | ^~ | 0xa a.cc:10:17: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 10 | if (A[10^100]==B[10^100]) | ^ | --- | 1e a.cc:10:15: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 10 | if (A[10^100]==B[10^100]) | ^~ | 0xa a.cc:10:28: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 10 | if (A[10^100]==B[10^100]) | ^ | --- | 1e a.cc:10:26: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 10 | if (A[10^100]==B[10^100]) | ^~ | 0xa a.cc:12:22: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 12 | else if (A[10^100]>B[10^100]) | ^ | --- | 1e a.cc:12:20: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 12 | else if (A[10^100]>B[10^100]) | ^~ | 0xa a.cc:12:32: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow] 12 | else if (A[10^100]>B[10^100]) | ^ | --- | 1e a.cc:12:30: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10) 12 | else if (A[10^100]>B[10^100]) | ^~ | 0xa a.cc:15:18: error: expected '}' at end of input 15 | return 0; | ^ a.cc:5:1: note: to match this '{' 5 | { | ^
s498377148
p03738
C++
#include<iostream> using namespace std; int main(){ string A; string B; cin>>A; cin>>B; if(A>0&&B>0) if(A>B){ cout<<"GREATER"<<endl; } else if(A<B){ cout<<"LESS"<<endl; } else{ cout<<"EQUAL"<<endl;} }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(A>0&&B>0) | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(A>0&&B>0) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const _CharT*' and 'int' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(A>0&&B>0) | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(A>0&&B>0) | ^ a.cc:8:18: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(A>0&&B>0) | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0) | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:8:19: not
s787748218
p03738
C++
using namespace std; int main(){ long long A; long long B; cin>>A; cin>>B; if(A>0&&B>0) if(A>B){ cout<<"GREATER"<<endl; } else if(A<B){ cout<<"LESS"<<endl; } else{ cout<<"EQUAL"<<endl;} }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>A; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:9:25: error: 'cout' was not declared in this scope 9 | cout<<"GREATER"<<endl; | ^~~~ a.cc:9:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:42: error: 'endl' was not declared in this scope 9 | cout<<"GREATER"<<endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | using namespace std; a.cc:12:25: error: 'cout' was not declared in this scope 12 | cout<<"LESS"<<endl; | ^~~~ a.cc:12:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:12:39: error: 'endl' was not declared in this scope 12 | cout<<"LESS"<<endl; | ^~~~ a.cc:12:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' a.cc:16:9: error: 'cout' was not declared in this scope 16 | cout<<"EQUAL"<<endl;} | ^~~~ a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:16:24: error: 'endl' was not declared in this scope 16 | cout<<"EQUAL"<<endl;} | ^~~~ a.cc:16:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s324709691
p03738
C++
#include<iostream> using namespace std; int main(){ string A; string B; cin>>A; cin>>B; if(A>0&&B>0){ if(A>B) cout<<"GREATER"<<endl; else if(A<B) cout<<"LESS"<<endl; else cout<<"EQUAL"<<endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(A>0&&B>0){ | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const _CharT*' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:8:14: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:8:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(A>0&&B>0){ | ^ a.cc:8:18: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(A>0&&B>0){ | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution faile
s255401335
p03738
C++
#include<iostream> using namespace std; int main(){ int A; string B; cin>>A; cin>>B; if(A>0&&B>0){ if(A>B) cout<<"GREATER"<<endl; else if(A<B) cout<<"LESS"<<endl; else cout<<"EQUAL"<<endl; } }
a.cc: In function 'int main()': a.cc:8:18: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(A>0&&B>0){ | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const _CharT*' and 'int' 8 | if(A>0&&B>0){ | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:8:19: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(A>0&&B>0){ | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:8:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(A>0&&B>0){ | ^ a.cc:9:21: error: no match for 'operator>' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 9 | if(A>B) | ~^~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | int /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:9:22: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(A>B) | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:9:22: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(A>B) | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:9:22: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 9 | if(A>B) | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:9:22: note: mismatched ty
s806640070
p03738
C++
#include<iostream> using namespace std; int main(){ int A,B; cin>>A>>B; if(A!=0&&B!=0){ if(A>B) cout<<"GREATER"<<endl; else if(A<B) cout<<"LESS"<<endl; else cout<<"EQUAL"<<endl; }
a.cc: In function 'int main()': a.cc:13:10: error: expected '}' at end of input 13 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s691164562
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A,B; cin >> A >> B; if(A.length()>B.length()) cout << "GREATER"; else if(A.length()<B.length())cout << "LESS"; else if(A==B)cout << "EQUAL"; else if{ for(int i=0;true;i++){ if(A[i]>B[i]){ cout << "GREATER"; break; } else if(A[i]<B[i]){ cout << "LESS"; break; } } } }
a.cc: In function 'int main()': a.cc:10:10: error: expected '(' before '{' token 10 | else if{ | ^ | (
s574838930
p03738
C++
#include<bits/stdc++> using namespace std; int main(){ string a,b;cin>>a>>b; if(a==b)cout<<"EQUAL"<<endl,exit(0); if(a.size()>b.size())cout<<"GREATER"<<endl;exit(0); if(a.size()<b.size())cout<<"LESS"<<endl;exit(0); for(int i=0;i<a.size();i++){ if(a[i]>b[i])cout<<"GREATER"<<endl;exit(0); if(a[i]<b[i])cout<<"LESS"<<endl;exit(0); } }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s981993639
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b;cin>>a>>b; if(a.size()>b.size())cout<<"GREATER"<<endl; else if(a.size()<b.size())cout<<"LESS"<<endl; else if(a==b)cout<<"EQUAL"<<endl; else{ for(int i=0;i<a.size()<i++){ if(a.at(i)>b.at(i)){ cout<<"GREATER"<<endl; break; } else if(a.at(i)<b.at(i)){ cout<<"LESS"<<endl; break; } } } }
a.cc: In function 'int main()': a.cc:9:31: error: expected ';' before ')' token 9 | for(int i=0;i<a.size()<i++){ | ^ | ;
s852105322
p03738
C++
#include <iostream> #include <fstream> #include <vector> #include <algorithm> #include <cmath> using namespace std; int main(int argc, const char * argv[]) { if(sa == sb){ cout << "EQUAL" << endl; }else if(sa.size() > sb.size() || (sa.size() == sb.size() && sa > sb)){ cout << "GREATER" << endl; }else{ cout << "LESS" << endl; } return 0; }
a.cc: In function 'int main(int, const char**)': a.cc:10:6: error: 'sa' was not declared in this scope 10 | if(sa == sb){ | ^~ a.cc:10:12: error: 'sb' was not declared in this scope 10 | if(sa == sb){ | ^~
s906858260
p03738
Java
import util.java.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int compare = scanner.next().compareTo(scanner.next()); System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS"); } }
Main.java:4: error: cannot find symbol static Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:1: error: package util.java does not exist import util.java.*; ^ Main.java:4: error: cannot find symbol static Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 3 errors
s351427397
p03738
Java
import util.java.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int compare = scanner.next().compareTo(scanner.next()); System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS"); } }
Main.java:4: error: cannot find symbol static Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:1: error: package util.java does not exist import util.java.*; ^ Main.java:4: error: cannot find symbol static Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 3 errors
s724437973
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B; cin>>A>>B; if(A.size()!=B.size()){ if(A.size()>B.size()){ cout<<"GREATER"<<endl; } else if(A.size()<B.size()){ cout<<"LESS"<<endl; } else{ cout<<"EQUAL"<<endl; } } else if(A.size()==B.size()){ if(A==B){ cout<<"EQUAL"<<endl; } else { for(int i=0;i<A.size();i++){ if(A.size(i)-'0'!=B.size()-'0'){ if(A.size(i)-'0'>B.size()-'0'){ cout<<"GREATER"<<endl; } else if(A.size(i)-'0'<B.size()-'0'){ cout<<"LESS"<<endl; } } } } }
a.cc: In function 'int main()': a.cc:30:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 30 | if(A.size(i)-'0'!=B.size()-'0'){ | ~~~~~~^~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1076 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate expects 0 arguments, 1 provided a.cc:31:17: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 31 | if(A.size(i)-'0'>B.size()-'0'){ | ~~~~~~^~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1076 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate expects 0 arguments, 1 provided a.cc:35:22: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 35 | else if(A.size(i)-'0'<B.size()-'0'){ | ~~~~~~^~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1076 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate expects 0 arguments, 1 provided a.cc:42:4: error: expected '}' at end of input 42 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s567683406
p03738
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ usigned long long A,B; cin>>A>>B; if(A>B){ cout<<"GREATER"<<endl; }else if(A<B){ cout<<"LESS"<<endl; }else{ cout<<"EQUAL"<<endl; } }
a.cc: In function 'int main()': a.cc:6:5: error: 'usigned' was not declared in this scope; did you mean 'unsigned'? 6 | usigned long long A,B; | ^~~~~~~ | unsigned a.cc:7:10: error: 'A' was not declared in this scope 7 | cin>>A>>B; | ^ a.cc:7:13: error: 'B' was not declared in this scope 7 | cin>>A>>B; | ^
s650568173
p03738
C++
#include <bits/stdc++.h> #define x first #define y second #define pii pair<int,int> using namespace std; int main() { // your code goes here string num1,num2; cin>>num1>>num2; int res = s1.compare(s2); if(res==0) printf("EQUAL"); else printf("%s\n", res <0 ? "GREATER" : "LESS"); return 0; }
a.cc: In function 'int main()': a.cc:11:19: error: 's1' was not declared in this scope; did you mean 'y1'? 11 | int res = s1.compare(s2); | ^~ | y1 a.cc:11:30: error: 's2' was not declared in this scope 11 | int res = s1.compare(s2); | ^~
s176891909
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> A; vector<int> B; cin>>A>>B; int C==A.size() -1; if(A.size()>B.size()) cout<<"GREATER"<<endl; if(A.size()<B.size()) cout<<"LESS"<<endl; if(A.size()==B.size()){ for(int i=0;i<1000;i++){ if(A.at(i)>B.at(i)){ cout<<"GREATER"<<endl; break; } if(A.at(i)<B.at(i)){ cout<<"LESS"<<endl; break; } if(A.at(i)==B.at(i)){ if(i==C){ cout<<"EQUAL"<<endl; } } } } }
a.cc: In function 'int main()': a.cc:7:4: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>') 7 | cin>>A>>B; | ~~~^~~ | | | | | std::vector<int> | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool&' 170 | operator>>(bool& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'short int&' 174 | operator>>(short& __n); | ~~~~~~~^~~ /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from 'std::vector<int>' to 'short unsigned int&' 177 | operator>>(unsigned short& __n) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from 'std::vector<int>' to 'int&' 181 | operator>>(int& __n); | ~~~~~^~~ /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'unsigned int&' 184 | operator>>(unsigned int& __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'long int&' 188 | operator>>(long& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from 'std::vector<int>' to 'long unsigned int&' 192 | operator>>(unsigned long& __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long int&' 199 | operator>>(long long& __n) | ~~~~~~~~~~~^~~ /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long unsigned int&' 203 | operator>>(unsigned long long& __n) | ~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::vector<int>' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'void*&' 328 | operator>>(void*& __p) | ~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ^~~~~~~~ /usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::ios_base& (*)(std::ios_base&)' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]' 352 | operator>>(__streambuf_type* __sb); | ^~~~~~~~ /usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'} 352 | operator>>(__streambuf_type* __sb); | ~~~~~~~~~~~~~~~~~~^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:131:5: note: candida
s048303782
p03738
C++
#include <bits/stdc++.h> using namespace std; vector<int> A; vector<int> B; cin>>A>>B; int C==A.size() -1; if(A.size()>B.size()) cout<<"GREATER"<<endl; if(A.size()<B.size()) cout<<"LESS"<<endl; if(A.size()==B.size()){ for(int i=0;i<1000;i++){ if(A.at(i)>B.at(i)){ cout<<"GREATER"<<endl; break; } if(A.at(i)<B.at(i)){ cout<<"LESS"<<endl; break; } if(A.at(i)==B.at(i)){ if(i==C){ cout<<"EQUAL"<<endl; } } } }
a.cc:6:1: error: 'cin' does not name a type 6 | cin>>A>>B; | ^~~ a.cc:7:6: error: expected initializer before '==' token 7 | int C==A.size() -1; | ^~ a.cc:8:1: error: expected unqualified-id before 'if' 8 | if(A.size()>B.size()) | ^~ a.cc:10:1: error: expected unqualified-id before 'if' 10 | if(A.size()<B.size()) | ^~ a.cc:12:1: error: expected unqualified-id before 'if' 12 | if(A.size()==B.size()){ | ^~
s623735038
p03738
C++
#include<bits/stdc++.h> #include<math.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.size()>b.size()){ cout<<"GREATER"<<endl; } else if(a.size()<b.size()){ cout<<"LESS"<<endl; } else{ for(int i=0;i<a.size();i++){ if(a[i]==b[i]){ if(i!=a.size()-1){ continue; } else{ cout<<"EQUAL"<<endl; } } else if(a[i]>b[i]){ cout<<"GREATER"<<endl; break; } else{ cout<<"LESS"<<endl; break; } } }
a.cc: In function 'int main()': a.cc:33:2: error: expected '}' at end of input 33 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s692571573
p03738
C++
#include <iostream> #include <string> #define rep(i, n) for(int i = 0; i < n; i++) using namespace std; signed main() { string a, b; cin >> a >> b; if(a == b) { cout << "EQUAL" << endl; return 0; } if(a.size() > b.size()) { cout << "GREATER" << endl; } else if(a.size() < b.size()) { cout << "LESS" << endl; } else { string l[2] = {a, b}; // 文字列で昇順ソート sort(l, l+2); cout << (l[0]==a ? "LESS" : "GREATER") << endl; } return 0; }
a.cc: In function 'int main()': a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'? 21 | sort(l, l+2); | ^~~~ | short
s616790327
p03738
C++
#include<iostream> #include <vector> #include <string> #include <cmath> #include <algorithm> using namespace std; int main(void) { string s1, s2; cin >> s1; cin >> s2; if (s1.size() == s2.size()) { if (s1 > s2) { cout << "GREATER" << endl;   } else if (s1 < s2) { cout << "LESS" << endl;   } else { cout << "EQUAL" << endl;   } } else { if (s1.size()> s2.size()) { cout << "GREATER" << endl; } else { cout << "LESS" << endl; }     } }
a.cc:21:25: error: extended character   is not valid in an identifier 21 |   | ^ a.cc:26:25: error: extended character   is not valid in an identifier 26 |   | ^ a.cc:31:25: error: extended character   is not valid in an identifier 31 |   | ^ a.cc:44:17: error: extended character   is not valid in an identifier 44 |   | ^ a.cc:45:1: error: extended character   is not valid in an identifier 45 |   | ^ a.cc: In function 'int main()': a.cc:21:25: error: '\U00003000' was not declared in this scope 21 |   | ^~ a.cc:26:25: error: '\U00003000' was not declared in this scope 26 |   | ^~ a.cc:31:25: error: '\U00003000' was not declared in this scope 31 |   | ^~ a.cc:44:17: error: '\U00003000' was not declared in this scope 44 |   | ^~
s190819963
p03738
C++
#include<iostream> #include <vector> #include <string> #include <cmath> #include <deque> #include <utility> #include <algorithm> using namespace std; int main(void) { string s1, s2; cin >> s1; cin >> s2; if (s1.size() == s2.size()) { if (s1 > s2) { cout << "GREATER" << endl;   } else if (s1 < s2) {   cout << "LESS" << endl;   } else {   cout << "EQUAL" << endl;   } } else { if (s1.size() > s2.size()) { cout << "GREATER" << endl; } else { cout << "LESS" << endl; }     } }
a.cc:23:25: error: extended character   is not valid in an identifier 23 |   | ^ a.cc:27:25: error: extended character   is not valid in an identifier 27 |   cout << "LESS" << endl; | ^ a.cc:28:25: error: extended character   is not valid in an identifier 28 |   | ^ a.cc:32:25: error: extended character   is not valid in an identifier 32 |   cout << "EQUAL" << endl; | ^ a.cc:33:25: error: extended character   is not valid in an identifier 33 |   | ^ a.cc:46:17: error: extended character   is not valid in an identifier 46 |   | ^ a.cc:47:1: error: extended character   is not valid in an identifier 47 |   | ^ a.cc: In function 'int main()': a.cc:23:25: error: '\U00003000' was not declared in this scope 23 |   | ^~ a.cc:27:25: error: '\U00003000' was not declared in this scope 27 |   cout << "LESS" << endl; | ^~ a.cc:28:27: error: expected ';' before '}' token 28 |   | ^ | ; 29 | } | ~ a.cc:32:25: error: '\U00003000' was not declared in this scope 32 |   cout << "EQUAL" << endl; | ^~ a.cc:33:27: error: expected ';' before '}' token 33 |   | ^ | ; 34 | } | ~ a.cc:46:17: error: '\U00003000' was not declared in this scope 46 |   | ^~
s256671609
p03738
C++
#include <iostream> #include <vector> #include <string> #include <cmath> #include <deque> #include <utility> #include <algorithm> using namespace std; int main(void){ string s1, s2;   cin>>s1; cin>>s2;   if(s1.size()==s2.size()){  if(s1>s2){ cout<<"GREATER"<<endl;   }else if(s1<s2){   cout<<"LESS"<<endl;   }else{   cout<<"EQUAL"<<endl;   } }else{ if(s1.size()>s2.size()){ cout<<"GREATER"<<endl; }else{ cout<<"LESS"<<endl; }     } }
a.cc:13:1: error: extended character   is not valid in an identifier 13 |   | ^ a.cc:16:1: error: extended character   is not valid in an identifier 16 |   | ^ a.cc:19:5: error: extended character   is not valid in an identifier 19 |  if(s1>s2){ | ^ a.cc:21:1: error: extended character   is not valid in an identifier 21 |   }else if(s1<s2){ | ^ a.cc:22:1: error: extended character   is not valid in an identifier 22 |   cout<<"LESS"<<endl; | ^ a.cc:23:1: error: extended character   is not valid in an identifier 23 |   }else{ | ^ a.cc:24:1: error: extended character   is not valid in an identifier 24 |   cout<<"EQUAL"<<endl; | ^ a.cc:25:1: error: extended character   is not valid in an identifier 25 |   } | ^ a.cc:32:1: error: extended character   is not valid in an identifier 32 |   | ^ a.cc:33:1: error: extended character   is not valid in an identifier 33 |   } | ^ a.cc: In function 'int main()': a.cc:13:1: error: '\U00003000' was not declared in this scope 13 |   | ^~ a.cc:16:3: error: expected ';' before 'if' 16 |   | ^ | ; 17 | if(s1.size()==s2.size()){ | ~~ a.cc:26:6: error: 'else' without a previous 'if' 26 | }else{ | ^~~~ a.cc:32:3: error: expected ';' before '\U00003000' 32 |   | ^ | ; 33 |   } | ~~
s128255678
p03738
C++
#include <iostream> #include <vector> #include <string> #include <cmath> #include <deque> #include <utility> #include <algorithm> using namespace std; int main(void){  string s1, s2;    cin>>s1;  cin>>s2;    if(s1.size()==s2.size()){    if(s1>s2){   cout<<"GREATER"<<endl;  }else if(s1<s2){   cout<<"LESS"<<endl;  }else{   cout<<"EQUAL"<<endl;  }  }else{   if(s1.size()>s2.size()){   cout<<"GREATER"<<endl;   }else{   cout<<"LESS"<<endl;   }    } }
a.cc:12:1: error: extended character   is not valid in an identifier 12 |  string s1, s2; | ^ a.cc:13:1: error: extended character   is not valid in an identifier 13 |   | ^ a.cc:14:1: error: extended character   is not valid in an identifier 14 |  cin>>s1; | ^ a.cc:15:1: error: extended character   is not valid in an identifier 15 |  cin>>s2; | ^ a.cc:16:1: error: extended character   is not valid in an identifier 16 |   | ^ a.cc:17:1: error: extended character   is not valid in an identifier 17 |  if(s1.size()==s2.size()){ | ^ a.cc:18:1: error: extended character   is not valid in an identifier 18 |   | ^ a.cc:19:1: error: extended character   is not valid in an identifier 19 |  if(s1>s2){ | ^ a.cc:20:1: error: extended character   is not valid in an identifier 20 |   cout<<"GREATER"<<endl; | ^ a.cc:21:1: error: extended character   is not valid in an identifier 21 |  }else if(s1<s2){ | ^ a.cc:22:1: error: extended character   is not valid in an identifier 22 |   cout<<"LESS"<<endl; | ^ a.cc:23:1: error: extended character   is not valid in an identifier 23 |  }else{ | ^ a.cc:24:1: error: extended character   is not valid in an identifier 24 |   cout<<"EQUAL"<<endl; | ^ a.cc:25:1: error: extended character   is not valid in an identifier 25 |  } | ^ a.cc:26:1: error: extended character   is not valid in an identifier 26 |  }else{ | ^ a.cc:27:1: error: extended character   is not valid in an identifier 27 |   if(s1.size()>s2.size()){ | ^ a.cc:28:1: error: extended character   is not valid in an identifier 28 |   cout<<"GREATER"<<endl; | ^ a.cc:29:1: error: extended character   is not valid in an identifier 29 |   }else{ | ^ a.cc:30:1: error: extended character   is not valid in an identifier 30 |   cout<<"LESS"<<endl; | ^ a.cc:31:1: error: extended character   is not valid in an identifier 31 |   } | ^ a.cc:32:1: error: extended character   is not valid in an identifier 32 |   | ^ a.cc:33:1: error: extended character   is not valid in an identifier 33 |  } | ^ a.cc: In function 'int main()': a.cc:12:1: error: '\U00003000string' was not declared in this scope 12 |  string s1, s2; | ^~~~~~~~ a.cc:13:1: error: '\U00003000' was not declared in this scope 13 |   | ^~ a.cc:15:1: error: '\U00003000cin' was not declared in this scope 15 |  cin>>s2; | ^~~~~ a.cc:15:8: error: 's2' was not declared in this scope 15 |  cin>>s2; | ^~ a.cc:16:3: error: expected ';' before '\U00003000if' 16 |   | ^ | ; 17 |  if(s1.size()==s2.size()){ | ~~~~ a.cc:26:4: error: 'else' without a previous 'if' 26 |  }else{ | ^~~~ a.cc:27:3: error: expected ';' before 'if' 27 |   if(s1.size()>s2.size()){ | ^ ~~ | ; a.cc:29:8: error: 'else' without a previous 'if' 29 |   }else{ | ^~~~ a.cc:30:3: error: expected ';' before 'cout' 30 |   cout<<"LESS"<<endl; | ^ ~~~~ | ; a.cc:31:3: error: expected ';' before '}' token 31 |   } | ^ ~ | ; a.cc:32:3: error: expected ';' before '\U00003000' 32 |   | ^ | ; 33 |  } | ~~
s063890342
p03738
C++
#include <iostream> #include <vector> #include <string> #include <cmath> #include <deque> #include <utility> #include <algorithm> using namespace std; int main(void){  string s1, s2;    cin>>s1>>s2;    if(s1.size()==s2.size()){    if(s1>s2){   cout<<"GREATER"<<endl;  }else if(s1<s2){   cout<<"LESS"<<endl;  }else{   cout<<"EQUAL"<<endl;  }  }else{   if(s1.size()>s2.size()){   cout<<"GREATER"<<endl;   }else{   cout<<"LESS"<<endl;   }    } }
a.cc:12:1: error: extended character   is not valid in an identifier 12 |  string s1, s2; | ^ a.cc:13:1: error: extended character   is not valid in an identifier 13 |   | ^ a.cc:14:1: error: extended character   is not valid in an identifier 14 |  cin>>s1>>s2; | ^ a.cc:15:1: error: extended character   is not valid in an identifier 15 |   | ^ a.cc:16:1: error: extended character   is not valid in an identifier 16 |  if(s1.size()==s2.size()){ | ^ a.cc:17:1: error: extended character   is not valid in an identifier 17 |   | ^ a.cc:18:1: error: extended character   is not valid in an identifier 18 |  if(s1>s2){ | ^ a.cc:19:1: error: extended character   is not valid in an identifier 19 |   cout<<"GREATER"<<endl; | ^ a.cc:20:1: error: extended character   is not valid in an identifier 20 |  }else if(s1<s2){ | ^ a.cc:21:1: error: extended character   is not valid in an identifier 21 |   cout<<"LESS"<<endl; | ^ a.cc:22:1: error: extended character   is not valid in an identifier 22 |  }else{ | ^ a.cc:23:1: error: extended character   is not valid in an identifier 23 |   cout<<"EQUAL"<<endl; | ^ a.cc:24:1: error: extended character   is not valid in an identifier 24 |  } | ^ a.cc:25:1: error: extended character   is not valid in an identifier 25 |  }else{ | ^ a.cc:26:1: error: extended character   is not valid in an identifier 26 |   if(s1.size()>s2.size()){ | ^ a.cc:27:1: error: extended character   is not valid in an identifier 27 |   cout<<"GREATER"<<endl; | ^ a.cc:28:1: error: extended character   is not valid in an identifier 28 |   }else{ | ^ a.cc:29:1: error: extended character   is not valid in an identifier 29 |   cout<<"LESS"<<endl; | ^ a.cc:30:1: error: extended character   is not valid in an identifier 30 |   } | ^ a.cc:31:1: error: extended character   is not valid in an identifier 31 |   | ^ a.cc:32:1: error: extended character   is not valid in an identifier 32 |  } | ^ a.cc: In function 'int main()': a.cc:12:1: error: '\U00003000string' was not declared in this scope 12 |  string s1, s2; | ^~~~~~~~ a.cc:13:1: error: '\U00003000' was not declared in this scope 13 |   | ^~ a.cc:15:3: error: expected ';' before '\U00003000if' 15 |   | ^ | ; 16 |  if(s1.size()==s2.size()){ | ~~~~ a.cc:25:4: error: 'else' without a previous 'if' 25 |  }else{ | ^~~~ a.cc:26:3: error: expected ';' before 'if' 26 |   if(s1.size()>s2.size()){ | ^ ~~ | ; a.cc:28:8: error: 'else' without a previous 'if' 28 |   }else{ | ^~~~ a.cc:29:3: error: expected ';' before 'cout' 29 |   cout<<"LESS"<<endl; | ^ ~~~~ | ; a.cc:30:3: error: expected ';' before '}' token 30 |   } | ^ ~ | ; a.cc:31:3: error: expected ';' before '\U00003000' 31 |   | ^ | ; 32 |  } | ~~
s559645728
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; if(a.size() > b.size()) cout << "GREATER" << endl; else if(a.size() < b.size()) cout << "LESS" << endl; int i = 0, check = 0; while(i < a.size()){ if(a.at(i) > b.at(i)){ check = 1; break; } else if(a.at(i) < b.at(i)){ check = -1; break; } i++ } if(check == 1) cout << "GREATER" << endl; else if(check == -1) cout << "LESS" << endl; else cout << "EQUAL" << endl; }
a.cc: In function 'int main()': a.cc:21:8: error: expected ';' before '}' token 21 | i++ | ^ | ; 22 | } | ~
s920938939
p03738
C++
#include <iostream> #include <cstdio> #include <string> #include <cstdlib> #include <vector> #include <algorithm> #include <functional> #include <iomanip> #include <stdlib.h> #include <cmath> #include <map> #include <queue> #include <deque> #include <stack> #include <set> const long long INF = 1e9 + 7; using namespace std; map<int, int> mp; int main() { string a, b; cin >> a >> b; if (a.size() > b.size()) cout << "GREATER"; else if (a.size() < b.size()) cout << "LESS"; else { if (a > b) cout << "GREATER"; else if (a < b) cout << "LESS"; else cout << "EQUAL"; return 0; }
a.cc: In function 'int main()': a.cc:35:2: error: expected '}' at end of input 35 | } | ^ a.cc:20:1: note: to match this '{' 20 | { | ^
s793003042
p03738
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> P; int main() { cin.tie(0); ios::sync_with_stdio(false); string a,b; cin >> a >> b; if(a.size() > b.size()) cout << "GREATER" << endl; else if(a.size() < b.size()) cout << "LESS" << endl; else{} if(a > b) cout << "GREATER" << endl; else if(a < b) cout << "LESS" << endl; else cout << "EQUAL" << endl; } return 0; }
a.cc:22:5: error: expected unqualified-id before 'return' 22 | return 0; | ^~~~~~ a.cc:24:1: error: expected declaration before '}' token 24 | } | ^
s153927838
p03738
C++
#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <algorithm> #include <cstdio> #include <cstring> #include <stack> #include <math.h> #include <map> #define Z class #define ln cout<<'\n' #define ll long long #define rep(i, n) for(int i = 0; i < (n); ++i) //ASCII a=97, A=65 // int H[N]; rep(i,N) scanf("%d", &H[i]); // int max_x = *std::max_element(x.begin(), x.end()); // int min_y = *std::min_element(y.begin(), y.end()); using namespace std; template<class T> inline bool chmax(T& a, T b){ if(a < b) { a=b; return 1; }return 0;} template<class T> inline bool chmin(T& a, T b){ if(a > b) { a=b; return 1; }return 0;} template<Z A>void pr(A a){cout<<a;ln;} template<Z A,Z B>void pr(A a,B b){cout<<a<<' ';pr(b);} template<Z A,Z B,Z C>void pr(A a,B b,C c){cout<<a<<' ';pr(b,c);} template<Z A,Z B,Z C,Z D>void pr(A a,B b,C c,D d){cout<<a<<' ';pr(b,c,d);} template<Z A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}ln;} int GCD(int a, int b) { return b ? GCD(b, a%b) : a; } const long long INF = 1LL << 60; int main(){ char A[110],B[110]; cin >> A >> B; string res = "EQUAL"; if(strlen(A) > strlen(B)){ res = "GREATER"; }else if(strlen(A) < strlen(B)){ res = "LESS"; } else{ rep(i,strlen(A)){ if(A[i]==B[i]){ continue; }else if(A[i]>B[i]){ res = "GREATER"; break; }else if(A[i]<B[i]){ res = "LESS"; break; } } pr(res); }
a.cc: In function 'int main()': a.cc:54:2: error: expected '}' at end of input 54 | } | ^ a.cc:31:11: note: to match this '{' 31 | int main(){ | ^
s184573335
p03738
C++
a = int(input()) b = int(input()) if a < b: print("LESS") else: print("GREATER")
a.cc:1:1: error: 'a' does not name a type 1 | a = int(input()) | ^
s825030931
p03738
C++
#include <iostream> using namespace std; int main(void){ string A,B; int ans; cin >> A >> B; if(A.length() > B.length()){ ans = 1; }else if(A.length() < B.length()){ ans = 2; }else if(A.length == B.length){ for(int i = 0; i < A.length(); i++){ if(A[i] > B[i]){ ans = 1; break; }else if(A[i] < B[i]){ ans = 2; break; }else{ ans = 3; } } } if(ans == 1){ cout << "GREATER" << endl; }else if(ans == 2){ cout << "LESS" << endl; }else{ cout << "EQUOL" << endl; } }
a.cc: In function 'int main()': a.cc:12:16: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 12 | }else if(A.length == B.length){ | ~~^~~~~~ | () a.cc:12:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 12 | }else if(A.length == B.length){ | ~~^~~~~~ | ()
s408642408
p03738
C++
#include <iostream> #include <sstream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <map> #include <stdio.h> using namespace std; //typedefリスト typedef vector<long long int> vint; typedef vector<string> vstr; typedef long long int llint; int main(void) { string A, B; cin >> A >> B; llint sizA = A.length(); llint sizB = B.length(); if (sizA > sizB)cout << "GREATER" << endl; else if (sizB > sizA)cout << "LESS" << endl; else{ for (int = ; i < sizA; i++){ if (A[i]>B[i]){ cout << "GREATER" << endl; break; } else{ cout << "LESS" << endl; break; } } } }
a.cc: In function 'int main()': a.cc:28:26: error: expected unqualified-id before '=' token 28 | for (int = ; i < sizA; i++){ | ^ a.cc:28:25: error: expected ';' before '=' token 28 | for (int = ; i < sizA; i++){ | ^~ | ; a.cc:28:26: error: expected primary-expression before '=' token 28 | for (int = ; i < sizA; i++){ | ^ a.cc:28:28: error: expected primary-expression before ';' token 28 | for (int = ; i < sizA; i++){ | ^ a.cc:28:30: error: 'i' was not declared in this scope 28 | for (int = ; i < sizA; i++){ | ^ a.cc:28:38: error: expected ')' before ';' token 28 | for (int = ; i < sizA; i++){ | ~ ^ | ) a.cc:28:40: error: 'i' was not declared in this scope 28 | for (int = ; i < sizA; i++){ | ^
s983764093
p03738
C++
#include <iostream> #include <sstream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <map> #include <stdio.h> using namespace std; //typedefリスト typedef vector<long long int> vint; typedef vector<string> vstr; typedef long long int llint; int main(void) { string A, B; llint sizA = A.length(); llint sizB = B.length(); if (sizA > sizB)cout << "GREATER" << endl; else if (sizB > sizA)cout << "LESS" << endl; else{ for (int = ; i < sizA; i++){ if (A[i]>B[i]){ cout << "GREATER" << endl; break; } else{ cout << "LESS" << endl; break; } } } }
a.cc: In function 'int main()': a.cc:27:26: error: expected unqualified-id before '=' token 27 | for (int = ; i < sizA; i++){ | ^ a.cc:27:25: error: expected ';' before '=' token 27 | for (int = ; i < sizA; i++){ | ^~ | ; a.cc:27:26: error: expected primary-expression before '=' token 27 | for (int = ; i < sizA; i++){ | ^ a.cc:27:28: error: expected primary-expression before ';' token 27 | for (int = ; i < sizA; i++){ | ^ a.cc:27:30: error: 'i' was not declared in this scope 27 | for (int = ; i < sizA; i++){ | ^ a.cc:27:38: error: expected ')' before ';' token 27 | for (int = ; i < sizA; i++){ | ~ ^ | ) a.cc:27:40: error: 'i' was not declared in this scope 27 | for (int = ; i < sizA; i++){ | ^
s254975413
p03738
C++
a = int(input()) b = int(input()) if a == b: print("EQUAL") elif a>b: print("GREATER") else: print("LESS")
a.cc:1:1: error: 'a' does not name a type 1 | a = int(input()) | ^
s938576779
p03738
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a==b){ System.out.println("EQUAL"); }else if(a < b){ system.out.println("LESS"); }else{ System.out.println("GREATER"); } } }
Main.java:13: error: package system does not exist system.out.println("LESS"); ^ 1 error
s885399516
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(); if (S.begin()==a){ if (S.end()==a){ cout << "EQUAL" << endl; } else{ cout << "GREATER" << endl; } } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:10:20: error: no match for 'operator==' (operand types are 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (S.begin()==a){ | ~~~~~~~~~^~~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::pair<_T1, _T2>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::fpos<_StateT>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::allocator<_CharT>' 10 | if (S.begin()==a){ | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47,
s787199113
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; sort(S.begin(), S.end()); if (S.begin()==a){ if (S.end()==a){ cout << "EQUAL" << endl; } else{ cout << "GREATER" << endl; } } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:10:20: error: no match for 'operator==' (operand types are 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (S.begin()==a){ | ~~~~~~~~~^~~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::pair<_T1, _T2>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (S.begin()==a){ | ^ /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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::fpos<_StateT>' 10 | if (S.begin()==a){ | ^ 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:10:22: note: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' is not derived from 'const std::allocator<_CharT>' 10 | if (S.begin()==a){ | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47,
s382649280
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(lst.begin(), lst.end()); if (lst.begin()==a){ if (lst.end()==a){ cout << "EQUAL" << endl; } else{ cout << "GREATER" << endl; } } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:9:14: error: 'lst' was not declared in this scope 9 | S.sort(lst.begin(), lst.end()); | ^~~
s399823438
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b; cin >> a >> b; if (a>b){ cont << "GREATER" << endl; } if (a=b){ cont << "EQUAL" << endl; } if (a<b){ cont << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'? 8 | cont << "GREATER" << endl; | ^~~~ | const a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'? 11 | cont << "EQUAL" << endl; | ^~~~ | const a.cc:14:9: error: 'cont' was not declared in this scope; did you mean 'const'? 14 | cont << "LESS" << endl; | ^~~~ | const
s966484846
p03738
C++
#include <bits/stdc++.h> using namespace std; int main () { string A, B; cin >> A >> B; if (A.size() > B.size()) ans = "GREATER"; else if (A.size() < B.size()) ans = "LESS"; string ans; for(int i = 0; i < A.size(); i++) { if(ans != "") break; if (A.at(i) > B.at(i)) ans = "GREATER"; else if (A.at(i) < B.at(i)) ans = "LESS"; } cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:28: error: 'ans' was not declared in this scope; did you mean 'abs'? 6 | if (A.size() > B.size()) ans = "GREATER"; | ^~~ | abs a.cc:7:33: error: 'ans' was not declared in this scope; did you mean 'abs'? 7 | else if (A.size() < B.size()) ans = "LESS"; | ^~~ | abs
s101133148
p03738
C++
using namespace std; #include<bits/stdc++.h> #define BEGIN ios_base::sync_with_stdio(0);cin.tie(0); #define END return EXIT_SUCCESS; #define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++) #define REP(I,N) FOR((I),0,(N)) #define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++) #define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--) #define IN(P) cin>>(P) #define IN2(P1,P2) cin>>(P1)>>(P2) #define IN3(P1,P2,P3) cin>>(P1)>>(P2)>>(P3) #define INS(I,N,V) REP((I),(N)) cin>>(V[I]) #define INS2(I,N,V1,V2) REP((I),(N)) cin>>(V1[I])>>(V2[I]); #define INS3(I,N,V1,V2,V3) REP((I),(N)) cin>>(V1[I])>>(V2[I])>>(V3[I]); #define OUT(P) cout<<(P)<<endl #define OUT2(P1,P2) cout<<(P1)<<" "<<(P2)<<endl #define OUT3(P1,P2,P3) cout<<(P1)<<" "<<(P2)<<" "<<(P3)<<endl #define OUTS(I,N,V) REP((I),(N)) cout<<(V[i])<<endl #define ALL(C) (C).begin(),(C).end() #define RALL(C) (C).rbegin(),(C).rend() #define mp make_pair #define pb push_back #define lb lower_bound #define ub upper_bound template<class T>inline bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;} template<class T>inline bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;} string A,B; long C,D; inline void solve(){ IN2(A,B); C=A.size(); D=B.size(); if(C>D)OUT("GREATER"); else if(C<D)OUT("LESS"); else if(A>B)OUT("GREATER"); else if(A<B)OUT("LESS"); else OUT("EQUAL") } int main(int argc,char**argv){ BEGIN solve(); END }
a.cc: In function 'void solve()': a.cc:39:1: error: expected ';' before '}' token 39 | } | ^
s085266014
p03738
C++
#include <algorithm> #include <vector> #include <cstring> #include <queue> #include <functional> #include <set> #include <map> #include <string> #include <cmath> #include<complex> #include <cassert> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repd(i, n) for (int i = n; i >= 1; i--) #define mod 1000000007 #define MOD 998244353 #define inf 1e20 typedef long long int ll; typedef pair<ll, ll> pr; typedef complex<double> com; int main(){ string a, b; cin >> a >> b; if (a > b) { cout << "GREATER"; } else if(a<b){ cout << "LESS"; } else { cout << "EQUAL"; } return 0; }
a.cc: In function 'int main()': a.cc:25:9: error: 'cin' was not declared in this scope 25 | cin >> a >> b; | ^~~ a.cc:12:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 11 | #include <cassert> +++ |+#include <iostream> 12 | using namespace std; a.cc:27:17: error: 'cout' was not declared in this scope 27 | cout << "GREATER"; | ^~~~ a.cc:27:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:30:17: error: 'cout' was not declared in this scope 30 | cout << "LESS"; | ^~~~ a.cc:30:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:33:17: error: 'cout' was not declared in this scope 33 | cout << "EQUAL"; | ^~~~ a.cc:33:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s886032787
p03738
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ long long int a, b; string c, d; cin >>c >> d; //cin >> a >#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ long long int a, b; string c, d; cin >>c >> d; if(c[0] - '0' > d[0] - '0' && c.size() == d.size()){ cout << "GREATER" << endl; return 0; } if(c.size() > d.size()){ cout << "GREATER" << endl; } else if(c.size() < d.size()){ cout << "LESS" << endl; } else { for(int i = 0; i < c.size; i++){ if(c[i] > d[i]){ cout << "GREATER" << endl; } else if(c[i] < d[i]){ cout << "LESS" << end; } else{ if(i == c.size()-1){ cout << "EQUAL" << endl; } } } } } }> b; cout << c << endl; cout << d << endl; if(c[0] - '0' > d[0] - '0' && c.size() == d.size()){ cout << "GREATER" << endl; return 0; } if(c.size() > d.size()){ cout << "GREATER" << endl; return 0; } else if(c.size() < d.size()){ cout << "LESS" << endl; return 0; } else { for(int i = 0; i < c.size(); i++){ if(c[i] > d[i]){ cout << "GREATER" << endl; return 0; } else if(c[i] < d[i]){ cout << "LESS" << endl; return 0; } else{ if(i == c.size()-1){ cout << "EQUAL" << endl; return 0; } } } } }
a.cc: In function 'int main()': a.cc:15:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 15 | int main(){ | ^~ a.cc:15:9: note: remove parentheses to default-initialize a variable 15 | int main(){ | ^~ | -- a.cc:15:9: note: or replace parentheses with braces to value-initialize a variable a.cc:15:11: error: a function-definition is not allowed here before '{' token 15 | int main(){ | ^ a.cc: At global scope: a.cc:47:2: error: expected unqualified-id before '>' token 47 | }> b; | ^ a.cc:49:9: error: 'cout' does not name a type 49 | cout << c << endl; | ^~~~ a.cc:50:9: error: 'cout' does not name a type 50 | cout << d << endl; | ^~~~ a.cc:52:9: error: expected unqualified-id before 'if' 52 | if(c[0] - '0' > d[0] - '0' && c.size() == d.size()){ | ^~ a.cc:57:9: error: expected unqualified-id before 'if' 57 | if(c.size() > d.size()){ | ^~ a.cc:61:9: error: expected unqualified-id before 'else' 61 | else if(c.size() < d.size()){ | ^~~~ a.cc:65:9: error: expected unqualified-id before 'else' 65 | else { | ^~~~ a.cc:83:1: error: expected declaration before '}' token 83 | } | ^
s268132979
p03738
C++
#include<iostream> #include<string> using namespace std; int main(){ long long int a, b; long long string c, d; cin >> c >> d; if(c[0]-'0' > d[0]-'0'){ cout << "GREATER" << endl; return 0; } a = stoi(c); b = stoi(d); if(a > b){ cout << "GREATER" << endl; } else if(a == b){ cout << "EQUAL" << endl; } else { cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:7:26: error: expected initializer before 'c' 7 | long long string c, d; | ^ a.cc:8:16: error: 'c' was not declared in this scope 8 | cin >> c >> d; | ^ a.cc:8:21: error: 'd' was not declared in this scope 8 | cin >> c >> d; | ^
s746169288
p03738
C++
#include<iostream> #include<string> using namespace std; int main(){ long long int a, b; long long string c, d; cin >> c >> d; if(c[0]-'0' > d[0]-'0'){ cout << "GREATER" << endl; return 0; } a = stoi(c); b = stoi(d); if(a > b){ cout << "GREATER" << endl; } else if(a == b){ cout << "EQUAL" << endl; } else { cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:7:26: error: expected initializer before 'c' 7 | long long string c, d; | ^ a.cc:8:16: error: 'c' was not declared in this scope 8 | cin >> c >> d; | ^ a.cc:8:21: error: 'd' was not declared in this scope 8 | cin >> c >> d; | ^
s055698054
p03738
C
include<stdio.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); printf("%c%c%c\n",a[0]-0x20,b[0]-0x20,c[0]-0x20); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s785355048
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int ans = -1; if(a.size() > b.size()) { ans = 0; } else if(a.size() < b.size()) { ans = 1; } else if(a == b) { ans = 2; } else { int i; for(i = 0; i < a.size(); i++) { if(a.at(i) > b.size(i)) { ans = 0; break; } else if(a.at(i) < b.size(i)) { ans = 1; break; } } } if(ans == 0) { cout << "GREATER" << endl; } else if(ans == 1) { cout << "LESS" << endl; } else if(ans == 2) { cout << "EQUAL" << endl; } }
a.cc: In function 'int main()': a.cc:26:26: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 26 | if(a.at(i) > b.size(i)) | ~~~~~~^~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1076 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate expects 0 arguments, 1 provided a.cc:31:31: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 31 | else if(a.at(i) < b.size(i)) | ~~~~~~^~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1076 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate expects 0 arguments, 1 provided
s750554759
p03738
C++
#include<iosteream> using namespace std; int main(){ long long N,M; cin>>N>>M; if(N==M){ cout<<"EQUAL"; }else if(N<M){ cout<<"GREATER"; }else{ cout<<"LESS"; } cout<<endl; }
a.cc:1:9: fatal error: iosteream: No such file or directory 1 | #include<iosteream> | ^~~~~~~~~~~ compilation terminated.
s395415941
p03738
C++
#include <iostream> using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; #include <string> #include <cstdio> #include <algorithm> #include <vector> #include <cmath> #include <climits> #include <bitset> #include <array> #include <deque> #include <queue> #include <map> #include <set> #define all(x) (x).begin(),(x).end() const int MOD = 1e9 + 7; void solve(){ } int main(){ string a,b; cin >> a >> b; int s = (int)a.size() - (int)b.size(); if (s == 0) { s = strcmp(a,b); } if (s > 0) { cout << "GREATER" << endl; } else if (s < 0) { cout << "LESS" << endl; } else { cout << "EQUAL" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:31:13: error: 'strcmp' was not declared in this scope 31 | s = strcmp(a,b); | ^~~~~~ a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 18 | #include <set> +++ |+#include <cstring> 19 | #define all(x) (x).begin(),(x).end()
s859572247
p03738
C++
#include <iostream> using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; #include <string> #include <cstdio> #include <algorithm> #include <vector> #include <cmath> #include <climits> #include <bitset> #include <array> #include <deque> #include <queue> #include <map> #include <set> #define all(x) (x).begin(),(x).end() const int MOD = 1e9 + 7; void solve(){ } int main(){ string a,b; cin >> a >> b; int s = (int)a.size() - (int)b.size(); if (s == 0) { s = strcmp(a,b); } if (r > 0) { cout << "GREATER" << endl; } else if (r < 0) { cout << "LESS" << endl; } else { cout << "EQUAL" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:31:13: error: 'strcmp' was not declared in this scope 31 | s = strcmp(a,b); | ^~~~~~ a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 18 | #include <set> +++ |+#include <cstring> 19 | #define all(x) (x).begin(),(x).end() a.cc:33:9: error: 'r' was not declared in this scope 33 | if (r > 0) { | ^
s225822607
p03738
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); string a, b,; cin >> a >> b; if(a.size() > b.size()) { cout << "GREATER" << endl; return 0; } if(a.size() < b.size()) { cout << "LESS" << endl; return 0; } if(a > b) { cout << "GREATER" << endl; } else if(a < b) { cout << "LESS" << endl; } else { cout << "EQUAL" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:17: error: expected unqualified-id before ';' token 12 | string a, b,; | ^
s946993089
p03738
C
#include<stdio.h> #include<string.h> int main(){ char s1[101], s2[101]; scanf("%s %s", s1, s2); if(strcpm(s1, s2) > 0){ printf("GREATER\n"); } else if(strcpm(s1, s2) == 0){ printf("EQUAL\n"); } else { printf("LESS\n"); } return 0; }
main.c: In function 'main': main.c:9:6: error: implicit declaration of function 'strcpm'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 9 | if(strcpm(s1, s2) > 0){ | ^~~~~~ | strcmp
s762494549
p03738
C
#include<stdio.h> #iclude<string.h> int main(){ char s1[101], s2[101]; scanf("%s %s", s1, s2); if(strcpm(s1, s2) > 0){ printf("GREATER\n"); } else if(strcpm(s1, s2) == 0){ printf("EQUAL\n"); } else { printf("LESS\n"); } return 0; }
main.c:2:2: error: invalid preprocessing directive #iclude; did you mean #include? 2 | #iclude<string.h> | ^~~~~~ | include main.c: In function 'main': main.c:9:6: error: implicit declaration of function 'strcpm' [-Wimplicit-function-declaration] 9 | if(strcpm(s1, s2) > 0){ | ^~~~~~
s473759035
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b) cout<<"GREATER"<<endl; else if(a=b) cout<<"EQUAL"<<endl; else cout<<"LESS""<<endl; }
a.cc:15:17: warning: missing terminating " character 15 | cout<<"LESS""<<endl; | ^ a.cc:15:17: error: missing terminating " character 15 | cout<<"LESS""<<endl; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:15:17: error: expected ';' before '}' token 15 | cout<<"LESS""<<endl; | ^ | ; 16 | } | ~
s714629798
p03738
C++
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <set> #define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i) #define REP(i, n) FOR(i, 0, n) #define SORT(a) sort(a.begin(),a.end()) using namespace std; int main(){ //Seiranchan! string a,b; cin >> a>> b; string ans="EQUAL"; if(a.size()>b.size()) ans = "GREATER"; else if(a.size()<b.size())) ans = "LESS"; else{ REP(i,a.size()){ if(a[i]>b[i]){ ans = "GREATER"; break; }else if(a[i<b[i]]){ ans = "LESS"; break; } } } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:17:31: error: expected primary-expression before ')' token 17 | else if(a.size()<b.size())) ans = "LESS"; | ^
s960243450
p03738
C++
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <set> #define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i) #define REP(i, n) FOR(i, 0, n) #define SORT(a) sort(a.begin(),a.end()) using namespace std; int main(){ //Seiranchan! string a,b; cin >> a>> b; string ans="EQUAL"; if(a.size()>b.size()) ans = "GREATER"; else if(a.size(<b.size())) ans = "LESS"; else{ REP(i,a.size()){ if(a[i]>b[i]){ ans = "GREATER"; break; }else if(a[i<b[i]]){ ans = "LESS"; break; } } } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:17:20: error: expected primary-expression before '<' token 17 | else if(a.size(<b.size())) ans = "LESS"; | ^
s529043582
p03738
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> p; const int inf=(1<<30); #define rep(i,a,n) for(int i=a;i<n;i++) #define rrep(i,a,n) for(int i=(a-1);i>=n;i--) int main(){ string a,b; cin>>a>>b; string ans="EQUAL"; if(a.size>b.size)ans="GREATER"; else if(a.size()<b.size())ans="LESS"; else{ rep(i,0,a.size()){ if(a[i]>b[i]){ ans="GREATER"; break; } else if(a[i]<b[i]){ ans="LESS"; break; } } } cout<<ans<<endl; }
a.cc: In function 'int main()': a.cc:13:14: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 13 | if(a.size>b.size)ans="GREATER"; | ~~^~~~ | () a.cc:13:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 13 | if(a.size>b.size)ans="GREATER"; | ~~^~~~ | ()
s949918244
p03738
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> p; const int inf=(1<<30); #define rep(i,a,n) for(int i=a;i<n;i++) #define rrep(i,a,n) for(int i=(a-1);i>=n;i--) int main(){ string a,b; cin>>a>>b; string ans="EQUAL" if(a.size>b.size)ans="GREATER"; else if(a.size()<b.size())ans="LESS"; else{ rep(i,0,a.size()){ if(a[i]>b[i]){ ans="GREATER"; break; } else if(a[i]<b[i]){ ans="LESS"; break; } } } cout<<ans<<endl; }
a.cc: In function 'int main()': a.cc:13:9: error: expected ',' or ';' before 'if' 13 | if(a.size>b.size)ans="GREATER"; | ^~ a.cc:14:9: error: 'else' without a previous 'if' 14 | else if(a.size()<b.size())ans="LESS"; | ^~~~
s623514432
p03738
C++
#include<stdio.h> #include<string.h> const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(a); | ^~~~ | getw
s029584647
p03738
C
#include<stdio.h> #include<string.h> const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
main.c:4:6: error: variably modified 'a' at file scope 4 | char a[maxn],b[maxn]; | ^ main.c:4:14: error: variably modified 'b' at file scope 4 | char a[maxn],b[maxn]; | ^ main.c: In function 'main': main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(a); | ^~~~ | fgets
s315814996
p03738
C
#include<stdio.h> #include<string.h> using namespace std; const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
main.c:3:1: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~ main.c:5:6: error: variably modified 'a' at file scope 5 | char a[maxn],b[maxn]; | ^ main.c:5:14: error: variably modified 'b' at file scope 5 | char a[maxn],b[maxn]; | ^ main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | gets(a); | ^~~~ | fgets
s357259187
p03738
C
#include<stdio.h> #include<algorithm> #include<string.h> using namespace std; const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
main.c:2:9: fatal error: algorithm: No such file or directory 2 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s871278941
p03738
C
xn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
main.c:1:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ']' token 1 | xn]; | ^ main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 5 | gets(a); | ^~~~ main.c:5:14: error: 'a' undeclared (first use in this function) 5 | gets(a); | ^ main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in main.c:6:14: error: 'b' undeclared (first use in this function) 6 | gets(b); | ^ main.c:7:15: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 7 | len_a=strlen(a); | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | xn]; main.c:7:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 7 | len_a=strlen(a); | ^~~~~~ main.c:7:15: note: include '<string.h>' or provide a declaration of 'strlen' main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 10 | printf("GREATER\n"); | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | xn]; main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 10 | printf("GREATER\n"); | ^~~~~~ main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:12:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 12 | printf("LESS\n"); | ^~~~~~ main.c:12:17: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:14:20: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 14 | { if(strcmp(a,b)>0) | ^~~~~~ main.c:14:20: note: include '<string.h>' or provide a declaration of 'strcmp' main.c:15:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 15 | printf("REATER\n"); | ^~~~~~ main.c:15:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:17:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 17 | printf("LESS\n"); | ^~~~~~ main.c:17:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:19:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 19 | printf("EQUAL\n"); | ^~~~~~ main.c:19:25: note: include '<stdio.h>' or provide a declaration of 'printf'
s267186563
p03738
C
#include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s550144108
p03738
C++
#include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int maxn=1005+5; char a[maxn],b[maxn]; int main() { int len_a,len_b; gets(a); gets(b); len_a=strlen(a); len_b=strlen(b); if(len_a>len_b) printf("GREATER\n"); if(len_a<len_b) printf("LESS\n"); if(len_a==len_b) { if(strcmp(a,b)>0) printf("REATER\n"); if(strcmp(a,b)<0) printf("LESS\n"); if(strcmp(a,b)==0) printf("EQUAL\n"); } return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s398107139
p03738
C++
#include<cstdio> int main() {int long long a,b; scanf("%lld %lld",&a,&b); ofr(int i=1) if(a>b) printf("GREATER\n"); if(a<b) printf("LESS\n"); if(a==b) printf("LESS\n"); }
a.cc: In function 'int main()': a.cc:5:5: error: expected primary-expression before 'int' 5 | ofr(int i=1) | ^~~ a.cc:5:1: error: 'ofr' was not declared in this scope 5 | ofr(int i=1) | ^~~
s045929618
p03738
C++
#include<cstdio> #include<cstring> using namespace std; char s1[10005],s2[10005]; long long ls1,ls2,jud; int main(){ gets(s1); gets(s2); ls1 = strlen(s1); ls2 = strlen(s2); if(ls1 > ls2) printf("GREATER"); else if(ls1 < ls2) printf("LESS"); else{ jud = strcmp(s1,s2); if(jud) printf("GREATER"); else printf("LESS"); } }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(s1); | ^~~~ | getw
s062411809
p03738
C++
#include<cstdio> #include<cstring> using namespace std; char s1[10005],s2[10005]; long long ls1,ls2,jud; int main(){ gets(s1); gets(s2); ls1 = strlen(s1); ls2 = strlen(s2); if(ls1 > ls2) printf("GREATER"); else if(ls1 < ls2) printf("LESS"); else{ jud = strcmp(s1,s2); if(jud) printf("GREATER"); else printf("LESS"); } }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(s1); | ^~~~ | getw
s521604887
p03738
C++
#include<stdio.h> int main(){ int i,j,m,l; l=0; char a[101],b[101]; gets(a); gets(b); for(i=0;a[i]!='\0';i++){} for(j=0;a[j]!='\0';j++){} if(i>j) printf("GREATER"); else if(i<j) printf("LESS"); else{ for(m=0;a[m]!='\0';m++){ if(a[m]>b[m]){ printf("GREATER"); l=1; break; } if(a[m]<b[m]){ printf("LESS"); l=1; break; } } if(l==0) printf("EQUAL"); } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw