submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s521837553
p03657
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A > B; if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl; } }
a.cc: In function 'int main()': a.cc:7:14: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 7 | cin >> A > B; | ~~~~~~~~ ^ ~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:7:14: note: candidate: 'operator>(int, int)' (built-in) 7 | cin >> A > B; | ~~~~~~~~~^~~ a.cc:7:14: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/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:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1236: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>&)' 1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1329: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>&)' 1329 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed: a.cc:7:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1497 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed: a.cc:7:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1673 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | cin >> A > B; | ^ 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: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:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | cin >> A > B; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cin >> 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:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cin >> 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:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cin >> 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:7:16: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cin >> A > B; | ^ 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: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:7:16: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cin >> A > B; | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cin >> A > B; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:7:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 7 | cin >> A > B; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc
s493721974
p03657
C++
#include <iostream> using namespace std; int main() { int A, B; cin >> A >> B; if((3 * A <= A + B) || (3 * B <= A + B)) else cout << "Possible" << endl; else cout << "Impossible" << endl; }
a.cc: In function 'int main()': a.cc:7:46: error: expected primary-expression before 'else' 7 | if((3 * A <= A + B) || (3 * B <= A + B)) else cout << "Possible" << endl; | ^~~~
s765657949
p03657
C++
#include <bits/stdc++.h> using namespace std; int main () { int A, B; cin >> A >> B; if(A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0)cout << "Possible" << endl; else cout >> "Imppossible" return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [12]') 7 | else cout >> "Imppossible" | ~~~~ ^~ ~~~~~~~~~~~~~ | | | | | const char [12] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:7:8: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 7 | else cout >> "Imppossible" | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[12]]': a.cc:7:16: required from here 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:7:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 7 | else cout >> "Imppossible" | ^~~~~~~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c+
s378730382
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if((a*b)%3==1)cout<<"Impossible "<<endl; cout<<"Possible"<<endl; }
a.cc:7:23: warning: missing terminating " character 7 | if((a*b)%3==1)cout<<"Impossible | ^ a.cc:7:23: error: missing terminating " character 7 | if((a*b)%3==1)cout<<"Impossible | ^~~~~~~~~~~ a.cc:8:1: warning: missing terminating " character 8 | "<<endl; | ^ a.cc:8:1: error: missing terminating " character 8 | "<<endl; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:7:21: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::ostream' {aka 'std::basic_ostream<char>'}) 7 | if((a*b)%3==1)cout<<"Impossible | ~~~~^~ | | | basic_ostream<[...]> 8 | "<<endl; 9 | cout<<"Possible"<<endl; | ~~~~ | | | basic_ostream<[...]> a.cc:7:21: note: candidate: 'operator<<(int, int)' (built-in) 7 | if((a*b)%3==1)cout<<"Impossible | ~~~~^~~~~~~~~~~~~ 8 | "<<endl; | ~~~~~~~~ 9 | cout<<"Possible"<<endl; | ~~~~ a.cc:7:21: note: no known conversion for argument 2 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long double' 243 | operator<<(long double __f)
s444804543
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a*b%3==1)cout<<"Impossible"<<endl; cour<<"Possible"<<endl; }
a.cc: In function 'int main()': a.cc:8:3: error: 'cour' was not declared in this scope 8 | cour<<"Possible"<<endl; | ^~~~
s932213391
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a*b/3==1)cout<<"Impossible"<<endl; cour<<"Possible"<<endl; }
a.cc: In function 'int main()': a.cc:8:3: error: 'cour' was not declared in this scope 8 | cour<<"Possible"<<endl; | ^~~~
s078979689
p03657
C++
#include <iostream> using namepsace std; int main() { int a, b; cin >> a >> b; if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; }
a.cc:2:7: error: expected nested-name-specifier before 'namepsace' 2 | using namepsace std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:8:54: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:76: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:9:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | else cout << "Impossible" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | else cout << "Impossible" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s950052881
p03657
C++
#include <iostream> #include<string> #include<algorithm> #include<vector> using namespace std; int main(){ int A,B; cin>>A>>B; if(A+B%3>0){ cout<<"Impossible"<<endl; } else if(A%3>0){ cout<<"Impossible"<<endl; } else if{ cout<<"Impossible"<<endl; } else{ cout<<"Possible"<<endl; } }
a.cc: In function 'int main()': a.cc:17:12: error: expected '(' before '{' token 17 | else if{ | ^ | ( a.cc:20:5: error: 'else' without a previous 'if' 20 | else{ | ^~~~
s340375169
p03657
C++
#include <iostream> #include<string> #include<algorithm> #include<vector> using namespace std; int main(){ int A;B cin>>A>>B; if(A%B>=1){ cout<<"Impossible"<<endl; } else{ cout<<"Possible"<<endl; } }
a.cc: In function 'int main()': a.cc:9:11: error: 'B' was not declared in this scope 9 | int A;B | ^
s202863142
p03657
C++
#include <bits/stdc++.h> #define INF (1<<31) - 1 //INT_MAX/2 #define MOD 1000000007 #define PI acos(-1) using ll = long long; using ull = unsigned long long; using P = std::pair<int, int>; int main(int argc, char *argv[]) { int N; std::cin >> N; std::vector<int> a(N); for (int i = 0; i < N; i++) { std::cin >> a[i]; } ll sum = 0; for (int i = 0; i < N; i++) { X += a[i]; } ll ans = INF; ll x = 0; for (int i = 0; i < N; i++) { x += a[i]; if (i+1 < N) { ans = std::min(ans, std::abs(X - 2*x)); } } std::cout << ans << std::endl; return 0; }
a.cc: In function 'int main(int, char**)': a.cc:23:9: error: 'X' was not declared in this scope 23 | X += a[i]; | ^ a.cc:3:21: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 3 | #define INF (1<<31) - 1 //INT_MAX/2 | ~~~~~~~~^~~ a.cc:26:14: note: in expansion of macro 'INF' 26 | ll ans = INF; | ^~~ a.cc:31:42: error: 'X' was not declared in this scope 31 | ans = std::min(ans, std::abs(X - 2*x)); | ^
s964095998
p03657
C++
#include<iostream> using namespace std; int main() { long long a,b; cin>>a>>b; if((a%3==0||b%3==0)||(a+b)%3==0) { cout<<"Possible" } else { cout<<"Impossible"; } return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: expected ';' before '}' token 9 | cout<<"Possible" | ^ | ; 10 | } | ~
s840382569
p03657
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b; c=a+b if((a%3==0)||(b%3==0)||(c%3==0)) cout<<"Possible"; else cout<<"Impossible"; return 0; }
a.cc: In function 'int main()': a.cc:7:14: error: expected ';' before 'if' 7 | c=a+b | ^ | ; 8 | if((a%3==0)||(b%3==0)||(c%3==0)) cout<<"Possible"; | ~~ a.cc:9:9: error: 'else' without a previous 'if' 9 | else cout<<"Impossible"; | ^~~~
s893207595
p03657
C++
#include <vector> #include <array> #include <queue> #include <deque> #include <set> #include <list> #include <map> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <random> #include <cstdlib> #include <cctype> #include <string> #include <cstring> #include <ctime> #include <stdio.h> #include <string.h> #include <math.h> #include <ctype.h> using namespace std; #define _CRT_SECURE_NO_WARNINGS #define REP(i, n) for(int i=0; i<(n); i++) #define LLREP(i,n) for(LL i=0; i<(n); i++) #define FOR(i, m, n) for(int i=(m);i<(n);i++) #define ALL(x) (x).begin(),(x).end() #define SZ(x) ((int)(x).size()) #define SORT(x) sort(ALL(x)) #define REVE(x) reverse(ALL(x)) #define MP make_pair #define PB push_back #define INF INT_MAX typedef vector<int> VI; typedef vector<string> VS; typedef vector<bool> VB; typedef vector<vector<int>> VVI; typedef vector<vector<bool>> VVB; typedef pair<int, int> PII; typedef vector<pair<int, int>> VPII; typedef queue<int> QI; typedef long long LL; int main() { int a, b; cin >> a >> b; if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0)puts("Possible"); else push("Impossible"); }
a.cc: In function 'int main()': a.cc:58:14: error: 'push' was not declared in this scope 58 | else push("Impossible"); | ^~~~
s055587612
p03657
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() { int a, b; cin >> a >> b; if((a % 3 == 0) || (b % 3 == 0) || ((a + b) % 3 == 0)){ cout << "Possible" << endl; } else { cout << "Impossible" << endl; return 0; }
a.cc: In function 'int main()': a.cc:19:2: error: expected '}' at end of input 19 | } | ^ a.cc:11:1: note: to match this '{' 11 | { | ^
s081809989
p03657
C++
#include <iosteream> using namespace std; int main(void){ int a,b; cin >> a >> b; if((a+b)%3==0) cout << "Possible" << endl; else if(a%3==0 || b%3==0) cout << "Possible" << endl; else cout << "Inpossible" << endl; return 0; }
a.cc:1:10: fatal error: iosteream: No such file or directory 1 | #include <iosteream> | ^~~~~~~~~~~ compilation terminated.
s496979893
p03657
C
#include<stdio.h> int main(void){ int A,B; if(scanf("%d",&A) == 1); if(scanf("%d",&B) == 1); if((A+B)%3 == 0) || ((A+A+B)%3 == 0) || ((A+B+B)%3 == 0) printf("Possible"); else printf("Impossible"); return 0; }
main.c: In function 'main': main.c:7:20: error: expected expression before '||' token 7 | if((A+B)%3 == 0) || ((A+A+B)%3 == 0) || ((A+B+B)%3 == 0) | ^~
s274276881
p03657
C
#include<stdio.h> int main(void){ int A,B; if(scanf("%d %d",&A,&B) == 1); if(A+B%3 == 0) printf("Possible"); else printf("Impossible") return 0; }
main.c: In function 'main': main.c:9:25: error: expected ';' before 'return' 9 | printf("Impossible") | ^ | ; 10 | return 0; | ~~~~~~
s189883859
p03657
C
#include<stdio.h> int main(void){ int A,B; if(scanf("%d %d",&A,&B) == 1); if(A+B\3 == 0) printf("Possible"); else printf("Impossible") return 0; }
main.c: In function 'main': main.c:6:9: error: stray '\' in program 6 | if(A+B\3 == 0) | ^ main.c:6:9: error: expected ')' before numeric constant 6 | if(A+B\3 == 0) | ~ ^~ | ) main.c:9:25: error: expected ';' before 'return' 9 | printf("Impossible") | ^ | ; 10 | return 0; | ~~~~~~
s062286047
p03657
C++
#include <iostream> using namespace std; int main() { int a,b; con >> a >> b; if ((a+b)%3 == 0) cout << "Possible"; else cout << "Impossible"; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'con' was not declared in this scope 6 | con >> a >> b; | ^~~
s551258840
p03657
C++
#include <iostream> using namespace std; int A,B; int main(){ cin >> A >> B; cout << ((A%3== || B%3==0 || (A+B)%3==0)? "Possible":"Impossible") << endl; }
a.cc: In function 'int main()': a.cc:6:19: error: expected primary-expression before '||' token 6 | cout << ((A%3== || B%3==0 || (A+B)%3==0)? "Possible":"Impossible") << endl; | ^~
s050728115
p03657
C++
#include<iostream> using namespace std; int main() { int A, B; cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) { cout << "Possible"; } else { cout >> "Impossible"; } return 0; }
a.cc: In function 'int main()': a.cc:10:21: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [11]') 10 | else { cout >> "Impossible"; } | ~~~~ ^~ ~~~~~~~~~~~~ | | | | | const char [11] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:10:16: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 10 | else { cout >> "Impossible"; } | ^~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/iostream:42: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:10:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[11]]': a.cc:10:17: required from here 10 | else { cout >> "Impossible"; } | ^~~~~~~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~
s022491135
p03657
C++
#include<iostream> #include<vector> #include<algolithm> using namespace std; int main(){ int N,K; cin>>N>>K; vector<int> stick(N); for(int x &x:stick){ cin>>x; } sort(stick.rbegin(),stick.rend()); int ans=0; for(int i=0;i<K;++i){ ans+=stick[i]; } cout<<ans<<endl; }
a.cc:3:9: fatal error: algolithm: No such file or directory 3 | #include<algolithm> | ^~~~~~~~~~~ compilation terminated.
s575137108
p03657
C++
#include<iostream> using namespace std; int main(){ int A.B; cin>>A>>B; if(A%3==0||B%3==0||(A+B)%3==0){ cout<<"Possible"<<endl; }else{ cout<<"Impossible"<<endl; } }
a.cc: In function 'int main()': a.cc:6:8: error: expected initializer before '.' token 6 | int A.B; | ^ a.cc:7:8: error: 'A' was not declared in this scope 7 | cin>>A>>B; | ^ a.cc:7:11: error: 'B' was not declared in this scope 7 | cin>>A>>B; | ^
s632352629
p03657
C++
#include <bits/stdc++.h> using namespace std; int main() { if(A%3==0 || B%3==0 || (A+B)%3==0){ cout << "Possible" << endl; return 0; }else cout << "Impossible" << endl; }
a.cc: In function 'int main()': a.cc:5:8: error: 'A' was not declared in this scope 5 | if(A%3==0 || B%3==0 || (A+B)%3==0){ | ^ a.cc:5:18: error: 'B' was not declared in this scope 5 | if(A%3==0 || B%3==0 || (A+B)%3==0){ | ^
s533955231
p03657
C++
#include <iostream> using namespacw std; int main(){ int a,b; cin>>a>>b; if(a%3==0){cout<<"possible"<<endl;} else if(b%3==0){cout<<"possible"<<endl;} else if((a+b)%3==0){cout<<"possible"<<endl;} else{cout<<"impossible"<<endl;} }
a.cc:2:7: error: expected nested-name-specifier before 'namespacw' 2 | using namespacw std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | if(a%3==0){cout<<"possible"<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:7:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | if(a%3==0){cout<<"possible"<<endl;} | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:8:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | else if(b%3==0){cout<<"possible"<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | else if(b%3==0){cout<<"possible"<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:9:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | else if((a+b)%3==0){cout<<"possible"<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | else if((a+b)%3==0){cout<<"possible"<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | else{cout<<"impossible"<<endl;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:10:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | else{cout<<"impossible"<<endl;} | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s933429848
p03657
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) #define REPR(i, n) for(int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define FORR(i, m, n) for(int i = m; i >= n; i--) #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define ll long long #define pb(a) push_back(a) ll mod = 1e09; int main(){ cin.tie(0); ios::sync_with_stdio(false); int a, b; cin >> a >> b; if((a % 3) * (b % 3) *((a + b) % 3) == 0) cout << "Possible"; else cout << "Impossible" return 0; }
a.cc: In function 'int main()': a.cc:22:28: error: expected ';' before 'return' 22 | else cout << "Impossible" | ^ | ; 23 | return 0; | ~~~~~~
s958296954
p03657
C++
#include <bits/stdc++.h> using namespace std; nt main() { int a, b; cin >> a >> b; if ((a + b) % 3 == 0 || a % 3 == 0 || b % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; return 0; }
a.cc:4:1: error: 'nt' does not name a type; did you mean 'int'? 4 | nt main() { | ^~ | int
s212829217
p03657
C++
#include <bits/stdc++.h> using namespace strd; int a, b; int main() { cin >> a >> b; int t = a + b; if(t % 3) puts("Impossible"); else puts("Possible"); }
a.cc:2:17: error: 'strd' is not a namespace-name 2 | using namespace strd; | ^~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~
s596520693
p03657
C
main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} | ^~~~~ main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:31: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} | ^~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'puts' main.c:1:51: error: 'B' undeclared (first use in this function) 1 | main(a,b){scanf("%d%d",&a,&b);puts((a%3)*(b%3)*(a+B)%3?"Impossible":"Possible");} | ^ main.c:1:51: note: each undeclared identifier is reported only once for each function it appears in
s646234119
p03657
C++
#include "bits/stdc++.h" using namespace std; int main() { int A, B; cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || A + B % 3 == 0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl: } }
a.cc: In function 'int main()': a.cc:12:37: error: expected ';' before ':' token 12 | cout << "Impossible" << endl: | ^ | ;
s819085126
p03657
C++
#include "bits/stdc++.h" using namespace std; int main() { int A, B; cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || C % 3 == 0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl: } }
a.cc: In function 'int main()': a.cc:8:37: error: 'C' was not declared in this scope 8 | if (A % 3 == 0 || B % 3 == 0 || C % 3 == 0) { | ^ a.cc:12:37: error: expected ';' before ':' token 12 | cout << "Impossible" << endl: | ^ | ;
s177630051
p03657
C
#include<bits/stdc++.h> using namespace std; int main() { int a,b; scanf("%d%d",&a,&b); if(a%3==0||b%3==0||(a+b)%3==0) printf("Possible\n"); else printf("Impossible\n"); return 0; }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s734683181
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a%3==0||b%==0||(a+b)%3==0)cout<<"Possible"<<endl; else cout<<"Impossible"<<endl; }
a.cc: In function 'int main()': a.cc:6:17: error: expected primary-expression before '=' token 6 | if(a%3==0||b%==0||(a+b)%3==0)cout<<"Possible"<<endl; | ^
s571774496
p03657
C++
#include <iostream> int main(){ int a,b; cin >> a >> b; if(a%3==0||b%3==0||a+b%3==0){ printf(Possible¥n); }else{ printf(Impossible¥n); } return 0; }
a.cc:7:12: error: extended character ¥ is not valid in an identifier 7 | printf(Possible¥n); | ^ a.cc:9:12: error: extended character ¥ is not valid in an identifier 9 | printf(Impossible¥n); | ^ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:12: error: 'Possible\U000000a5n' was not declared in this scope 7 | printf(Possible¥n); | ^~~~~~~~~~ a.cc:9:12: error: 'Impossible\U000000a5n' was not declared in this scope 9 | printf(Impossible¥n); | ^~~~~~~~~~~~
s607163435
p03657
C++
#include <iostream> int main(){ int a,b; cin >> a >> b; if(a%3==0||b%3==0||a+b%3==0){ printf(Possible¥n); }else{ printf(Impossible¥n); } return 0;
a.cc:7:12: error: extended character ¥ is not valid in an identifier 7 | printf(Possible¥n); | ^ a.cc:9:12: error: extended character ¥ is not valid in an identifier 9 | printf(Impossible¥n); | ^ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:12: error: 'Possible\U000000a5n' was not declared in this scope 7 | printf(Possible¥n); | ^~~~~~~~~~ a.cc:9:12: error: 'Impossible\U000000a5n' was not declared in this scope 9 | printf(Impossible¥n); | ^~~~~~~~~~~~ a.cc:12:12: error: expected '}' at end of input 12 | return 0; | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s487976099
p03657
C++
#include<bits/stdc++.h> using namespace std; int main() { double a,b,c=0; cin>>a>>b; c=a/b/a+b; if(c%3==0) { cout<<"Possible"<<endl; return 0; } else cout<<"Impossible"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:7: error: invalid operands of types 'double' and 'int' to binary 'operator%' 8 | if(c%3==0) | ~^~ | | | | | int | double
s439671620
p03657
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ int a,b; cin>>a>>b; int x = a+b; if(x%3=0) cout<<"Possible"<<endl; else cout<<"Impossible"<<endl; }
a.cc: In function 'int main()': a.cc:9:9: error: lvalue required as left operand of assignment 9 | if(x%3=0) cout<<"Possible"<<endl; | ~^~
s134250459
p03657
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ int a,b; cin>>a>>b; int x = a+b if(x%3=0) cout<<"Possible"<<endl; else cout<<"Impossible"<<endl; }
a.cc: In function 'int main()': a.cc:9:5: error: expected ',' or ';' before 'if' 9 | if(x%3=0) cout<<"Possible"<<endl; | ^~ a.cc:10:5: error: 'else' without a previous 'if' 10 | else cout<<"Impossible"<<endl; | ^~~~
s044390635
p03657
C++
#include <iostream> #include <limits.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible"; else cout <<"Impossible"; return 0; } }
a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s684239813
p03657
C++
#include <iostream> #include <limits.h> using namespace std; int main() { int a, b; if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible"; else cout <<"Impossible"; return 0; } }
a.cc:11:1: error: expected declaration before '}' token 11 | } | ^
s396357752
p03657
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; a += b; if(a % 3 == 0){ puts("Possible"); } else { puts("Impossible") } return 0; }
a.cc: In function 'int main()': a.cc:11:27: error: expected ';' before '}' token 11 | puts("Impossible") | ^ | ; 12 | } | ~
s783280211
p03657
C++
#include<iostream> int main(){ int a=0,b=0; std::cin>>a>>b; if(a+b%3==0||a%3==0||b%3==0){ std::cout<<”Possible”<<std::endl; }else{ std::cout<<”Impossible”<<std::endl; } }
a.cc:6:14: error: extended character ” is not valid in an identifier 6 | std::cout<<”Possible”<<std::endl; | ^ a.cc:6:14: error: extended character ” is not valid in an identifier a.cc:8:12: error: extended character ” is not valid in an identifier 8 | std::cout<<”Impossible”<<std::endl; | ^ a.cc:8:12: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:5:29: error: '\U0000ff5b' was not declared in this scope 5 | if(a+b%3==0||a%3==0||b%3==0){ | ^~ a.cc: At global scope: a.cc:7:2: error: 'else\U0000ff5b' does not name a type 7 | }else{ | ^~~~~~ a.cc:9:1: error: expected declaration before '}' token 9 | } | ^ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s926925730
p03657
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin >>a >>b; if(a+b>=3) cout <<"Possible"; else cout <<"Impossible"; return 0;
a.cc: In function 'int main()': a.cc:11:14: error: expected '}' at end of input 11 | return 0; | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s753646295
p03657
C++
using namespace std; int main() { int a, b; cin >> a >> b; if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> a >> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout << "Possible" << endl; | ^~~~ a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:27: error: 'endl' was not declared in this scope 10 | cout << "Possible" << endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | a.cc:12:5: error: 'cout' was not declared in this scope 12 | cout << "Impossible" << endl; | ^~~~ a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:12:29: error: 'endl' was not declared in this scope 12 | cout << "Impossible" << endl; | ^~~~ a.cc:12:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s561479699
p03657
Java
a,b = map(int, input().split()) flag = 0 for i in [a,b,a+b]: if i % 3 == 0: flag = 1 break if flag: print("Possible") else: print("Impossible")
Main.java:1: error: class, interface, enum, or record expected a,b = map(int, input().split()) ^ 1 error
s610008871
p03657
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; if(A%3==0) cout<<"ossible; return 0; }
a.cc:9:7: warning: missing terminating " character 9 | cout<<"ossible; | ^ a.cc:9:7: error: missing terminating " character 9 | cout<<"ossible; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before 'return' 10 | return 0; | ^~~~~~
s820302753
p03657
C++
A = int(input('A : ')) B = int(input('B : ')) if A%3 == 0 or B%3==0 or (A+B)%3==0: print('Possible') else: print('Impossible')
a.cc:1:15: warning: multi-character character constant [-Wmultichar] 1 | A = int(input('A : ')) | ^~~~~~ a.cc:2:15: warning: multi-character character constant [-Wmultichar] 2 | B = int(input('B : ')) | ^~~~~~ a.cc:5:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 5 | print('Possible') | ^~~~~~~~~~ a.cc:8:11: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes 8 | print('Impossible') | ^~~~~~~~~~~~ a.cc:1:1: error: 'A' does not name a type 1 | A = int(input('A : ')) | ^
s707051006
p03657
C++
Select Code #include<iostream> using namespace std; int main(){ int a,b,r; cin>>a>>b; if(((a+b)%3)==0||a%3==0||b%3==0){ cout<<"Possible"<<endl; } else{ cout<<"Impossibe"<<endl; } }
a.cc:1:1: error: 'Select' does not name a type 1 | Select Code | ^~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, 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/exception_ptr.h:38, from /usr/include/c++/14/exception:166, from /usr/include/c++/14/ios:41: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ 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/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /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/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared 140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared 142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /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/new:145:52: error: expected primary-expression before 'const' 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /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/new:147:54: error: expected primary-expression before 'const' 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~ /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/new:154:68: error: expected primary-expression before ')' token 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive] 155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /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/new:156:68: error: expected primary-expression before ',' token 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:156:70: error: expected primary-expression before 'const' 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~ /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/new:162:70: error: expected primary-expression before ')' token 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive] 163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /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/new:164:70: error: expected primary-expression before ',' token 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:164:72: error: expected primary-expression before 'const' 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared 171 | void operator delete(void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared 173 | void operator delete[](void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function 179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 179 | _GLIBCXX_NODISCAR
s414220249
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b,r; cin>>a>>b; if(a%3==0||b%3==0||(A+B)%3==0){ cout<<"Possible"<<endl; } else{ cout<<"Impossibe"<<endl; } }
a.cc: In function 'int main()': a.cc:10:21: error: 'A' was not declared in this scope 10 | if(a%3==0||b%3==0||(A+B)%3==0){ | ^ a.cc:10:23: error: 'B' was not declared in this scope 10 | if(a%3==0||b%3==0||(A+B)%3==0){ | ^
s317485966
p03657
C++
##includeinclude<iostream><iostream> usingusing namespacenamespace stdstd; ; intint mainmain()(){ { intint a,b,r; a,b,r; cincin>>a>>b; r = a+b; >>a>>b; r if(a%3==0||b%3==0|r%3==0){ cout<<"Possible"<<endl; } else{ cout<<"Impossibe"<<endl; } }
a.cc:2:1: error: stray '##' in program 2 | ##includeinclude<iostream><iostream> | ^~ a.cc:2:3: error: 'includeinclude' does not name a type 2 | ##includeinclude<iostream><iostream> | ^~~~~~~~~~~~~~ a.cc:5:4: error: 'intint' does not name a type; did you mean 'inline'? 5 | ; intint mainmain()(){ | ^~~~~~ | inline
s841483679
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b,r; cin>>a>>b; r = a+b; if(a%3==0||b%3==0|r%3==0){ cout<<"possible"<<endl; } else{ cout<<"impossibe"<<endl; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s056865464
p03657
C++
#include <bits/stdc++.h>` #define slld(longvalue) scanf("%lld", &longvalue) #define plld(longvalue) printf("%lld\n", longvalue) #define slf(longvalue) scanf("%lf", &longvalue) #define plf(longvalue) printf("%lf\n", longvalue) #define sc(letter) scanf("%c", &letter) #define pc(letter) printf("%c", letter) #define ss(name) scanf("%s", name) #define ps(name) printf("%s", name) #define pnew printf("\n") #define ll long long #define printcase(indexing,ans) printf("Case %lld: %lld\n", indexing, ans) #define pb(x) push_back(x) #define bug printf("BUG\n") #define mxlld LLONG_MAX #define mnlld -LLONG_MAX #define mxd 2e8 #define mnd -2e8 #define pi 3.14159265359 #define mod 1000000009 using namespace std; int main() { ll i, j, k, l, m, n, o; ll testcase; ll input, flag, tag, ans; // freopen("in.txt", "r", stdin); cin >> n >> m; ans = n + m; if(ans % 3 == 0 || a % 3 == 0 || b % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; }
a.cc:1:25: warning: extra tokens at end of #include directive 1 | #include <bits/stdc++.h>` | ^ a.cc: In function 'int main()': a.cc:49:23: error: 'a' was not declared in this scope 49 | if(ans % 3 == 0 || a % 3 == 0 || b % 3 == 0) cout << "Possible" << endl; | ^ a.cc:49:37: error: 'b' was not declared in this scope 49 | if(ans % 3 == 0 || a % 3 == 0 || b % 3 == 0) cout << "Possible" << endl; | ^
s601858830
p03657
C++
Select Code #include <iostream> using namespace std; int main() { int a,b,r; cin>>a; cin>>b; r=(a+b); if(r==0){ cout<<"error!!!"<<endl; } else if(r%3==0){ cout<<"possible"<<endl; } else{ cout<<"impossible"<<endl; } return 0; }
a.cc:1:1: error: 'Select' does not name a type 1 | Select Code | ^~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, 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/exception_ptr.h:38, from /usr/include/c++/14/exception:166, from /usr/include/c++/14/ios:41: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ 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/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /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/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared 140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared 142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /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/new:145:52: error: expected primary-expression before 'const' 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /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/new:147:54: error: expected primary-expression before 'const' 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~ /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/new:154:68: error: expected primary-expression before ')' token 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive] 155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /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/new:156:68: error: expected primary-expression before ',' token 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:156:70: error: expected primary-expression before 'const' 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~ /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/new:162:70: error: expected primary-expression before ')' token 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive] 163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /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/new:164:70: error: expected primary-expression before ',' token 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:164:72: error: expected primary-expression before 'const' 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared 171 | void operator delete(void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared 173 | void operator delete[](void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function 179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 179 | _GLIBCXX_NODISCAR
s638182474
p03657
C++
#include <iostream> using namespace std; int main(){ int a,b; cin>>a; cin>>b; if((a+b)%3)==0{ cout<<"Possible"<<endl; } else{ cout<"impossible"<<endl; } }
a.cc: In function 'int main()': a.cc:10:12: error: expected primary-expression before '==' token 10 | if((a+b)%3)==0{ | ^~ a.cc:14:18: error: invalid operands of types 'const char [11]' and '<unresolved overloaded function type>' to binary 'operator<<' 14 | cout<"impossible"<<endl; | ~~~~~~~~~~~~^~~~~~
s554113349
p03657
C++
#include <iostream> using namespace std: int main(){ int a,b; cin>>a; cin>>b; if((a+b)%3)==0{ cout<<"Possible"<<endl; } else{ cout<"impossible"<<endl; } }
a.cc:2:20: error: expected ';' before ':' token 2 | using namespace std: | ^ | ; a.cc:2:20: error: expected unqualified-id before ':' token
s335473229
p03657
C++
#include<iostream> int main() { int A,B; cin>>A; cin>>B; if(A%3==0) { cout<<"possible"; return 0; } else if(B%3==0) { cout<<"possible"; return 0; } else if((A+B)%3==0) { cout<<"possible"; return 0; } cout<<"impossible"; return 0; }
a.cc: In function 'int main()': a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>A; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | cout<<"possible"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:15:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<"possible"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:20:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout<<"possible"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:24:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 24 | cout<<"impossible"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s072379354
p03657
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int a, b; cin >> a >> b; int c = a + b; if (a % 3 == 0 || b % 3 == 0 || c % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << eldl; }
a.cc: In function 'int main()': a.cc:9:34: error: 'eldl' was not declared in this scope 9 | else cout << "Impossible" << eldl; | ^~~~
s185307321
p03657
C++
#include <cstdio> using namespace std; int main(void){ int a,b; scanf("%d%d",&a,&b); puts(a%&&b%3&&(a+b)%3?"Impossible":"Possible"); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: invalid operands of types 'int' and 'void*' to binary 'operator%' 6 | puts(a%&&b%3&&(a+b)%3?"Impossible":"Possible"); | ~^~~~ | | | | | void* | int a.cc:6:12: error: label 'b' used but not defined 6 | puts(a%&&b%3&&(a+b)%3?"Impossible":"Possible"); | ^
s926083978
p03657
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> P; const double PI = 3.14159265358979323846; const double EPS = 1e-12; const ll INF = 1LL<<29; const ll mod = 1e9+7; #define rep(i, a, b) for(ll (i) = (a); (i) < (b);++i) ll gcd(ll x, ll y) { if (x % y == 0) { return y; } return gcd(y, x % y); } int main() { ll a, b; cin >> a >> b; if ((a + b) % 3 == 0) cout << "Possible" << endl; }else{ cout << "Impossible" << endl; } return 0; }
a.cc:29:4: error: expected unqualified-id before 'else' 29 | }else{ | ^~~~ a.cc:32:3: error: expected unqualified-id before 'return' 32 | return 0; | ^~~~~~ a.cc:33:1: error: expected declaration before '}' token 33 | } | ^
s681172610
p03657
C++
#include "stdafx.h" #include <iostream> #include <cmath> #include <vector> using namespace std; int main() { int A, B; cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) { cout << "Possible" << endl; } else cout << "Impossible" << endl; return 0; }
a.cc:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s489481558
p03657
C++
#include <stdio.h> int main() { // your code goes here int a,b; cin >> a >> b; if(a%3==0 || b%3==0 || a+b%3==0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'cin' was not declared in this scope 8 | cin >> a >> b; | ^~~ a.cc:11:17: error: 'cout' was not declared in this scope 11 | cout << "Possible" << endl; | ^~~~ a.cc:11:39: error: 'endl' was not declared in this scope 11 | cout << "Possible" << endl; | ^~~~ a.cc:14:17: error: 'cout' was not declared in this scope 14 | cout << "Impossible" << endl; | ^~~~ a.cc:14:41: error: 'endl' was not declared in this scope 14 | cout << "Impossible" << endl; | ^~~~
s147388468
p03657
C++
#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); int c=a+b; if(c%3=0){ printf("Possible\n"); } else if(a%3=0){ printf("Possible\n"); } else if(b%3=0){ printf("Possible\n"); } else{ printf("Impossible\n"); } return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: lvalue required as left operand of assignment 7 | if(c%3=0){ | ~^~ a.cc:10:12: error: lvalue required as left operand of assignment 10 | else if(a%3=0){ | ~^~ a.cc:13:12: error: lvalue required as left operand of assignment 13 | else if(b%3=0){ | ~^~
s963876026
p03657
C++
#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); int c=a+b; if(c%3=0){ printf(Possible\n); } else if(a%3=0){ printf(Possible\n); } else if(b%3=0){ printf(Possible\n); } return 0; }
a.cc:8:20: error: stray '\' in program 8 | printf(Possible\n); | ^ a.cc:11:20: error: stray '\' in program 11 | printf(Possible\n); | ^ a.cc:14:20: error: stray '\' in program 14 | printf(Possible\n); | ^ a.cc: In function 'int main()': a.cc:7:7: error: lvalue required as left operand of assignment 7 | if(c%3=0){ | ~^~ a.cc:8:12: error: 'Possible' was not declared in this scope 8 | printf(Possible\n); | ^~~~~~~~ a.cc:10:12: error: lvalue required as left operand of assignment 10 | else if(a%3=0){ | ~^~ a.cc:11:12: error: 'Possible' was not declared in this scope 11 | printf(Possible\n); | ^~~~~~~~ a.cc:13:12: error: lvalue required as left operand of assignment 13 | else if(b%3=0){ | ~^~ a.cc:14:12: error: 'Possible' was not declared in this scope 14 | printf(Possible\n); | ^~~~~~~~
s674250590
p03657
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%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.println("Possible"); }elser System.out.println("Impossible"); } } }
Main.java:10: error: ';' expected System.out.println("Impossible"); ^ Main.java:13: error: class, interface, enum, or record expected } ^ 2 errors
s288749342
p03657
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%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.ptintln("Possible"); }else{ System.out.println("Impossible"); } } }
Main.java:5: error: cannot find symbol int a = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner Main.java:8: error: cannot find symbol System.out.ptintln("Possible"); ^ symbol: method ptintln(String) location: variable out of type PrintStream 2 errors
s080841018
p03657
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%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.ptintln("Possible") }else{ System.out.println("Impossible") } } }
Main.java:8: error: ';' expected System.out.ptintln("Possible") ^ Main.java:10: error: ';' expected System.out.println("Impossible") ^ 2 errors
s374937396
p03657
C
#include<stdio.h> void main() { int a,b; scanf("%d%d",&a&b); if((a+b)%3==0) {printf("possible");} else {printf("impossible");} }
main.c: In function 'main': main.c:5:19: error: invalid operands to binary & (have 'int *' and 'int') 5 | scanf("%d%d",&a&b); | ~~^ | | | int *
s300585151
p03657
C++
#include <bits/stdc++.h> using namespace std; int main() { if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; }
a.cc: In function 'int main()': a.cc:5:7: error: 'a' was not declared in this scope 5 | if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) | ^ a.cc:5:21: error: 'b' was not declared in this scope 5 | if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) | ^
s843631291
p03657
C++
#include <iostream> using namespace std; typedef long int lint; typedef long long int llint; typedef pair<int, int> pii; typedef pair<int, string> pis; typedef pair<long, long> pll; #define EACH(t, c) for (auto&& t : c) #define ALL(c) begin(c), end(c) #define FOR(i, s, e) for (int i = (s); i < (int)(e); ++i) #define REP(i, n) FOR(i, 0, n) #define endl '\n' #define fk first #define sv second const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1}, dy[] = {0, 1, 0, -1, 1, -1, 1, -1}; const int MOD = (int)1e9 + 7; const int INF = 999999999; template<typename T> void print(const std::vector<T>& v, char sep=' ') { for (int i = 0; i < (int)v.size(); i++) { if (i != 0) cout << sep; cout << v[i]; } cout << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b; cin >> a >> b; int sum = a + b; if (sum % 3 == 0) { cout << "Possible"; } else { cout << "Impossible"; } cout << endl; }
a.cc:23:23: error: 'vector' in namespace 'std' does not name a template type 23 | void print(const std::vector<T>& v, char sep=' ') { | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <iostream> +++ |+#include <vector> 2 | using namespace std; a.cc:23:29: error: expected ',' or '...' before '<' token 23 | void print(const std::vector<T>& v, char sep=' ') { | ^ a.cc: In function 'void print(int)': a.cc:24:28: error: 'v' was not declared in this scope 24 | for (int i = 0; i < (int)v.size(); i++) { | ^ a.cc:25:25: error: 'sep' was not declared in this scope 25 | if (i != 0) cout << sep; | ^~~
s431792456
p03657
C++
#include <iostream> using namespace std; typedef long int lint; typedef long long int llint; typedef pair<int, int> pii; typedef pair<int, string> pis; typedef pair<long, long> pll; #define EACH(t, c) for (auto&& t : c) #define ALL(c) begin(c), end(c) #define FOR(i, s, e) for (int i = (s); i < (int)(e); ++i) #define REP(i, n) FOR(i, 0, n) #define endl '\n' #define fk first #define sv second const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1}, dy[] = {0, 1, 0, -1, 1, -1, 1, -1}; const int MOD = (int)1e9 + 7; const int INF = 999999999; template<typename T> void print(const std::vector<T>& v, char sep=' ') { for (int i = 0; i < (int)v.size(); i++) { if (i != 0) cout << sep; cout << v[i]; } cout << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b; cin >> a >> b; int sum = a + b; if (sum % 3 == 0) { cout << "Possible"; } else { cout << "Impossible"; } cout << endl; }
a.cc:23:23: error: 'vector' in namespace 'std' does not name a template type 23 | void print(const std::vector<T>& v, char sep=' ') { | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <iostream> +++ |+#include <vector> 2 | using namespace std; a.cc:23:29: error: expected ',' or '...' before '<' token 23 | void print(const std::vector<T>& v, char sep=' ') { | ^ a.cc: In function 'void print(int)': a.cc:24:28: error: 'v' was not declared in this scope 24 | for (int i = 0; i < (int)v.size(); i++) { | ^ a.cc:25:25: error: 'sep' was not declared in this scope 25 | if (i != 0) cout << sep; | ^~~
s405946250
p03657
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) using namespace std; typedef long long int lli; int main(){ int A,B; cin>>A>>B; if(A%3==0||B%3==0||(A+B)%3==0) cout<<"Possible"; else cout<<Impossible; }
a.cc: In function 'int main()': a.cc:16:20: error: 'Impossible' was not declared in this scope 16 | else cout<<Impossible; | ^~~~~~~~~~
s072624489
p03657
C++
include<iostream> #include<vector> #include <algorithm> using namespace std; int main() { int a, b, res; cin >> a >> b; if (((a + b) % 3) == 0) { cout << "Possible" << endl; } else if ((a % 3) == 0) { cout << "Possible" << endl; } else if ((b % 3) == 0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/vector:62, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std' 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:295:27: error: 'size_t' has not been declared 295 | template <typename _Tp, size_t = sizeof(_Tp)> | ^~~~~~ /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:984:26: error: 'size_t' has not been declared 984 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:985:40: error: '_Size' was not declared in this scope 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:985:46: error: template argument 1 is invalid 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std' 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std' 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std' 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std' 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1451:32: error: 'size_t' was not declared in this scope 1451 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:64:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 63 | #include <bits/version.h> +++ |+#include <cstddef> 64 | /usr/include/c++/14/type_traits:1451:41: error: template argument 1 is invalid 1451 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1451:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1453:26: error: 'size_t' has not been declared 1453 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1454:23: error: '_Size' was not declared in this scope 1454 | struct extent<_Tp[_Size], 0> | ^~~~~ /usr/include/c++/14/type_traits:1454:32: error: template argument 1 is invalid 1454 | struct extent<_Tp[_Size], 0> | ^ /usr/include/c++/14/type_traits:1455:32: error: 'size_t' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1455:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1455:40: error: '_Size' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~ /usr/include/c++/14/type_traits:1455:45: error: template argument 1 is invalid 1455 | : public integral_constant<size_t, _Size> { }; | ^ /usr/include/c++/14/type_traits:1455:45: error: template argument 2 is invalid /usr/include/c++/14/type_traits:1457:42: error: 'size_t' has not been declared 1457 | template<typename _Tp, unsigned _Uint, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1458:23: error: '_Size' was not declared in this scope 1458 | struct extent<_Tp[_Size], _Uint> | ^~~~~ /usr/include/c++/14/type_traits:1458:36: error: template argument 1 is invalid 1458 | struct extent<_Tp[_Size], _Uint> | ^ /usr/include/c++/14/type_traits:1463:32: error: 'size_t' was not declared in this scope 1463 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1463:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1463:41: error: template argument 1 is invalid 1463 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1463:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1857:26: error: 'size_t' does not name a type 1857 | { static constexpr size_t __size = sizeof(_Tp); }; | ^~~~~~ /usr/include/c++/14/type_traits:1857:26: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1859:14: error: 'size_t' has not been declared 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~~~~ /usr/include/c++/14/type_traits:1859:48: error: '_Sz' was not declared in this scope 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~ /usr/include/c++/14/type_traits:1860:14: error: no default argument for '_Tp' 1860 | struct __select; | ^~~~~~~~ /usr/include/c++/14/type_traits:1862:14: error: 'size_t' has not been declared 1862 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1863:23: error: '_Sz' was not declared in this scope 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^~~ /usr/include/c++/14/type_traits:1863:57: error: template argument 1 is invalid 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^ /usr/include/c++/14/type_traits:1866:14: error: 'size_t' has not been declared 1866 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1867:23: error: '_Sz' was not declared in this scope 1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false> | ^~~ /usr/include/c++/14/type_traits:1867:58: error: template argument 1 is invalid 1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false> |
s909672373
p03657
C++
include<iostream> #include<vector> #include <algorithm> using namespace std; int main() { int a, b, res; cin >> a >> b; if (((a + b) % 3) == 0) { cout << "Possible" << endl; } else if ((a % 3) == 0) { cout << "Possible" << endl; } else if ((b % 3) == 0) { cout << "Possible" << endl; } else { cout << "Impossible" << endl; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/vector:62, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std' 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:295:27: error: 'size_t' has not been declared 295 | template <typename _Tp, size_t = sizeof(_Tp)> | ^~~~~~ /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std' 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:984:26: error: 'size_t' has not been declared 984 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:985:40: error: '_Size' was not declared in this scope 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:985:46: error: template argument 1 is invalid 985 | struct __is_array_known_bounds<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std' 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std' 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std' 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std' 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1451:32: error: 'size_t' was not declared in this scope 1451 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:64:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 63 | #include <bits/version.h> +++ |+#include <cstddef> 64 | /usr/include/c++/14/type_traits:1451:41: error: template argument 1 is invalid 1451 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1451:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1453:26: error: 'size_t' has not been declared 1453 | template<typename _Tp, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1454:23: error: '_Size' was not declared in this scope 1454 | struct extent<_Tp[_Size], 0> | ^~~~~ /usr/include/c++/14/type_traits:1454:32: error: template argument 1 is invalid 1454 | struct extent<_Tp[_Size], 0> | ^ /usr/include/c++/14/type_traits:1455:32: error: 'size_t' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1455:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1455:40: error: '_Size' was not declared in this scope 1455 | : public integral_constant<size_t, _Size> { }; | ^~~~~ /usr/include/c++/14/type_traits:1455:45: error: template argument 1 is invalid 1455 | : public integral_constant<size_t, _Size> { }; | ^ /usr/include/c++/14/type_traits:1455:45: error: template argument 2 is invalid /usr/include/c++/14/type_traits:1457:42: error: 'size_t' has not been declared 1457 | template<typename _Tp, unsigned _Uint, size_t _Size> | ^~~~~~ /usr/include/c++/14/type_traits:1458:23: error: '_Size' was not declared in this scope 1458 | struct extent<_Tp[_Size], _Uint> | ^~~~~ /usr/include/c++/14/type_traits:1458:36: error: template argument 1 is invalid 1458 | struct extent<_Tp[_Size], _Uint> | ^ /usr/include/c++/14/type_traits:1463:32: error: 'size_t' was not declared in this scope 1463 | : public integral_constant<size_t, 0> { }; | ^~~~~~ /usr/include/c++/14/type_traits:1463:32: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1463:41: error: template argument 1 is invalid 1463 | : public integral_constant<size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1463:41: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1857:26: error: 'size_t' does not name a type 1857 | { static constexpr size_t __size = sizeof(_Tp); }; | ^~~~~~ /usr/include/c++/14/type_traits:1857:26: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' /usr/include/c++/14/type_traits:1859:14: error: 'size_t' has not been declared 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~~~~ /usr/include/c++/14/type_traits:1859:48: error: '_Sz' was not declared in this scope 1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | ^~~ /usr/include/c++/14/type_traits:1860:14: error: no default argument for '_Tp' 1860 | struct __select; | ^~~~~~~~ /usr/include/c++/14/type_traits:1862:14: error: 'size_t' has not been declared 1862 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1863:23: error: '_Sz' was not declared in this scope 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^~~ /usr/include/c++/14/type_traits:1863:57: error: template argument 1 is invalid 1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true> | ^ /usr/include/c++/14/type_traits:1866:14: error: 'size_t' has not been declared 1866 | template<size_t _Sz, typename _Uint, typename... _UInts> | ^~~~~~ /usr/include/c++/14/type_traits:1867:23: error: '_Sz' was not declared in this scope 1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false> | ^~~ /usr/include/c++/14/type_traits:1867:58: error: template argument 1 is invalid 1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false> |
s344618521
p03657
C++
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(){ int a,b; cin >> a >> b; if(a%3==0&&b%3==0&&(a+b)%3==0) cout << "Possible\n"; else cout << "Impossible\n" }
a.cc: In function 'int main()': a.cc:9:35: error: expected ';' before '}' token 9 | else cout << "Impossible\n" | ^ | ; 10 | } | ~
s854329878
p03657
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if ((a+b)%3==0){ cout<<"Possible"<<endl; } else { cout<<"Impossible"<<endl; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s483345608
p03657
C++
#include <iostream> using namespace std; int main(){ int A, B; cin >> A >> B; if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; else cout << "Impossible"; }
a.cc: In function 'int main()': a.cc:7:45: error: expected primary-expression before ')' token 7 | if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; | ^
s641382324
p03657
C++
#include <iostream> using namespace std; int main(){ if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; else cout << "Impossible"; }
a.cc: In function 'int main()': a.cc:5:13: error: 'A' was not declared in this scope 5 | if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; | ^ a.cc:5:23: error: 'B' was not declared in this scope 5 | if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; | ^ a.cc:5:45: error: expected primary-expression before ')' token 5 | if((A%3==0)||(B%3==0)||((A+B)%3==0))) cout << "Possible"; | ^
s973636401
p03657
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair<int, int>Pii; int main() { int a, b; cin >> a >> b; if ((a + b) % 3 == 0 ||a % 3 == 0 ||b % 3 == 0) { puts("Possible"); } else puts("Impossible"); return 0; }#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair<int, int>Pii; int main() { int a, b; cin >> a >> b; if ((a + b) % 3 == 0 ||a % 3 == 0 ||b % 3 == 0) { puts("Possible"); } else puts("Impossible"); return 0; }
a.cc:32:2: error: stray '#' in program 32 | }#include <iostream> | ^ a.cc:32:3: error: 'include' does not name a type 32 | }#include <iostream> | ^~~~~~~ a.cc:55:5: error: redefinition of 'int main()' 55 | int main() { | ^~~~ a.cc:24:5: note: 'int main()' previously defined here 24 | int main() { | ^~~~
s262225549
p03657
C++
A, B = map(int, input().split()) if (A + B) % 3 == 1 or (A + B) % 3 == 2: print("Impossible") else: print("Possible")
a.cc:1:1: error: 'A' does not name a type 1 | A, B = map(int, input().split()) | ^
s970120122
p03657
C++
#include <iostream> #include <algorithm> #include <string> #include <string.h> #include <vector> #include <cstdio> #include <cmath> using namespace std; int main(){ int a,b; cin>>a>>b; if(a%3==0||b%3==0||(a+b)%3==0){ cout<<"Possible"; else{ cout<<"Impossible"; } return 0; }
a.cc: In function 'int main()': a.cc:16:5: error: expected '}' before 'else' 16 | else{ | ^~~~ a.cc:14:33: note: to match this '{' 14 | if(a%3==0||b%3==0||(a+b)%3==0){ | ^
s745590463
p03657
C++
#include <iostream> using namespace std; int main() { int a,b; if((a+b)%2==0) cout<<"Possible"; else cout<<"Impossible" // your code goes here return 0; }
a.cc: In function 'int main()': a.cc:9:29: error: expected ';' before 'return' 9 | cout<<"Impossible" | ^ | ; 10 | // your code goes here 11 | return 0; | ~~~~~~
s996475230
p03657
C++
#include <iostream> #include <ostream> #include <istream> #include <cmath> #include <string> #include <vector> #include <sstream> #include <cstring> #include <cstdio> #include <cstdlib> #include <algorithm> #include <queue> #include <deque> #include <stack> #include <map> #include <vector> #include <set> #define pb push_back #define ppb pop_back using namespace std; #define forn(i, n) for (int i = 0; i < int(n); i++) #define for1(i, n) for (int i = 1; i <= int(n); i++) #define forv(i, v) forn(i, v.size()) #define all(x) x.begin(), x.end() #define pb push_back #define mp make_pair #define CIN_FILE "input.txt" #define COUT_FILE "output.txt" #define pi 3.1415926535897932 #define NMAX 100005 typedef pair<int, int> pii; typedef long long ll; typedef long double ld; const int Mod=1e9+7; const int INF=INT_MAX/2; vector<int> bfs(int N,vector<vector<int>>& G,int s) { vector<int> d(N,INF); d[s]=0; queue<int> q; q.push(s); while(q.size()) { int u=q.front(); q.pop(); for(int v:G[u]) { if(d[v]>d[u]+1) { d[v]=d[u]+1; q.push(v); } } } return d; } int main() { int n; cin>>n; vector<vector<int>>G(n); forn(i,n-1) { int u,v; scanf("%d%d",&u,&v); u--; v--; G[u].push_back(v),G[v].push_back(u); } vector<int>d1=bfs(n,G,0); vector<int>d2=bfs(n,G,n-1); int n1=0,n2=0; forn(u,n)if(d1[u]<=d2[u])n1++; else n2++; cout<<(n1>n2?"Fennec":"Snuke")<<endl; return 0; }
a.cc:35:15: error: 'INT_MAX' was not declared in this scope 35 | const int INF=INT_MAX/2; | ^~~~~~~ a.cc:18:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 17 | #include <set> +++ |+#include <climits> 18 | #define pb push_back
s978886243
p03657
C++
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define repr(i,a,b) for(int i=(int)(a-1);i>=b;i--) #define rep(i,n) repl(i,0,n) #define each(itr,v) for(auto itr:v) #define pb(s) push_back(s) #define all(x) (x).begin(),(x).end() #define dbg(x) cout << #x" = " << x << endl #define maxch(x,y) x=max(x,y) #define minch(x,y) x=min(x,y) #define uni(x) x.erase(unique(all(x)),x.end()) #define exist(x,y) (find(all(x),y)!=x.end()) #define bcnt(x) bitset<32>(x).count() typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define INF INT_MAX/3 int main(){ cin.sync_with_stdio(false); int a, b; cin >> a >> b; if (a % 3 && b % 3 && (a + b) % 3) cout << "Impossible" << endl; else cout << "Possible" << endl; return 0; }#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define repr(i,a,b) for(int i=(int)(a-1);i>=b;i--) #define rep(i,n) repl(i,0,n) #define each(itr,v) for(auto itr:v) #define pb(s) push_back(s) #define all(x) (x).begin(),(x).end() #define dbg(x) cout << #x" = " << x << endl #define maxch(x,y) x=max(x,y) #define minch(x,y) x=min(x,y) #define uni(x) x.erase(unique(all(x)),x.end()) #define exist(x,y) (find(all(x),y)!=x.end()) #define bcnt(x) bitset<32>(x).count() typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define INF INT_MAX/3 int main(){ cin.sync_with_stdio(false); int a, b; cin >> a >> b; if (a % 3 && b % 3 && (a + b) % 3) cout << "Impossible" << endl; else cout << "Possible" << endl; return 0; }
a.cc:32:2: error: stray '#' in program 32 | }#include <bits/stdc++.h> | ^ a.cc:32:3: error: 'include' does not name a type 32 | }#include <bits/stdc++.h> | ^~~~~~~ a.cc:56:5: error: redefinition of 'int main()' 56 | int main(){ | ^~~~ a.cc:25:5: note: 'int main()' previously defined here 25 | int main(){ | ^~~~
s774191690
p03657
C++
#include <cstdio> using namespace std; int main(){ int A,B; scanf("%d %d",&A,&B); if(A%3==0) printf("Possible\n"); else if(B%3==0) printf("Possible\n"); else if((A+B)%3==0) printf("Possible\n") else printf("Impossible\n"); return 0; }
a.cc: In function 'int main()': a.cc:8:43: error: expected ';' before 'else' 8 | else if((A+B)%3==0) printf("Possible\n") | ^ | ; 9 | else printf("Impossible\n"); | ~~~~
s827236692
p03657
C++
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; #define Rep(i, n) for(int i = 0; i < (int)(n); i++) #define PrintLn(X) cout << X << endl int main(void) { int a, b; cin >> a >> b; if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0)){ PrintLn("Possible"); }else{ PrintLn("Impossible"); } return 0; }
a.cc: In function 'int main()': a.cc:13:57: error: expected primary-expression before ')' token 13 | if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0)){ | ^
s701100391
p03657
C
#include <stdio.h> #include <stdlib.h> int main() { int A,B; scanf("%d%d",&A,&B); if((A>=1&&A<=100)&&(B>=1&&B<=100)) { if((A+B)%3==0)&&(A%3==0)&&(B%3==0)) printf("Possible"); if((A+B)%3!=0) printf("Impossible"); } return 0; }
main.c: In function 'main': main.c:10:25: error: expected identifier before '(' token 10 | if((A+B)%3==0)&&(A%3==0)&&(B%3==0)) | ^ main.c:10:43: error: expected statement before ')' token 10 | if((A+B)%3==0)&&(A%3==0)&&(B%3==0)) | ^
s196997341
p03657
C++
use std::io; use std::str::FromStr; fn main() { let stdin = io::stdin(); let mut buf = String::new(); stdin.read_line(&mut buf).ok(); let mut it = buf.split_whitespace().map(|n| i64::from_str(n).unwrap()); let (a, b) = (it.next().unwrap(), it.next().unwrap()); if a % 3 == 0 { println!("Possible"); return; } if b % 3 == 0 { println!("Possible"); return; } if (a + b) % 3 == 0 { println!("Possible"); return; } println!("Impossible"); }
a.cc:1:1: error: 'use' does not name a type 1 | use std::io; | ^~~ a.cc:2:1: error: 'use' does not name a type 2 | use std::str::FromStr; | ^~~ a.cc:4:1: error: 'fn' does not name a type 4 | fn main() { | ^~
s092047746
p03657
C++
#include<iostream> using namespace std; int main(void){ int A, B; cin << A << B; cout << (A%3==0 || B%3==0 || (A+B)%%3==0 ? "Possible" : "Imposssible") << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 7 | cin << A << B; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:7:9: note: candidate: 'operator<<(int, int)' (built-in) 7 | cin << A << B; | ~~~~^~~~ a.cc:7:9: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:7:5: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 7 | cin << A << B; | ^~~ In file included from /usr/include/c++/14/bits/ios_base.h:46: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)' 689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed: a.cc:7:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ /usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed: /usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]': a.cc:7:12: required from here 7 | cin << A << B; | ^ /usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ a.cc:8:40: error: expected primary-expression before '%' token 8 | cout << (A%3==0 || B%3==0 || (A+B)%%3==0 ? "Possible" : "Imposssible") << endl; | ^
s090366846
p03657
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a%3&&b%3&&(a+b)%3)cout<<"impossible"; else cout<<"possible" return 0; }
a.cc: In function 'int main()': a.cc:7:22: error: expected ';' before 'return' 7 | else cout<<"possible" | ^ | ; 8 | return 0; | ~~~~~~
s813184654
p03657
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define REPR(i, n) for(int i = n;i >= 0;i--) #define REP3(i, m, n) for(int i = m, i##_len=(n);i < i##_len;i++) #define FORVEC(i, v) for(int i = 0;i < v.size();i++) #define INF 1000000000 #define pb(a) push_back(a) #define llong long long int main(){ int a,b; cin>>a>>b; if(!(a%3)||!(b%3)||!((a+b)%3))) cout<<"possible"<<endl; else cout<<"Impossible"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:17:39: error: expected primary-expression before ')' token 17 | if(!(a%3)||!(b%3)||!((a+b)%3))) | ^
s179605779
p03657
C++
#include <iostream> #include <math.h> #include <algorithm> #include <vector> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) //string alp = "abcdefghijklmnopqrstuvwxyz"; using namespace std; int main(){ int a,b; cin >> a >> b; cout << (a%3==0||b%3==0||(a+b)%3==0)?"Possible":"Impossible" << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:64: error: invalid operands of types 'const char [11]' and '<unresolved overloaded function type>' to binary 'operator<<' 12 | cout << (a%3==0||b%3==0||(a+b)%3==0)?"Possible":"Impossible" << endl; | ~~~~~~~~~~~~~^~~~~~~
s318811231
p03657
C++
#include <iostream> #include <math.h> #include <algorithm> #include <vector> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) //string alp = "abcdefghijklmnopqrstuvwxyz"; using namespace std; int main(){ int a,b; cin >> a >> b; cout << (a%3==0||b%3==0||(a+b)%3==0)?"Possible":"Impossible " << endl; return 0; }
a.cc:12:51: warning: missing terminating " character 12 | cout << (a%3==0||b%3==0||(a+b)%3==0)?"Possible":"Impossible | ^ a.cc:12:51: error: missing terminating " character 12 | cout << (a%3==0||b%3==0||(a+b)%3==0)?"Possible":"Impossible | ^~~~~~~~~~~ a.cc:13:1: warning: missing terminating " character 13 | " << endl; | ^ a.cc:13:1: error: missing terminating " character 13 | " << endl; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:14:3: error: expected primary-expression before 'return' 14 | return 0; | ^~~~~~
s379014692
p03657
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int A,B; cin>>n>>m; if(A%3==0) { cout<<"Possible"; } if(B%3==0) { cout<<"Possible"; } if((A+B)%3==0) { cout<<"Possible"; } else { cout<<"Impossible"; } return 0; }
a.cc: In function 'int main()': a.cc:7:14: error: 'n' was not declared in this scope 7 | cin>>n>>m; | ^ a.cc:7:17: error: 'm' was not declared in this scope 7 | cin>>n>>m; | ^
s249667547
p03657
C++
open Printf open Scanf let () = let a, b = scanf "%d %d" (fun a b -> (a, b)) in (if (a mod 3 = 0 || b mod 3 = 0 || (a + b) mod 3 = 0) then "Possible" else "Impossible") |> printf "%s\n"
a.cc:1:1: error: 'open' does not name a type 1 | open Printf | ^~~~
s714252065
p03657
C++
#include <bits/stdc++.h> using namespace std; int main{ int N,K,L,tmp; L=0; cin >> N >> K; int l[N]; for(int i=0;i<=N;i++){ cin >> N[0]; } cin >> endl; for (i=0; i<N; ++i) { for (j=i+1; j<N; ++j) { if (l[i] < l[j]) { tmp = l[i]; l[i] = l[j]; l[j] = tmp; } } } for(int i=0;i<K;i++){ L=L+N[i]; } cout << L; return 0; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:3: error: expected primary-expression before 'int' 5 | int N,K,L,tmp; | ^~~ a.cc:5:3: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:3: error: 'L' does not name a type 6 | L=0; | ^ a.cc:7:3: error: 'cin' does not name a type 7 | cin >> N >> K; | ^~~ a.cc:8:9: error: 'N' was not declared in this scope 8 | int l[N]; | ^ a.cc:9:3: error: expected unqualified-id before 'for' 9 | for(int i=0;i<=N;i++){ | ^~~ a.cc:9:15: error: 'i' does not name a type 9 | for(int i=0;i<=N;i++){ | ^ a.cc:9:20: error: 'i' does not name a type 9 | for(int i=0;i<=N;i++){ | ^ a.cc:12:3: error: 'cin' does not name a type 12 | cin >> endl; | ^~~ a.cc:14:3: error: expected unqualified-id before 'for' 14 | for (i=0; i<N; ++i) { | ^~~ a.cc:14:13: error: 'i' does not name a type 14 | for (i=0; i<N; ++i) { | ^ a.cc:14:18: error: expected unqualified-id before '++' token 14 | for (i=0; i<N; ++i) { | ^~ a.cc:24:3: error: expected unqualified-id before 'for' 24 | for(int i=0;i<K;i++){ | ^~~ a.cc:24:15: error: 'i' does not name a type 24 | for(int i=0;i<K;i++){ | ^ a.cc:24:19: error: 'i' does not name a type 24 | for(int i=0;i<K;i++){ | ^ a.cc:28:3: error: 'cout' does not name a type 28 | cout << L; | ^~~~ a.cc:30:3: error: expected unqualified-id before 'return' 30 | return 0; | ^~~~~~ a.cc:31:1: error: expected declaration before '}' token 31 | } | ^
s984947573
p03657
C++
int main() { int a, b; cin >> a >> b; if (((a + b) % 3) == 0) { cout << "Possible" << endl; }else { cout << "Impossible" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'cin' was not declared in this scope 4 | cin >> a >> b; | ^~~ a.cc:6:17: error: 'cout' was not declared in this scope 6 | cout << "Possible" << endl; | ^~~~ a.cc:6:39: error: 'endl' was not declared in this scope 6 | cout << "Possible" << endl; | ^~~~ a.cc:8:17: error: 'cout' was not declared in this scope 8 | cout << "Impossible" << endl; | ^~~~ a.cc:8:41: error: 'endl' was not declared in this scope 8 | cout << "Impossible" << endl; | ^~~~
s107332071
p03657
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b; c=a+b; if(a%3==0){ cout << "Possible" << endl; }elseif(b%3==0) cout << "Possible" << endl; }elseif(c%3==0) cout << "Possible" << endl; }else{ cout << "Impossible" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:4: error: 'elseif' was not declared in this scope 13 | }elseif(b%3==0) | ^~~~~~ a.cc: At global scope: a.cc:15:10: error: expected constructor, destructor, or type conversion before '(' token 15 | }elseif(c%3==0) | ^ a.cc:17:3: error: expected declaration before '}' token 17 | }else{ | ^ a.cc:17:4: error: expected unqualified-id before 'else' 17 | }else{ | ^~~~ a.cc:21:3: error: expected unqualified-id before 'return' 21 | return 0; | ^~~~~~ a.cc:22:1: error: expected declaration before '}' token 22 | } | ^
s099467828
p03657
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b; c=a+b; if(a%3=0){ cout << "Possible" << endl; }elseif(b%3=0) cout << "Possible" << endl; }elseif(c%3=0) cout << "Possible" << endl; }else{ cout << "Impossible" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:7: error: lvalue required as left operand of assignment 11 | if(a%3=0){ | ~^~ a.cc:13:12: error: lvalue required as left operand of assignment 13 | }elseif(b%3=0) | ~^~ a.cc:13:4: error: 'elseif' was not declared in this scope 13 | }elseif(b%3=0) | ^~~~~~ a.cc: At global scope: a.cc:15:10: error: expected constructor, destructor, or type conversion before '(' token 15 | }elseif(c%3=0) | ^ a.cc:17:3: error: expected declaration before '}' token 17 | }else{ | ^ a.cc:17:4: error: expected unqualified-id before 'else' 17 | }else{ | ^~~~ a.cc:21:3: error: expected unqualified-id before 'return' 21 | return 0; | ^~~~~~ a.cc:22:1: error: expected declaration before '}' token 22 | } | ^
s708149291
p03657
C++
A,B = map(int, input().split()) if A%3 == 0 or B%3 == 0 or (A+B)%3==0: print("Possible") else: print("Impossible")
a.cc:1:1: error: 'A' does not name a type 1 | A,B = map(int, input().split()) | ^
s403910971
p03657
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; if(a + b > 3){ cout >> "Possible" >> endl; }else{ cout >> "Impossible" >> endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [9]') 8 | cout >> "Possible" >> endl; | ~~~~ ^~ ~~~~~~~~~~ | | | | | const char [9] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:17: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "Possible" >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[9]]': a.cc:8:11: required from here 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possible" >> endl; | ^~~~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "Possibl