submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s859054637 | p03737 | C++ | program prob1
implicit none
character(1) :: a, b, c
character(3) :: s
read(*,*) a, b, c
s = achar(iachar('A') + iachar(a) - iachar('a'))
s = s(1:1) // achar(iachar('A') + iachar(b) - iachar('a'))
s = s(1:2) // achar(iachar('A') + iachar(c) - iachar('a'))
write(*,'(a)') s
stop
contains
end program prob1 | a.cc:10:13: warning: multi-character character constant [-Wmultichar]
10 | write(*,'(a)') s
| ^~~~~
a.cc:1:1: error: 'program' does not name a type
1 | program prob1
| ^~~~~~~
|
s650745054 | p03737 | Java | import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scn = new Scanner(System.in);
BigInteger a = scn.nextBigInteger();
BigInteger b = scn.nextBigInteger();
if(a.subtract(b)>0){
System.out.println("GREATER");
}else if(a.subtract(b)<0){
System.out.println("LESS");
}else{
System.out.println("EQUAL");
}
}
}
| Main.java:9: error: bad operand types for binary operator '>'
if(a.subtract(b)>0){
^
first type: BigInteger
second type: int
Main.java:11: error: bad operand types for binary operator '<'
}else if(a.subtract(b)<0){
^
first type: BigInteger
second type: int
2 errors
|
s159351333 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'A' was not declared in this scope
7 | cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
| ^
|
s757923322 | p03737 | C++ | #include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
string S,T,U;
cin>>S>>T>>U;
X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
cout<<X;
return 0;} | a.cc:50:11: warning: multi-character character constant [-Wmultichar]
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^~~~
a.cc:50:23: warning: multi-character character constant [-Wmultichar]
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^~~~
a.cc:50:35: warning: multi-character character constant [-Wmultichar]
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^~~~
a.cc: In function 'int main()':
a.cc:50:3: error: 'X' was not declared in this scope
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^
|
s506292285 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string str = s1[0]+s2[0]+s3[0];
transform(str.begin(), str.end(),str.begin(), ::toupper);
cout<<str<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string str = s1[0]+s2[0]+s3[0];
|
s343870049 | p03737 | C++ | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.begin(), toupper);
cout << a.begin() << b.begin() << c.begin() << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:14: note: couldn't deduce template parameter '_UnaryOperation'
10 | transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:11:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:11:14: note: couldn't deduce template parameter '_UnaryOperation'
11 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:12:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
12 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:12:14: note: couldn't deduce template parameter '_UnaryOperation'
12 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:14:10: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::__cxx11::basic_string<char>::iterator')
14 | cout << a.begin() << b.begin() << c.begin() << endl;
| ~~~~ ^~ ~~~~~~~~~
| | |
| | std::__cxx11::basic_string<char>::iterator
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/iostream:41,
from a.cc:3:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>::iterator' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>::iterator' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>: |
s341195774 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
a[0]'A'-'a';
b[0]'A'-'a';
c[0]'A'-'a';
cout << a[0] << b[0] << c[0];
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'A'
7 | a[0]'A'-'a';
| ^~~
| ;
a.cc:7:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
7 | a[0]'A'-'a';
| ^
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
1265 | operator[](size_type __pos)
| ^~~~~~~~
a.cc:8:7: error: expected ';' before 'A'
8 | b[0]'A'-'a';
| ^~~
| ;
a.cc:8:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
8 | b[0]'A'-'a';
| ^
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
1265 | operator[](size_type __pos)
| ^~~~~~~~
a.cc:9:7: error: expected ';' before 'A'
9 | c[0]'A'-'a';
| ^~~
| ;
a.cc:9:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
9 | c[0]'A'-'a';
| ^
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
1265 | operator[](size_type __pos)
| ^~~~~~~~
|
s312930839 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t, u;
cin >> s >> t >> u;
cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
} | a.cc: In function 'int main()':
a.cc:8:66: error: expected ';' before 'endl'
8 | cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
| ^~~~~
| ;
|
s294536560 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
signed main(){
string s1, s2, s3, d = 'A' - 'a';
cin >> s1 >> s2 >> s3;
printf("%c%c%c\n", s1[0] + d, s2[0] + d, s3[0] + d);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:37: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
5 | string s1, s2, s3, d = 'A' - 'a';
| ~~~~^~~~~
|
s329918929 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
string a , b , c ;
cin >> a >> b >> c ;
char dif = ’A ’ - ’a ’;
printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
return 0;
} | a.cc:7:12: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc:7:19: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc:7:22: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00002019A' was not declared in this scope
7 | char dif = ’A ’ - ’a ’;
| ^~
a.cc:8:9: warning: unknown escape sequence: '\040'
8 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
| ^~~~~~~~~~~~~~~~~~
|
s729757194 | p03737 | C | #include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), ::toupper);
transform(b.begin(), b.end(), b.begin(), ::toupper);
transform(c.begin(), c.end(), c.begin(), ::toupper);
cout << a[0] << b[0] << c[0] << endl;
return 0;
} | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s077608451 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
}
| a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:20: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:30: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:34: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:44: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:48: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
|
s143209732 | p03737 | C++ | #include bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
}
| a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h>
| ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | #include bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a >> b >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #include bits/stdc++.h>
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:10:3: error: 'cout' was not declared in this scope
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:16: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:20: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:30: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:34: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:44: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:48: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:53: error: 'endl' was not declared in this scope
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #include bits/stdc++.h>
|
s336929930 | p03737 | C++ | #include bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
} | a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h>
| ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | #include bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a >> b >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #include bits/stdc++.h>
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:10:3: error: 'cout' was not declared in this scope
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:16: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:20: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:30: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:34: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:44: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:48: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^
a.cc:10:53: error: 'endl' was not declared in this scope
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #include bits/stdc++.h>
|
s295421637 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[100],b[100];
long long int i,c=0;
gets(a);
b[c]=a[0];
c++;
for(i=0;i<(sizeof(a));i++)
{
if(isspace(a[i]))
{
b[c]=a[i+1];
c++;
}
}
strupr(b);
puts(b);
}
| 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
a.cc:18:5: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
18 | strupr(b);
| ^~~~~~
| strstr
|
s844004202 | p03737 | C++ | #include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
char a[100],b[100];
long long int i,c=0;
gets(a);
b[c]=a[0];
c++;
for(i=0;i<(sizeof(a));i++)
{
if(isspace(a[i]))
{
b[c]=a[i+1];
c++;
}
}
strupr(b);
puts(b);
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
a.cc:20:5: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
20 | strupr(b);
| ^~~~~~
| strstr
|
s613275669 | p03737 | C++ | #include<stdio.h>
#include<string.h>
#define N 10
int main()
{
char s1[10],s2[10],s3[10];
gets(s1);
gets(s2);
gets(s3);
char dif = 'A'-'a';
printf("%c%c%c",s1[0]+dif,s2[0]+dif,s3[0]+dif);
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s1);
| ^~~~
| getw
|
s374993766 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int>data(N);
int y;
cin >> y;
data.at(0)=y;
for(int i=1;i<N;i++){
int x;
cin >> x;
data.at(i)=data.at(i-1)+x;
}
int64_t sei_ans=0;
int64_t hu_ans=0;
int64_t zyoutai=0;
for(int i=0;i<N;i++){
if(i%2==0){
int64_t a=max(0,1-data.at(i)-zyoutai);
zyoutai+=a;
sei_ans+=a;
}
else{
int64_t a=max(0,1+data.at(i)+zyoutai);
zyoutai-=a;
sei_ans+=a;
}
}
zyoutai=0;
for(int i=0;i<N;i++){
if(i%2!=0){
int64_t a=max(0,1-data.at(i)-zyoutai);
zyoutai+=a;
hu_ans+=a;
}
else{
int64_t a=max(0,1+data.at(i)+zyoutai);
zyoutai-=a;
hu_ans+=a;
}
}
cout << min(sei_ans,hu_ans) << endl;
}
| a.cc: In function 'int main()':
a.cc:21:20: error: no matching function for call to 'max(int, int64_t)'
21 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
a.cc:21:20: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'int64_t' {aka 'long int'})
21 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5706 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed:
a.cc:21:20: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
21 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:26:20: error: no matching function for call to 'max(int, int64_t)'
26 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
a.cc:26:20: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'int64_t' {aka 'long int'})
26 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5706 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed:
a.cc:26:20: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
26 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:34:20: error: no matching function for call to 'max(int, int64_t)'
34 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
a.cc:34:20: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'int64_t' {aka 'long int'})
34 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5706 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed:
a.cc:34:20: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
34 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:39:20: error: no matching function for call to 'max(int, int64_t)'
39 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
a.cc:39:20: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'int64_t' {aka 'long int'})
39 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5706 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed:
a.cc:39:20: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
39 | int64_t a=max(0,1+data.at(i)+zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
|
s979334745 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
if(a.at(0)=='a'){
cout << "A";
}
else if(a.at(0)=='b'){
cout << "B"
}
else if(a.at(0)=='c'){
cout << "C";
}
else if(a.at(0)=='d'){
cout << "D";
}
else if(a.at(0)=='e'){
cout << "E";
}
else if(a.at(0)=='f'){
cout << "F";
}
else if(a.at(0)=='g'){
cout << "G";
}
else if(a.at(0)=='h'){
cout << "H";
}
else if(a.at(0)=='i'){
cout << "I";
}
else if(a.at(0)=='j'){
cout << "J";
}
else if(a.at(0)=='k'){
cout << "K";
}
else if(a.at(0)=='l'){
cout << "L";
}
else if(a.at(0)=='m'){
cout << "M";
}
else if(a.at(0)=='n'){
cout << "N";
}
else if(a.at(0)=='o'){
cout << "O";
}
else if(a.at(0)=='p'){
cout << "P";
}
else if(a.at(0)=='q'){
cout << "Q";
}
else if(a.at(0)=='r'){
cout << "R";
}
else if(a.at(0)=='s'){
cout << "S";
}
else if(a.at(0)=='t'){
cout << "T";
}
else if(a.at(0)=='u'){
cout << "U";
}
else if(a.at(0)=='v'){
cout << "V";
}
else if(a.at(0)=='w'){
cout << "W";
}
else if(a.at(0)=='x'){
cout << "X";
}
else if(a.at(0)=='y'){
cout << "Y";
}
else if(a.at(0)=='z'){
cout << "Z";
}
if(b.at(0)=='a'){
cout << "A";
}
else if(b.at(0)=='b'){
cout << "B";
}
else if(b.at(0)=='c'){
cout << "C";
}
else if(b.at(0)=='d'){
cout << "D";
}
else if(b.at(0)=='e'){
cout << "E";
}
else if(b.at(0)=='f'){
cout << "F";
}
else if(b.at(0)=='g'){
cout << "G";
}
else if(b.at(0)=='h'){
cout << "H";
}
else if(b.at(0)=='i'){
cout << "I";
}
else if(b.at(0)=='j'){
cout << "J";
}
else if(b.at(0)=='k'){
cout << "K";
}
else if(b.at(0)=='l'){
cout << "L";
}
else if(b.at(0)=='m'){
cout << "M";
}
else if(b.at(0)=='n'){
cout << "N";
}
else if(b.at(0)=='o'){
cout << "O";
}
else if(b.at(0)=='p'){
cout << "P";
}
else if(b.at(0)=='q'){
cout << "Q";
}
else if(b.at(0)=='r'){
cout << "R";
}
else if(b.at(0)=='s'){
cout << "S";
}
else if(b.at(0)=='t'){
cout << "T";
}
else if(b.at(0)=='u'){
cout << "U";
}
else if(b.at(0)=='v'){
cout << "V";
}
else if(b.at(0)=='w'){
cout << "W";
}
else if(b.at(0)=='x'){
cout << "X";
}
else if(b.at(0)=='y'){
cout << "Y";
}
else if(b.at(0)=='z'){
cout << "Z";
}
if(c.at(0)=='a'){
cout << "A" << endl;
}
else if(c.at(0)=='b'){
cout << "B" << endl;
}
else if(c.at(0)=='c'){
cout << "C" << endl;
}
else if(c.at(0)=='d'){
cout << "D" << endl;
}
else if(c.at(0)=='e'){
cout << "E" << endl;
}
else if(c.at(0)=='f'){
cout << "F" << endl;
}
else if(c.at(0)=='g'){
cout << "G" << endl;
}
else if(c.at(0)=='h'){
cout << "H" << endl;
}
else if(c.at(0)=='i'){
cout << "I" << endl;
}
else if(c.at(0)=='j'){
cout << "J" << endl;
}
else if(c.at(0)=='k'){
cout << "K" << endl;
}
else if(c.at(0)=='l'){
cout << "L" << endl;
}
else if(c.at(0)=='m'){
cout << "M" << endl;
}
else if(c.at(0)=='n'){
cout << "N" << endl;
}
else if(c.at(0)=='o'){
cout << "O" << endl;
}
else if(c.at(0)=='p'){
cout << "P" << endl;
}
else if(c.at(0)=='q'){
cout << "Q" << endl;
}
else if(c.at(0)=='r'){
cout << "R" << endl;
}
else if(c.at(0)=='s'){
cout << "S" << endl;
}
else if(c.at(0)=='t'){
cout << "T" << endl;
}
else if(c.at(0)=='u'){
cout << "U" << endl;
}
else if(c.at(0)=='v'){
cout << "V" << endl;
}
else if(c.at(0)=='w'){
cout << "W" << endl;
}
else if(c.at(0)=='x'){
cout << "X" << endl;
}
else if(c.at(0)=='y'){
cout << "Y" << endl;
}
else if(c.at(0)=='z'){
cout << "Z" << endl;
}
} | a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
11 | cout << "B"
| ^
| ;
12 | }
| ~
|
s156367666 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
int a.at(0)-=32;
int b.at(0)-=32;
int c.at(0)-=32;
cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
} | a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '.' token
6 | int a.at(0)-=32;
| ^
a.cc:7:8: error: expected initializer before '.' token
7 | int b.at(0)-=32;
| ^
a.cc:8:8: error: expected initializer before '.' token
8 | int c.at(0)-=32;
| ^
a.cc:9:19: error: expected primary-expression before 'char'
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^~~~
a.cc:9:23: error: expression cannot be used as a function
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^
a.cc:9:36: error: expected primary-expression before 'char'
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^~~~
a.cc:9:40: error: expression cannot be used as a function
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^
a.cc:9:53: error: expected primary-expression before 'char'
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^~~~
a.cc:9:57: error: expression cannot be used as a function
9 | cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
| ^
|
s284775010 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
for(int i=0;i<3;i++){
string a
a.at(0)+='A'-'a';
cout << a.at(0);
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'a'
7 | a.at(0)+='A'-'a';
| ^
a.cc:8:11: error: 'a' was not declared in this scope
8 | cout << a.at(0);
| ^
|
s139131776 | p03737 | C++ | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;
using Graph = vector<vector<int>>;
// int ctoi(const char c){
// if('0' <= c && c <= '9') return (c-'0');
// return -1;
// }
// int gcd(int a, int b){
// int ma = max(a,b);
// int mi = min(a,b);
// if(mi == 0) return ma;
// return gcd(mi, ma%mi);
// }
// llong POW(llong a, llong b){
// if(b == 0) return 1;
// else{
// if(b%2 == 0) return POW(a * a % MOD, b / 2) % MOD;
// else return a * POW(a * a % MOD, b / 2) % MOD;
// }
// }
int main(){
string A, B, C;
cin >> A >> B >> C;
string S;
S[0] = A[0]; S[1] = B[0]; S[2] = C[0];
transform(S.cbegin(), S.cend(), S.begin(), toupper);
cout << S << endl;
} | a.cc: In function 'int main()':
a.cc:39:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
39 | transform(S.cbegin(), S.cend(), S.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:39:12: note: couldn't deduce template parameter '_UnaryOperation'
39 | transform(S.cbegin(), S.cend(), S.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s268294382 | p03737 | C++ | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;
using Graph = vector<vector<int>>;
// int ctoi(const char c){
// if('0' <= c && c <= '9') return (c-'0');
// return -1;
// }
// int gcd(int a, int b){
// int ma = max(a,b);
// int mi = min(a,b);
// if(mi == 0) return ma;
// return gcd(mi, ma%mi);
// }
// llong POW(llong a, llong b){
// if(b == 0) return 1;
// else{
// if(b%2 == 0) return POW(a * a % MOD, b / 2) % MOD;
// else return a * POW(a * a % MOD, b / 2) % MOD;
// }
// }
int main(){
string A, B, C;
cin >> A >> B >> C;
string S;
S[0] = A[0]; S[1] = B[0]; S[2] = C[0];
transform(S.begin(), S.end(), S.begin(), toupper);
cout << S << endl; | a.cc: In function 'int main()':
a.cc:39:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
39 | 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:39:12: note: couldn't deduce template parameter '_UnaryOperation'
39 | 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
a.cc:40:21: error: expected '}' at end of input
40 | cout << S << endl;
| ^
a.cc:34:11: note: to match this '{'
34 | int main(){
| ^
|
s917337034 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
const string s=abcdefghijklmnopqrstuvwxyz;
const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
string ss[3];
cin>>ss[0]>>ss[1]>>ss[2];
string ans;
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(ss[i].at(0)==s[j]){
ans+=S[j];
}
}
}
cout<<ans<<endl;
}
| a.cc: In function 'int main()':
a.cc:5:18: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
5 | const string s=abcdefghijklmnopqrstuvwxyz;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:18: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
6 | const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
|
s807216456 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
const string s=abcdefghijklmnopqrstuvwxyz;
const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
int main(){
string ss[3];
cin>>ss[0]>>ss[1]>>ss[2];
string ans;
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(ss[i].at(0)==s[j]){
ans+=S[j];
}
}
}
cout<<ans<<endl;
} | a.cc:3:16: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
3 | const string s=abcdefghijklmnopqrstuvwxyz;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:4:16: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
4 | const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
|
s015860291 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), std::toupper);
}
cout << s[0][0] << s[1][0] << s[2][0] << endl;
} | a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(s[i].begin(), s[i].end(), s[i].begin(), std::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:17: note: couldn't deduce template parameter '_UnaryOperation'
11 | transform(s[i].begin(), s[i].end(), s[i].begin(), std::toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s460973934 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
}
cout << s[0][0] << s[1][0] << s[2][0] << endl;
} | a.cc: In function 'int main()':
a.cc:11:65: error: no matching function for call to 'toupper()'
11 | transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
| ~~~~~~~^~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46,
from /usr/include/c++/14/istream:40,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
2687 | toupper(_CharT __c, const locale& __loc)
| ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate expects 2 arguments, 0 provided
In file included from /usr/include/c++/14/cctype:42,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)'
125 | extern int toupper (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:125:12: note: candidate expects 1 argument, 0 provided
|
s084636239 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), toupper);
}
cout << s[0][0] << s[1][0] << s[2][0] << endl;
} | a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(s[i].begin(), s[i].end(), s[i].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:17: note: couldn't deduce template parameter '_UnaryOperation'
11 | transform(s[i].begin(), s[i].end(), s[i].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
|
s694883663 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string s1big = transform(s1.begin(),s1.end(),s1.begin(),toupper);
string s2big = transform(s2.begin(),s2.end(),s2.begin(),toupper);
string s3big = transform(s3.begin(),s3.end(),s3.begin(),toupper);
cout << s1big[0] << s2big[0] << s3big[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:8:27: 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 | string s1big = transform(s1.begin(),s1.end(),s1.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:27: note: couldn't deduce template parameter '_UnaryOperation'
8 | string s1big = transform(s1.begin(),s1.end(),s1.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9:27: 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 | string s2big = transform(s2.begin(),s2.end(),s2.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:27: note: couldn't deduce template parameter '_UnaryOperation'
9 | string s2big = transform(s2.begin(),s2.end(),s2.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10:27: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | string s3big = transform(s3.begin(),s3.end(),s3.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:27: note: couldn't deduce template parameter '_UnaryOperation'
10 | string s3big = transform(s3.begin(),s3.end(),s3.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s310822576 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
string s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
string s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
cout << s1big[0] << s2big[0] << s3big[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:8:27: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
8 | string s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:27: note: couldn't deduce template parameter '_OIter'
8 | string s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9:27: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
9 | string s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:27: note: couldn't deduce template parameter '_OIter'
9 | string s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10:27: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
10 | string s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:27: note: couldn't deduce template parameter '_OIter'
10 | string s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s194283038 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
cout << s1big[0] << s2big[0] << s3big[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 's1big' was not declared in this scope
8 | s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ^~~~~
a.cc:8:20: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
8 | s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:20: note: couldn't deduce template parameter '_OIter'
8 | s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9:3: error: 's2big' was not declared in this scope
9 | s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
| ^~~~~
a.cc:9:20: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
9 | s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:20: note: couldn't deduce template parameter '_OIter'
9 | s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10:3: error: 's3big' was not declared in this scope
10 | s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
| ^~~~~
a.cc:10:20: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
10 | s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:20: note: couldn't deduce template parameter '_OIter'
10 | s3big = transform(s3.begin(),s3.end(),s3.begin,toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s327920005 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < n; i++)
#define lrep(i,n,m) for(int i = n; i < m; i++)
using ll = long long;
using Vii = vector<vector<int> >;
using Gjudge = vector<vector<bool>>;
using Vi = vector<int>;
using Vl = vector<ll>;
using Vs = vector<string>;
using Vb = vector<bool>;
using the = pair<int, int>;
const int Mod = static_cast<int>(1e9 + 7);
const int INF = INT_MAX;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,1,0,-1 };
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(),toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:24: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>)'
24 | transform(a.begin(), a.end(), a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc: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:24:18: note: couldn't deduce template parameter '_UnaryOperation'
24 | transform(a.begin(), a.end(), a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:25: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>)'
25 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:25:18: note: couldn't deduce template parameter '_UnaryOperation'
25 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:26: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>)'
26 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:26:18: note: couldn't deduce template parameter '_UnaryOperation'
26 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s155261753 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <climits>
#include <vector>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#include <new>
#include <cstdint>
#include <cctype>
using namespace std;
#define rep(i,n) for(int i = 0; i < n; i++)
#define lrep(i,n,m) for(int i = n; i < m; i++)
using ll = long long;
using Vii = vector<vector<int> >;
using Gjudge = vector<vector<bool>>;
using Vi = vector<int>;
using Vl = vector<ll>;
using Vs = vector<string>;
using Vb = vector<bool>;
using the = pair<int, int>;
const int Mod = static_cast<int>(1e9 + 7);
const int INF = INT_MAX;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,1,0,-1 };
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(),toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << endl;
}
| a.cc: In function 'int main()':
a.cc: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(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:38:18: note: couldn't deduce template parameter '_UnaryOperation'
38 | transform(a.begin(), a.end(), a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:39: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>)'
39 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:39:18: note: couldn't deduce template parameter '_UnaryOperation'
39 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:40: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>)'
40 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:40:18: note: couldn't deduce template parameter '_UnaryOperation'
40 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s898894047 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <climits>
#include <vector>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#include <new>
#include <cstdint>
using namespace std;
#define rep(i,n) for(int i = 0; i < n; i++)
#define lrep(i,n,m) for(int i = n; i < m; i++)
using ll = long long;
using Vii = vector<vector<int> >;
using Gjudge = vector<vector<bool>>;
using Vi = vector<int>;
using Vl = vector<ll>;
using Vs = vector<string>;
using Vb = vector<bool>;
using the = pair<int, int>;
const int Mod = static_cast<int>(1e9 + 7);
const int INF = INT_MAX;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,1,0,-1 };
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(),toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << endl;
}
| a.cc: In function 'int main()':
a.cc: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(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:38:18: note: couldn't deduce template parameter '_UnaryOperation'
38 | transform(a.begin(), a.end(), a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:39: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>)'
39 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:39:18: note: couldn't deduce template parameter '_UnaryOperation'
39 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:40: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>)'
40 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:40:18: note: couldn't deduce template parameter '_UnaryOperation'
40 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s450115705 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
#define MODSIZE 1000000007
int main(){
int a[13],b[13],c[13];
scanf("%s %s %s", a, b, c);
printf("%c%c%c\n", a[0] - 'a' + 'A', b[0] - 'a' + 'A', c[0] - 'a' + 'A')
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:75: error: expected ';' before 'return'
12 | printf("%c%c%c\n", a[0] - 'a' + 'A', b[0] - 'a' + 'A', c[0] - 'a' + 'A')
| ^
| ;
13 |
14 | return 0;
| ~~~~~~
|
s605349835 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> AAA={"a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
vector<string> BBB={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
for(int i=0; i<3; i++){
string x;
cin >> x;
for(int j=0; j<25; j++){
if(x.at(0)==AAA.at(j)){
cout << BBB.at(j) ;
}
}
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:13:17: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
13 | if(x.at(0)==AAA.at(j)){
| ~~~~~~~^~~~~~~~~~~
| | |
| | __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
| __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::__cxx11::match_results<_BiIter, _Alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::pair<_T1, _T2>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/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:13:27: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/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:13:27: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
/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:13:27: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
13 | if(x.at(0)==AAA.at(j)){
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:13:27: note: mismatched types 'const std::fpos<_StateT>' and '__gnu_cxx::__alloc_tra |
s234482624 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
for(int i=0; i<3; i++){
string x;
cin >> x;
for(int j=0; j<25; j++){
if(x==a.at(j)){
cout << b.at(j) ;
}
}
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:6:23: error: 'b' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:25: error: 'c' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:27: error: 'd' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:29: error: 'e' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:31: error: 'f' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:33: error: 'g' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:35: error: 'h' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:37: error: 'i' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:39: error: 'j' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:41: error: 'k' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:43: error: 'l' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:45: error: 'm' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:47: error: 'n' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:49: error: 'o' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:51: error: 'p' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:53: error: 'q' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:55: error: 'r' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:57: error: 's' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:59: error: 't' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:61: error: 'u' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:63: error: 'v' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:65: error: 'w' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:67: error: 'x' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:69: error: 'y' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:71: error: 'z' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:72: error: could not convert '{a, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
| |
| <brace-enclosed initializer list>
a.cc:7:21: error: 'A' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:23: error: 'B' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:25: error: 'C' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:27: error: 'D' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:29: error: 'E' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:31: error: 'F' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:33: error: 'G' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:35: error: 'H' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:37: error: 'I' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:39: error: 'J' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:41: error: 'K' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:43: error: 'L' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:45: error: 'M' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:47: error: 'N' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:49: error: 'O' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:51: error: 'P' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:53: error: 'Q' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:55: error: 'R' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:57: error: 'S' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:59: error: 'T' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:61: error: 'U' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:63: error: 'V' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:65: error: 'W' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
| ^
a.cc:7:67: error: 'X' was not declared in this scope
7 | vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
|
s186079178 | p03737 | C++ | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), __toupper);
transform(s2.begin(), s2.end(), s2.begin(), __toupper);
transform(s3.begin(), s3.end(), s3.begin(), __toupper);
cout << s1.at(0) << s2.at(0) << s3.at(0) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:49: error: '__toupper' was not declared in this scope; did you mean '_toupper'?
10 | transform(s1.begin(), s1.end(), s1.begin(), __toupper);
| ^~~~~~~~~
| _toupper
|
s159407588 | p03737 | C++ | s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
puts s1[0] + s2[0] + s3[0]
| a.cc:1:1: error: 's1' does not name a type
1 | s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
| ^~
|
s664189202 | p03737 | C++ | z | a.cc:1:1: error: 'z' does not name a type
1 | z
| ^
|
s142055073 | p03737 | C++ | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <iomanip>
using namespace std;
using ll = long long;
#define rep(i,N) for(int i=0;i<(int)N;++i)
ll GCD(ll x, ll y) {
if (y == 0) return x;
else return GCD(y, x % y);
}
int main()
{
string s, t, u;
cin >> s >> t >> u;
string S;
S.push_back(s[0]);
S.push_back(t[0]);
S.push_back(u[0]);
transform(S.begin(), S.end(), S.begin(), toupper);
cout << S << endl;
} | a.cc: In function 'int main()':
a.cc:41:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
41 | transform(S.begin(), S.end(), S.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:41:14: note: couldn't deduce template parameter '_UnaryOperation'
41 | 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
|
s371271589 | p03737 | C++ | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <iomanip>
using namespace std;
using ll = long long;
#define rep(i,N) for(int i=0;i<(int)N;++i)
ll GCD(ll x, ll y) {
if (y == 0) return x;
else return GCD(y, x % y);
}
int main()
{
string s, t, u;
cin >> s >> t >> u;
string S;
S.push_back(s[0]);
S.push_back(t[0]);
S.push_back(u[0]);
transform(S.begin(), S.end(), S.begin(), toupper);
cout << S << endl;
} | a.cc: In function 'int main()':
a.cc:41:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
41 | transform(S.begin(), S.end(), S.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:41:14: note: couldn't deduce template parameter '_UnaryOperation'
41 | 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
|
s563112764 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x , y , z ;
cin >> x >> y >> z ;
X = x[0] + 26 ;
Y = y[0] + 26 ;
Z = z[0] + 26 ;
cout << x << y << z << endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
8 | X = x[0] + 26 ;
| ^
a.cc:9:3: error: 'Y' was not declared in this scope
9 | Y = y[0] + 26 ;
| ^
a.cc:10:3: error: 'Z' was not declared in this scope
10 | Z = z[0] + 26 ;
| ^
|
s968306271 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x , y , z ;
cin >> x >> y >> z ;
X = x[0] + (A-a) ;
Y = y[0] + (A-a) ;
Z = z[0] + (A-a) ;
cout << xyz << endl;
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
8 | X = x[0] + (A-a) ;
| ^
a.cc:8:15: error: 'A' was not declared in this scope
8 | X = x[0] + (A-a) ;
| ^
a.cc:8:17: error: 'a' was not declared in this scope
8 | X = x[0] + (A-a) ;
| ^
a.cc:9:3: error: 'Y' was not declared in this scope
9 | Y = y[0] + (A-a) ;
| ^
a.cc:10:3: error: 'Z' was not declared in this scope
10 | Z = z[0] + (A-a) ;
| ^
a.cc:12:11: error: 'xyz' was not declared in this scope
12 | cout << xyz << endl;
| ^~~
|
s383546958 | p03737 | C++ | #include <bits/stdc++.h>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C = transform(c.begin(), c.end(), c.begin(), toupper);
cout << A[0] << B[0] << C[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:12: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>)'
12 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:12:23: note: couldn't deduce template parameter '_UnaryOperation'
12 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:13: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>)'
13 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:13:23: note: couldn't deduce template parameter '_UnaryOperation'
13 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:14: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>)'
14 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:14:23: note: couldn't deduce template parameter '_UnaryOperation'
14 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s393013526 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C = transform(c.begin(), c.end(), c.begin(), toupper);
cout << A[0] << B[0] << C[0] << endl;
}
| a.cc: In function 'int main()':
a.cc:9: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>)'
9 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_UnaryOperation'
9 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10: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>)'
10 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:23: note: couldn't deduce template parameter '_UnaryOperation'
10 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc: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 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:11:23: note: couldn't deduce template parameter '_UnaryOperation'
11 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s206432958 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C = transform(c.begin(), c.end(), c.begin(), toupper);
cout << A[0] << B[0] << C[0] << endl;
} | a.cc: In function 'int main()':
a.cc:8: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>)'
8 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:23: note: couldn't deduce template parameter '_UnaryOperation'
8 | string A = transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9: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>)'
9 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_UnaryOperation'
9 | string B = transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10: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>)'
10 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:23: note: couldn't deduce template parameter '_UnaryOperation'
10 | string C = transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s425946908 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a[0], toupper);
string B = transform(b[0], toupper);
string C = transform(c[0], toupper);
cout << A << B << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
8 | string A = transform(a[0], 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: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
a.cc:9:23: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
9 | string B = transform(b[0], toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
a.cc:10:23: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
10 | string C = transform(c[0], toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
|
s070823831 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), toupper);
string B = transform(a.begin(), toupper);
string C = transform(a.begin(), toupper);
cout << A << B << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | string A = transform(a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
a.cc:9:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | string B = transform(a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
a.cc:10:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | string C = transform(a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
|
s599705604 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
string x = a.at(0) + b.at(0) + c.at(0);
transform(x.begin(),x.end(),x.begin(),toupper);
cout << x << endl;
} | a.cc: In function 'int main()':
a.cc:6:32: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | string x = a.at(0) + b.at(0) + c.at(0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:7:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | transform(x.begin(),x.end(),x.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: couldn't deduce template parameter '_UnaryOperation'
7 | transform(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
|
s440358458 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9+7;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
string ans = s1[0] + s2[0] + s3[0];
ans = transform(ans.cbegin(), ans.cend(), ans.begin(), toupper);
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:15:36: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
15 | string ans = s1[0] + s2[0] + s3[0];
a.cc:16:24: 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>)'
16 | ans = transform(ans.cbegin(), ans.cend(), ans.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:16:24: note: couldn't deduce template parameter '_UnaryOperation'
16 | ans = transform(ans.cbegin(), ans.cend(), ans.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s171106706 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
using ll=long long;
#define print(n) cout<<n<<endl
#define rep(i,a,n) for(ll i=a;i<n;i++)
#define ALL(s) s.begin(),s.end()
#define P pair<ll,ll>
#define vl vector<ll>
#define vi vector<int>
#define vvl vector<vector<ll>>
#define vvi vector<vector<int>>
const int M=200111;
const int inf=1000000007;
const int MOD=1000000007;
const double PI = 3.1415926535897932384626433;
const long long INF=1e18;
int dx[4]={-1,0,1,0},dy[4]={0,-1,0,1};
int ddx[8]={1,-1,0,0,1,-1,-1,1},ddy[8]={0,0,1,-1,1,-1,1,-1};
struct UnionFind {
vector<int> par;
UnionFind(int n) : par(n, -1) { }
int root(int x) {
if (par[x] < 0) return x;
else return par[x] = root(par[x]);
}
bool same(int x, int y) {
return root(x) == root(y);
}
bool merge(int x, int y) {
x = root(x); y = root(y);
if (x == y) return false;
if (par[x] > par[y]) swap(x, y); // merge technique
par[x] += par[y];
par[y] = x;
return true;
}
int size(int x) {
return -par[root(x)];
}
};
vvl comb(int n) {
vvl v(n + 1,vl(n + 1, 0));
for (int i = 0; i < v.size(); i++) {
v[i][0] = 1;
v[i][i] = 1;
}
for (int j = 1; j < v.size(); j++) {
for (int k = 1; k < j; k++) {
v[j][k] = (v[j - 1][k - 1] + v[j - 1][k]);
}
}
return v;
}
void sosu(ll x,bool f[]){
ll y=x;
for(ll i=2;i<=sqrt(y);i++){
if(x%i==0){
x/=i;
f[i]=true;
i--;
}
}
}
ll __gcd(ll x,ll y){
if(x<y)swap(x,y);
while(1){
ll tmp=x%y;
x=y;
y=tmp;
if(y==0)break;
}
return x;
}
int keta(ll a){
int ke=1;
while(a/=10)ke++;
return ke;
}
vector<long long> enum_divisors(long long N) {
vector<long long> res;
for (long long i = 1; i * i <= N; ++i) {
if (N % i == 0) {
res.push_back(i);
// 重複しないならば i の相方である N/i も push
if (N/i != i) res.push_back(N/i);
}
}
// 小さい順に並び替える
sort(res.begin(), res.end());
return res;
}
ll zyou(ll x,ll n){
ll y=1;
rep(i,0,n){
y*=x;
}
return y;
}
int main() {
string s[3];
rep(i,0,3)cin>>s[i];
rep(i,0,3)transform(ALL(s[i]),s[i].begin(),toupper);
string t;
rep(i,0,3)t+=s[i][0];
print(t);
}
| a.cc: In function 'int main()':
a.cc:115:28: 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>)'
115 | rep(i,0,3)transform(ALL(s[i]),s[i].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:115:28: note: couldn't deduce template parameter '_UnaryOperation'
115 | rep(i,0,3)transform(ALL(s[i]),s[i].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
|
s378262173 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string ANS="ANS";
ANS.at(0)=A.at(0);
ANS.at(1)=B.at(0);
ANS.at(2)=C.at(0);
transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
cout<<ANS<<endl;
}
| a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation'
10 | transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s363201759 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string ANS="ANS";
ANS.at(0)=A.at(0);
ANS.at(1)=B.at(0);
ANS.at(2)=C.at(0);
transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
cout<<ANS<<endl;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation'
10 | transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s742765480 | p03737 | C++ | #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <fstream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <istream>
#include <sstream>
#include <cctype>
#define fore(i,x,y) for(long long i=x;i<y;i++)
typedef long long ll;
using namespace std;
int main()
{
string a,b,c,d;
cin >> a >> b >> c;
d.push_back(a[0]);
d.push_back(b[0]);
d.push_back(c[0]);
transform(d.cbegin(), d.cend(), d.begin(), toupper);
cout << d << endl;
} | a.cc: In function 'int main()':
a.cc:23: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>)'
23 | transform(d.cbegin(), d.cend(), d.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:23:18: note: couldn't deduce template parameter '_UnaryOperation'
23 | transform(d.cbegin(), d.cend(), d.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
|
s858460553 | p03737 | C++ | #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <fstream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <istream>
#include <sstream>
#include <cctype>
#define fore(i,x,y) for(long long i=x;i<y;i++)
typedef long long ll;
using namespace std;
int main()
{
string a,b,c,d;
cin >> a >> b >> c;
d.push_back(a[0]);
d.push_back(b[0]);
d.push_back(c[0]);
transform(d.cbegin(), d.cend(), d.begin(), toupper);
cout << d << endl;
} | a.cc: In function 'int main()':
a.cc:23: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>)'
23 | transform(d.cbegin(), d.cend(), d.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:23:18: note: couldn't deduce template parameter '_UnaryOperation'
23 | transform(d.cbegin(), d.cend(), d.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
|
s195337490 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
int god = 'a' - 'A';
cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
}
| a.cc: In function 'int main()':
a.cc:8:20: error: 'd' was not declared in this scope
8 | cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
| ^
|
s000790830 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string X,Y,Z;
cin >> X >> Y >> Z;
int god = 'a' - 'A';
cout << X[0]god+Y[0]god+Z[0]god <<endl;
}
| a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'god'
8 | cout << X[0]god+Y[0]god+Z[0]god <<endl;
| ^~~
| ;
|
s574153113 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string X,Y,Z;
cin >> X >> Y >> Z;
int god = 'a' - 'A';
cout << godX[0]+godY[0]+godZ[0] <<endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'godX' was not declared in this scope; did you mean 'god'?
8 | cout << godX[0]+godY[0]+godZ[0] <<endl;
| ^~~~
| god
a.cc:8:19: error: 'godY' was not declared in this scope; did you mean 'god'?
8 | cout << godX[0]+godY[0]+godZ[0] <<endl;
| ^~~~
| god
a.cc:8:27: error: 'godZ' was not declared in this scope; did you mean 'god'?
8 | cout << godX[0]+godY[0]+godZ[0] <<endl;
| ^~~~
| god
|
s820768933 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next().toUpperCase();
String b = sc.next().toUpperCase();
String c = sc.next().toUpperCase();
System.out.println(a.charAt(0)+""+b.charAt(0)+""+charAt(0));
}
}
| Main.java:9: error: cannot find symbol
System.out.println(a.charAt(0)+""+b.charAt(0)+""+charAt(0));
^
symbol: method charAt(int)
location: class Main
1 error
|
s786430020 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
String c = sc.next();
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
}
}
| Main.java:9: error: char cannot be dereferenced
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
^
Main.java:9: error: char cannot be dereferenced
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
^
Main.java:9: error: char cannot be dereferenced
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
^
3 errors
|
s944658723 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.begin(), toupper);
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(a.begin(), a.end(), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform(b.begin(), b.end(), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: couldn't deduce template parameter '_UnaryOperation'
10 | transform(c.begin(), c.end(), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s965749956 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(res.begin(), res.end(), res.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform(res.begin(), res.end(), res.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
|
s111177989 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), ToUpper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:9:50: error: 'ToUpper' was not declared in this scope; did you mean 'toupper'?
9 | transform(res.begin(), res.end(), res.begin(), ToUpper);
| ^~~~~~~
| toupper
|
s884990781 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.toupper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
8 | res.toupper();
| ^~~~~~~
|
s733128231 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.makeupper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'makeupper'
8 | res.makeupper();
| ^~~~~~~~~
|
s180341044 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.MakeUpper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
8 | res.MakeUpper();
| ^~~~~~~~~
|
s793519941 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.MakeUpper;
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
8 | res.MakeUpper;
| ^~~~~~~~~
|
s889812991 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
res.MakeUpper;
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
7 | string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
| ^~~
| std
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
8 | res.MakeUpper;
| ^~~~~~~~~
|
s686174298 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(res.begin(), res.end(), res.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(res.begin(), res.end(), res.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
|
s583065505 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
7 | string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
| ^~~
| std
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(res.begin(), res.end(), res.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(res.begin(), res.end(), res.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
|
s743746873 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.at(0) + b.at(0) + c.at(0);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string res = a.at(0) + b.at(0) + c.at(0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(res.begin(), res.end(), res.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(res.begin(), res.end(), res.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
|
s157464977 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.at(0) + a.at(1) + a.at(2);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string res = a.at(0) + a.at(1) + a.at(2);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(res.begin(), res.end(), res.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(res.begin(), res.end(), res.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
|
s885467754 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
7 | cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
| ^~~~~~~~
| towupper
|
s562882021 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'to_uppder' was not declared in this scope; did you mean 'towupper'?
7 | cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
| ^~~~~~~~~
| towupper
|
s220578877 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
char x,y,z;
cin>>a>>b>>c;
x='A'+(a-'a');
y='A'+(b-'a');
z='A'+(c-'a');
cout<<x<<y<<z<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:11: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | x='A'+(a-'a');
| ~^~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/bits/stl_algobase.h:67,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
618 | operator-(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1790 | operator-(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | x='A'+(a-'a');
| ^~~
In file included from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/complex:370:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const complex<_Tp>&)'
370 | operator-(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/14/complex:370:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/complex:379:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const _Tp&)'
379 | operator-(const complex<_Tp>& __x, const _Tp& __y)
| ^~~~~~~~
/usr/include/c++/14/complex:379:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/complex:388:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const _Tp&, const complex<_Tp>&)'
388 | operator-(const _Tp& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/14/complex:388:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::complex<_Tp>' and 'char'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/complex:465:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&)'
465 | operator-(const complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:465:5: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/14/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const valarray<_Tp>&)'
1197 | _DEFINE_BINARY_OPERATOR(-, __minus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1197 | _DEFINE_BINARY_OPERATOR(-, __minus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | x='A'+(a-'a');
| ^~~
/usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1197 | _DEFINE_BINARY_OPERATOR(-, __minus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::valarray<_Tp>' and 'char'
8 | x='A'+(a-'a');
| ^~~
a.cc:9:11: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | y='A'+(b-'a');
| ~^~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
618 | operator-(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: template argument deduction/substitution failed:
a.cc:9:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is |
s184278386 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
char s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'char[int]' for array subscript
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^
a.cc:8:30: error: invalid types 'char[int]' for array subscript
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^
a.cc:8:47: error: invalid types 'char[int]' for array subscript
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^
|
s072747898 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'toupper' in 's1.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^~~~~~~
a.cc:8:34: error: request for member 'toupper' in 's2.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^~~~~~~
a.cc:8:51: error: request for member 'toupper' in 's3.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^~~~~~~
|
s936836970 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'upper' in 's1.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
| ^~~~~
a.cc:8:32: error: request for member 'upper' in 's2.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
| ^~~~~
a.cc:8:47: error: request for member 'upper' in 's3.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
8 | cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
| ^~~~~
|
s080930399 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string a = A ;
transform(str.begin(), str.end(), str.begin(), ::toupper);
string b = B ;
transform(str.begin(), str.end(), str.begin(), ::toupper);
string c = C ;
transform(str.begin(), str.end(), str.begin(), ::toupper);
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
} | a.cc: In function 'int main()':
a.cc:7:15: error: 'str' was not declared in this scope; did you mean 'std'?
7 | transform(str.begin(), str.end(), str.begin(), ::toupper);
| ^~~
| std
|
s636630273 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
char di='A'-'a'
cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cout'
7 | cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;
| ^~~~
|
s018137978 | p03737 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder
{
class Program
{
static void Main(string[] args)
{
var words = Console.ReadLine().Split(' ');
var word = "";
for(var i = 0; i < words.Length; i++)
{
word += (char)(words[i][0] - ('a' - 'A'));
}
Console.WriteLine(word);
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.Linq;
| ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
4 | using System.Text;
| ^~~~~~
a.cc:10:34: error: 'string' has not been declared
10 | static void Main(string[] args)
| ^~~~~~
a.cc:10:43: error: expected ',' or '...' before 'args'
10 | static void Main(string[] args)
| ^~~~
a.cc:22:10: error: expected ';' after class definition
22 | }
| ^
| ;
a.cc: In static member function 'static void AtCoder::Program::Main(int*)':
a.cc:12:25: error: 'var' was not declared in this scope
12 | var words = Console.ReadLine().Split(' ');
| ^~~
a.cc:14:29: error: expected ';' before 'word'
14 | var word = "";
| ^~~~
a.cc:15:33: error: expected ';' before 'i'
15 | for(var i = 0; i < words.Length; i++)
| ^
a.cc:15:40: error: 'i' was not declared in this scope
15 | for(var i = 0; i < words.Length; i++)
| ^
a.cc:15:44: error: 'words' was not declared in this scope
15 | for(var i = 0; i < words.Length; i++)
| ^~~~~
a.cc:17:33: error: 'word' was not declared in this scope
17 | word += (char)(words[i][0] - ('a' - 'A'));
| ^~~~
a.cc:20:25: error: 'Console' was not declared in this scope
20 | Console.WriteLine(word);
| ^~~~~~~
a.cc:20:43: error: 'word' was not declared in this scope
20 | Console.WriteLine(word);
| ^~~~
|
s786996431 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
printf( "%c\n", toupper(s1[1]);)
printf( "%c\n", toupper(s2[1] );)
printf( "%c\n", toupper(s3[1] );)
} | a.cc: In function 'int main()':
a.cc:9:35: error: expected ')' before ';' token
9 | printf( "%c\n", toupper(s1[1]);)
| ~ ^
| )
a.cc:9:36: error: expected primary-expression before ')' token
9 | printf( "%c\n", toupper(s1[1]);)
| ^
a.cc:10:37: error: expected primary-expression before ')' token
10 | printf( "%c\n", toupper(s2[1] );)
| ^
a.cc:11:37: error: expected primary-expression before ')' token
11 | printf( "%c\n", toupper(s3[1] );)
| ^
|
s395099192 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
printf( "%c\n", toupper(s1[1]) );
printf( "%c\n", toupper(s2[1] );
printf( "%c\n", toupper(s3[1] );
} | a.cc: In function 'int main()':
a.cc:10:36: error: expected ')' before ';' token
10 | printf( "%c\n", toupper(s2[1] );
| ~ ^
| )
a.cc:11:36: error: expected ')' before ';' token
11 | printf( "%c\n", toupper(s3[1] );
| ~ ^
| )
|
s251802200 | p03737 | C++ | #include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;
int main(){
ll s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << (char)(s1[0] - 32);
cout << (char)(s2[0] - 32);
cout << (char)(s3[0] - 32) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:20: error: invalid types 'll {aka long long int}[int]' for array subscript
18 | cout << (char)(s1[0] - 32);
| ^
a.cc:19:20: error: invalid types 'll {aka long long int}[int]' for array subscript
19 | cout << (char)(s2[0] - 32);
| ^
a.cc:20:20: error: invalid types 'll {aka long long int}[int]' for array subscript
20 | cout << (char)(s3[0] - 32) << endl;
| ^
|
s886570484 | p03737 | C++ | #include<iostream>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
string str;
str+=toupper(s1[0])
str+=toupper(s2[0]);
str+=toupper(s3[0]);
cout<<str;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'str'
8 | str+=toupper(s1[0])
| ^
| ;
9 | str+=toupper(s2[0]);
| ~~~
|
s279494697 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1000000007;
int main() {
vector<string> s(3)
cin >> s[0] >> s[1] >> s[2];
string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alp="abcdefghijklmnopqrstuvwxyz";
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(s[i][0]==alp[j]){
cout << alp[j];
}
}
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
9 | cin >> s[0] >> s[1] >> s[2];
| ^~~
|
s021421443 | p03737 | C++ | #include <iostream>
using namespace std;
int main()
{
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
transform(s2.begin(), s2.end(), s2.begin(), ::toupper);
transform(s3.begin(), s3.end(), s3.begin(), ::toupper);
cout << s1[0] << s2[0] << s3[0] << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'transform' was not declared in this scope
8 | transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
| ^~~~~~~~~
|
s522824236 | p03737 | C++ | string = input().split()
ans = ""
for s in string:
ans += s[0].upper()
print(ans) | a.cc:1:1: error: 'string' does not name a type
1 | string = input().split()
| ^~~~~~
|
s991318241 | p03737 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), toupper);
transform(s2.begin(), s2.end(), s2.begin(), toupper);
transform(s3.begin(), s3.end(), s3.begin(), toupper);
cout << s1.at(0) << s2.at(0) << s3.at(0) << 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(s1.begin(), s1.end(), s1.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(s1.begin(), s1.end(), s1.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
12 | transform(s2.begin(), s2.end(), s2.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:12:18: note: couldn't deduce template parameter '_UnaryOperation'
12 | transform(s2.begin(), s2.end(), s2.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
13 | transform(s3.begin(), s3.end(), s3.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:13:18: note: couldn't deduce template parameter '_UnaryOperation'
13 | transform(s3.begin(), s3.end(), s3.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s598589864 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
transform(a.begin(),a.end(),a.begin(),toupper);
transform(b.begin(),b.end(),b.begin(),toupper);
transform(c.begin(),c.end(),c.begin(),toupper);
cout << a[0] << b[0] << c[0] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | transform(a.begin(),a.end(),a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: couldn't deduce template parameter '_UnaryOperation'
7 | transform(a.begin(),a.end(),a.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(b.begin(),b.end(),b.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(b.begin(),b.end(),b.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(c.begin(),c.end(),c.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform(c.begin(),c.end(),c.begin(),toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s433867699 | p03737 | C++ | #include <iostream>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
a[0]=toupper(a[0]);
b[0]=toupper(b[0]);
c[0]=toupper(c[0]);
cout<<a[0]<b[0]<<c[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int')
9 | cout<<a[0]<b[0]<<c[0];
| ^
a.cc:9:13: note: candidate: 'operator<(int, int)' (built-in)
9 | cout<<a[0]<b[0]<<c[0];
a.cc:9:13: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
9 | cout<<a[0]<b[0]<<c[0];
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s545250749 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <functional>
#include <iomanip>
#include <bitset>
#include <numeric>
#include <queue>
#include <map>
#include <cstdint>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
const long long mod = 1000000007;
typedef long long int ll;
typedef pair<ll, ll> P;
const vector<int> di = { -1, 0, 1, 0 };
const vector<int> dj = { 0, 1, 0, -1 };
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s.at(i);
}
string ans;
rep(i, 3) {
ans += s.at(i).at(0);
}
transform(ans.begin(), ans.end(),ans.begin(), toupper);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:33:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
33 | transform(ans.begin(), ans.end(),ans.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:33:18: note: couldn't deduce template parameter '_UnaryOperation'
33 | transform(ans.begin(), ans.end(),ans.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s553515610 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <functional>
#include <iomanip>
#include <bitset>
#include <numeric>
#include <queue>
#include <map>
#include <cstdint>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
const long long mod = 1000000007;
typedef long long int ll;
typedef pair<ll, ll> P;
const vector<int> di = { -1, 0, 1, 0 };
const vector<int> dj = { 0, 1, 0, -1 };
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s.at(i);
}
string ans;
rep(i, 3) {
ans += s.at(i).at(0);
}
transform(ans.begin(), ans.end(),ans.begin(), toupper);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:33:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
33 | transform(ans.begin(), ans.end(),ans.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:33:18: note: couldn't deduce template parameter '_UnaryOperation'
33 | transform(ans.begin(), ans.end(),ans.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s827480397 | p03737 | C++ | resident register number
| a.cc:1:1: error: 'resident' does not name a type
1 | resident register number
| ^~~~~~~~
|
s666534220 | p03737 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
char x = a[0],y = b[0],z = c[0];
x = 'A'+(x-'a');
y = 'A'+(y-'a');
z = 'A'+(z-'a');
printf("%c%c%c",x,y,z)
} | a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before '}' token
13 | printf("%c%c%c",x,y,z)
| ^
| ;
14 | }
| ~
|
s139371281 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c; cin >> a >> b >> c;
string ans = "";
ans += toupper(a[0])
ans += toupper(b[0])
ans += toupper(c[0])
cout << ans;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'ans'
8 | ans += toupper(a[0])
| ^
| ;
9 | ans += toupper(b[0])
| ~~~
|
s117279287 | p03737 | C++ | #include <iostream>
#include <algorithm>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1001001001;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string a, b, c;
cin >> a >> b >> c;
transform(all(a), a.begin(), toupper);
transform(all(b), b.begin(), toupper);
transform(all(c), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << 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(all(a), 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:19:18: note: couldn't deduce template parameter '_UnaryOperation'
19 | transform(all(a), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:20: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>)'
20 | transform(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:20:18: note: couldn't deduce template parameter '_UnaryOperation'
20 | transform(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:21: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>)'
21 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:21:18: note: couldn't deduce template parameter '_UnaryOperation'
21 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s225509991 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1001001001;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string a, b, c;
cin >> a >> b >> c;
transform(all(a), a.begin(), toupper);
transform(all(b), b.begin(), toupper);
transform(all(c), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18: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>)'
18 | transform(all(a), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:18:18: note: couldn't deduce template parameter '_UnaryOperation'
18 | transform(all(a), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc: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(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:19:18: note: couldn't deduce template parameter '_UnaryOperation'
19 | transform(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:20: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>)'
20 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:20:18: note: couldn't deduce template parameter '_UnaryOperation'
20 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s538394993 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1001001001;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string a, b, c;
cin >> a >> b >> c;
transform(all(a), a.begin(), toupper);
transform(all(b), b.begin(), toupper);
transform(all(c), c.begin(), toupper);
cout << a[0] << b[0] << c[0] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18: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>)'
18 | transform(all(a), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:18:18: note: couldn't deduce template parameter '_UnaryOperation'
18 | transform(all(a), a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc: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(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:19:18: note: couldn't deduce template parameter '_UnaryOperation'
19 | transform(all(b), b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:20: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>)'
20 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:20:18: note: couldn't deduce template parameter '_UnaryOperation'
20 | transform(all(c), c.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.