submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s302449998
p00020
C
#include <stdio.h> int main() { char a[2114]; gets(a); _mbsupr(a); printf("%s\n",a); return 0; }
main.c: In function 'main': main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(a); | ^~~~ | fgets main.c:6:5: error: implicit declaration of function '_mbsupr' [-Wimplicit-function-declaration] 6 | _mbsupr(a); | ^~~~~~~
s459344685
p00020
C
#include <stdio.h> #include <mbstring.h> int main() { char a[2114]; gets(a); _mbsupr(a); printf("%s\n",a); return 0; }
main.c:2:10: fatal error: mbstring.h: No such file or directory 2 | #include <mbstring.h> | ^~~~~~~~~~~~ compilation terminated.
s199341097
p00020
C
#include <stdio.h> #include <mbstring.h> int main() { char a[2114]; int i = 0; scanf("%s",a); while(1){ if(a[i] == '\0')break; a[i] = a[i] - 32; i++; } printf("%s\n",a); return 0; }
main.c:2:10: fatal error: mbstring.h: No such file or directory 2 | #include <mbstring.h> | ^~~~~~~~~~~~ compilation terminated.
s792606089
p00020
C
#include <stdio.h> int main() { char a[2114]; int i = 0; scanf("%s",a); while(1){ if(a[i] == '\0')break; a[i] = a[i] - 32; i++; } printf("%s\n",a); return 0; } ]
main.c:15:1: error: expected identifier or '(' before ']' token 15 | ] | ^
s266630985
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a; getline(cin, a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a; }
a.cc: In function 'int main()': a.cc:8: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>)' 8 | 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:8:18: 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
s227287759
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a; getline(cin, a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a; }
a.cc: In function 'int main()': a.cc:8: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>)' 8 | 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:8:18: 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
s523234390
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a; getline(cin, a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a; }
a.cc: In function 'int main()': a.cc:8: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>)' 8 | 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:8:18: 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
s093759791
p00020
C++
//↓template↓ #include "bits/stdc++.h" using namespace std; #define Would #define you #define all(n) n.begin(),n.end() const long long INF = 1e18; const long long MOD = 1e9 + 7; const double pi = acos(-1); const int SIZE = 1 << 17; int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30]; long long fac[200005], finv[200005], inv[200005]; vector<long long>dij; struct edge { long long to, cost; }; vector<vector<edge> >G; long long mod_pow(long long a, long long b) { long long res = 1, mul = a; for (int i = 0; i < 31; ++i) { if (b >> i & 1) { res *= mul; res %= MOD; } mul = (mul * mul) % MOD; } return res; } void addedge(int from, int to, int cost) { G[from].push_back({ to,cost }); G[to].push_back({ from,cost }); } //↑template↑ int main() { string h; getline(cin, s); transform(all(h), h.begin(), ::toupper); cout << h << endl; }
a.cc: In function 'int main()': a.cc:40:22: error: 's' was not declared in this scope 40 | getline(cin, s); | ^
s334095791
p00020
C++
#include <iostream> #include <vector> #include <stack> #include <queue> #include <map> #include <set> #include <string> #include <math.h> #include <functional> #include <algorithm> typedef long long Int; #define REP(i,n) for(int i = 0 ; i < n ; ++i) using namespace std; int main(){ string a; getline(cin, a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:19: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>)' 19 | transform(a.begin(), a.end(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:10: /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:19:18: note: couldn't deduce template parameter '_UnaryOperation' 19 | 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
s593103285
p00020
C++
#include <iostream> #include <vector> #include <stack> #include <queue> #include <map> #include <set> #include <string> #include <math.h> #include <functional> #include <algorithm> typedef long long Int; #define REP(i,n) for(int i = 0 ; i < n ; ++i) using namespace std; int main(){ string a; getline(cin, a); transform(a.cbegin(), a.cend(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:19:18: 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>)' 19 | transform(a.cbegin(), a.cend(), a.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:10: /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:19:18: note: couldn't deduce template parameter '_UnaryOperation' 19 | transform(a.cbegin(), a.cend(), 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
s968274497
p00020
C++
#include <iostream> #include <strign> #include <cctype> using namespace std; int main(){ string s; cin>>s; for(char c:s){ cout << toupper(c); } cout<<endl; }
a.cc:2:10: fatal error: strign: No such file or directory 2 | #include <strign> | ^~~~~~~~ compilation terminated.
s941057831
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(),toupper); cout << str << endl; }
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(str.begin(), str.end(), str.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(str.begin(), str.end(), str.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
s243135075
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(),toupper); cout << str << endl; }
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(str.begin(), str.end(), str.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(str.begin(), str.end(), str.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
s342185856
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(),toupper); cout << str << endl; }
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(str.begin(), str.end(), str.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(str.begin(), str.end(), str.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
s650486461
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; }
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(str.begin(), str.end(), str.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(str.begin(), str.end(), str.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
s286785714
p00020
C++
#include<iostream> #include<string> #include<algorithm> #include<cctype> using namespace std; int main(){ string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; }
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(str.begin(), str.end(), str.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:14:18: note: couldn't deduce template parameter '_UnaryOperation' 14 | transform(str.begin(), str.end(), str.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
s600873006
p00020
C++
#include<stdio.h> #include<string.h> #include<ctype.h> int mian(void){ int len,cut_i; char str[1000]; scanf("%[a-z .]",str); len = strlen(str); for(cut_i=0; cut_i<len; cut_i++){ str[cut_i] = tolower(str[cut_i]); } puts(str); return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s259509981
p00020
C++
#include<stdio.h> #include<string.h> #include<ctype.h> int mian(void){ int len,cut_i; char str[1000]; scanf("%[a-z .]",str); len = strlen(str); for(cut_i=0; cut_i<len; cut_i++){ str[cut_i] = tolower(str[cut_i]); } puts(str); return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s937851626
p00020
C++
#include<iostream> #include<string> #include <stdio.h> #include <math.h> #include <cctype> #include<queue> #include<stack> #include<cstdio> #include <algorithm> #include <cstdio> using namespace std; int main(){ string s; cin>>s; while(cin>>s){ transform(s.begin(),s.end(),s,begin(),toupper); cout<<s<<" "; } cout<<endl; }
a.cc: In function 'int main()': a.cc:16:52: error: no matching function for call to 'begin()' 16 | transform(s.begin(),s.end(),s,begin(),toupper); | ~~~~~^~ In file included from /usr/include/c++/14/bits/range_access.h:36, from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/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/bits/range_access.h:113:31: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)' 113 | template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept; | ^~~~~ /usr/include/c++/14/bits/range_access.h:113:31: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:114:37: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)' 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ /usr/include/c++/14/bits/range_access.h:114:37: note: candidate expects 1 argument, 0 provided
s957369682
p00020
C++
#include <stdio.h> #include <math.h> #include <cctype> #include<queue> #include<stack> #include<cstdio> #include <algorithm> #include <cstdio> using namespace std; int main(){ string s; cin>>s; while(cin>>s){ for(int i=0;i<s.size();i++){ s[i]=toupper(s[i]); } cout<<s<<" "; } cout<<endl; }
a.cc: In function 'int main()': a.cc:11:9: error: 'string' was not declared in this scope 11 | string s; | ^~~~~~ a.cc:9:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' 8 | #include <cstdio> +++ |+#include <string> 9 | using namespace std; a.cc:12:9: error: 'cin' was not declared in this scope 12 | cin>>s; | ^~~ a.cc:9:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 8 | #include <cstdio> +++ |+#include <iostream> 9 | using namespace std; a.cc:12:14: error: 's' was not declared in this scope 12 | cin>>s; | ^ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout<<s<<" "; | ^~~~ a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:19:9: error: 'cout' was not declared in this scope 19 | cout<<endl; | ^~~~ a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:19:15: error: 'endl' was not declared in this scope 19 | cout<<endl; | ^~~~ a.cc:9:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 8 | #include <cstdio> +++ |+#include <ostream> 9 | using namespace std;
s501906356
p00020
C++
#include<map> #include<set> #include<list> #include<cmath> #include<queue> #include<stack> #include<cstdio> #include<string> #include<vector> #include<complex> #include<cstdlib> #include<cstring> #include<climits> #include<numeric> #include<sstream> #include<iostream> #include<iomanip> #include<algorithm> #include<functional> #include<math.h> #define MP make_pair #define PB push_back #define ALL(x) (x).begin(),(x).end() #define REP(i,n) for(int i=0;i<(n);i++) #define REP1(i,n) for(int i=1;i<(n);i++) #define REP2(i,d,n) for(int i=(d);i<(n);i++) #define RREP(i,n) for(int i=(n);i>=0;i--) #define CLR(a) memset((a),0,sizeof(a)) #define MCLR(a) memset((a),-1,sizeof(a)) #define RANGE(x,y,maxX,maxY) (0 <= (x) && 0 <= (y) && (x) < (maxX) && (y) < (maxY)) using namespace std; typedef long long LL; typedef unsigned long long ULL; typedef vector<int> VI; typedef vector<VI > VVI; typedef vector<string> VS; typedef vector<LL> VLL; typedef pair<int,int> PII; const int INF = 0x3f3f3f3f; const LL INFL = 0x3f3f3f3f3f3f3f3fLL; const double EPS = 1e-9; const int DX[]={1,0,-1,0},DY[]={0,-1,0,1}; int main(){ string str; int i; getline(cin,str); transform(str.begin(),str.end(),str.begin(),toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:53: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>)' 53 | transform(str.begin(),str.end(),str.begin(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:18: /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:53:18: note: couldn't deduce template parameter '_UnaryOperation' 53 | transform(str.begin(),str.end(),str.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, _Tp> 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, _Tp> 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
s891151658
p00020
C++
#include<iostream> #include<ctype> #include<string> using namespace std; int main(){ string str; getline(cin, str); int str_size = str.size(); for(int i=0;i<str_size;i++){ if(islower(str[i])) str[i] = toupper(str[i]); } cout << str << endl; return 0; }
a.cc:2:9: fatal error: ctype: No such file or directory 2 | #include<ctype> | ^~~~~~~ compilation terminated.
s613281213
p00020
C++
#include <iostream> #include <iomanip> #include <algorithm> #include <map> #include <string> #include <cstdio> #include <cstring> #include <vector> #include <cstdio> #include <climits> using namespace std; #define rep(i,n) for(LL i=0;i<n;i++) #define all(v) (v).begin(),(v).end() #define MOD 1000000007 const int INF = INT_MAX; typedef long long LL; int main(){ string s; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:22: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>)' 22 | transform(s.begin(), s.end(), s.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:22:18: note: couldn't deduce template parameter '_UnaryOperation' 22 | transform(s.begin(), s.end(), 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
s364173388
p00020
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, s, n) for(int i = s; i < (int)n; ++i) #define per(i, n) for(int i = n; i >= 0; i--) #define ROF(i, s, n) for(int i = s; i >= (int)n; i--) #define FORIT(i, A) for (auto i : A) #define PRINT(x) cout << (x) << "\n" #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define MP make_pair #define PB push_back #define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define SZ(a) int((a).size()) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define CLR(a) memset((a), 0 ,sizeof(a)) #define NCLR(a) memset((a), -1 ,sizeof(a)) #define sq(n) (n) * (n) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef vector<LL> VLL; typedef vector<VLL> VVLL; typedef unsigned int uint; typedef unsigned long long ull; typedef priority_queue<int> maxpq; typedef priority_queue< int, vector<int>, greater<int> > minpq; typedef complex<double> Point; static const double EPS = 1e-10; static const double PI = acos( -1.0 ); static const int mod = 1000000007; static const int INF = 1 << 29; static const LL LL_INF = 1ll << 60; static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 }; static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 }; #ifdef WIN32 #include "gtest/gtest.h" #pragma comment (lib, "gtest.lib") #define dump(x) cerr << #x << " = " << (x) << "\n" #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n" #else #define dump(x) #define debug(x) #endif string str; //#define severalTestCases bool input() { getline( cin, str ); return true; } string solve(string _str) { for ( int i = 0; i < _str.size(); i++ ) { if ( 'a' <= _str[ i ] && _str[ i ] <= 'z' ) { _str[ i ] += 'A' - 'a'; } } return _str; } void putsanswer() { cout << solve(str) << "\n"; } int main( int argc, char **argv ) { #ifndef WIN32 #ifdef severalTestCases while ( input() ) { #else input(); solve(); #endif #else ::testing::InitGoogleTest( &argc, argv ); return RUN_ALL_TESTS(); // gtest ????????? #endif #ifdef severalTestCases } #endif return 0; } #ifdef WIN32 TEST( testcase, solve ) { ASSERT_EQ( "THIS IS A PEN.", solve( "this is a pen." ) ); } #endif
a.cc: In function 'int main(int, char**)': a.cc:76:8: error: too few arguments to function 'std::string solve(std::string)' 76 | solve(); | ~~~~~^~ a.cc:57:8: note: declared here 57 | string solve(string _str) { | ^~~~~
s168855167
p00020
C++
#include <iostream> #include <algorithm> #include <functional> #include <vector> #include <cstdio> #include <string> #include <cmath> #include <cfloat> #include <map> using namespace std; int main(){ string x; getline(cin,x); transform(x.begin(),x.end(),x.begin(),toupper); cout<<x<<endl; }
a.cc: In function 'int main()': 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(x.begin(),x.end(),x.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:16:18: note: couldn't deduce template parameter '_UnaryOperation' 16 | transform(x.begin(),x.end(),x.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
s112882981
p00020
C++
#include <iostream> #include <algorithm> #include <functional> #include <vector> #include <cstdio> #include <string> #include <cmath> #include <cfloat> #include <map> using namespace std; int main(){ string x; getline(cin,x); transform(x.begin(),x.end(),x.begin(),toupper); cout<<x<<endl; }
a.cc: In function 'int main()': 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(x.begin(),x.end(),x.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:16:18: note: couldn't deduce template parameter '_UnaryOperation' 16 | transform(x.begin(),x.end(),x.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
s897358666
p00020
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; getline(cin, str); for(int i = 0; i < str.size(); i++){ if(str[i] < 90){ continue; } else{ str[i] -= 32; } } cout << str << endl; return 0;
a.cc: In function 'int main()': a.cc:17:18: error: expected '}' at end of input 17 | return 0; | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s466598697
p00020
C++
#include<string> #include<vector> using namespace std; int main() { string s; int i = 0; getline(cin,s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: 'cin' was not declared in this scope 7 | getline(cin,s); | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<vector> +++ |+#include <iostream> 3 | using namespace std; a.cc:8:9: error: 'transform' was not declared in this scope 8 | transform(s.begin(), s.end(), s.begin(), toupper); | ^~~~~~~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout << s << endl; | ^~~~ a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:22: error: 'endl' was not declared in this scope 9 | cout << s << endl; | ^~~~ a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 2 | #include<vector> +++ |+#include <ostream> 3 | using namespace std;
s413108186
p00020
C++
#include<iostream> #include<algorithm> #include<functional> #include<string> #include<vector> using namespace std; int main() { string s; int i = 0; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; }
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(s.begin(), s.end(), s.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:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(s.begin(), s.end(), 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
s022431075
p00020
C++
#include<iostream> #include<algorithm> #include<functional> #include<string> #include <ctime> #include <cstdio> #include<vector> using namespace std; int main() { string s; int i = 0; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; }
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(s.begin(), s.end(), s.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:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s.begin(), s.end(), 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
s820438488
p00020
C++
#include<iostream> #include<algorithm> #include<functional> #include<string> #include <cctype> #include <cstdio> #include<vector> using namespace std; int main() { string s; int i = 0; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; }
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(s.begin(), s.end(), s.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:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s.begin(), s.end(), 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
s598828986
p00020
C++
#include<iostream> #include<algorithm> #include<functional> #include<string> #include <cctype> #include <cstdio> #include<vector> using namespace std; int main() { string s; int i = 0; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << 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(s.begin(), s.end(), s.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:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(s.begin(), s.end(), 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
s154355794
p00020
C++
#include <iostream> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <cstdlib> #include <ctime> #include <cstdio> #include <functional> #include <complex> using namespace std; int main() { string s; int i = 0; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; return 0; }
a.cc: In function 'int main()': 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(s.begin(), s.end(), s.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:5: /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(s.begin(), s.end(), 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
s362441547
p00020
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <map> #include <numeric> using namespace std; #define FOR(i,a,b) for(long long int i=(a);i<(b);i++) #define REP(i,n) for(long long int i=0;i<(n);i++) #define ALL(s) (s).begin(),(s).end() #define PI 3.14159265358479 typedef long long ll; typedef vector<long long int> vi; typedef vector<long long int>::iterator vit; int main(){ char s[1000]; fgets(s, 1000, stdin); REP(i, strlen(s)){ if (islower(s[i])){ s[i] = toupper(s[i]); } } cout << s << "\n"; }
a.cc: In function 'int main()': a.cc:25:16: error: 'strlen' was not declared in this scope 25 | REP(i, strlen(s)){ | ^~~~~~ a.cc:13:43: note: in definition of macro 'REP' 13 | #define REP(i,n) for(long long int i=0;i<(n);i++) | ^ a.cc:10:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include <numeric> +++ |+#include <cstring> 10 | using namespace std;
s730152191
p00020
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <map> #include <numeric> using namespace std; #define FOR(i,a,b) for(long long int i=(a);i<(b);i++) #define REP(i,n) for(long long int i=0;i<(n);i++) #define ALL(s) (s).begin(),(s).end() #define PI 3.14159265358479 typedef long long ll; typedef vector<long long int> vi; typedef vector<long long int>::iterator vit; int main(){ char s[1000]; fgets(s, 1000, stdin); REP(i, strlen(s)){ if (islower(s[i])){ s[i] = toupper(s[i]); } } cout << s << "\n"; }
a.cc: In function 'int main()': a.cc:25:16: error: 'strlen' was not declared in this scope 25 | REP(i, strlen(s)){ | ^~~~~~ a.cc:13:43: note: in definition of macro 'REP' 13 | #define REP(i,n) for(long long int i=0;i<(n);i++) | ^ a.cc:10:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include <numeric> +++ |+#include <cstring> 10 | using namespace std;
s583193057
p00020
C++
#include "bits/stdc++.h" #include<unordered_map> #pragma warning(disable:4996) using namespace std; int main() { string st; getline(cin, st); transform(st.begin(), st.end(), st.begin(), toupper); cout <<st<< 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(st.begin(), st.end(), st.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:11:18: note: couldn't deduce template parameter '_UnaryOperation' 11 | transform(st.begin(), st.end(), st.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
s213751800
p00020
C++
#!ruby -p $_.upcase!
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!ruby -p | ^ a.cc:2:1: error: '$_' does not name a type 2 | $_.upcase! | ^~
s890140288
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string str; getline(cin,str); transform(str.cbegin(), str.cend(), str.begin(), toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:18: 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>)' 9 | transform(str.cbegin(), str.cend(), str.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(str.cbegin(), str.cend(), str.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
s103018579
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string str; getline(cin,str); transform(str.cbegin(), str.cend(), str.begin(), toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:18: 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>)' 9 | transform(str.cbegin(), str.cend(), str.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(str.cbegin(), str.cend(), str.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
s166970917
p00020
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin,str); transform(str.cbegin(), str.cend(), str.begin(), toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:18: 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>)' 7 | transform(str.cbegin(), str.cend(), str.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:18: note: couldn't deduce template parameter '_UnaryOperation' 7 | transform(str.cbegin(), str.cend(), str.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
s161674161
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; struct ToUpper { char operator()(char c) { return toupper(c); } }; int main() { string str; getline(cin,str); transform(str.cbegin(), str.cend(), str.begin(), toupper); cout << str << 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>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(str.cbegin(), str.cend(), str.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(str.cbegin(), str.cend(), str.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
s756771375
p00020
C++
#include "bits/stdc++.h" #include<unordered_map> #pragma warning(disable:4996) using namespace std; struct ToUpper { char operator()(char c) { return toupper(c); } }; int main() { string str; getline(cin,str); transform(str.cbegin(), str.cend(), str.begin(), toupper); cout << str << 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>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(str.cbegin(), str.cend(), str.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:13:18: note: couldn't deduce template parameter '_UnaryOperation' 13 | transform(str.cbegin(), str.cend(), str.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
s210227718
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string str; getline(cin,str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | transform(str.begin(), str.end(), str.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(str.begin(), str.end(), str.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
s634240206
p00020
C++
#include <iostream> using namespace std; int main(){ string ch; while(1){ //getline(cin, ch) //1?????????????????? cin >> ch; if(ch == '\n'){ cout << endl; break; } else{ ch = toupper(ch); cout << ch; } } }
a.cc: In function 'int main()': a.cc:12:23: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 12 | if(ch == '\n'){ | ~~ ^~ ~~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/string:43, 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/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/string:48: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:629: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> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 637 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/string_view:644: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>)' 644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed: a.cc:12:26: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed: a.cc:12:26: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed: a.cc:12:26: note: mismatched types 'const _CharT*' and 'char' 12 | if(ch == '\n'){ | ^~~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3819 | operator==(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed: a.cc:12:26: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2558 | operator==(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 12 | if(ch == '\n'){ | ^~~~ In file included from /usr/include/c++/14/bits/locale_facets.h:48, from /usr/include/c++/14/bits/basic_ios.h:37, from /usr/include/c++/14/ios:46: /usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)' 234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a, | ^~~~~~~~ /usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution failed: a.cc:12:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>' 12 | if(ch == '\n
s180986897
p00020
C++
#include <iostream> #include <string> using namespace std; int main(){ string ch; getline(cin, ch) for(int i=0; i<s.size(); i++){ if(isalpha(ch[i]){ ch[i] = toupper(ch[i]); } } cout << ch << endl; }
a.cc: In function 'int main()': a.cc:9:25: error: expected ';' before 'for' 9 | getline(cin, ch) | ^ | ; 10 | 11 | for(int i=0; i<s.size(); i++){ | ~~~ a.cc:11:30: error: 'i' was not declared in this scope 11 | for(int i=0; i<s.size(); i++){ | ^ a.cc:11:32: error: 's' was not declared in this scope 11 | for(int i=0; i<s.size(); i++){ | ^
s524455449
p00020
C++
#include <iostream> #include <string> using namespace std; int main(){ string ch; int i; getline(cin, ch); for(i=0; i<s.size(); i++){ if(isalpha(ch[i]){ ch[i] = toupper(ch[i]); } } cout << ch << endl; }
a.cc: In function 'int main()': a.cc:12:28: error: 's' was not declared in this scope 12 | for(i=0; i<s.size(); i++){ | ^ a.cc:14:34: error: expected ')' before '{' token 14 | if(isalpha(ch[i]){ | ~ ^ | ) a.cc:17:9: error: expected primary-expression before '}' token 17 | } | ^
s018504118
p00020
C++
#include <iostream> #include <string> using namespace std; int main(){ string ch; int i; getline(cin, ch); for(i=0; i<ch.size(); i++){ if(isalpha(ch[i]){ ch[i] = toupper(ch[i]); } } cout << ch << endl; }
a.cc: In function 'int main()': a.cc:14:34: error: expected ')' before '{' token 14 | if(isalpha(ch[i]){ | ~ ^ | ) a.cc:17:9: error: expected primary-expression before '}' token 17 | } | ^
s620574645
p00020
C++
#include <iostream> #include <string> using namespace std; int main(){ string ch; int i; getline(cin, ch); for(i=0; i<ch.size(); i++){ if(isalpha(ch[i]){ ch[i] = toupper(ch[i]); } } cout << ch << endl; }
a.cc: In function 'int main()': a.cc:14:34: error: expected ')' before '{' token 14 | if(isalpha(ch[i]){ | ~ ^ | ) a.cc:17:9: error: expected primary-expression before '}' token 17 | } | ^
s035224200
p00020
C++
1 #include<iostream> 2 #include<ctype.h> 3 4 using namespace std; 5 6 #define OUT cout << 7 #define IN cin >> 8 #define E << endl; 9 #define FOR(i,a,b) for(int i = a;i < b;i++) 10 11 12 string str; 13 14 15 int main(){ 16 while(IN str){ 17 FOR(i,0,str.size()){ 18 str[i] = (char)toupper((int)(str[i])); 19 } 20 OUT str << " "; 21 } 22 OUT "\n"; 23 24 } 25
a.cc:1:5: error: stray '#' in program 1 | 1 #include<iostream> | ^ a.cc:2:5: error: stray '#' in program 2 | 2 #include<ctype.h> | ^ a.cc:6:5: error: stray '#' in program 6 | 6 #define OUT cout << | ^ a.cc:7:5: error: stray '#' in program 7 | 7 #define IN cin >> | ^ a.cc:8:5: error: stray '#' in program 8 | 8 #define E << endl; | ^ a.cc:9:5: error: stray '#' in program 9 | 9 #define FOR(i,a,b) for(int i = a;i < b;i++) | ^ a.cc:1:3: error: expected unqualified-id before numeric constant 1 | 1 #include<iostream> | ^ a.cc:5:3: error: expected unqualified-id before numeric constant 5 | 5 | ^ a.cc:9:3: error: expected unqualified-id before numeric constant 9 | 9 #define FOR(i,a,b) for(int i = a;i < b;i++) | ^ a.cc:9:38: error: 'i' does not name a type 9 | 9 #define FOR(i,a,b) for(int i = a;i < b;i++) | ^ a.cc:9:44: error: 'i' does not name a type 9 | 9 #define FOR(i,a,b) for(int i = a;i < b;i++) | ^ a.cc:13:2: error: expected unqualified-id before numeric constant 13 | 13 | ^~ a.cc:25:2: error: expected unqualified-id before numeric constant 25 | 25 | ^~
s237409863
p00020
C++
#include<iostream> #include<ctype.h> using namespace std; #define OUT cout << #define IN cin >> #define E << endl; #define FOR(i,a,b) for(int i = a;i < b;i++) string str; int main(){ getline(IN str) FOR(i,0,str.size()){ str[i] = (char)toupper((int)(str[i])); } /* OUT str; while(IN str){ OUT " "; FOR(i,0,str.size()){ str[i] = (char)toupper((int)(str[i])); } OUT str; } OUT "\n"; */ OUT str E }
a.cc: In function 'int main()': a.cc:16:16: error: no matching function for call to 'getline(std::basic_istream<char>&)' 16 | getline(IN str) | ~~~~~~~^~~~~~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)' 907 | getline(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate expects 3 arguments, 1 provided In file included from /usr/include/c++/14/string:54: /usr/include/c++/14/bits/basic_string.h:4117:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4117 | getline(basic_istream<_CharT, _Traits>& __is, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:4117:5: note: candidate expects 2 arguments, 1 provided /usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)' 4125 | getline(basic_istream<_CharT, _Traits>&& __is, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate expects 3 arguments, 1 provided /usr/include/c++/14/bits/basic_string.h:4132:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4132 | getline(basic_istream<_CharT, _Traits>&& __is, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:4132:5: note: candidate expects 2 arguments, 1 provided In file included from /usr/include/c++/14/cstdio:42, from /usr/include/c++/14/ext/string_conversions.h:45, from /usr/include/c++/14/bits/basic_string.h:4154: /usr/include/stdio.h:697:18: note: candidate: '__ssize_t getline(char**, size_t*, FILE*)' 697 | extern __ssize_t getline (char **__restrict __lineptr, | ^~~~~~~ /usr/include/stdio.h:697:18: note: candidate expects 3 arguments, 1 provided a.cc:19:13: error: 'i' was not declared in this scope 19 | FOR(i,0,str.size()){ | ^ a.cc:9:34: note: in definition of macro 'FOR' 9 | #define FOR(i,a,b) for(int i = a;i < b;i++) | ^
s740942825
p00020
C++
#include <iostream> #include <cmath> #include <string> #include <vector> #include <map> #include <set> #include <list> #include <deque> #include <algorithm> #include <iomanip> #include <functional> #include <numeric> #define REP(i, n) for(int i = 0;i < (n); i++) #define REP2(i, x, n) for(int i = (x); i < (n); i++) #define REPR(i, n) for(int i = (n); i >= 0; i--) #define ALL(a) (a).begin(),(a).end() #define SORT(c) sort((c).begin(),(c).end()) #define DESCSORT(c) sort(c.begin(), c.end(), greater<int>()) #define LL long long int #define LD long double #define PI 3.14159265358979 using namespace std; //================================================ int main() { ios::sync_with_stdio(false); cin.tie(0); string S; getline(cin, S); transform(ALL(S), S.begin(), toupper); cout << S << "\n"; return 0; }
a.cc: In function 'int main()': a.cc:35:45: 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>)' 35 | string S; getline(cin, S); transform(ALL(S), S.begin(), toupper); cout << S << "\n"; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:9: /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:35:45: note: couldn't deduce template parameter '_UnaryOperation' 35 | string S; getline(cin, S); transform(ALL(S), S.begin(), toupper); cout << S << "\n"; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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
s370595490
p00020
C++
#include <iostream> #include <cmath> #include <string> #include <vector> #include <map> #include <set> #include <list> #include <deque> #include <algorithm> #include <iomanip> #include <functional> #include <numeric> #define REP(i, n) for(int i = 0;i < (n); i++) #define REP2(i, x, n) for(int i = (x); i < (n); i++) #define REPR(i, n) for(int i = (n); i >= 0; i--) #define ALL(a) (a).begin(),(a).end() #define SORT(c) sort((c).begin(),(c).end()) #define DESCSORT(c) sort(c.begin(), c.end(), greater<int>()) #define LL long long int #define LD long double #define PI 3.14159265358979 using namespace std; //================================================ int main() { ios::sync_with_stdio(false); cin.tie(0); string S; getline(cin, S); transform(ALL(S), S.begin(), toupper); cout << S << "\n"; return 0; }
a.cc: In function 'int main()': a.cc:38: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>)' 38 | transform(ALL(S), S.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:9: /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:38:18: note: couldn't deduce template parameter '_UnaryOperation' 38 | transform(ALL(S), 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
s680677713
p00020
C++
#include <stdio.h> int main(void){ char buff[8192]; char *p; scanf("%s",buff); p=buff; while(*p!='\0'){ *p=toupper(*p); p++; } printf("%s\n",buff); }
a.cc: In function 'int main()': a.cc:10:20: error: 'toupper' was not declared in this scope 10 | *p=toupper(*p); | ^~~~~~~
s792326161
p00020
C++
#include <stdio.h> #include <string.h> int main(void){ char buff[8192]; char *p; scanf("%s",buff); p=buff; while(*p!='\0'){ *p=toupper(*p); p++; } printf("%s\n",buff); }
a.cc: In function 'int main()': a.cc:11:20: error: 'toupper' was not declared in this scope 11 | *p=toupper(*p); | ^~~~~~~
s684303994
p00020
C++
#include<iostream> #include<queue> #include<string> #include<stack> #include<cstdio> #include<cmath> #include<algorithm> #include<ctype.h> using namespace std; int main(void) { char str[1000]={}; int i; int len; gets(str); len=strlen(str); for(i=0;i<len;i++) str[i]=toupper(str[i]); printf("%s\n", str); }
a.cc: In function 'int main()': a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 18 | gets(str); | ^~~~ | getw a.cc:19:7: error: 'strlen' was not declared in this scope 19 | len=strlen(str); | ^~~~~~ a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 7 | #include<algorithm> +++ |+#include <cstring> 8 | #include<ctype.h>
s777807545
p00020
C++
#include<iostream> #include<queue> #include<string> #include<stack> #include<cstdio> #include<cmath> #include<algorithm> #include<ctype.h> using namespace std; int main(void) { char str[1000]={}; int i; int len; gets(str); len=strlen(str); for(i=0;i<len;i++) str[i]=toupper(str[i]); printf("%s\n", str); return 0; }
a.cc: In function 'int main()': a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 18 | gets(str); | ^~~~ | getw a.cc:19:7: error: 'strlen' was not declared in this scope 19 | len=strlen(str); | ^~~~~~ a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 7 | #include<algorithm> +++ |+#include <cstring> 8 | #include<ctype.h>
s342820256
p00020
C++
#include<iostream> #include<queue> #include<string> #include<stack> #include<cstdio> #include<cmath> #include<algorithm> #include<ctype.h> using namespace std; int main(void) { char str[1000]={}; int i; int len; gets(str); len=strlen(str); for(i=0;i<len;i++) str[i]=toupper(str[i]); printf("%s\n", str); }
a.cc: In function 'int main()': a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 18 | gets(str); | ^~~~ | getw a.cc:19:7: error: 'strlen' was not declared in this scope 19 | len=strlen(str); | ^~~~~~ a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 7 | #include<algorithm> +++ |+#include <cstring> 8 | #include<ctype.h>
s715014748
p00020
C++
#include<iostream> #include<queue> #include<string> #include<stack> #include<cstdio> #include<cmath> #include<algorithm> #include<cctype> using namespace std; int main(void) { char str[1000]={}; int i; int len; gets(str); len=strlen(str); for(i=0;i<len;i++) str[i]=toupper(str[i]); printf("%s\n", str); }
a.cc: In function 'int main()': a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 18 | gets(str); | ^~~~ | getw a.cc:19:7: error: 'strlen' was not declared in this scope 19 | len=strlen(str); | ^~~~~~ a.cc:9:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 8 | #include<cctype> +++ |+#include <cstring> 9 |
s726007930
p00020
C++
#include <iostream> #include <algorithm> #include <stdlib.h> #include <string> #include <stdio.h> using namespace std; int main(){ char s[500]; fgets(s); transform(s.begin(),s.end(),s.begin(),toupper); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:14: error: too few arguments to function 'char* fgets(char*, int, FILE*)' 13 | fgets(s); | ~~~~~^~~ In file included from /usr/include/c++/14/cstdio:42, from /usr/include/c++/14/ext/string_conversions.h:45, from /usr/include/c++/14/bits/basic_string.h:4154, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/stdio.h:654:14: note: declared here 654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~~ a.cc:15:21: error: request for member 'begin' in 's', which is of non-class type 'char [500]' 15 | transform(s.begin(),s.end(),s.begin(),toupper); | ^~~~~ a.cc:15:31: error: request for member 'end' in 's', which is of non-class type 'char [500]' 15 | transform(s.begin(),s.end(),s.begin(),toupper); | ^~~ a.cc:15:39: error: request for member 'begin' in 's', which is of non-class type 'char [500]' 15 | transform(s.begin(),s.end(),s.begin(),toupper); | ^~~~~
s910183313
p00020
C++
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<n;i++) using namespace std; typedef long long ll; typedef pair<int, int>P; int main() { string s; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | transform(s.begin(), s.end(), 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform(s.begin(), s.end(), 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
s489377880
p00020
C++
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<n;i++) using namespace std; typedef long long ll; typedef pair<int, int>P; int main() { string s; getline(cin, s); transform(s.begin(), s.end(), s.begin(), toupper); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | transform(s.begin(), s.end(), 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | transform(s.begin(), s.end(), 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
s743969451
p00020
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cctype> using namespace std; int main() { string st; getline(cin, st); transform(st.begin(), st.end(),st.begin(),toupper); cout << st << endl; return 0; }
a.cc: In function 'int main()': 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(st.begin(), st.end(),st.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:15:18: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(st.begin(), st.end(),st.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
s097557850
p00020
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cctype> using namespace std; int main() { string st; while (getline(cin, st)) { transform(st.begin(), st.end(), st.begin(), toupper); cout << st << endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:26: 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(st.begin(), st.end(), st.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:15:26: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(st.begin(), st.end(), st.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
s292158347
p00020
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cctype> using namespace std; int main() { string st; while (getline(cin, st)) { transform(st.begin(), st.end(), st.begin(), toupper); cout << st << endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:26: 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(st.begin(), st.end(), st.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:15:26: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(st.begin(), st.end(), st.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
s252213856
p00020
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cctype> using namespace std; int main() { string st; while (getline(cin, st)) { transform(st.begin(), st.end(), st.begin(), toupper); cout << st << endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:26: 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(st.begin(), st.end(), st.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:15:26: note: couldn't deduce template parameter '_UnaryOperation' 15 | transform(st.begin(), st.end(), st.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
s694659360
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); transform(word.begin(), word.end(), word.begin(), toupper); cout << word << 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(word.begin(), word.end(), word.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(word.begin(), word.end(), word.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
s531172252
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); transform(word.begin(), word.end(), word.begin(), toupper); cout << word << 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(word.begin(), word.end(), word.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(word.begin(), word.end(), word.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
s492432307
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); transform(word.begin(), word.end(), word.begin(), toupper); cout << word << 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(word.begin(), word.end(), word.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(word.begin(), word.end(), word.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
s218287398
p00020
C++
#include<iostream> #include<string> #include<cstdlib> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); transform(word.begin(), word.end(), word.begin(), toupper); cout << word << 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(word.begin(), word.end(), word.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(word.begin(), word.end(), word.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
s550130521
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); transform(word.begin(), word.end(), word.begin(), toupper); cout << word << 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(word.begin(), word.end(), word.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(word.begin(), word.end(), word.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
s073153445
p00020
C++
#include<iostream> #include<string> #include<algorithm> int main(){ std::string word, ans; std::getline(cin, word); std::transform(word.begin(), word.end(), word.begin(), toupper); std::cout << word << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 9 | std::getline(cin, word); | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | std::cout << word << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s801636551
p00020
C++
#include<iostream> #include<string> #include<algorithm> int main(){ std::string word, ans; std::getline(cin, word); std::transform(word.begin(), word.end(), word.begin(), toupper); std::cout << word << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 9 | std::getline(cin, word); | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~
s982329472
p00020
C++
#include<iostream> #include<string> #include<algorithm> int main(){ std::string word, ans; getline(cin, word); std::transform(word.begin(), word.end(), word.begin(), toupper); std::cout << word << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:9:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 9 | getline(cin, word); | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~
s835460598
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string word, ans; getline(cin, word); std::transform(word.begin(), word.end(), word.begin(), toupper); cout << word << endl; return 0; }
a.cc: In function 'int main()': a.cc:11: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>)' 11 | std::transform(word.begin(), word.end(), word.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:23: note: couldn't deduce template parameter '_UnaryOperation' 11 | std::transform(word.begin(), word.end(), word.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
s328636907
p00020
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdlib> using namespace std; int main() { char sta[210]; cin.getline(sta, 210); string sa = sta; transform(sa.begin(), sa.end(), sa.begin(), toupper); cout << sa << 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(sa.begin(), sa.end(), sa.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(sa.begin(), sa.end(), sa.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
s465348993
p00020
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdlib> using namespace std; int main() { char sta[210]; cin.getline(sta, 210); string sa = sta; transform(sa.begin(), sa.end(), sa.begin(), toupper); cout << sa << 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(sa.begin(), sa.end(), sa.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(sa.begin(), sa.end(), sa.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
s945969987
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { char sta[210]; cin.getline(sta, 210); string sa = sta; transform(sa.begin(), sa.end(), sa.begin(), toupper); cout << sa << 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(sa.begin(), sa.end(), sa.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(sa.begin(), sa.end(), sa.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
s323217865
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { char sta[210]; cin.getline(sta, 210); string sa = sta; transform(sa.begin(), sa.end(), sa.begin(), toupper); cout << sa << 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(sa.begin(), sa.end(), sa.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:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(sa.begin(), sa.end(), sa.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
s192266703
p00020
C++
#include<stdio.h> #include<string.h> int main() { char a[220]; gets(a); for(int i=0; a[i]!='\0'; i++) { if(a[i]>=97 && a[i]<=122){ a[i]=a[i]-32; } } printf("%s\n",a); return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw
s688760959
p00020
C++
#include <stdio.h> int main () { char inp [210]; gets(inp); for (int i=0; inp[i]; ++i) { if (inp[i] >= 'a' && inp[i] <= 'z') { inp[i] = inp[i] - 'a' + 'A'; } } puts (inp); 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(inp); | ^~~~ | getw
s742172104
p00020
C++
#include <stdio.h> #include <string.h> int main () { char str[200]; gets (str); int length = strlen (str); for (int i = 0; i < length; i++) { if (str [i] >= 'a' && str [i] <= 'z') str [i] -= 32; } puts(str); return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets (str); | ^~~~ | getw
s337292474
p00020
C++
#include <stdio.h> #include <string.h> int main () { char str[200]; while (gets (str)) { int length = strlen (str); for (int i = 0; i < length; i++) { if (str [i] >= 'a' && str [i] <= 'z') str [i] -= 32; } puts(str); } return 0; }
a.cc: In function 'int main()': a.cc:8:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | while (gets (str)) | ^~~~ | getw
s964620615
p00020
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << 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(str.begin(), str.end(), str.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:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(str.begin(), str.end(), str.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
s164240180
p00020
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << 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(str.begin(), str.end(), str.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:12:18: note: couldn't deduce template parameter '_UnaryOperation' 12 | transform(str.begin(), str.end(), str.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
s153282992
p00020
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a; getline(cin, a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; char t; cin >> t; return 0; }
a.cc: In function 'int main()': a.cc:8: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>)' 8 | 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:8:18: 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
s998127267
p00020
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; cin >> a; transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | 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
s151422782
p00020
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; cin >> a; transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | 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
s382373195
p00020
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; getline(cin,a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | 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
s640486823
p00020
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; getline(cin,a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | 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
s542603651
p00020
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; getline(cin,a); transform(a.begin(), a.end(), a.begin(), toupper); cout << a << endl; return 0; }
a.cc: In function 'int main()': a.cc:9: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>)' 9 | 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:9:18: note: couldn't deduce template parameter '_UnaryOperation' 9 | 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
s237420111
p00020
C++
#include <bits/stdc++.h> #define r(i,n) for(int i;i<n;i++) using namespace std; int main(){ sring s; getline(cin,s); r(i,s.size())cout<<touppr(s[i]); cout<<endl; }
a.cc: In function 'int main()': a.cc:5:3: error: 'sring' was not declared in this scope 5 | sring s; | ^~~~~ a.cc:6:15: error: 's' was not declared in this scope 6 | getline(cin,s); | ^ a.cc:7:22: error: 'touppr' was not declared in this scope; did you mean 'toupper'? 7 | r(i,s.size())cout<<touppr(s[i]); | ^~~~~~ | toupper
s462477953
p00020
C++
#include <bits/stdc++.h> #define r(i,n) for(int i;i<n;i++) using namespace std; int main(){ string s; getline(cin,s); r(i,s.size())cout<<touppr(s[i]); cout<<endl; }
a.cc: In function 'int main()': a.cc:7:22: error: 'touppr' was not declared in this scope; did you mean 'toupper'? 7 | r(i,s.size())cout<<touppr(s[i]); | ^~~~~~ | toupper
s266625521
p00020
C++
#include <iostream> #include <string> #include <cstdlib> #include <cctype> #include <algorithm> using namespace std; int main() { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; }
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(str.begin(), str.end(), str.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:5: /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(str.begin(), str.end(), str.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
s865152615
p00020
C++
#include <iostream> #include <string> #include <cstdlib> #include <cctype> #include <algorithm> #include<string.h> #include <numeric> using namespace std; int main() { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; }
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(str.begin(), str.end(), str.begin(), toupper); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from a.cc:5: /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(str.begin(), str.end(), str.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
s436540014
p00020
C++
#include "bits/stdc++.h" using namespace std; int main() { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), toupper); cout << str << endl; }
a.cc: In function 'int main()': a.cc:7: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>)' 7 | transform(str.begin(), str.end(), str.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:18: note: couldn't deduce template parameter '_UnaryOperation' 7 | transform(str.begin(), str.end(), str.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
s155426290
p00020
C++
#include<ctype.h> #include<stdio.h> #include<string.h> int main() { char m[256]; gets(m); for(int i=0;i<strlen(m);i++){ if(islower(m[i])){ m[i]=toupper(m[i]); } } printf("%s\n",m); return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(m); | ^~~~ | getw
s309903667
p00020
C++
#include<iostream> using namespace std; int main() { char s[200]; cin >> s; for (int a = 0; a < strlen(s); a++) { s[a] = s[a] - 32; cout << s[a]; } cout << endl; }
a.cc: In function 'int main()': a.cc:8:29: error: 'strlen' was not declared in this scope 8 | for (int a = 0; a < strlen(s); a++) { | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> 2 | using namespace std;
s747388663
p00020
C++
#include <iostream> #include<algorithm> #include<set> #include<string> using namespace std; int main(int argc, char** argv) { char s[201]; gets(s); for(int i=0;s[i]!='\0';i++) { if(isalpha(s[i])) s[i]=toupper(s[i]); } for(int i=0;s[i]!='\0';i++) cout<<s[i]; cout<<endl; return 0; }
a.cc: In function 'int main(int, char**)': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(s); | ^~~~ | getw
s568501320
p00020
C++
main(c){for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(c){for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | ^
s235223139
p00020
C++
main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | ^~~~ a.cc: In function 'int main()': a.cc:1:22: error: 'getchar' was not declared in this scope 1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | ^~~~~~~ a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} a.cc:1:38: error: 'putchar' was not declared in this scope; did you mean 'char'? 1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | ^~~~~~~ | char