submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s992669140
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T>>; TPL<TNM T> using vec5 = vec<vec4<T>>; TPL<TNM T> inline istream& operator >> (istream& is, vector<T>& vec) { for (T& x : vec) is >> x; return is; } TPL<TNM V, TNM H> void resize(vector<V>& _v, const H _h) { _v.resize(_h); } TPL<TNM V, TNM H, TNM ... T> void resize(vector<V>& _v, const H& _h, const T& ... _t) { _v.resize(_h); for (auto& __v : _v) resize(__v, _t ...); } TPL<TNM V, TNM T> TNM enable_if<!is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { std::fill(ALL(_v), _t); } TPL<TNM V, TNM T> TNM enable_if<is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { for (auto &_e : _v) fill(_e, _t); } TPL<TNM T> inline void UNIQUE(vector<T>& _v) { sort(ALL(_v)); _v.erase(unique(ALL(_v)), _v.end()); } struct pre_ { pre_() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(6); } } pre__; int main(void) { string a, b, c; cin >> a >> b >> c; string ans = { a[0] , b[0] , c[0] }; std::transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:29:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 29 | std::transform(ans.begin(), ans.end(), ans.begin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:29:23: note: couldn't deduce template parameter '_UnaryOperation' 29 | std::transform(ans.begin(), ans.end(), ans.begin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s845214597
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T>>; TPL<TNM T> using vec5 = vec<vec4<T>>; TPL<TNM T> inline istream& operator >> (istream& is, vector<T>& vec) { for (T& x : vec) is >> x; return is; } TPL<TNM V, TNM H> void resize(vector<V>& _v, const H _h) { _v.resize(_h); } TPL<TNM V, TNM H, TNM ... T> void resize(vector<V>& _v, const H& _h, const T& ... _t) { _v.resize(_h); for (auto& __v : _v) resize(__v, _t ...); } TPL<TNM V, TNM T> TNM enable_if<!is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { std::fill(ALL(_v), _t); } TPL<TNM V, TNM T> TNM enable_if<is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { for (auto &_e : _v) fill(_e, _t); } TPL<TNM T> inline void UNIQUE(vector<T>& _v) { sort(ALL(_v)); _v.erase(unique(ALL(_v)), _v.end()); } struct pre_ { pre_() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(6); } } pre__; int main(void) { string a, b, c; cin >> a >> b >> c; string ans = { a[0] , b[0] , c[0] }; std::transform(ans.cbegin(), ans.cend(), ans.cbegin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:29:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, <unresolved overloaded function type>)' 29 | std::transform(ans.cbegin(), ans.cend(), ans.cbegin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:29:23: note: couldn't deduce template parameter '_UnaryOperation' 29 | std::transform(ans.cbegin(), ans.cend(), ans.cbegin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s022198853
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T>>; TPL<TNM T> using vec5 = vec<vec4<T>>; TPL<TNM T> inline istream& operator >> (istream& is, vector<T>& vec) { for (T& x : vec) is >> x; return is; } TPL<TNM V, TNM H> void resize(vector<V>& _v, const H _h) { _v.resize(_h); } TPL<TNM V, TNM H, TNM ... T> void resize(vector<V>& _v, const H& _h, const T& ... _t) { _v.resize(_h); for (auto& __v : _v) resize(__v, _t ...); } TPL<TNM V, TNM T> TNM enable_if<!is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { std::fill(ALL(_v), _t); } TPL<TNM V, TNM T> TNM enable_if<is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { for (auto &_e : _v) fill(_e, _t); } TPL<TNM T> inline void UNIQUE(vector<T>& _v) { sort(ALL(_v)); _v.erase(unique(ALL(_v)), _v.end()); } struct pre_ { pre_() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(6); } } pre__; int main(void) { string a, b, c; cin >> a >> b >> c; string ans = { a[0] , b[0] , c[0] }; std::transform(ans.cbegin(), ans.cend(), ans.begin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:29:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 29 | std::transform(ans.cbegin(), ans.cend(), ans.begin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:29:23: note: couldn't deduce template parameter '_UnaryOperation' 29 | std::transform(ans.cbegin(), ans.cend(), ans.begin(), toupper); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s640416620
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper); | ^~~~~~~~~
s913498119
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:42: error: expected unqualified-id before '(' token 9 | string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); | ^ a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper); | ^~~~~~~~~
s684920821
p03737
C++
#include <iostream> using namespace std; #include <string> #include <algorithm> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), std::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(result.begin(), result.end(), result.begin(), std::toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(result.begin(), result.end(), result.begin(), std::toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s554352737
p03737
C++
#include <iostream> using namespace std; #include <string> #include <algorithm> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(result.begin(), result.end(), result.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(result.begin(), result.end(), result.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s338984276
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper); | ^~~~~~~~~
s231160828
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper) cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper) | ^~~~~~~~~
s708503091
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper) cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:42: error: expected unqualified-id before '(' token 9 | string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); | ^ a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper) | ^~~~~~~~~
s031582847
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; transform (a.begin(),a.end(),a.begin(),toupper); transform (b.begin(),b.end(),b.begin(),toupper); transform (c.begin(),c.end(),c.begin(),toupper); cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:8:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 8 | transform (a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:8:13: note: couldn't deduce template parameter '_UnaryOperation' 8 | transform (a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform (b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform (b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform (c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform (c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s479934868
p03737
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; ++i) #define repR(i, n) for(int i = n; i >= 0; ++i) #define FDS(i, n) for(int i = 0; i < n; ++i) #define FDSR(i, n) for(int i = n; 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 VSORT(v) sort(v.begin(), v.end()); #define INF 999999999 #define itn int #define ednl endl using namespace std; typedef long long ll; int main(){ string a,b,c; cin>>a>>b>>c; char A,B,C; A=a.[0]+('A'-'a'); B=b.[0]+('A'-'a'); C=a.[0]+('A'-'a'); cout<<A<<B<<C<<endl; }
a.cc: In function 'int main()': a.cc:18:13: error: expected unqualified-id before '[' token 18 | A=a.[0]+('A'-'a'); | ^ a.cc:19:13: error: expected unqualified-id before '[' token 19 | B=b.[0]+('A'-'a'); | ^ a.cc:20:13: error: expected unqualified-id before '[' token 20 | C=a.[0]+('A'-'a'); | ^
s795431582
p03737
C++
#include <iostream> #include <algorithm> #include <string> int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:22: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc: In function 'int main()': a.cc:6:1: error: 'string' was not declared in this scope 6 | string a , b , c ; | ^~~~~~ a.cc:6:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ In file included 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: /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a >> b >> c ; | ^~~ | std::cin /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:8: error: 'a' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:7:13: error: 'b' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:7:18: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:8:12: error: '\U00002019A' was not declared in this scope 8 | char dif = ’A ’ - ’a ’; | ^~ a.cc:9:9: warning: unknown escape sequence: '\040' 9 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~~~~~~~~~~~~~
s983395274
p03737
C++
#include <iostream> #include <algorithm> #include <string> int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:22: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc: In function 'int main()': a.cc:6:1: error: 'string' was not declared in this scope 6 | string a , b , c ; | ^~~~~~ a.cc:6:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ In file included 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: /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a >> b >> c ; | ^~~ | std::cin /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:8: error: 'a' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:7:13: error: 'b' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:7:18: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c ; | ^ a.cc:8:12: error: '\U00002019A' was not declared in this scope 8 | char dif = ’A ’ - ’a ’; | ^~ a.cc:9:9: warning: unknown escape sequence: '\040' 9 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~~~~~~~~~~~~~
s879913513
p03737
C
#include <iostream> #include <algorithm> int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s973146623
p03737
C++
#include <iostream> #include <algorithm> int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:7:12: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc:7:15: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc:7:19: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc:7:22: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc: In function 'int main()': a.cc:5:1: error: 'string' was not declared in this scope 5 | string a , b , c ; | ^~~~~~ a.cc:5:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ In file included 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: /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b >> c ; | ^~~ | std::cin /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:8: error: 'a' was not declared in this scope 6 | cin >> a >> b >> c ; | ^ a.cc:6:13: error: 'b' was not declared in this scope 6 | cin >> a >> b >> c ; | ^ a.cc:6:18: error: 'c' was not declared in this scope 6 | cin >> a >> b >> c ; | ^ a.cc:7:12: error: '\U00002019A' was not declared in this scope 7 | char dif = ’A ’ - ’a ’; | ^~ a.cc:8:9: warning: unknown escape sequence: '\040' 8 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~~~~~~~~~~~~~
s707427359
p03737
C
int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
main.c: In function 'main': main.c:2:1: error: unknown type name 'string' 2 | string a , b , c ; | ^~~~~~ main.c:3:1: error: 'cin' undeclared (first use in this function) 3 | cin >> a >> b >> c ; | ^~~ main.c:3:1: note: each undeclared identifier is reported only once for each function it appears in main.c:4:12: error: stray '\342' in program 4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>; | ^~~~~~~~ main.c:4:15: error: stray '\342' in program 4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>; | ^~~~~~~~ main.c:4:13: error: 'A' undeclared (first use in this function) 4 | char dif = ’A ’ - ’a ’; | ^ main.c:4:19: error: stray '\342' in program 4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>; | ^~~~~~~~ main.c:4:22: error: stray '\342' in program 4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>; | ^~~~~~~~ main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | int main (){ main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~ main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:5:28: warning: unknown escape sequence: '\040' 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^ main.c:5:32: error: subscripted value is neither array nor pointer nor vector 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^ main.c:5:46: error: subscripted value is neither array nor pointer nor vector 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^ main.c:5:60: error: subscripted value is neither array nor pointer nor vector 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^
s956651464
p03737
C++
int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:4:12: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc:4:15: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc:4:19: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc:4:22: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc: In function 'int main()': a.cc:2:1: error: 'string' was not declared in this scope 2 | string a , b , c ; | ^~~~~~ a.cc:3:1: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c ; | ^~~ a.cc:3:8: error: 'a' was not declared in this scope 3 | cin >> a >> b >> c ; | ^ a.cc:3:13: error: 'b' was not declared in this scope 3 | cin >> a >> b >> c ; | ^ a.cc:3:18: error: 'c' was not declared in this scope 3 | cin >> a >> b >> c ; | ^ a.cc:4:12: error: '\U00002019A' was not declared in this scope 4 | char dif = ’A ’ - ’a ’; | ^~ a.cc:5:9: warning: unknown escape sequence: '\040' 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~~~~~~~~~~~~~ a.cc:5:1: error: 'printf' was not declared in this scope 5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main (){
s423404756
p03737
C++
#include <iostream> #include <algorithm> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; transform(A.begin(), A.end(), A.begin(), toupper); transform(B.begin(), B.end(), B.begin(), toupper); transform(C.begin(), C.end(), C.begin(), toupper); cout << A[0] << B[0] << C[0] << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(A.begin(), A.end(), A.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:18: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(A.begin(), A.end(), A.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(B.begin(), B.end(), B.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(B.begin(), B.end(), B.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(C.begin(), C.end(), C.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(C.begin(), C.end(), C.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s639402767
p03737
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.next(); String s2 = sc.next(); String s3 = sc.next(); s1 = s1.toUpperCase(); s2 = s2.toUpperCase(); s3 = s3.toUpperCase(); System.out.print((s1.charAt(0) + s2.charAt(0) + s3.charAt(0)).toUpperCase()); } }
Main.java:16: error: int cannot be dereferenced System.out.print((s1.charAt(0) + s2.charAt(0) + s3.charAt(0)).toUpperCase()); ^ 1 error
s294604237
p03737
C++
#include <stdio.h> #include <string> #include <algorithm> #include <map> #include <iostream> #include<math.h> using namespace std; int main() { long long n,a[100001], ans1 = 0,ans2=0; cin >> n; for (int i = 0; i < n; i++)cin >> a[i]; long long sum1=a[0],sum2=a[0]; for (int i = 1; i < n;i++) { sum2 += a[i]; if (sum2 >= 0 && sum1 >= 0) { ans1 += abs(sum2) + 1; sum2 = sum2 - abs(sum2) - 1; } if (sum2 <= 0 && sum1 < 0) { ans1 += abs(sum2) + 1; sum2 = sum2 + abs(sum2) + 1; } sum1 = sum2; } long long sum1 = a[0], sum2 = a[0]; for (int i = 1; i < n; i++) { sum2 += a[i]; if (sum2 >= 0 && sum1 > 0) { ans2 += abs(sum2) + 1; sum2 = sum2 - abs(sum2) - 1; } if (sum2 <= 0 && sum1 <= 0) { ans2 += abs(sum2) + 1; sum2 = sum2 + abs(sum2) + 1; } sum1 = sum2; } cout << min(ans1,ans2) << endl; }
a.cc: In function 'int main()': a.cc:27:19: error: redeclaration of 'long long int sum1' 27 | long long sum1 = a[0], sum2 = a[0]; | ^~~~ a.cc:14:19: note: 'long long int sum1' previously declared here 14 | long long sum1=a[0],sum2=a[0]; | ^~~~ a.cc:27:32: error: redeclaration of 'long long int sum2' 27 | long long sum1 = a[0], sum2 = a[0]; | ^~~~ a.cc:14:29: note: 'long long int sum2' previously declared here 14 | long long sum1=a[0],sum2=a[0]; | ^~~~
s724095361
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout<<a[0]<<b[0]<<c[0]; return 0; }
a.cc: In function 'int main()': a.cc:7:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 7 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:7:12: note: couldn't deduce template parameter '_UnaryOperation' 7 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 8 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation' 8 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s950641330
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(); list<string>::iterator i; i=S.begin() if (*i==a){ i++; if (*i==a){ cout << "EQUAL" << endl; } else{ cout << "LESS" << endl; } } else{ cout << "GREATER" << endl; } }
a.cc: In function 'int main()': a.cc:11:18: error: expected ';' before 'if' 11 | i=S.begin() | ^ | ; 12 | if (*i==a){ | ~~ a.cc:21:7: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s866234593
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(); list<string>::iterator i; i=S.begin() if (*i==a){ i++; if (*i==a){ cout << "EQUAL" << endl; } else{ cout << "GREATER" << endl; } } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:11:18: error: expected ';' before 'if' 11 | i=S.begin() | ^ | ; 12 | if (*i==a){ | ~~ a.cc:21:7: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s544873449
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b; cin >> a >> b; if (a>b){ cont << "GREATER" << endl; } if (a==b){ cont << "EQUAL" << endl; } if (a<b){ cont << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'? 8 | cont << "GREATER" << endl; | ^~~~ | const a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'? 11 | cont << "EQUAL" << endl; | ^~~~ | const a.cc:14:9: error: 'cont' was not declared in this scope; did you mean 'const'? 14 | cont << "LESS" << endl; | ^~~~ | const
s192291642
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout << a << b << c << endl; }
a.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:14: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s443939811
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a.begin()); transform(b.begin(),b.end(),b.begin()); transform(c.begin(),c.end(),c.begin()); cout << a << b << c << endl; }
a.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 10 | transform(a.begin(),a.end(),a.begin()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 3 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 3 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 3 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 3 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 11 | transform(b.begin(),b.end(),b.begin()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 3 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 3 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 3 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 3 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 12 | transform(c.begin(),c.end(),c.begin()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 3 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 3 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 3 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 3 provided
s530490723
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a,begin()); transform(b.begin(),b.end(),b,begin()); transform(c.begin(),c.end(),c,begin()); cout << a << b << c << endl; }
a.cc: In function 'int main()': a.cc:10:40: error: no matching function for call to 'begin()' 10 | transform(a.begin(),a.end(),a,begin()); | ~~~~~^~ In file included from /usr/include/c++/14/bits/algorithmfwd.h:39, from /usr/include/c++/14/bits/stl_algo.h:59, from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/initializer_list:88:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)' 88 | begin(initializer_list<_Tp> __ils) noexcept | ^~~~~ /usr/include/c++/14/initializer_list:88:5: note: candidate expects 1 argument, 0 provided In file included from /usr/include/c++/14/string:53, 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/range_access.h:52:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)' 52 | begin(_Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:52:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:63:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)' 63 | begin(const _Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:63:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:95:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])' 95 | begin(_Tp (&__arr)[_Nm]) noexcept | ^~~~~ /usr/include/c++/14/bits/range_access.h:95:5: note: candidate expects 1 argument, 0 provided In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166: /usr/include/c++/14/valarray:1227:5: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)' 1227 | begin(valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1227:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/valarray:1238:5: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)' 1238 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1238:5: note: candidate expects 1 argument, 0 provided a.cc:11:44: error: no matching function for call to 'begin()' 11 | transform(b.begin(),b.end(),b,begin()); | ~~~~~^~ /usr/include/c++/14/initializer_list:88:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)' 88 | begin(initializer_list<_Tp> __ils) noexcept | ^~~~~ /usr/include/c++/14/initializer_list:88:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:52:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)' 52 | begin(_Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:52:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:63:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)' 63 | begin(const _Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:63:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:95:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])' 95 | begin(_Tp (&__arr)[_Nm]) noexcept | ^~~~~ /usr/include/c++/14/bits/range_access.h:95:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/valarray:1227:5: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)' 1227 | begin(valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1227:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/valarray:1238:5: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)' 1238 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1238:5: note: candidate expects 1 argument, 0 provided a.cc:12:44: error: no matching function for call to 'begin()' 12 | transform(c.begin(),c.end(),c,begin()); | ~~~~~^~ /usr/include/c++/14/initializer_list:88:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)' 88 | begin(initializer_list<_Tp> __ils) noexcept | ^~~~~ /usr/include/c++/14/initializer_list:88:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:52:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)' 52 | begin(_Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:52:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:63:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)' 63 | begin(const _Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:63:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:95:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])' 95 | begin(_Tp (&__arr)[_Nm]) noexcept | ^~~~~ /usr/include/c++/14/bits/range_access.h:95:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/valarray:1227:5: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)' 1227 | begin(valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1227:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/valarray:1238:5: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)' 1238 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1238:5: note: candidate expects 1 argument, 0 provided
s302964659
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a,begin); transform(b.begin(),b.end(),b,begin); transform(c.begin(),c.end(),c,begin); cout << a << b << c << endl; }
a.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::string&, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:14: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(a.begin(),a.end(),a,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::string&, <unresolved overloaded function type>)' 11 | transform(b.begin(),b.end(),b,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(b.begin(),b.end(),b,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::string&, <unresolved overloaded function type>)' 12 | transform(c.begin(),c.end(),c,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(c.begin(),c.end(),c,begin); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s000572679
p03737
C++
#include <iostream> using namespace std; typedef long long unsigned int ll; int main() { string a,b,c,d; cin >> a; cin >>b; cin >>c; int a; a='A'-'a'; cout << a[0]+a<< b[0]+a<<c[0]+a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:7: error: conflicting declaration 'int a' 11 | int a; | ^ a.cc:7:10: note: previous declaration as 'std::string a' 7 | string a,b,c,d; | ^
s178020419
p03737
C++
#include<bits/stdc++.h> using namespac std; int main(void){ char s[3]; for(int i=0;i<3;i++) cin>>s[1]; for(int i=0;i<3;i++){ s[i]+='A'-'a'; cout<<s[i]; } cout<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespac' 2 | using namespac std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>s[1]; | ^~~ | 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 | ^~~ a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | cout<<s[i]; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 14 | cout<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:14:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 14 | cout<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s168481677
p03737
C++
#include <iostream> using namespace std; int main(){ int S1, S2, S3; cin >> S1 >> S2 >> S3; cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: invalid types 'int[int]' for array subscript 8 | cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; | ^ a.cc:8:34: error: invalid types 'int[int]' for array subscript 8 | cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; | ^ a.cc:8:55: error: invalid types 'int[int]' for array subscript 8 | cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; | ^
s242032147
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1.at(0) << s2.at(0) << s3.at(0) << endl; }
a.cc: In function 'int main()': a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(s1.begin(), s1.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 10 | s1.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform(s1.begin(), s1.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 10 | s1.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s2.begin(), s2.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 12 | s2.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:12: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(s2.begin(), s2.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 12 | s2.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:13:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s3.begin(), s3.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 14 | s3.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:12: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s3.begin(), s3.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 14 | s3.begin(), toupper); | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s310152163
p03737
C++
#include <iostream> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string small="abcdefghijklmnopqrstuvwxyz"; string big="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for(int i=0;i<26;i++){ if(a.at(0)==small.at(i)){ cout << big(i); } } for(int i=0;i<26;i++){ if(b.at(0)==small.at(i)){ cout << big(i); } } for(int i=0;i<26;i++){ if(a.at(0)==small.at(i)){ cout << big(i); } } }
a.cc: In function 'int main()': a.cc:11:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 11 | cout << big(i); | ~~~^~~ a.cc:16:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 16 | cout << big(i); | ~~~^~~ a.cc:21:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 21 | cout << big(i); | ~~~^~~
s823377008
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(), ans.end(), tf.begin(), toupper); cout << tf << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:14: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s874875505
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(), ans.end(), tf.begin(), toupper); cout << tf << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:14: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s646374497
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(), ans.end(), tf.begin(), toupper); cout << tf << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:14: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 15 | ans.end(), | ~~~~~~~~~~ 16 | tf.begin(), | ~~~~~~~~~~~ 17 | toupper); | ~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s018644207
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 14 | ans.end(), | ~~~~~~~~~~ 15 | ans.begin(), | ~~~~~~~~~~~~ 16 | toupper); | ~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:14: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(ans.begin(), | ~~~~~~~~~^~~~~~~~~~~~~ 14 | ans.end(), | ~~~~~~~~~~ 15 | ans.begin(), | ~~~~~~~~~~~~ 16 | toupper); | ~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s306110797
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a,b,c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string Ans = ans; transform(ans.begin(), ans.end(), Ans.begin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(ans.begin(), ans.end(), Ans.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:14: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(ans.begin(), ans.end(), Ans.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s581594921
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a,b,c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(ans.begin(), ans.end(), ans.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:14: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(ans.begin(), ans.end(), ans.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s896785066
p03737
C++
#include<string> #include<iostream> #include<vector> #include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; char dif=’A’ - ’a’; cout<<a+dif<<b+dif<<c+dif<<endl; }
a.cc:10:12: error: extended character ’ is not valid in an identifier 10 | char dif=’A’ - ’a’; | ^ a.cc:10:12: error: extended character ’ is not valid in an identifier a.cc:10:18: error: extended character ’ is not valid in an identifier 10 | char dif=’A’ - ’a’; | ^ a.cc:10:18: error: extended character ’ is not valid in an identifier a.cc: In function 'int main()': a.cc:10:12: error: '\U00002019A\U00002019' was not declared in this scope 10 | char dif=’A’ - ’a’; | ^~~ a.cc:10:18: error: '\U00002019a\U00002019' was not declared in this scope 10 | char dif=’A’ - ’a’; | ^~~
s745702540
p03737
C++
#include<string> #include<iostream> #include<vector> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; char dif=’A’ - ’a’; cout<<a+dif<<b+dif<<c+dif<<endl; }
a.cc:9:12: error: extended character ’ is not valid in an identifier 9 | char dif=’A’ - ’a’; | ^ a.cc:9:12: error: extended character ’ is not valid in an identifier a.cc:9:18: error: extended character ’ is not valid in an identifier 9 | char dif=’A’ - ’a’; | ^ a.cc:9:18: error: extended character ’ is not valid in an identifier a.cc: In function 'int main()': a.cc:9:12: error: '\U00002019A\U00002019' was not declared in this scope 9 | char dif=’A’ - ’a’; | ^~~ a.cc:9:18: error: '\U00002019a\U00002019' was not declared in this scope 9 | char dif=’A’ - ’a’; | ^~~
s235476007
p03737
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = sc.next().charAt(0); char b = sc.next().charAt(0); char c = sc.next().charAt(0); else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A')); } }
Main.java:8: error: 'else' without 'if' else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A')); ^ 1 error
s177288430
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a, b, c; cin >> a >> b >> c; char vec[3]; for (int i = 0; i < 3; ++i) { vec[i] += 32; } cout << vec << end; }
a.cc: In function 'int main()': a.cc:11:21: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << vec << end; | ~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]' 30
s249221084
p03737
C++
main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());} | ^
s050855105
p03737
C
#include<stdio.h> #include<string.h> int main(void){ int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,cou3,v[1000000],w[1000000],min_i,en=0; char S[100],W[100],s[100],X,Y; scanf("%s %s %s",&S,&W,&s); if(S[i]>=97&&S[i]<=122) S[i]=S[i]-32; } if(W[i]>=97&&W[i]<=122) W[i]=W[i]-32; } if(s[i]>=97&&s[i]<=122) s[i]=s[i]-32; } printf("%c%c%c",S[0],W[0],s[0]); }
main.c:10:3: error: expected identifier or '(' before 'if' 10 | if(W[i]>=97&&W[i]<=122) | ^~ main.c:12:3: error: expected identifier or '(' before '}' token 12 | } | ^ main.c:13:3: error: expected identifier or '(' before 'if' 13 | if(s[i]>=97&&s[i]<=122) | ^~ main.c:15:3: error: expected identifier or '(' before '}' token 15 | } | ^ main.c:16:12: error: expected declaration specifiers or '...' before string constant 16 | printf("%c%c%c",S[0],W[0],s[0]); | ^~~~~~~~ main.c:16:21: error: unknown type name 'S' 16 | printf("%c%c%c",S[0],W[0],s[0]); | ^ main.c:16:26: error: unknown type name 'W' 16 | printf("%c%c%c",S[0],W[0],s[0]); | ^ main.c:16:31: error: unknown type name 's' 16 | printf("%c%c%c",S[0],W[0],s[0]); | ^ main.c:17:1: error: expected identifier or '(' before '}' token 17 | } | ^
s671118568
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; a[0] -= 32; b[0] -= 32; c[0] -= 32; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:15:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 15 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s055617082
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; a -= 32; b -= 32; c -= 32; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:12:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 12 | a -= 32; | ~~^~~~~ a.cc:13:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 13 | b -= 32; | ~~^~~~~ a.cc:14:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 14 | c -= 32; | ~~^~~~~ a.cc:15:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 15 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s263191562
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:12:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 12 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s144390785
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:11:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 11 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s696053178
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; }
a.cc: In function 'int main()': a.cc:11:16: error: request for member 'topupper' in 'a.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 11 | cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; | ^~~~~~~~ a.cc:11:33: error: request for member 'topupper' in 'b.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 11 | cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; | ^~~~~~~~ a.cc:11:50: error: request for member 'topupper' in 'c.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 11 | cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; | ^~~~~~~~
s074206840
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ char s1[10], s2[10], s3[10]; cin >> s1 >> s2 >> s3; x == toupper(s1[0]); y == toupper(s2[1]); z == toupper(s3[0]); cout << x << y << z << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'x' was not declared in this scope 7 | x == toupper(s1[0]); | ^ a.cc:8:3: error: 'y' was not declared in this scope; did you mean 'yn'? 8 | y == toupper(s2[1]); | ^ | yn a.cc:9:3: error: 'z' was not declared in this scope 9 | z == toupper(s3[0]); | ^
s260672812
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x = 'A' || x = 'a'){ cout << "A"; } if( x = 'B' || x = 'b'){ cout << "B"; } if( x = 'C' || x = 'c'){ cout << "C"; } if( x = 'D' || x = 'd'){ cout << "D"; } if( x = 'E' || x = 'e'){ cout << "E"; } if( x = 'F' || x = 'f'){ cout << "F"; } if( x = 'G' || x = 'g'){ cout << "G"; } if( x = 'H' || x = 'h'){ cout << "H"; } if( x = 'I' || x = 'i'){ cout << "I"; } if( x = 'J' || x = 'J'){ cout << "J"; } if( x = 'K' || x = 'k'){ cout << "K"; } if( x = 'L' || x = 'l'){ cout << "L"; } if( x = 'M' || x = 'm'){ cout << "M"; } if( x = 'N' || x = 'n'){ cout << "N"; } if( x = 'O' || x = 'o'){ cout << "O"; } if( x = 'P' || x = 'p'){ cout << "P"; } if( x = 'Q' || x = 'q'){ cout << "Q"; } if( x = 'R' || x = 'r'){ cout << "R"; } if( x = 'S' || x = 's'){ cout << "S"; } if( x = 'T' || x = 't'){ cout << "T"; } if( x = 'U' || x = 'u'){ cout << "U"; } if( x = 'V' || x = 'v'){ cout << "V"; } if( x = 'W' || x = 'w'){ cout << "W"; } if( x = 'X' || x = 'x'){ cout << "X"; } if( x = 'Y' || x = 'y'){ cout << "Y"; } if( x = 'Z' || x = 'z'){ cout << "Z"; } } cout << endl; }
a.cc: In function 'int main()': a.cc:11:15: error: lvalue required as left operand of assignment 11 | if( x = 'A' || x = 'a'){ | ~~~~^~~~ a.cc:14:16: error: lvalue required as left operand of assignment 14 | if( x = 'B' || x = 'b'){ | ~~~~^~~~ a.cc:17:15: error: lvalue required as left operand of assignment 17 | if( x = 'C' || x = 'c'){ | ~~~~^~~~ a.cc:20:16: error: lvalue required as left operand of assignment 20 | if( x = 'D' || x = 'd'){ | ~~~~^~~~ a.cc:23:15: error: lvalue required as left operand of assignment 23 | if( x = 'E' || x = 'e'){ | ~~~~^~~~ a.cc:26:16: error: lvalue required as left operand of assignment 26 | if( x = 'F' || x = 'f'){ | ~~~~^~~~ a.cc:29:15: error: lvalue required as left operand of assignment 29 | if( x = 'G' || x = 'g'){ | ~~~~^~~~ a.cc:32:16: error: lvalue required as left operand of assignment 32 | if( x = 'H' || x = 'h'){ | ~~~~^~~~ a.cc:35:16: error: lvalue required as left operand of assignment 35 | if( x = 'I' || x = 'i'){ | ~~~~^~~~ a.cc:38:16: error: lvalue required as left operand of assignment 38 | if( x = 'J' || x = 'J'){ | ~~~~^~~~ a.cc:41:15: error: lvalue required as left operand of assignment 41 | if( x = 'K' || x = 'k'){ | ~~~~^~~~ a.cc:44:16: error: lvalue required as left operand of assignment 44 | if( x = 'L' || x = 'l'){ | ~~~~^~~~ a.cc:47:15: error: lvalue required as left operand of assignment 47 | if( x = 'M' || x = 'm'){ | ~~~~^~~~ a.cc:50:16: error: lvalue required as left operand of assignment 50 | if( x = 'N' || x = 'n'){ | ~~~~^~~~ a.cc:53:15: error: lvalue required as left operand of assignment 53 | if( x = 'O' || x = 'o'){ | ~~~~^~~~ a.cc:56:16: error: lvalue required as left operand of assignment 56 | if( x = 'P' || x = 'p'){ | ~~~~^~~~ a.cc:59:15: error: lvalue required as left operand of assignment 59 | if( x = 'Q' || x = 'q'){ | ~~~~^~~~ a.cc:62:16: error: lvalue required as left operand of assignment 62 | if( x = 'R' || x = 'r'){ | ~~~~^~~~ a.cc:65:15: error: lvalue required as left operand of assignment 65 | if( x = 'S' || x = 's'){ | ~~~~^~~~ a.cc:68:16: error: lvalue required as left operand of assignment 68 | if( x = 'T' || x = 't'){ | ~~~~^~~~ a.cc:71:15: error: lvalue required as left operand of assignment 71 | if( x = 'U' || x = 'u'){ | ~~~~^~~~ a.cc:74:16: error: lvalue required as left operand of assignment 74 | if( x = 'V' || x = 'v'){ | ~~~~^~~~ a.cc:77:15: error: lvalue required as left operand of assignment 77 | if( x = 'W' || x = 'w'){ | ~~~~^~~~ a.cc:80:16: error: lvalue required as left operand of assignment 80 | if( x = 'X' || x = 'x'){ | ~~~~^~~~ a.cc:83:16: error: lvalue required as left operand of assignment 83 | if( x = 'Y' || x = 'y'){ | ~~~~^~~~ a.cc:86:16: error: lvalue required as left operand of assignment 86 | if( x = 'Z' || x = 'z'){ | ~~~~^~~~
s159437227
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x= 'A' || x= 'a'){ cout << "A" << endl; } if( x= 'B' || x= 'b'){ cout << "B" << endl; } if( x= 'C' || x= 'c'){ cout << "C" << endl; } if( x= 'D' || x= 'd'){ cout << "D" << endl; } if( x= 'E' || x= 'e'){ cout << "E" << endl; } if( x= 'F' || x= 'f'){ cout << "F" << endl; } if( x= 'G' || x= 'g'){ cout << "G" << endl; } if( x= 'H' || x= 'h'){ cout << "H" << endl; } if( x= 'I' || x= 'i'){ cout << "I" << endl; } if( x= 'J' || x= 'J'){ cout << "J" << endl; } if( x= 'K' || x= 'k'){ cout << "K" << endl; } if( x= 'L' || x= 'l'){ cout << "L" << endl; } if( x= 'M' || x= 'm'){ cout << "M" << endl; } if( x= 'N' || x= 'n'){ cout << "N" << endl; } if( x= 'O' || x= 'o'){ cout << "O" << endl; } if( x= 'P' || x= 'p'){ cout << "P" << endl; } if( x= 'Q' || x= 'q'){ cout << "Q" << endl; } if( x= 'R' || x= 'r'){ cout << "R" << endl; } if( x= 'S' || x= 's'){ cout << "S" << endl; } if( x= 'T' || x= 't'){ cout << "T" << endl; } if( x= 'U' || x= 'u'){ cout << "U" << endl; } if( x= 'V' || x= 'v'){ cout << "V" << endl; } if( x= 'W' || x= 'w'){ cout << "W" << endl; } if( x= 'X' || x= 'x'){ cout << "X" << endl; } if( x= 'Y' || x= 'y'){ cout << "Y" << endl; } if( x= 'Z' || x= 'z'){ cout << "Z" << endl; } } }
a.cc: In function 'int main()': a.cc:11:14: error: lvalue required as left operand of assignment 11 | if( x= 'A' || x= 'a'){ | ~~~~^~~~ a.cc:14:15: error: lvalue required as left operand of assignment 14 | if( x= 'B' || x= 'b'){ | ~~~~^~~~ a.cc:17:14: error: lvalue required as left operand of assignment 17 | if( x= 'C' || x= 'c'){ | ~~~~^~~~ a.cc:20:15: error: lvalue required as left operand of assignment 20 | if( x= 'D' || x= 'd'){ | ~~~~^~~~ a.cc:23:14: error: lvalue required as left operand of assignment 23 | if( x= 'E' || x= 'e'){ | ~~~~^~~~ a.cc:26:15: error: lvalue required as left operand of assignment 26 | if( x= 'F' || x= 'f'){ | ~~~~^~~~ a.cc:29:14: error: lvalue required as left operand of assignment 29 | if( x= 'G' || x= 'g'){ | ~~~~^~~~ a.cc:32:15: error: lvalue required as left operand of assignment 32 | if( x= 'H' || x= 'h'){ | ~~~~^~~~ a.cc:35:15: error: lvalue required as left operand of assignment 35 | if( x= 'I' || x= 'i'){ | ~~~~^~~~ a.cc:38:15: error: lvalue required as left operand of assignment 38 | if( x= 'J' || x= 'J'){ | ~~~~^~~~ a.cc:41:14: error: lvalue required as left operand of assignment 41 | if( x= 'K' || x= 'k'){ | ~~~~^~~~ a.cc:44:15: error: lvalue required as left operand of assignment 44 | if( x= 'L' || x= 'l'){ | ~~~~^~~~ a.cc:47:14: error: lvalue required as left operand of assignment 47 | if( x= 'M' || x= 'm'){ | ~~~~^~~~ a.cc:50:15: error: lvalue required as left operand of assignment 50 | if( x= 'N' || x= 'n'){ | ~~~~^~~~ a.cc:53:14: error: lvalue required as left operand of assignment 53 | if( x= 'O' || x= 'o'){ | ~~~~^~~~ a.cc:56:15: error: lvalue required as left operand of assignment 56 | if( x= 'P' || x= 'p'){ | ~~~~^~~~ a.cc:59:14: error: lvalue required as left operand of assignment 59 | if( x= 'Q' || x= 'q'){ | ~~~~^~~~ a.cc:62:15: error: lvalue required as left operand of assignment 62 | if( x= 'R' || x= 'r'){ | ~~~~^~~~ a.cc:65:14: error: lvalue required as left operand of assignment 65 | if( x= 'S' || x= 's'){ | ~~~~^~~~ a.cc:68:15: error: lvalue required as left operand of assignment 68 | if( x= 'T' || x= 't'){ | ~~~~^~~~ a.cc:71:14: error: lvalue required as left operand of assignment 71 | if( x= 'U' || x= 'u'){ | ~~~~^~~~ a.cc:74:15: error: lvalue required as left operand of assignment 74 | if( x= 'V' || x= 'v'){ | ~~~~^~~~ a.cc:77:14: error: lvalue required as left operand of assignment 77 | if( x= 'W' || x= 'w'){ | ~~~~^~~~ a.cc:80:15: error: lvalue required as left operand of assignment 80 | if( x= 'X' || x= 'x'){ | ~~~~^~~~ a.cc:83:15: error: lvalue required as left operand of assignment 83 | if( x= 'Y' || x= 'y'){ | ~~~~^~~~ a.cc:86:15: error: lvalue required as left operand of assignment 86 | if( x= 'Z' || x= 'z'){ | ~~~~^~~~
s827443468
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x='A' || x='a'){ cout << "A" << endl; } if( x='B' || x='b'){ cout << "B" << endl; } if( x='C' || x='c'){ cout << "C" << endl; } if( x='D' || x='d'){ cout << "D" << endl; } if( x='E' || x='e'){ cout << "E" << endl; } if( x='F' || x='f'){ cout << "F" << endl; } if( x='G' || x='g'){ cout << "G" << endl; } if( x='H' || x='h'){ cout << "H" << endl; } if( x='I' || x='i'){ cout << "I" << endl; } if( x='J' || x='J'){ cout << "J" << endl; } if( x='K' || x='k'){ cout << "K" << endl; } if( x='L' || x='l'){ cout << "L" << endl; } if( x='M' || x='m'){ cout << "M" << endl; } if( x='N' || x='n'){ cout << "N" << endl; } if( x='O' || x='o'){ cout << "O" << endl; } if( x='P' || x='p'){ cout << "P" << endl; } if( x='Q' || x='q'){ cout << "Q" << endl; } if( x='R' || x='r'){ cout << "R" << endl; } if( x='S' || x='s'){ cout << "S" << endl; } if( x='T' || x='t'){ cout << "T" << endl; } if( x='U' || x='u'){ cout << "U" << endl; } if( x='V' || x='v'){ cout << "V" << endl; } if( x='W' || x='w'){ cout << "W" << endl; } if( x='X' || x='x'){ cout << "X" << endl; } if( x='Y' || x='y'){ cout << "Y" << endl; } if( x='Z' || x='z'){ cout << "Z" << endl; } } }
a.cc: In function 'int main()': a.cc:11:13: error: lvalue required as left operand of assignment 11 | if( x='A' || x='a'){ | ~~~~^~~~ a.cc:14:14: error: lvalue required as left operand of assignment 14 | if( x='B' || x='b'){ | ~~~~^~~~ a.cc:17:13: error: lvalue required as left operand of assignment 17 | if( x='C' || x='c'){ | ~~~~^~~~ a.cc:20:14: error: lvalue required as left operand of assignment 20 | if( x='D' || x='d'){ | ~~~~^~~~ a.cc:23:13: error: lvalue required as left operand of assignment 23 | if( x='E' || x='e'){ | ~~~~^~~~ a.cc:26:14: error: lvalue required as left operand of assignment 26 | if( x='F' || x='f'){ | ~~~~^~~~ a.cc:29:13: error: lvalue required as left operand of assignment 29 | if( x='G' || x='g'){ | ~~~~^~~~ a.cc:32:14: error: lvalue required as left operand of assignment 32 | if( x='H' || x='h'){ | ~~~~^~~~ a.cc:35:14: error: lvalue required as left operand of assignment 35 | if( x='I' || x='i'){ | ~~~~^~~~ a.cc:38:14: error: lvalue required as left operand of assignment 38 | if( x='J' || x='J'){ | ~~~~^~~~ a.cc:41:13: error: lvalue required as left operand of assignment 41 | if( x='K' || x='k'){ | ~~~~^~~~ a.cc:44:14: error: lvalue required as left operand of assignment 44 | if( x='L' || x='l'){ | ~~~~^~~~ a.cc:47:13: error: lvalue required as left operand of assignment 47 | if( x='M' || x='m'){ | ~~~~^~~~ a.cc:50:14: error: lvalue required as left operand of assignment 50 | if( x='N' || x='n'){ | ~~~~^~~~ a.cc:53:13: error: lvalue required as left operand of assignment 53 | if( x='O' || x='o'){ | ~~~~^~~~ a.cc:56:14: error: lvalue required as left operand of assignment 56 | if( x='P' || x='p'){ | ~~~~^~~~ a.cc:59:13: error: lvalue required as left operand of assignment 59 | if( x='Q' || x='q'){ | ~~~~^~~~ a.cc:62:14: error: lvalue required as left operand of assignment 62 | if( x='R' || x='r'){ | ~~~~^~~~ a.cc:65:13: error: lvalue required as left operand of assignment 65 | if( x='S' || x='s'){ | ~~~~^~~~ a.cc:68:14: error: lvalue required as left operand of assignment 68 | if( x='T' || x='t'){ | ~~~~^~~~ a.cc:71:13: error: lvalue required as left operand of assignment 71 | if( x='U' || x='u'){ | ~~~~^~~~ a.cc:74:14: error: lvalue required as left operand of assignment 74 | if( x='V' || x='v'){ | ~~~~^~~~ a.cc:77:13: error: lvalue required as left operand of assignment 77 | if( x='W' || x='w'){ | ~~~~^~~~ a.cc:80:14: error: lvalue required as left operand of assignment 80 | if( x='X' || x='x'){ | ~~~~^~~~ a.cc:83:14: error: lvalue required as left operand of assignment 83 | if( x='Y' || x='y'){ | ~~~~^~~~ a.cc:86:14: error: lvalue required as left operand of assignment 86 | if( x='Z' || x='z'){ | ~~~~^~~~
s678960101
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin << Letter.at(0) << Letter.at(1) << Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x='A' || x='a'){ cout << "A" << endl; } if( x='B' || x='b'){ cout << "B" << endl; } if( x='C' || x='c'){ cout << "C" << endl; } if( x='D' || x='d'){ cout << "D" << endl; } if( x='E' || x='e'){ cout << "E" << endl; } if( x='F' || x='f'){ cout << "F" << endl; } if( x='G' || x='g'){ cout << "G" << endl; } if( x='H' || x='h'){ cout << "H" << endl; } if( x='I' || x='i'){ cout << "I" << endl; } if( x='J' || x='J'){ cout << "J" << endl; } if( x='K' || x='k'){ cout << "K" << endl; } if( x='L' || x='l'){ cout << "L" << endl; } if( x='M' || x='m'){ cout << "M" << endl; } if( x='N' || x='n'){ cout << "N" << endl; } if( x='O' || x='o'){ cout << "O" << endl; } if( x='P' || x='p'){ cout << "P" << endl; } if( x='Q' || x='q'){ cout << "Q" << endl; } if( x='R' || x='r'){ cout << "R" << endl; } if( x='S' || x='s'){ cout << "S" << endl; } if( x='T' || x='t'){ cout << "T" << endl; } if( x='U' || x='u'){ cout << "U" << endl; } if( x='V' || x='v'){ cout << "V" << endl; } if( x='W' || x='w'){ cout << "W" << endl; } if( x='X' || x='x'){ cout << "X" << endl; } if( x='Y' || x='y'){ cout << "Y" << endl; } if( x='Z' || x='z'){ cout << "Z" << endl; } } }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'}) 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ~~~ ^~ ~~~~~~~~~~~~ | | | | | __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>} | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^~~ 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:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:21: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << Letter.at(0) << Letter.at(1) << Letter.at(2); | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:
s039147312
p03737
C++
#include<bits/stdc++.h> using namespace std; int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:22: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc: In function 'int main()': a.cc:8:12: error: '\U00002019A' was not declared in this scope 8 | char dif = ’A ’ - ’a ’; | ^~ a.cc:9:9: warning: unknown escape sequence: '\040' 9 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); | ^~~~~~~~~~~~~~~~~~
s057380826
p03737
C++
#include<cstdio> #include<iostream> using namespace std; int main(void) { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), ::toupper); transform(b.begin(), b.end(), b. begin(), ::toupper); transform(c.begin(), c.end(), c. begin(), ::toupper); cout << a[0] << b[0] << c[0] << "\n"; return 0; }
a.cc: In function 'int main()': a.cc:12:9: error: 'transform' was not declared in this scope 12 | transform(a.begin(), a.end(), a.begin(), ::toupper); | ^~~~~~~~~
s468996474
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string x, y, z; cin >> x >> y >> z; cout << x.at(0) << y.at(0) << z.at(0) }
a.cc: In function 'int main()': a.cc:7:40: error: expected ';' before '}' token 7 | cout << x.at(0) << y.at(0) << z.at(0) | ^ | ; 8 | } | ~
s843151584
p03737
C++
#include<cstdio> #include<iostream> #include<string> #include<algorithm> using namespace std; int main(void) { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b. begin(), toupper); transform(c.begin(), c.end(), c. begin(), toupper); cout << a[0] << b[0] << c[0] << "\n"; return 0; }
a.cc: In function 'int main()': a.cc:14:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(a.begin(), a.end(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:18: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(a.begin(), a.end(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 15 | transform(b.begin(), b.end(), b. begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(b.begin(), b.end(), b. begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 16 | transform(c.begin(), c.end(), c. begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:16:18: note: couldn't deduce template parameter '_UnaryOperation' 16 | transform(c.begin(), c.end(), c. begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s997203744
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout << a.at(0) << b.at(0) << c.at(0) << endl; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(a.begin(),a.end(),a.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:12: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(b.begin(),b.end(),b.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:12: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(c.begin(),c.end(),c.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s642051190
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; transform(a.begin(),a.end()); transform(b.begin(),b.end()); transform(c.begin(),c.end()); cout << a.at(0) << b.at(0) << c.at(0) << endl; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 10 | transform(a.begin(),a.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided a.cc:11:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 11 | transform(b.begin(),b.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided a.cc:12:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 12 | transform(c.begin(),c.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
s427200107
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:10:20: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 10 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 1 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided a.cc:10:42: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 10 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ~~~~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 1 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided a.cc:10:64: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 10 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ~~~~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 1 provided /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided
s752371874
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: 'transform' was not declared in this scope 8 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ^~~~~~~~~
s475484462
p03737
C++
#include <iostream> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:7:11: error: 'transform' was not declared in this scope 7 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ^~~~~~~~~
s084520605
p03737
C++
#include<iostream> #include<vector> #include<algorithm> #include<string> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(),s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1[0] << s2[0] << s3[0] << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s1.begin(), s1.end(),s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(s1.begin(), s1.end(),s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s313071204
p03737
C++
#define _USE_MATH_DEFINES #include<iostream> #include<cstdlib> #include<algorithm> #include<cmath> #include<string> #include<set> #include<map> #include<stdbool.h> #include<math.h> #include<sstream> #include<math.h> #include<vector> #include<functional> #include<queue> #include<utility> typedef long long ll; #define N (1000000000+7) #define INF 1e10 using namespace std; typedef pair<ll, ll> P; int dx[4] = { 1,0,-1,0 }; int dy[4] = { 0,1,0,-1 }; int dp[100010] = { INF }; int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; string s = ""; s += toupper(s1[0]); s += toupper(s2[0]); s += toupper(s3[0]); cout << s << endl; return 0; }
a.cc:19:13: error: narrowing conversion of '1.0e+10' from 'double' to 'int' [-Wnarrowing] 19 | #define INF 1e10 | ^~~~ a.cc:25:20: note: in expansion of macro 'INF' 25 | int dp[100010] = { INF }; | ^~~
s295541197
p03737
C++
#define _USE_MATH_DEFINES #include<iostream> #include<cstdlib> #include<algorithm> #include<cmath> #include<string> #include<set> #include<map> #include<stdbool.h> #include<math.h> #include<sstream> #include<math.h> #include<vector> #include<functional> #include<queue> #include<utility> typedef long long ll; #define N (1000000000+7) #define INF 1e10 using namespace std; typedef pair<ll, ll> P; int dx[4] = { 1,0,-1,0 }; int dy[4] = { 0,1,0,-1 }; int main(void) { string s1, s2, s3, s; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); s = s1[0]; s = s + s2[0]; s = s + s3[0]; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:28:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 28 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:28:18: note: couldn't deduce template parameter '_UnaryOperation' 28 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:29:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 29 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:29:18: note: couldn't deduce template parameter '_UnaryOperation' 29 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:30:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 30 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:30:18: note: couldn't deduce template parameter '_UnaryOperation' 30 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s593992102
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); transform(c.begin(), c.end(), c.begin(), toupper); cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(), a.end(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:18: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(a.begin(), a.end(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(b.begin(), b.end(), b.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(b.begin(), b.end(), b.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(c.begin(), c.end(), c.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(c.begin(), c.end(), c.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s041278651
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string a,b,c; char s1,s2,s3; cin >> a >> b >> c; transform(a.begin(),a.end(),a.begin(),::toupper); transform(b.begin(),b.end(),b.begin(),::toupper); transform(c.begin(),c.end(),c.begin(),::toupper); s1=a.at(0) s2=b.at(0) s3=c.at(0) cout << s1 << s2 << s3; }
a.cc: In function 'int main()': a.cc:13:13: error: expected ';' before 's2' 13 | s1=a.at(0) | ^ | ; 14 | s2=b.at(0) | ~~
s384561556
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string a,b,c; char s1,s2,s3; cin >> a >> b >> c; transform(a.begin(),a.end(),a.begin(),::toupper) transform(b.begin(),b.end(),b.begin(),::toupper) transform(c.begin(),c.end(),c.begin(),::toupper) s1=a.at(0) s2=b.at(0) s3=c.at(0) cout << s1 << s2 << s3; }
a.cc: In function 'int main()': a.cc:9:51: error: expected ';' before 'transform' 9 | transform(a.begin(),a.end(),a.begin(),::toupper) | ^ | ; 10 | transform(b.begin(),b.end(),b.begin(),::toupper) | ~~~~~~~~~
s654952116
p03737
C++
int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ transform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string S; | ^~~~~~ a.cc:3:9: error: expected ';' before 'ans' 3 | string ans; | ^~~~ | ; a.cc:4:3: error: 'cin' was not declared in this scope 4 | cin >> S; | ^~~ a.cc:4:10: error: 'S' was not declared in this scope 4 | cin >> S; | ^ a.cc:7:45: error: '::toupper' has not been declared 7 | transform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~ a.cc:7:5: error: 'transform' was not declared in this scope 7 | transform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~~ a.cc:8:5: error: 'ans' was not declared in this scope 8 | ans += S.at(i); | ^~~ a.cc:10:3: error: 'cout' was not declared in this scope 10 | cout << ans ; | ^~~~ a.cc:10:11: error: 'ans' was not declared in this scope 10 | cout << ans ; | ^~~
s721725572
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ cin >> S; trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:11:5: error: 'trasform' was not declared in this scope 11 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~
s406149077
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:10:5: error: 'trasform' was not declared in this scope 10 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~
s029812936
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i) } cout << ans ; }
a.cc: In function 'int main()': a.cc:10:5: error: 'trasform' was not declared in this scope 10 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~ a.cc:11:19: error: expected ';' before '}' token 11 | ans += S.at(i) | ^ | ; 12 | } | ~
s161465085
p03737
C
include<stdio.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); printf("%c%c%c\n",a[0]-0x20,b[0]-0x20,c[0]-0x20); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s241718960
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.begin() + 1, s1.begin(), toupper); transform(s2.begin(), s2.begin() + 1, s2.begin(), toupper); transform(s3.begin(), s3.begin() + 1, s3.begin(), toupper); cout << s1[0] << s2[0] << s3[0] << endl; }
a.cc: In function 'int main()': a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(s1.begin(), s1.begin() + 1, s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform(s1.begin(), s1.begin() + 1, s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(s2.begin(), s2.begin() + 1, s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:18: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(s2.begin(), s2.begin() + 1, s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s3.begin(), s3.begin() + 1, s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(s3.begin(), s3.begin() + 1, s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s397361508
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c;cin>>a>>b>>c; cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';}
a.cc:5:14: warning: multi-character character constant [-Wmultichar] 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ a.cc:5:25: warning: multi-character character constant [-Wmultichar] 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ a.cc:5:35: warning: multi-character character constant [-Wmultichar] 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ a.cc: In function 'int main()': a.cc:5:29: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | | | std::basic_ostream<char> a.cc:5:29: note: candidate: 'operator<(int, int)' (built-in) 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ a.cc:5:29: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:5:35: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:5:35: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:5:35: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_Ch
s223542441
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c;cin>>a>>b>>c; cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
a.cc: In function 'int main()': a.cc:5:13: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-' 5 | cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";} a.cc:5:24: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-' 5 | cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";} a.cc:5:34: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-' 5 | cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
s864066410
p03737
C++
#include<iostream> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; char d = 'A' - 'a'; printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;) return 0; }
a.cc: In function 'int main()': a.cc:7:56: error: expected ')' before ';' token 7 | printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;) | ~ ^ | ) a.cc:7:57: error: expected primary-expression before ')' token 7 | printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;) | ^
s399412444
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdlib> using namespace std; int main(){ string a, b, c; cin >> a >> b >> c; transform (a.begin (), a.end (), a.begin (), toupper); transform (b.begin (), b.end (), b.begin (), toupper); transform (c.begin (), c.end (), c.begin (), toupper); cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform (a.begin (), a.end (), a.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:17: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform (a.begin (), a.end (), a.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform (b.begin (), b.end (), b.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:17: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform (b.begin (), b.end (), b.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:13:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform (c.begin (), c.end (), c.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:17: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform (c.begin (), c.end (), c.begin (), toupper); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s236644936
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<string> s(3); int offset = 'A'-'a'; rep(i,3)cin>>s[i]; rep(i,3){ char a = s[i][0]+offset; cout<<a; } cout<<endl; }
a.cc: In function 'int main()': a.cc:7:13: error: 'i' was not declared in this scope 7 | rep(i,3)cin>>s[i]; | ^ a.cc:7:9: error: 'rep' was not declared in this scope 7 | rep(i,3)cin>>s[i]; | ^~~
s073750345
p03737
C++
//file_name:ABC59_A.cpp #include <bits/stdc++.h> #define fi first #define se second #define rep(i,n) for(int i = 0; i < (n); ++i) #define rrep(i,n) for(int i = 1; i <= (n); ++i) #define drep(i,n) for(int i = (n)-1; i >= 0; --i) #define srep(i,s,t) for (int i = s; i < t; ++i) #define rng(a) a.begin(),a.end() #define maxs(x,y) (x = max(x,y)) #define mins(x,y) (x = min(x,y)) #define limit(x,l,r) max(l,min(x,r)) #define lims(x,l,r) (x = max(l,min(x,r))) #define isin(x,l,r) ((l) <= (x) && (x) < (r)) #define pb push_back #define sz(x) (int)(x).size() #define pcnt __builtin_popcountll #define uni(x) x.erase(unique(rng(x)),x.end()) #define snuke srand((unsigned)clock()+(unsigned)time(NULL)); #define show(x) cout<<#x<<" = "<<x<<endl; #define PQ(T) priority_queue<T,v(T),greater<T> > #define bn(x) ((1<<x)-1) #define dup(x,y) (((x)+(y)-1)/(y)) #define newline puts("") #define v(T) vector<T> #define vv(T) v(v(T)) using namespace std; typedef long long int ll; typedef unsigned uint; typedef unsigned long long ull; typedef pair<int,int> P; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef vector<P> vp; inline int in() { int x; scanf("%d",&x); return x;} template<typename T>inline istream& operator>>(istream&i,v(T)&v) {rep(j,sz(v))i>>v[j];return i;} template<typename T>string join(const v(T)&v) {stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);} template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v) {if(sz(v))o<<join(v);return o;} template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v) {return i>>v.fi>>v.se;} template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v) {return o<<v.fi<<","<<v.se;} template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;} const double eps = 1e-10; const ll LINF = 1001002003004005006ll; const int INF = 1001001001; #define dame { puts("-1"); return 0;} #define yn {puts("Yes");}else{puts("No");} const int MX = 200005; // int scan /* int x; scanf("%d",&x); int y; scanf("%d",&y); int z; scanf("%d",&z); // matrix scan /* ll a[n] = {}; rep(i,n){ scanf("%lld",&a[i]); } */ // string scan /* string s; cin >> s; */ int main() { string a,b,c; cin >> a >> b >> c; string s = a[0] + b[0] + c[0]; s = toupper(s); return 0; }
a.cc: In function 'int main()': a.cc:83:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 83 | string s = a[0] + b[0] + c[0]; a.cc:85:16: error: no matching function for call to 'toupper(std::string&)' 85 | s = toupper(s); | ~~~~~~~^~~ In file included from /usr/include/c++/14/bits/basic_ios.h:37, from /usr/include/c++/14/ios:46, from /usr/include/c++/14/istream:40, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:2: /usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)' 2687 | toupper(_CharT __c, const locale& __loc) | ^~~~~~~ /usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate expects 2 arguments, 1 provided In file included from /usr/include/c++/14/cctype:42, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35: /usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)' 125 | extern int toupper (int __c) __THROW; | ^~~~~~~ /usr/include/ctype.h:125:25: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' 125 | extern int toupper (int __c) __THROW; | ~~~~^~~
s785795655
p03737
C
#include <stdio.h> int main (){ char a,b,c; int h; scanf ("%s%s%s",a,b,c); h='A'-'a'; printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); return 0; }
main.c: In function 'main': main.c:7:19: error: subscripted value is neither array nor pointer nor vector 7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); | ^ main.c:7:26: error: subscripted value is neither array nor pointer nor vector 7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); | ^ main.c:7:33: error: subscripted value is neither array nor pointer nor vector 7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); | ^
s976768784
p03737
C++
#include <iostream> #include <string> using namespace std; int main(void){ string s1; string s2; string s3; string tmp1; string tmp2; string tmp3; string ans; cin >> s1 >> s2 >> s3; tmp1=s1[0]; tmp2=s2[0]; tmp3=s3[0]; ans=tmp1+tmp2+tmp3; transform(ans.cbegin(),ans.cend(),ans.begin(),::toupper); cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:23:5: error: 'transform' was not declared in this scope 23 | transform(ans.cbegin(),ans.cend(),ans.begin(),::toupper); | ^~~~~~~~~
s096782597
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl; }
a.cc: In function 'int main()': a.cc:10:29: error: expected primary-expression before 'char' 10 | cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl; | ^~~~ a.cc: At global scope: a.cc:10:47: error: expected unqualified-id before '<<' token 10 | cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl; | ^~ a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s244879399
p03737
C++
#pragma once #include <sstream> #include <string> #include <vector> #include <map> #include <algorithm> #include <iostream> #include <utility> #include <set> #include <cctype> #include <queue> #include <stack> #include <cstdio> #include <cstdlib> #include <cmath> #include <deque> #include <numeric> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int INF = 1000000007; const int MAX_V = 201; ll dp[2][4]; int now = 0; int t[3]; ll p2[32]; bool use[100010]; void Threeletteracronym() { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1.substr(0,1) << s2.substr(0,1) << s3.substr(0,1) << endl; } int main() { Threeletteracronym(); return 0; }
a.cc:1:9: warning: #pragma once in main file 1 | #pragma once | ^~~~ a.cc: In function 'void Threeletteracronym()': a.cc:31:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 31 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:6: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:31:18: note: couldn't deduce template parameter '_UnaryOperation' 31 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:32:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 32 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:32:18: note: couldn't deduce template parameter '_UnaryOperation' 32 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:33:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 33 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:33:18: note: couldn't deduce template parameter '_UnaryOperation' 33 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s354600772
p03737
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <array> #include <tuple> #include <random> using namespace std; typedef long long int ll; #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for(int i = int(a); i < int(b); i++) #define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__) #define all(x) (x).begin(), (x).end() #define inf 10000000000 int main(){ cin.tie(0); ios::sync_with_stdio(false); string s1, s2, s3; cin >> s1 >> s2 >> s3; char diff = 'A' - 'a' cout << s1[0] + diff << s2[0] + diff << s3[0] + diff << endl; }
a.cc: In function 'int main()': a.cc:39:5: error: expected ',' or ';' before 'cout' 39 | cout << s1[0] + diff << s2[0] + diff << s3[0] + diff << endl; | ^~~~
s178606096
p03737
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<cmath> #include<cstdio> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; char dif = 'A' - 'a'; printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif; return 0; }
a.cc: In function 'int main()': a.cc:13:57: error: expected ')' before ';' token 13 | printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif; | ~ ^ | )
s391342035
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2,s3; cin>>s1>>s2>>s3; cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 } // ASCII文字コード表より、小文字から32を引くと大文字に変換される。
a.cc: In function 'int main()': a.cc:8:21: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ~~^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/bits/stl_algobase.h:67, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 618 | operator-(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:618:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1790 | operator-(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1790:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ In file included from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/complex:370:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const complex<_Tp>&)' 370 | operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:370:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/complex:379:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const _Tp&)' 379 | operator-(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/14/complex:379:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/complex:388:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const _Tp&, const complex<_Tp>&)' 388 | operator-(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:388:5: note: template argument deduction/substitution failed: a.cc:8:22: note: mismatched types 'const std::complex<_Tp>' and 'int' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/complex:465:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&)' 465 | operator-(const complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:465:5: note: candidate expects 1 argument, 2 provided In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166: /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:8:22: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:8:22: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const valarray<_Tp>&)' 1197 | _DEFINE_BINARY_OPERATOR(-, __minus) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1197 | _DEFINE_BINARY_OPERATOR(-, __minus) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed: a.cc:8:22: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ^~ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1
s973618630
p03737
C++
#include<stdio.h> #include<string.h> int main() { char a[1000],b[5]; gets(a); int len,i,j; len=strlen(a); printf("%d\n",len); for(i=0; i<len; i++) { if(i==0) printf("%c",a[0]-32); if(a[i]==' ') printf("%c",a[i+1]-32); } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s302884988
p03737
C++
#include<stdio.h> #include<string.h> int main() { char a[1000],b[5]; gets(a); int len,i,j; len=strlen(a); printf("%d\n",len); for(i=0; i<len; i++) { if(i==0) printf("%c",a[0]-32); if(a[i]==' ') printf("%c",a[i+1]-32); } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s524908767
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include <cctype> using namespace std; int main() { string s1,s2,s3; cin >> s1 >> s2 >>s3 ; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1[0]<< s2[0] << s3[0] << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:14:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:18: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 15 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s919454514
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1,s2,s3; cin >> s1 >> s2 >>s3 ; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1[0]<< s2[0] << s3[0] << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:13:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:14:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:14:18: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(s2.begin(), s2.end(), s2.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 15 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(s3.begin(), s3.end(), s3.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
s882974705
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; char org_str[] = {a[0],b[0],c[0]}; string str(org_str, end(org_str)); transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:3: error: 'transform' was not declared in this scope 14 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s233799010
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string str = {a[0],b[0],c[0]}; transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:3: error: 'transform' was not declared in this scope 12 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s489524787
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string str = {a[0],b[0],c[0]}; transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:3: error: 'transform' was not declared in this scope 12 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s529512612
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B,C; cin >> A >> B >> C; A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A"; cout << A.at(0)<< B.at(0)<< C.at(0)<<endl; }
a.cc: In function 'int main()': a.cc:7:21: error: invalid use of member function 'std::__cxx11::basic_string<char>::at' (did you forget the '()' ?) 7 | A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A"; | ~~^~ a.cc:7:35: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'long int') 7 | A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A"; | ~^~~~~~~~~
s384767957
p03737
C++
int main(){ string a,b,c; cin >> a >> b >> c; int x = 'a' - 'A'; cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl; }
a.cc: In function 'int main()': a.cc:2:5: error: 'string' was not declared in this scope 2 | string a,b,c; | ^~~~~~ a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:3:12: error: 'a' was not declared in this scope 3 | cin >> a >> b >> c; | ^ a.cc:3:17: error: 'b' was not declared in this scope 3 | cin >> a >> b >> c; | ^ a.cc:3:22: error: 'c' was not declared in this scope 3 | cin >> a >> b >> c; | ^ a.cc:5:5: error: 'cout' was not declared in this scope 5 | cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl; | ^~~~ a.cc:5:76: error: 'endl' was not declared in this scope 5 | cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl; | ^~~~
s081417540
p03737
C++
#include<bits/stdc++.h> #include<string> #include<algorithm> #include<vector> using namespace std; int main(){ string s, t, u; cin >> s >> t >> u; transform(s.cbegin(), s.cend(), s.begin(), toupper); transform(t.cbegin(), t.cend(), t.begin(), toupper); transform(u.cbegin(), u.cend(), u.begin(), toupper); cout << s[0] << t[0] << u[0] << endl; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(s.cbegin(), s.cend(), s.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation' 10 | transform(s.cbegin(), s.cend(), s.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:11:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(t.cbegin(), t.cend(), t.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:11:12: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(t.cbegin(), t.cend(), t.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided a.cc:12:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(u.cbegin(), u.cend(), u.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)' 4209 | transform(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed: a.cc:12:12: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(u.cbegin(), u.cend(), u.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)' 4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)' 156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)' 162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, | ^~~~~~~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided