submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s315137688 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A; string B; string C;
cin>>A>>B>>C;
a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
cout<<A.at(0)<<B.at(0)<<C.at(0)<<endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:8: error: 'b' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:13: error: 'c' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:18: error: 'd' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:20: error: 'D' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:23: error: 'e' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:25: error: 'E' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:28: error: 'f' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:30: error: 'F' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:33: error: 'g' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:35: error: 'G' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:38: error: 'h' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:40: error: 'H' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:43: error: 'i' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:45: error: 'I' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:48: error: 'j' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:50: error: 'J' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:53: error: 'k' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:55: error: 'K' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:58: error: 'l' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:60: error: 'L' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:63: error: 'm' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:65: error: 'M' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:68: error: 'n' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:7:70: error: 'N' was not declared in this scope
7 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
a.cc:8:3: error: 'o' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:5: error: 'O' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:8: error: 'p' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:10: error: 'P' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:13: error: 'q' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:15: error: 'Q' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:18: error: 'r' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:20: error: 'R' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:23: error: 's' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:25: error: 'S' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:28: error: 't' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:30: error: 'T' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:33: error: 'u' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:35: error: 'U' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:38: error: 'v' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:40: error: 'V' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:43: error: 'w' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:45: error: 'W' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:48: error: 'x' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:50: error: 'X' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:53: error: 'y' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:55: error: 'Y' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:58: error: 'z' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
a.cc:8:60: error: 'Z' was not declared in this scope
8 | o=O; p=P; q=Q; r=R; s=S; t=T; u=U; v=V; w=W; x=X; y=Y; z=Z;
| ^
|
s594923911 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
char A = a[0];
char B = b[0];
char C = c[0];
cout << toupr(A) << toupr(B) << toupr(C) << endl;
} | a.cc: In function 'int main()':
a.cc:12:13: error: 'toupr' was not declared in this scope; did you mean 'toupper'?
12 | cout << toupr(A) << toupr(B) << toupr(C) << endl;
| ^~~~~
| toupper
|
s722263050 | p03737 | C++ | #include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if(a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
void print(const std::vector<int> &v) {
std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
std::cout << std::endl;
}
int main() {
REP(i, 3) {
string s;
cin >> s;
ans += toupper(s[0]);
}
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:38:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
38 | ans += toupper(s[0]);
| ^~~
| abs
a.cc:40:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
40 | cout << ans << endl;
| ^~~
| abs
|
s267624671 | p03737 | C++ | #include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if(a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
void print(const std::vector<int> &v) {
std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
std::cout << std::endl;
}
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
string ans = s1[0] + s2[0] + s3[0];
cout << toupper(ans) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:37:32: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
37 | string ans = s1[0] + s2[0] + s3[0];
a.cc:38:20: error: no matching function for call to 'toupper(std::string&)'
38 | cout << toupper(ans) << endl;
| ~~~~~~~^~~~~
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, 1 provided
In file included from /usr/include/c++/14/cctype:42,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)'
125 | extern int toupper (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:125:25: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
125 | extern int toupper (int __c) __THROW;
| ~~~~^~~
|
s087100698 | p03737 | C++ | #include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if(a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
void print(const std::vector<int> &v) {
std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
std::cout << std::endl;
}
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
s1[0] = s1[0] - 'a' + 'A';
s2[0] = s2[0] - 'a' + 'A';
s3[0] = s3[0] - 'a' + 'A';
string ans = s1[0] + s2[0] + s3[0];
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:40:32: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
40 | string ans = s1[0] + s2[0] + s3[0];
|
s681276749 | p03737 | C | #include <stdio.h>
int yomisute(char str[],int i)
{
while(str[i] != ' ')
{
i++;
}
i++;
return i;
}
int main(void)
{
int b_num,c_num;
char a,b,c;
char str[72];
fgets(str,sizeof(str),stdin);
a = str[0];
b_num = yomisute(str,0);
b = str[b_num];
c_num = yomisute(str.b_num);
c = str[c_num];
printf("%c%c%c",a-32,b-32,c-32);
return 0;
}
| main.c: In function 'main':
main.c:25:29: error: request for member 'b_num' in something not a structure or union
25 | c_num = yomisute(str.b_num);
| ^
main.c:25:17: error: too few arguments to function 'yomisute'
25 | c_num = yomisute(str.b_num);
| ^~~~~~~~
main.c:3:5: note: declared here
3 | int yomisute(char str[],int i)
| ^~~~~~~~
|
s344314943 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>
#include <algorithm>
using namespace std;
using ll = long long;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.cbegin(), s1.cend(), s1.begin(), towupper);
transform(s2.cbegin(), s2.cend(), s2.begin(), towupper);
transform(s3.cbegin(), s3.cend(), s3.begin(), towupper);
cout << s1[0] << s2[0] << s3[0] << endl;
return 0;
}
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>
#include <algorithm>
using namespace std;
using ll = long long;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.cbegin(), s1.cend(), s1.begin(), towupper);
transform(s2.cbegin(), s2.cend(), s2.begin(), towupper);
transform(s3.cbegin(), s3.cend(), s3.begin(), towupper);
cout << s1[0] << s2[0] << s3[0] << endl;
return 0;
}
| a.cc:36:5: error: redefinition of 'int main()'
36 | int main(){
| ^~~~
a.cc:14:5: note: 'int main()' previously defined here
14 | int main(){
| ^~~~
|
s460090685 | p03737 | C++ | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;
int main(){
string A, B, C; cin >> A >> B >> C;
string ans = "";
ans.push_back(A.front());
ans.push_back(B.front());
ans.push_back(C.front());
transform(ans.begin(), ans.end(), ans.begin(), toupper);
cout << ans << endl;
}
| a.cc: In function 'int main()':
a.cc:21: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>)'
21 | transform(ans.begin(), ans.end(), ans.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:21:12: note: couldn't deduce template parameter '_UnaryOperation'
21 | 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
|
s272270700 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin>>a>>b>>c;
char dif='A'-'a';
cout<a[0]+dif<<b[0]+dif<<c[0]+dif<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:38: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<a[0]+dif<<b[0]+dif<<c[0]+dif<<endl;
|
s392411808 | p03737 | C++ | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
char ans1=a[0]-32;
char ans2=b[0]-32;
char ans3=c[0]-32;
cout<<x<<y<<z<<endl;
} | a.cc: In function 'int main()':
a.cc:15:11: error: 'x' was not declared in this scope
15 | cout<<x<<y<<z<<endl;
| ^
a.cc:15:14: error: 'y' was not declared in this scope
15 | cout<<x<<y<<z<<endl;
| ^
a.cc:15:17: error: 'z' was not declared in this scope
15 | cout<<x<<y<<z<<endl;
| ^
|
s586437707 | p03737 | C++ | #include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
#include <string>
#include <bitset>
#include <queue>
#include <tuple>
#include <cmath>
#include <map>
#include <cstring>
template<typename T> bool chmax( T &a, const T &b ) { if ( a <= b ) { a = b; return ( true ); } else { return ( false ); } }
template<typename T> bool chmin( T &a, const T &b ) { if ( a >= b ) { a = b; return ( true ); } else { return ( false ); } }
using namespace std;
using ll = long long;
using ull = unsigned long long;
using Pint = pair<int, int>;
using Pll = pair<ll, ll>;
using Pull = pair<ull, ull>;
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define F first
#define S second
#define rep( i, n ) for ( int i = 0; i < (int)( n ); ++i )
#define reps( i, n ) for ( int i = 1; i <= (int)( n ); ++i )
#define rrep( i, n ) for ( int i = (int)( ( n ) - 1 ); i >= 0; --i )
#define rreps( i, n ) for ( int i = (int)( ( n ) ); i > 0; --i )
#define arep( i, v ) for ( auto &&i : ( v ) )
template<typename T> T gcd( const T a, const T b ) { return ( b ? gcd( b, a % b ) : a ); }
template<typename T> T lcm( const T a, const T b ) { return ( a / gcd( a, b ) * b ); }
#define ALL( c ) ( c ).begin(), ( c ).end()
#define RALL( c ) ( c ).rbegin(), ( c ).rend()
#define UNIQUE( c ) ( c ).erase( unique( ( c ).begin(), ( c ).end() ), ( c ).end() )
constexpr ll MOD = 1000000007LL;
template<typename T = ll> constexpr T MAX = numeric_limits<T>::max();
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
#define next asdnext
#define prev asdprev
template<typename T = ll> class UnionFind {
public:
UnionFind( T n ) { par.resize( n ); siz.resize( n ); rep( i, n ) { par[i] = i; siz[i] = 1; } }
T find( T x ) { if ( x == par[x] ) return ( x ); else return( par[x] = find( par[x] ) ); }
void unite( T x, T y ) { T xx = find( x ); T yy = find( y ); if ( xx == yy ) return;
if ( siz[xx] <= siz[yy] ) swap( xx, yy ); par[yy] = xx; siz[xx] += siz[yy]; }
private:
vector<T> par, siz;
};
template<typename T = ll> class CompareMax {
public: T operator()( T a, T b ) { return ( max( a, b ) ); }
};
template<typename T = ll> class CompareMin {
public: T operator()( T a, T b ) { return ( min( a, b ) ); }
};
template<typename T = ll, typename F = CompareMax<T>, T I = 0> class SegTree {
public:
SegTree( T n ) { N = n; v.resize( 4 * n ); rep( i, 4 * n ) v[i] = I; }
void update( T i, T x ) { i += N - 1; v[i] = x; while ( i > 0 ) {
i = ( i - 1 ) / 2; v[i] = func( v[i * 2 + 1], v[i * 2 + 2] ); } }
T query( T a, T b, T k, T l, T r ) {
if ( r <= a || b <= l ) return ( I );
if ( a <= l && r <= b ) return ( v[k] );
else { T vl = query( a, b, k * 2 + 1, l, ( l + r ) / 2 );
T vr = query( a, b, k * 2 + 2, ( l + r ) / 2, r );
return ( func( vl, vr ) ); }
}
private:
T N; F func; vector<T> v;
};
template<typename T = ll> T solveLIS( const vector<T> &v ) {
vector<T> dp( v.size(), numeric_limits<T>::max() );
rep( i, v.size() ) {
*lower_bound( ALL( dp ), v[i] ) = v[i];
}
return ( distance( dp.begin(), lower_bound( ALL( dp ), numeric_limits<T>::max() ) ) );
}
template<typename T = ll> T power( T a, T b, T m = MOD ) {
T res = 1;
while ( b > 0 ) { if ( b & 1 ) res = res * a % m;
a = a * a % m; b >>= 1; }
return ( res );
}
/*
constexpr ll COMBSIZE = 500010;
ll fact[COMBSIZE];
ll inv[COMBSIZE];
ll inv_fact[COMBSIZE];
template<typename T> void initComb( T n, T m = MOD )
{
fact[0] = fact[1] = inv_fact[0] = inv_fact[1] = 1;
inv[1] = 1;
for ( int i = 2; i < n; i++ ) {
fact[i] = ( fact[i - 1] * i ) % m;
inv[i] = m - inv[m % i] * ( m / i ) % m;
inv_fact[i] = inv_fact[i - 1] * inv[i] % m;
}
}
template<typename T> T comb( T n, T r, T m = MOD )
{
if ( n < r ) return ( 0 );
if ( n < 0 || r < 0 ) return ( 0 );
return ( fact[n] * ( inv_fact[r] * inv_fact[n - r] % m ) % m );
}
*/
void replace( string &s, string t, string r ) {
string::size_type p = 0;
while ( ( p = s.find( t, p ) ) != string::npos ) {
s.replace( p, t.length(), r );
p += r.length();
}
}
int main()
{
string a, b, c;
cin >> a >> b >> c;
string ans = a[0];
ans += b[0]; ans += c[0];
cout << toupper( ans.c_str() ) << endl;
return ( 0 );
}
| a.cc: In function 'int main()':
a.cc:143:21: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
143 | string ans = a[0];
| ^
a.cc:145:20: error: no matching function for call to 'toupper(const char*)'
145 | cout << toupper( ans.c_str() ) << endl;
| ~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cctype:42,
from /usr/include/c++/14/bits/localefwd.h:42,
from /usr/include/c++/14/ios:43,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:2:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)' (near match)
125 | extern int toupper (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:125:12: note: conversion of argument 1 would be ill-formed:
a.cc:145:31: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
145 | cout << toupper( ans.c_str() ) << endl;
| ~~~~~~~~~^~
| |
| const char*
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
2687 | toupper(_CharT __c, const locale& __loc)
| ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate expects 2 arguments, 1 provided
|
s076573747 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
string a, b, c;
cin >> a >> b >> c;
capitalize a.at(0), b.at(0), c.at(0);
cout << a.at(0) << b.at(0) << c.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'capitalize' was not declared in this scope; did you mean 'canonicalize'?
7 | capitalize a.at(0), b.at(0), c.at(0);
| ^~~~~~~~~~
| canonicalize
|
s726820762 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
string a, b, c;
cin >> a >> b >> c;
int dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
} | a.cc:7:9: error: extended character ’ is not valid in an identifier
7 | int dif=’A’ - ’a’;
| ^
a.cc:7:9: error: extended character ’ is not valid in an identifier
a.cc:7:15: error: extended character ’ is not valid in an identifier
7 | int dif=’A’ - ’a’;
| ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U00002019A\U00002019' was not declared in this scope
7 | int dif=’A’ - ’a’;
| ^~~
a.cc:7:15: error: '\U00002019a\U00002019' was not declared in this scope
7 | int dif=’A’ - ’a’;
| ^~~
|
s906925461 | 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:10: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
a.cc:7:16: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:10: error: '\U00002019A\U00002019' was not declared in this scope
7 | char dif=’A’ - ’a’;
| ^~~
a.cc:7:16: error: '\U00002019a\U00002019' was not declared in this scope
7 | char dif=’A’ - ’a’;
| ^~~
|
s725476895 | p03737 | C | #include<stdio.h>
int main(){
double a,b;
scanf("%lf %lf", &a &b);
if(a>b)
printf("GREATER\n");
else if(b>a)
printf("LESS\n");
else
printf("EQUAL\n");
return 0;
}
| main.c: In function 'main':
main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double')
4 | scanf("%lf %lf", &a &b);
| ~~ ^
| |
| double *
|
s178965564 | p03737 | C++ | #include<bits/stdc++.h>
#include<boost/algorithm/string.hpp>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}
| a.cc:2:9: fatal error: boost/algorithm/string.hpp: No such file or directory
2 | #include<boost/algorithm/string.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s568467813 | p03737 | C++ | #include<bits/stdc++.h>
#include<boost>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}
| a.cc:2:9: fatal error: boost: No such file or directory
2 | #include<boost>
| ^~~~~~~
compilation terminated.
|
s936951185 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:9: error: 'boost' has not been declared
10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
| ^~~~~
a.cc:10:34: error: 'boost' has not been declared
10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
| ^~~~~
a.cc:10:59: error: 'boost' has not been declared
10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
| ^~~~~
|
s527084815 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << to_upper(a[0]) << to_upper(b[0]) << to_upper(c[0]) << "\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:9: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
10 | cout << to_upper(a[0]) << to_upper(b[0]) << to_upper(c[0]) << "\n";
| ^~~~~~~~
| towupper
|
s027960821 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cher d,e,f;
cin>>a>>b>>c;
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
d=a.at(0)-0x20;
e=b.at(0)-0x20;
f=c.at(0)-0x20;
cout<<d<<e<<f<<endl;
}
| a.cc: In function 'int main()':
a.cc:5:2: error: 'cher' was not declared in this scope; did you mean 'char'?
5 | cher d,e,f;
| ^~~~
| char
a.cc:8:2: error: 'd' was not declared in this scope
8 | d=a.at(0)-0x20;
| ^
a.cc:9:2: error: 'e' was not declared in this scope
9 | e=b.at(0)-0x20;
| ^
a.cc:10:2: error: 'f' was not declared in this scope
10 | f=c.at(0)-0x20;
| ^
|
s648202369 | 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.at(0)<<b.at(0)<<c.at(0)<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:11: 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>)'
6 | 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:6:11: note: couldn't deduce template parameter '_UnaryOperation'
6 | 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:7:11: 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(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:7:11: note: couldn't deduce template parameter '_UnaryOperation'
7 | 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:8:11: 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(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:8:11: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
|
s904238421 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin>>a>>b>>c;
transform(a.begin(), a.end());
transform(b.begin(), b.end());
transform(c.begin(), c.end());
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:11: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)'
6 | transform(a.begin(), a.end());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
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:7:11: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)'
7 | transform(b.begin(), b.end());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
a.cc:8:11: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)'
8 | transform(c.begin(), c.end());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 2 provided
|
s309858965 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
d=a.at(0)-0x20;
e=b.at(0)-0x20;
f=c.at(0)-0x20;
cout <<d<<e<<f<<endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'd' was not declared in this scope
6 | d=a.at(0)-0x20;
| ^
a.cc:7:3: error: 'e' was not declared in this scope
7 | e=b.at(0)-0x20;
| ^
a.cc:8:3: error: 'f' was not declared in this scope
8 | f=c.at(0)-0x20;
| ^
|
s940949160 | p03737 | C++ | #include <stdio.h>
#include <string.h>
#include <iostream>
#include <sstream>
using namespace std;
int main(void){
string words[3];
for(int i=0; i<3; i++){
cin >> words[i];
transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
cout << words[i][0];
}
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'transform' was not declared in this scope
10 | transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
| ^~~~~~~~~
|
s578973438 | p03737 | C++ | #include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main(void){
string words[3];
for(int i=0; i<3; i++){
cin >> words[i];
transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
cout << words[i][0];
}
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'transform' was not declared in this scope
9 | transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
| ^~~~~~~~~
|
s959339748 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin >>s1>>s2>>s3;
string s="";
s=s+s1[0]+s2[0]+s3[0];
transform (s.begin (), s.end (), s.begin (), toupper);
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform (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:8:13: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
|
s671487263 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin >>s1>>s2>>s3;
string s=s1[0];
s+=s2[0]+s3[0];
transform (s.begin (), s.end (), s.begin (), toupper);
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:6:16: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | string s=s1[0];
| ^
a.cc:8:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform (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:8:13: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
|
s729119957 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin >>s1>>s2>>s3;
string s=s1[0]+s2[0]+s3[0];
transform (s.begin (), s.end (), s.begin (), toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:6:23: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | string s=s1[0]+s2[0]+s3[0];
a.cc:7:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | 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:7:13: note: couldn't deduce template parameter '_UnaryOperation'
7 | 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
|
s133078791 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin >>s1>>s2>>s3;
transform(s1.begin(), s1.end(), s1.begin(), toupper);
transform(s2.begin(), s2.end(), s2.begin(), toupper);
transform(s3.begin(), s3.end(), s3.begin(), toupper);
cout << s1[0]<<s2[0]<<s[3]<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:10: 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>)'
6 | 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:6:10: note: couldn't deduce template parameter '_UnaryOperation'
6 | 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: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(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:7:12: note: couldn't deduce template parameter '_UnaryOperation'
7 | 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: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(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:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
a.cc:9:25: error: 's' was not declared in this scope; did you mean 's3'?
9 | cout << s1[0]<<s2[0]<<s[3]<<endl;
| ^
| s3
|
s145941732 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin >>s1>>s2>>s3;
transform(s1.cbegin(), s1.cend(), s1.begin(), toupper);
transform(s2.cbegin(), s2.cend(), s2.begin(), toupper);
transform(s3.cbegin(), s3.cend(), s3.begin(), toupper);
cout << s1[0]<<s2[0]<<s[3]<<endl;
} | a.cc: In function 'int main()':
a.cc:6:10: 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>)'
6 | transform(s1.cbegin(), s1.cend(), 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:6:10: note: couldn't deduce template parameter '_UnaryOperation'
6 | transform(s1.cbegin(), s1.cend(), 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:7: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>)'
7 | transform(s2.cbegin(), s2.cend(), 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:7:12: note: couldn't deduce template parameter '_UnaryOperation'
7 | transform(s2.cbegin(), s2.cend(), 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:8: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>)'
8 | transform(s3.cbegin(), s3.cend(), 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:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(s3.cbegin(), s3.cend(), 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
a.cc:9:25: error: 's' was not declared in this scope; did you mean 's3'?
9 | cout << s1[0]<<s2[0]<<s[3]<<endl;
| ^
| s3
|
s607606163 | p03737 | C++ | #include <iostream>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>" ">>s2>>" ">>s3;
char ch1=s1[0];
ch1=ch1-32;
char ch2=s2[0];
ch2=ch2-32;
char ch3=s3[0];
ch3=ch3-32;
cout<<ch1<<ch2<<ch3;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and 'const char [2]')
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ~~~~~~~^~~~~
| | |
| | const char [2]
| std::basic_istream<char>
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(short int)((const char*)" ")' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(short unsigned int)((const char*)" ")' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(int)((const char*)" ")' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(unsigned int)((const char*)" ")' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(long int)((const char*)" ")' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(long unsigned int)((const char*)" ")' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(long long int)((const char*)" ")' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const char*
a.cc:5:10: error: cannot bind rvalue '(long long unsigned int)((const char*)" ")' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:5:10: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
5 | cin>>s1>>" ">>s2>>" ">>s3;
| ^~~
| |
| const void*
a.cc:5:10: error: cannot bind rvalue '(void*)((const void*)((const char*)" "))' to 'void*&'
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'const char [2]' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'const char [2]' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'const char [2]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'const char [2]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'const char [2]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std:: |
s942838139 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char s1, s2, s3;
cin >>s1>>s2>>s3;
cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
}
| a.cc: In function 'int main()':
a.cc:6:19: error: invalid types 'char[int]' for array subscript
6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
| ^
a.cc:6:36: error: invalid types 'char[int]' for array subscript
6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
| ^
a.cc:6:53: error: invalid types 'char[int]' for array subscript
6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
| ^
|
s936870965 | p03737 | C++ | string n,Z;
int M;
getline(cin,n);
char c=' ';
for(int i=0;i<n.length();i++){
if(i==0){
n[i]=toupper(n[i]);
M=1;
cout<<n[i];}
if(M==1){
break;
}
}
for(int i=0;i<n.length();i++){
if(n[i]==c){
n[i+1]=toupper(n[i+1]);
cout<<n[i+1];}
}
} | a.cc:1:1: error: 'string' does not name a type
1 | string n,Z;
| ^~~~~~
a.cc:3:8: error: expected constructor, destructor, or type conversion before '(' token
3 | getline(cin,n);
| ^
a.cc:5:1: error: expected unqualified-id before 'for'
5 | for(int i=0;i<n.length();i++){
| ^~~
a.cc:5:13: error: 'i' does not name a type
5 | for(int i=0;i<n.length();i++){
| ^
a.cc:5:26: error: 'i' does not name a type
5 | for(int i=0;i<n.length();i++){
| ^
a.cc:14:9: error: expected unqualified-id before 'for'
14 | for(int i=0;i<n.length();i++){
| ^~~
a.cc:14:21: error: 'i' does not name a type
14 | for(int i=0;i<n.length();i++){
| ^
a.cc:14:34: error: 'i' does not name a type
14 | for(int i=0;i<n.length();i++){
| ^
a.cc:19:1: error: expected declaration before '}' token
19 | }
| ^
|
s207600630 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char s[100];
char c[100],l[100];
cin>>c>>s>>l;
if(c[0]>='a' && c[0]<='z')
c[0]-=32;
if(s[0]>='a' && s[0]<='z')
s[0]-=32;
if(l[0]>='a' &&l[0]<='z')
l[0]-=32;
cout<<c[0]<<s[0]<<v[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:14:23: error: 'v' was not declared in this scope
14 | cout<<c[0]<<s[0]<<v[0];
| ^
|
s800352199 | p03737 | C++ | #include<iostream>
#include<string>
#include<afx.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);*/
a.MakeUpper();
b.MakeUpper();
c.MakeUpper();
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
} | a.cc:3:9: fatal error: afx.h: No such file or directory
3 | #include<afx.h>
| ^~~~~~~
compilation terminated.
|
s551408398 | p03737 | C++ | #include<bits/stdc++.h>
#include<afx.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);*/
a.MakeUpper();
b.MakeUpper();
c.MakeUpper();
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
} | a.cc:2:9: fatal error: afx.h: No such file or directory
2 | #include<afx.h>
| ^~~~~~~
compilation terminated.
|
s178940003 | 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);*/
a.MakeUpper();
b.MakeUpper();
c.MakeUpper();
cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
} | a.cc: In function 'int main()':
a.cc:10:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
10 | a.MakeUpper();
| ^~~~~~~~~
a.cc:11:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
11 | b.MakeUpper();
| ^~~~~~~~~
a.cc:12:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
12 | c.MakeUpper();
| ^~~~~~~~~
|
s564151567 | 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.at(0)<<b.at(0)<<c.at(0)<<endl;
} | 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
|
s686859712 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
cout<<toupr(a.at(0))<<toupr(b.at(0))<<toupr(c.at(0))<<endl;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'toupr' was not declared in this scope; did you mean 'toupper'?
7 | cout<<toupr(a.at(0))<<toupr(b.at(0))<<toupr(c.at(0))<<endl;
| ^~~~~
| toupper
|
s521159228 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char s[100];
char c[100],r[100];
cin>>c>>s>>r;
if(c[0]>='a' && c[0]<='z')
c[0]-=32;
if(s[0]>='a' && s[0]<='z')
s[0]-=32;
if(r[0]>='a' && r[0]<='z')
v[0]-=32;
cout<<c[0]<<s[0]<<r[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:13:5: error: 'v' was not declared in this scope
13 | v[0]-=32;
| ^
|
s313034604 | p03737 | C++ | #include<iostream>
using namespace std;
int main()
{
string s[100000];
long long x=0;
cin>>s;
int n=s.size();
for(int i=0;i<n;i++)
for(int j=0;j<n;j++)
if(s[i]==s[j]){
x++;
}
cout<<x;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [100000]' {aka 'std::__cxx11::basic_string<char> [100000]'})
10 | cin>>s;
| ~~~^~~
| | |
| | std::string [100000] {aka std::__cxx11::basic_string<char> [100000]}
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'}
10 | cin>>s;
| ^
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'short int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(short int)((std::string*)(& s))' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'short unsigned int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(short unsigned int)((std::string*)(& s))' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(int)((std::string*)(& s))' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'unsigned int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(unsigned int)((std::string*)(& s))' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'long int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(long int)((std::string*)(& s))' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'long unsigned int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(long unsigned int)((std::string*)(& s))' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'long long int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(long long int)((std::string*)(& s))' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'long long unsigned int' [-fpermissive]
10 | cin>>s;
| ^
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:10:14: error: cannot bind rvalue '(long long unsigned int)((std::string*)(& s))' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:14: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
10 | cin>>s;
| ^
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::string [100000]' {aka 'std::__cxx11::basic_string<char> [100000]'} to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::string [100000]' {aka 'std::__cxx11::basic_string<char> [100000]'} to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::string [100000]' {aka 'std::__cxx11::basic_string<char> [100000]'} to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known co |
s784423615 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string a,b,c;cin>>a>>b>>c;
cout<<a[0]-32;cout<<b-32;cout<<c-32;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:22: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/bits/stl_algobase.h:67,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
618 | operator-(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: template argument deduction/substitution failed:
a.cc:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: mismatched types 'const std::complex<_Tp>' and 'int'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
/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:5:23: note: mismatched types 'const std::valarray<_Tp>' and 'int'
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ^~
a.cc:5:33: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
5 | cout<<a[0]-32;cout<<b-32;cout<<c-32;
| ~^~~
| | |
| | int
| std::stri |
s724554096 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<s1[0]+=32<<s2[0]+=32<<s3[0]+=32<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:42: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout<<s1[0]+=32<<s2[0]+=32<<s3[0]+=32<<endl;
| ~~^~~~~~
|
s446924882 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<(char)(s1[0]-32)<<char)(s2[0]-32)<<char)(s3[0]-32);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:33: error: expected primary-expression before 'char'
6 | cout<<(char)(s1[0]-32)<<char)(s2[0]-32)<<char)(s3[0]-32);
| ^~~~
|
s922016734 | p03737 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(),x.end())
#define REVE(x) reverse(x.begin(),x.end())
#define all(x) (x).begin(),(x).end()
#define fst first
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#define sw swap
using LL = long long;
using ULL = unsigned long long;
#define FOR(i, m, n) for(int i = m;i < n;i++)
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string n,a,b,c;
cin >> a >> b >> c;
cout << transform(a[0]) << transform(b[0]) << transform(c[0]);
} | a.cc: In function 'int main()':
a.cc:30:22: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
30 | cout << transform(a[0]) << transform(b[0]) << transform(c[0]);
| ~~~~~~~~~^~~~~~
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: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided
a.cc:30:41: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
30 | cout << transform(a[0]) << transform(b[0]) << transform(c[0]);
| ~~~~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided
a.cc:30:60: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
30 | cout << transform(a[0]) << transform(b[0]) << transform(c[0]);
| ~~~~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 1 provided
|
s183028338 | p03737 | C++ | int main(){
string a, b, c;
cin >> a >> b >> c;
char dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
}
| a.cc:4:10: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:10: error: extended character ’ is not valid in an identifier
a.cc:4:16: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
2 | string a, b, c;
| ^~~~~~
a.cc:3:1: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:3:8: error: 'a' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:13: error: 'b' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:18: error: 'c' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:4:10: error: '\U00002019A\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:4:16: error: '\U00002019a\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(){
|
s166453587 | p03737 | C++ | √#include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> a(3);
for (int i=0; i<3; i++) {
cin >> a[i];
if (a[i].at(0)=='a') {
cout << 'A';
}
if (a[i].at(0)=='b') {
cout << 'B';
}
if (a[i].at(0)=='c') {
cout << 'C';
}
if (a[i].at(0)=='d') {
cout << 'D';
}
if (a[i].at(0)=='e') {
cout << 'E';
}
if (a[i].at(0)=='f') {
cout << 'F';
}
if (a[i].at(0)=='g') {
cout << 'G';
}
if (a[i].at(0)=='h') {
cout << 'H';
}
if (a[i].at(0)=='i') {
cout << 'I';
}
if (a[i].at(0)=='j') {
cout << 'J';
}
if (a[i].at(0)=='k') {
cout << 'K';
}
if (a[i].at(0)=='m') {
cout << 'M';
}
if (a[i].at(0)=='n') {
cout << 'N';
}
if (a[i].at(0)=='o') {
cout << 'O';
}
if (a[i].at(0)=='p') {
cout << 'P';
}
if (a[i].at(0)=='q') {
cout << 'Q';
}
if (a[i].at(0)=='r') {
cout << 'R';
}
if (a[i].at(0)=='s') {
cout << 'S';
}
if (a[i].at(0)=='t') {
cout << 'T';
}
if (a[i].at(0)=='u') {
cout << 'U';
}
if (a[i].at(0)=='v') {
cout << 'V';
}
if (a[i].at(0)=='w') {
cout << 'W';
}
if (a[i].at(0)=='x') {
cout << 'X';
}
if (a[i].at(0)=='y') {
cout << 'Y';
}
if (a[i].at(0)=='z') {
cout << 'Z';
}
}
cout << endl;
}
| a.cc:1:1: error: extended character √ is not valid in an identifier
1 | √#include <bits/stdc++.h>
| ^
a.cc:1:2: error: stray '#' in program
1 | √#include <bits/stdc++.h>
| ^
a.cc:1:1: error: '\U0000221a' does not name a type
1 | √#include <bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
4 | vector<string> a(3);
| ^~~~~~
a.cc:4:10: error: 'string' was not declared in this scope
4 | vector<string> a(3);
| ^~~~~~
a.cc:4:18: error: 'a' was not declared in this scope
4 | vector<string> a(3);
| ^
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin >> a[i];
| ^~~
a.cc:8:7: error: 'cout' was not declared in this scope
8 | cout << 'A';
| ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope
11 | cout << 'B';
| ^~~~
a.cc:14:7: error: 'cout' was not declared in this scope
14 | cout << 'C';
| ^~~~
a.cc:17:7: error: 'cout' was not declared in this scope
17 | cout << 'D';
| ^~~~
a.cc:20:7: error: 'cout' was not declared in this scope
20 | cout << 'E';
| ^~~~
a.cc:23:7: error: 'cout' was not declared in this scope
23 | cout << 'F';
| ^~~~
a.cc:26:7: error: 'cout' was not declared in this scope
26 | cout << 'G';
| ^~~~
a.cc:29:7: error: 'cout' was not declared in this scope
29 | cout << 'H';
| ^~~~
a.cc:32:7: error: 'cout' was not declared in this scope
32 | cout << 'I';
| ^~~~
a.cc:35:7: error: 'cout' was not declared in this scope
35 | cout << 'J';
| ^~~~
a.cc:38:7: error: 'cout' was not declared in this scope
38 | cout << 'K';
| ^~~~
a.cc:41:7: error: 'cout' was not declared in this scope
41 | cout << 'M';
| ^~~~
a.cc:44:7: error: 'cout' was not declared in this scope
44 | cout << 'N';
| ^~~~
a.cc:47:7: error: 'cout' was not declared in this scope
47 | cout << 'O';
| ^~~~
a.cc:50:7: error: 'cout' was not declared in this scope
50 | cout << 'P';
| ^~~~
a.cc:53:7: error: 'cout' was not declared in this scope
53 | cout << 'Q';
| ^~~~
a.cc:56:7: error: 'cout' was not declared in this scope
56 | cout << 'R';
| ^~~~
a.cc:59:7: error: 'cout' was not declared in this scope
59 | cout << 'S';
| ^~~~
a.cc:62:7: error: 'cout' was not declared in this scope
62 | cout << 'T';
| ^~~~
a.cc:65:7: error: 'cout' was not declared in this scope
65 | cout << 'U';
| ^~~~
a.cc:68:7: error: 'cout' was not declared in this scope
68 | cout << 'V';
| ^~~~
a.cc:71:7: error: 'cout' was not declared in this scope
71 | cout << 'W';
| ^~~~
a.cc:74:7: error: 'cout' was not declared in this scope
74 | cout << 'X';
| ^~~~
a.cc:77:7: error: 'cout' was not declared in this scope
77 | cout << 'Y';
| ^~~~
a.cc:80:7: error: 'cout' was not declared in this scope
80 | cout << 'Z';
| ^~~~
a.cc:83:3: error: 'cout' was not declared in this scope
83 | cout << endl;
| ^~~~
a.cc:83:11: error: 'endl' was not declared in this scope
83 | cout << endl;
| ^~~~
|
s960724632 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> a(3);
for (int i=0; i<3; i++) {
cin >> a[i];
if (a[i].at(0)=='a') {
cout << 'A';
}
if (a[i].at(0)=='b') {
cout << 'B';
}
if (a[i].at(0)=='c') {
cout << 'C';
}
if (a[i].at(0)=='d') {
cout << 'D';
}
if (a[i].at(0)=='e') {
cout << 'E';
}
if (a[i].at(0)=='f') {
cout << 'F';
}
if (a[i].at(0)=='g') {
cout << 'G';
}
if (a[i].at(0)=='h') {
cout << 'H';
}
if (a[i].at(0)=='i') {
cout << 'I';
}
if (a[i].at(0)=='j') {
cout << 'J';
}
if (a[i].at(0)=='k') {
cout << 'K';
}
if (a[i].at(0)=='m') {
cout << 'M';
}
if (a[i].at(0)=='n') {
cout << 'N';
}
if (a[i].at(0)=='o') {
cin >> 'O';
}
if (a[i].at(0)=='p') {
cout << 'P';
}
if (a[i].at(0)=='q') {
cin >> 'Q';
}
if (a[i].at(0)=='r') {
cout << 'R';
}
if (a[i].at(0)=='s') {
cout << 'S';
}
if (a[i].at(0)=='t') {
cout << 'T';
}
if (a[i].at(0)=='u') {
cout << 'U';
}
if (a[i].at(0)=='v') {
cout << 'V';
}
if (a[i].at(0)=='w') {
cout << 'W';
}
if (a[i].at(0)=='x') {
cout << 'X';
}
if (a[i].at(0)=='y') {
cout << 'Y';
}
if (a[i].at(0)=='z') {
cout << 'Z';
}
}
cout << endl;
}
| a.cc: In function 'int main()':
a.cc:47:11: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
47 | cin >> 'O';
| ~~~ ^~ ~~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'char'
47 | cin >> 'O';
| ^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: invalid conversion from 'char' to 'void*' [-fpermissive]
47 | cin >> 'O';
| ^~~
| |
| char
a.cc:47:14: error: cannot bind rvalue '(void*)79' to 'void*&'
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: invalid conversion from 'char' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive]
47 | cin >> 'O';
| ^~~
| |
| char
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' (near match)
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:7: note: conversion of argument 1 would be ill-formed:
a.cc:47:14: error: invalid conversion from 'char' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive]
47 | cin >> 'O';
| ^~~
| |
| char
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:7: |
s198757703 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> a(3);
for (int i=0; i<3; i++) {
cin >> a[i];
if (a[i].at(0)=='a') {
cin >> 'A';
}
if (a[i].at(0)=='b') {
cin >> 'B';
}
if (a[i].at(0)=='c') {
cin >> 'C';
}
if (a[i].at(0)=='d') {
cin >> 'D';
}
if (a[i].at(0)=='e') {
cin >> 'E';
}
if (a[i].at(0)=='f') {
cin >> 'F';
}
if (a[i].at(0)=='g') {
cin >> 'G';
}
if (a[i].at(0)=='h') {
cin >> 'H';
}
if (a[i].at(0)=='i') {
cin >> 'I';
}
if (a[i].at(0)=='j') {
cin >> 'J';
}
if (a[i].at(0)=='k') {
cin >> 'K';
}
if (a[i].at(0)=='m') {
cin >> 'M';
}
if (a[i].at(0)=='n') {
cin >> 'N';
}
if (a[i].at(0)=='o') {
cin >> 'O';
}
if (a[i].at(0)=='p') {
cin >> 'P';
}
if (a[i].at(0)=='q') {
cin >> 'Q';
}
if (a[i].at(0)=='r') {
cin >> 'R';
}
if (a[i].at(0)=='s') {
cin >> 'S';
}
if (a[i].at(0)=='t') {
cin >> 'T';
}
if (a[i].at(0)=='u') {
cin >> 'U';
}
if (a[i].at(0)=='v') {
cin >> 'V';
}
if (a[i].at(0)=='w') {
cin >> 'W';
}
if (a[i].at(0)=='x') {
cin >> 'X';
}
if (a[i].at(0)=='y') {
cin >> 'Y';
}
if (a[i].at(0)=='z') {
cin >> 'Z';
}
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
8 | cin >> 'A';
| ~~~ ^~ ~~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'char'
8 | cin >> 'A';
| ^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: invalid conversion from 'char' to 'void*' [-fpermissive]
8 | cin >> 'A';
| ^~~
| |
| char
a.cc:8:14: error: cannot bind rvalue '(void*)65' to 'void*&'
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: invalid conversion from 'char' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive]
8 | cin >> 'A';
| ^~~
| |
| char
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' (near match)
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:7: note: conversion of argument 1 would be ill-formed:
a.cc:8:14: error: invalid conversion from 'char' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive]
8 | cin >> 'A';
| ^~~
| |
| char
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:7: note: conversi |
s714723089 | p03737 | C++ | #include<bits/stdc++.h>
1;5202;0cusing namespace std;
#define REP(i, n) for(int i = 0; i < (int)n; i++)
const int MOD = 1000000007;
// long long a;
int main(){
string a,b,c;
cin >> a>>b>>c;
a[0] -= 32;
b[0] -= 32;
c[0] -= 32;
cout << a[0] << b[0] << c[0] << endl;
}
| a.cc:2:1: error: expected unqualified-id before numeric constant
2 | 1;5202;0cusing namespace std;
| ^
a.cc:2:3: error: expected unqualified-id before numeric constant
2 | 1;5202;0cusing namespace std;
| ^~~~
a.cc:2:8: error: expected unqualified-id before numeric constant
2 | 1;5202;0cusing namespace std;
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
7 | string a,b,c;
| ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
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/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> a>>b>>c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin >> a>>b>>c;
| ^
a.cc:8:13: error: 'b' was not declared in this scope
8 | cin >> a>>b>>c;
| ^
a.cc:8:16: error: 'c' was not declared in this scope
8 | cin >> a>>b>>c;
| ^
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << a[0] << b[0] << c[0] << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << a[0] << b[0] << c[0] << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s685900003 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
transform(s1.at(0),s2.at(0),s3.at(0),toupper);
cout<<s1.at(0)<<s2.at(0)<<s3.at(0)<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
8 | transform(s1.at(0),s2.at(0),s3.at(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: template argument deduction/substitution failed:
a.cc:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | transform(s1.at(0),s2.at(0),s3.at(0),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
|
s683903218 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
transform(s1.(0),s2.(0),s3.(0),toupper);
cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:16: error: expected unqualified-id before '(' token
8 | transform(s1.(0),s2.(0),s3.(0),toupper);
| ^
a.cc:8:23: error: expected unqualified-id before '(' token
8 | transform(s1.(0),s2.(0),s3.(0),toupper);
| ^
a.cc:8:30: error: expected unqualified-id before '(' token
8 | transform(s1.(0),s2.(0),s3.(0),toupper);
| ^
a.cc:9:12: error: expected unqualified-id before '(' token
9 | cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
| ^
a.cc:9:19: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
9 | cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
| ~~^~~
a.cc:9:26: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
9 | cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
| ~~^~~
|
s830502938 | p03737 | C++ | a,b,c = input().split()
print(a[0].upper()+b[0].upper()+c[0].upper()) | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = input().split()
| ^
|
s365984321 | p03737 | C++ | x,y,z = map(input().split())
print(x[:1]+y[:1]+z[:1]) | a.cc:1:1: error: 'x' does not name a type
1 | x,y,z = map(input().split())
| ^
|
s197549950 | p03737 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
string s;
for(int i=0;i<3;++i){
cin >> s;
transform (s.begin (), s.end (), s.begin (), toupper);
cout << s[0];
}
cout << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform (s.begin (), s.end (), s.begin (), toupper);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform (s.begin (), s.end (), s.begin (), toupper);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s244812114 | p03737 | C++ | #include <iostream>
int main(){
string s;
for(int i=0;i<3;++i){
cin >> s;
transform (s.begin (), s.end (), s.begin (), toupper);
cout << s[0];
}
cout << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> s;
| ^~~
| std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:10: error: 's' was not declared in this scope
6 | cin >> s;
| ^
a.cc:7:3: error: 'transform' was not declared in this scope
7 | transform (s.begin (), s.end (), s.begin (), toupper);
| ^~~~~~~~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout << s[0];
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:10:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | cout << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s597909478 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
string str1 = s1;
string str2 = s2;
string str3 = s3;
transform(str1.begin(), str1.end(), str1.begin, toupper);
transform(str2.begin(), str2.end(), str2.begin, toupper);
transform(str3.begin(), str3.end(), str3.begin, toupper);
char a = str1.at(0);
char b = str2.at(0);
char c = str3.at(0);
cout << str1.at(0) << str2.at(0) << str3.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:12:12: 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>)'
12 | transform(str1.begin(), str1.end(), str1.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:12: note: couldn't deduce template parameter '_OIter'
12 | transform(str1.begin(), str1.end(), str1.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:15: 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>)'
13 | transform(str2.begin(), str2.end(), str2.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:15: note: couldn't deduce template parameter '_OIter'
13 | transform(str2.begin(), str2.end(), str2.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:15: 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>)'
14 | transform(str3.begin(), str3.end(), str3.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:15: note: couldn't deduce template parameter '_OIter'
14 | transform(str3.begin(), str3.end(), str3.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
|
s811532060 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
string str1 = s1;
string str2 = s2;
string str3 = s3;
char a = str1.at(0);
char b = str2.at(0);
char c = str3.at(0);
transform(str1.at(0),str2.at(0),str3.at(0),toupper);
cout << str1.at(0) << str2.at(0) << str3.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:16:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
16 | transform(str1.at(0),str2.at(0),str3.at(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: template argument deduction/substitution failed:
a.cc:16:12: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(str1.at(0),str2.at(0),str3.at(0),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
|
s324990788 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
string str1 = s1;
string str2 = s2;
string str3 = s3;
char a = str1.at(0);
char b = str2.at(0);
char c = str3.at(0);
transform(str1.at(0),str2.at(0),str3.at(0),toupper)
cout << str1.at(0) << str2.at(0) << str3.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:16:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
16 | transform(str1.at(0),str2.at(0),str3.at(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: template argument deduction/substitution failed:
a.cc:16:12: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(str1.at(0),str2.at(0),str3.at(0),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
|
s776572733 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
string str1 = s1;
string str2 = s2;
string str3 = s3;
char a = str1.at(0);
char b = str2.at(0);
char c = str3.at(0);
transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
cout << str1.at(0) << str2.at(0) << str3.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:16:24: error: 'atr2' was not declared in this scope; did you mean 'str2'?
16 | transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
| ^~~~
| str2
a.cc:16:47: error: 'troupper' was not declared in this scope; did you mean 'toupper'?
16 | transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
| ^~~~~~~~
| toupper
|
s295117367 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
string str1 = s1;
string str2 = s2;
string str3 = s3;
char a = str1.at(0)
char b = str2.at(0)
char c = str3.at(0)
cout << str1.at(0) << str2.at(0) << s3.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'char'
13 | char b = str2.at(0)
| ^~~~
|
s271202161 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
transform (s1.at(0), s2.at(0), s3.at(0), toupper);
cout << s1.at(0)<<s2.at(0)<<s3.at(0)<< endl;
} | a.cc: In function 'int main()':
a.cc:9:13: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
9 | transform (s1.at(0), s2.at(0), s3.at(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: template argument deduction/substitution failed:
a.cc:9:13: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform (s1.at(0), s2.at(0), s3.at(0), 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
|
s500017022 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2 , s3;
cin >> s1 >> s2 >> s3;
transform (s1.at(0), s2.at(0), s3.at(0), toupper);
cout << s1.at(0)<<s2.at(0)<<s3.at(0)<< endl;
| a.cc: In function 'int main()':
a.cc:9:13: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
9 | transform (s1.at(0), s2.at(0), s3.at(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: template argument deduction/substitution failed:
a.cc:9:13: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform (s1.at(0), s2.at(0), s3.at(0), 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:53: error: expected '}' at end of input
10 | cout << s1.at(0)<<s2.at(0)<<s3.at(0)<< endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s413627901 | 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: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
|
s348700440 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
string s = a[0]b[0]c[0];
transform(s.begin(),s.end(),s.begin(),toupper)
cout << s;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:17: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = a[0]b[0]c[0];
| ^
a.cc:7:18: error: expected ',' or ';' before 'b'
7 | string s = a[0]b[0]c[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(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:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
|
s105163136 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
string s = a[0] + b[0] + c[0];
transform(s.begin(),s.end(),s.begin(),toupper)
cout << s;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:26: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = a[0] + b[0] + c[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(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:8:12: note: couldn't deduce template parameter '_UnaryOperation'
8 | 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
|
s615414693 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
vector<char> s = {'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<char> S = {'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 < 25; i++) {
if (a[0] == s[i]) {
a = S[i];
break;
}
}
for (int i = 0; i < 25; i++) {
if (b[0] == s[i]) {
b = S[i];
break;
}
}
for (int i = 0; i < 25; i++) {
if (c[0] == s[i]) {
c = S[i];
break;
}
}
cout << a + b + c << endl;
}
| a.cc: In function 'int main()':
a.cc:10:25: error: expected '}' before 'S'
10 | ,'N','O','P','Q','R''S','T','U','V','W','X','Y','Z'};
| ^~~
a.cc:9:20: note: to match this '{'
9 | vector<char> S = {'A','B','C','D','E','F','G','H','I','J','K','L','M'
| ^
a.cc:10:25: error: expected ',' or ';' before 'S'
10 | ,'N','O','P','Q','R''S','T','U','V','W','X','Y','Z'};
| ^~~
a.cc: At global scope:
a.cc:12:3: error: expected unqualified-id before 'for'
12 | for (int i = 0; i < 25; i++) {
| ^~~
a.cc:12:19: error: 'i' does not name a type
12 | for (int i = 0; i < 25; i++) {
| ^
a.cc:12:27: error: 'i' does not name a type
12 | for (int i = 0; i < 25; i++) {
| ^
a.cc:18:3: error: expected unqualified-id before 'for'
18 | for (int i = 0; i < 25; i++) {
| ^~~
a.cc:18:19: error: 'i' does not name a type
18 | for (int i = 0; i < 25; i++) {
| ^
a.cc:18:27: error: 'i' does not name a type
18 | for (int i = 0; i < 25; i++) {
| ^
a.cc:24:5: error: expected unqualified-id before 'for'
24 | for (int i = 0; i < 25; i++) {
| ^~~
a.cc:24:21: error: 'i' does not name a type
24 | for (int i = 0; i < 25; i++) {
| ^
a.cc:24:29: error: 'i' does not name a type
24 | for (int i = 0; i < 25; i++) {
| ^
a.cc:30:3: error: 'cout' does not name a type
30 | cout << a + b + c << endl;
| ^~~~
a.cc:31:1: error: expected declaration before '}' token
31 | }
| ^
|
s050346010 | p03737 | C++ | #include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
string x,y,z;
cin >> x>> y>> z;
string ans="";
ans += x[0]-32;
ans += y[0]-32;
ans += z[0]-32;
cout << ans << endl;
}
| a.cc:16:3: error: extended character is not valid in an identifier
16 | ans += x[0]-32;
| ^
a.cc: In function 'int main()':
a.cc:16:3: error: '\U00003000ans' was not declared in this scope
16 | ans += x[0]-32;
| ^~~~~
|
s466870338 | p03737 | C++ | #include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
int x,y,z;
cin >> x>> y>> z;
string ans;
cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
} | a.cc: In function 'int main()':
a.cc:17:14: error: invalid types 'int[int]' for array subscript
17 | cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
| ^
a.cc:17:24: error: invalid types 'int[int]' for array subscript
17 | cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
| ^
a.cc:17:34: error: invalid types 'int[int]' for array subscript
17 | cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
| ^
|
s852734560 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
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:11:12: error: extended character ’ is not valid in an identifier
11 | char dif = ’A ’ - ’a ’;
| ^
a.cc:11:15: error: extended character ’ is not valid in an identifier
11 | char dif = ’A ’ - ’a ’;
| ^
a.cc:11:19: error: extended character ’ is not valid in an identifier
11 | char dif = ’A ’ - ’a ’;
| ^
a.cc:11:22: error: extended character ’ is not valid in an identifier
11 | char dif = ’A ’ - ’a ’;
| ^
a.cc: In function 'int main()':
a.cc:11:12: error: '\U00002019A' was not declared in this scope
11 | char dif = ’A ’ - ’a ’;
| ^~
a.cc:12:9: warning: unknown escape sequence: '\040'
12 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
| ^~~~~~~~~~~~~~~~~~
|
s623622038 | p03737 | C++ | #include<bits/stdc++.h>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
template <typename T_char>
T_char ToUpper (T_char cX) { return toupper(cX); }
int main() {
string x,y,z;
cin >> x>> y>> z;
string ans;
transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
transform (y.begin (), y.end (), y.begin (), ToUpper<char>);
transform (z.begin (), z.end (), z.begin (), ToUpper<char>);
cout <<x.substr(0, 1) <<y.substr(0, 1)<<z.substr(0, 1) << endl;
}
| a.cc:16:3: error: extended character is not valid in an identifier
16 | transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
| ^
a.cc: In function 'int main()':
a.cc:16:3: error: '\U00003000transform' was not declared in this scope
16 | transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
| ^~~~~~~~~~~
|
s758484415 | p03737 | C++ | #include<bits/stdc++.h>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
string x,y,z;
cin >> x>> y>> z;
string ans;
transform (x.begin (), x.end (), x.begin (), toupper);
transform (y.begin (), y.end (), y.begin (), toupper);
transform (z.begin (), z.end (), z.begin (), toupper);
cout <<x.substr(0, 1) <<y.substr(0, 1)<<z.substr(0, 1) << endl;
} | a.cc:15:3: error: extended character is not valid in an identifier
15 | transform (x.begin (), x.end (), x.begin (), toupper);
| ^
a.cc: In function 'int main()':
a.cc:15:3: error: '\U00003000transform' was not declared in this scope
15 | transform (x.begin (), x.end (), x.begin (), toupper);
| ^~~~~~~~~~~
a.cc:16:15: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
16 | transform (y.begin (), y.end (), y.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:15: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform (y.begin (), y.end (), y.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:17:15: 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>)'
17 | transform (z.begin (), z.end (), z.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:17:15: note: couldn't deduce template parameter '_UnaryOperation'
17 | transform (z.begin (), z.end (), z.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
|
s245525161 | p03737 | C++ | #include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <cstdlib>
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:12:15: 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 (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:12:15: note: couldn't deduce template parameter '_UnaryOperation'
12 | 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:13:15: 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 (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:13:15: note: couldn't deduce template parameter '_UnaryOperation'
13 | 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:14:15: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
14 | transform (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:14:15: note: couldn't deduce template parameter '_UnaryOperation'
14 | 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
|
s698740350 | p03737 | C | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
long long a[n];
for(int i = 0; i < n; i++)cin >> a[i];
long long sum = a[0];
long long ans = 0;
if(sum == 0){
sum = 1;
ans++;
}
for(int i = 1; i < n; i++){
long long tmp = sum + a[i];
if(sum > 0 && tmp > 0){
ans += tmp+1;
sum = -1;
}
else if(sum < 0 && tmp < 0){
ans += -tmp+1;
sum = 1;
}
else if(tmp == 0){
ans++;
if(sum < 0)sum = 1;
else sum = -1;
}
else sum = tmp;
}
sum = a[0];
long long ans2 = 0;
if(sum == 0){
sum = 1;
ans2++;
}
else {
sum = -1*a[0]/abs(a[0]);
ans2 = abs(a[0])+1;
}
for(int i = 1; i < n; i++){
long long tmp = sum + a[i];
if(sum > 0 && tmp > 0){
ans2 += tmp+1;
sum = -1;
}
else if(sum < 0 && tmp < 0){
ans2 += -tmp+1;
sum = 1;
}
else if(tmp == 0){
ans2++;
if(sum < 0)sum = 1;
else sum = -1;
}
else sum = tmp;
}
cout << min(ans2, ans);
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s412334852 | p03737 | C++ | #include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s, t, u;
cin >> s >> t >> u;
transform(s.begin(), s.end(), s.begin(), toupper);
transform(t.begin(), t.end(), t.begin(), toupper);
transform(u.begin(), u.end(), u.begin(), toupper);
cout << s[0] << t[0] << u[0] << endl;
} | a.cc: In function 'int main()':
a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
15 | transform(s.begin(), s.end(), s.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation'
15 | 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:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:16:18: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:17: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>)'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:17:18: note: couldn't deduce template parameter '_UnaryOperation'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s851197858 | p03737 | C++ | #include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s, t, u, n;
cin >> s >> t >> u;
transform(s.begin(), s.end(), s.begin(), toupper);
transform(t.begin(), t.end(), t.begin(), toupper);
transform(u.begin(), u.end(), u.begin(), toupper);
cout << s[0] << t[0] << u[0] << endl;
} | a.cc: In function 'int main()':
a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
15 | transform(s.begin(), s.end(), s.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation'
15 | 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:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:16:18: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:17: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>)'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:17:18: note: couldn't deduce template parameter '_UnaryOperation'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s516927807 | p03737 | C++ | #include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s, t, u, n;
cin >> s >> t >> u;
transform(s.begin(), s.end(), s.begin(), toupper);
transform(t.begin(), t.end(), t.begin(), toupper);
transform(u.begin(), u.end(), u.begin(), toupper);
cout << s[0] << t[0] << u[0] << endl;
} | a.cc: In function 'int main()':
a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
15 | transform(s.begin(), s.end(), s.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation'
15 | 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:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:16:18: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:17: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>)'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:17:18: note: couldn't deduce template parameter '_UnaryOperation'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s796471424 | p03737 | C++ | #include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s, t, u, n;
cin >> s >> t >> u;
transform(s.begin(), s.end(), s.begin(), toupper);
transform(t.begin(), t.end(), t.begin(), toupper);
transform(u.begin(), u.end(), u.begin(), toupper);
cout << s[0] << t[0] << u[0] << endl;
} | a.cc: In function 'int main()':
a.cc:15:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
15 | transform(s.begin(), s.end(), s.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:15:18: note: couldn't deduce template parameter '_UnaryOperation'
15 | 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:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:16:18: note: couldn't deduce template parameter '_UnaryOperation'
16 | transform(t.begin(), t.end(), t.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
a.cc:17: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>)'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:17:18: note: couldn't deduce template parameter '_UnaryOperation'
17 | transform(u.begin(), u.end(), u.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s844119455 | p03737 | C++ | #include <iostream>
#include <string>
#include <iomanip>
#include <ios>
using namespace std;
int main(void){
string a,b,c;
cin >> a >> b >> c;
cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:16: error: request for member 'upcase' in 'a.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
10 | cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
| ^~~~~~
a.cc:10:31: error: request for member 'upcase' in 'b.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
10 | cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
| ^~~~~~
a.cc:10:46: error: request for member 'upcase' in 'c.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
10 | cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
| ^~~~~~
|
s440490752 | p03737 | C++ | #include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
using namespace std;
int main()
{
string a,b,c;
cin >> a >> b >> c;
char dif = ’A ’ - ’a ’;
cout << a+dif << b+dif << c+dif << endl;
return 0;
} | a.cc:13:16: error: extended character ’ is not valid in an identifier
13 | char dif = ’A ’ - ’a ’;
| ^
a.cc:13:19: error: extended character ’ is not valid in an identifier
13 | char dif = ’A ’ - ’a ’;
| ^
a.cc:13:23: error: extended character ’ is not valid in an identifier
13 | char dif = ’A ’ - ’a ’;
| ^
a.cc:13:26: error: extended character ’ is not valid in an identifier
13 | char dif = ’A ’ - ’a ’;
| ^
a.cc: In function 'int main()':
a.cc:13:16: error: '\U00002019A' was not declared in this scope
13 | char dif = ’A ’ - ’a ’;
| ^~
|
s546258146 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string a, b, c;
cin >> a >> b >> c;
cout << toupper(a[0]) << touppe(b[0]) << toupper(c[0]) << '\n';
return 0;
} | a.cc: In function 'int main()':
a.cc:10:28: error: 'touppe' was not declared in this scope; did you mean 'toupper'?
10 | cout << toupper(a[0]) << touppe(b[0]) << toupper(c[0]) << '\n';
| ^~~~~~
| toupper
|
s657857141 | p03737 | C++ | #include<bits/stdc++>
using namespace std;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
printf("%c%c%c", toupper(s1[0]), toupper(s2[0]), toupper(s3[0]));
} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s912134171 | p03737 | C++ | #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
| a.cc: In function 'int main()':
a.cc:10:85: error: expected '}' at end of input
10 | cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
| ^
a.cc:7:12: note: to match this '{'
7 | int main() {
| ^
|
s019869546 | p03737 | C++ | int main(void){
char S1[11];
char S2[11];
char S3[11];
scanf("%s %s %s",S1,S2,S3);
printf("%c%c%c",S1[0]-0x20,S2[0]-0x20,S3[0]-0x20);
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
5 | scanf("%s %s %s",S1,S2,S3);
| ^~~~~
a.cc:6:3: error: 'printf' was not declared in this scope
6 | printf("%c%c%c",S1[0]-0x20,S2[0]-0x20,S3[0]-0x20);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(void){
|
s487004833 | p03737 | C++ | #include<iostream>
#include<string>
using namespace std;
string a, b, c;
int main(){
cin >> a >> b >> c;
cout << toupper(*a.begin())
<< toupper(*b.begin())
<< toupper(*c.behin())
<< endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'behin'; did you mean 'begin'?
9 | << toupper(*c.behin())
| ^~~~~
| begin
|
s037035303 | p03737 | C++ | #ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#define y0 qvya13579
#define y1 qvyb24680
#define j0 qvja13579
#define j1 qvjb24680
#define next qvne13579xt
#define prev qvpr13579ev
#define INF 1000000007
#define MOD 1000000007
#define PI acos(-1.0)
#define endl "\n"
#define IOS cin.tie(0);ios::sync_with_stdio(false)
#define M_P make_pair
#define PU_B push_back
#define PU_F push_front
#define PO_B pop_back
#define PO_F pop_front
#define U_B upper_bound
#define L_B lower_bound
#define B_S binary_search
#define PR_Q priority_queue
#define FIR first
#define SEC second
#if __cplusplus < 201103L
#define stoi(argument_string) atoi((argument_string).c_str())
#endif
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define REP_R(i,n) for(int i=((int)(n)-1);i>=0;--i)
#define FOR(i,m,n) for(int i=((int)(m));i<(int)(n);++i)
#define FOR_R(i,m,n) for(int i=((int)(m)-1);i>=(int)(n);--i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define SIZ(x) ((int)(x).size())
#define COUT(x) cout<<(x)<<endl
#define CIN(x) cin>>(x)
#define CIN2(x,y) cin>>(x)>>(y)
#define CIN3(x,y,z) cin>>(x)>>(y)>>(z)
#define CIN4(x,y,z,w) cin>>(x)>>(y)>>(z)>>(w)
#define SCAND(x) scanf("%d",&(x))
#define SCAND2(x,y) scanf("%d%d",&(x),&(y))
#define SCAND3(x,y,z) scanf("%d%d%d",&(x),&(y),&(z))
#define SCAND4(x,y,z,w) scanf("%d%d%d%d",&(x),&(y),&(z),&(w))
#define SCANLLD(x) scanf("%lld",&(x))
#define SCANLLD2(x,y) scanf("%lld%lld",&(x),&(y))
#define SCANLLD3(x,y,z) scanf("%lld%lld%lld",&(x),&(y),&(z))
#define SCANLLD4(x,y,z,w) scanf("%lld%lld%lld%lld",&(x),&(y),&(z),&(w))
#define PRINTD(x) printf("%d\n",(x))
#define PRINTLLD(x) printf("%lld\n",(x))
typedef long long int lli;
using namespace std;
bool compare_by_2nd(pair<int,int> a, pair<int,int> b)
{
if( a.second != b.second )
{
return a.second < b.second;
}
else
{
return a.first < b.first;
}
}
int ctoi(char c)
{
if( c >= '0' and c <= '9' )
{
return (int)(c-'0');
}
return -1;
}
int alphabet_pos(char c)
{
if( c >= 'a' and c <= 'z' )
{
return (int)(c-'a');
}
return -1;
}
int alphabet_pos_capital(char c)
{
if( c >= 'A' and c <= 'Z' )
{
return (int)(c-'A');
}
return -1;
}
vector<string> split(string str, char ch)
{
int first = 0;
int last = str.find_first_of(ch);
if(last == string::npos)
{
last = SIZ(str);
}
vector<string> result;
while( first < SIZ(str) )
{
string Ssubstr(str, first, last - first);
result.push_back(Ssubstr);
first = last + 1;
last = str.find_first_of(ch, first);
if(last == string::npos)
{
last = SIZ(str);
}
}
return result;
}
int gcd( int a , int b ) // assuming a,b >= 1
{
if( a < b )
{
return gcd( b , a );
}
if( a % b == 0 )
{
return b;
}
return gcd( b , a % b );
}
int lcm( int a , int b ) // assuming a,b >= 1
{
return a * b / gcd( a , b );
}
/*------------------ the end of the template -----------------------*/
int main()
{
//IOS; /* making cin faster */
vector<string> a(3);
CIN3(a[0],a[1],a[2]);
string ans(3);
REP(i,3)
{
ans[i] = 'A' + ( 'a' - a[i][0] );
}
COUT(ans);
}
| a.cc: In function 'int main()':
a.cc:249:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(int)'
249 | string ans(3);
| ^
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/istream:40,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from a.cc:20:
/usr/include/c++/14/bits/basic_string.h:800:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with <template-parameter-2-2> = _Tp; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
800 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:800:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/bits/specfun.h:43,
from /usr/include/c++/14/cmath:3906,
from a.cc:10:
/usr/include/c++/14/type_traits: In substitution of 'template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]':
/usr/include/c++/14/bits/basic_string.h:149:8: required by substitution of 'template<class _CharT, class _Traits, class _Alloc> template<class _Tp, class _Res> using std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv = std::enable_if_t<((bool)std::__and_<std::is_convertible<const _Tp&, std::basic_string_view<_CharT, _Traits> >, std::__not_<std::is_convertible<const _Tp*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>*> >, std::__not_<std::is_convertible<const _Tp&, const _CharT*> > >::value), _Res> [with _Tp = int; _Res = void; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
149 | using _If_sv = enable_if_t<
| ^~~~~~
/usr/include/c++/14/bits/basic_string.h:797:30: required from here
797 | template<typename _Tp, typename = _If_sv<_Tp, void>>
| ^~~~~~~~
/usr/include/c++/14/type_traits:2711:11: error: no type named 'type' in 'struct std::enable_if<false, void>'
2711 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:788:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, size_type, size_type, const _Alloc&) [with <template-parameter-2-2> = _Tp; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
788 | basic_string(const _Tp& __t, size_type __pos, size_type __n,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:788:9: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:765:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with <template-parameter-2-2> = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
765 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:765:9: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:669:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(size_type, _CharT, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
669 | basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:669:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:646:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
646 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:646:7: note: template argument deduction/substitution failed:
a.cc:249:14: note: cannot convert '3' (type 'int') to type 'const char*'
249 | string ans(3);
| ^
/usr/include/c++/14/bits/basic_string.h:721:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
721 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:721:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:716:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
716 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:716:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:711:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
711 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:711:45: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<char>'
711 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:682:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
682 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:682:35: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>&&'
682 | basic_string(basic_string&& __str) noexcept
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:624:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
624 | basic_string(const _CharT* __s, size_type __n,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:624:7: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:604:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
604 | basic_string(const basic_string& __str, size_type __pos,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:604:7: note: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:586:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
586 | basic_string(const basic_string& __str, size_type __pos,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:586:7: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:569:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
569 | basic_string(const basic_string& __str, size_type __pos,
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:569:7: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:552:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
552 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:552:40: note: no known conversion for argument 1 from 'int' to 'const std::__cxx11::basic_string<char>&'
552 | basic_string(const basic_string& __str)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:540:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
540 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:540:34: note: no known conversion for argument 1 from 'int' to 'const std::alloca |
s463111633 | 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:10: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
a.cc:7:16: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:10: error: '\U00002019A\U00002019' was not declared in this scope
7 | char dif=’A’ - ’a’;
| ^~~
a.cc:7:16: error: '\U00002019a\U00002019' was not declared in this scope
7 | char dif=’A’ - ’a’;
| ^~~
|
s597433260 | p03737 | C++ | int main(){
string a, b, c;
cin >> a >> b >> c;
char dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
}
| a.cc:4:10: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:10: error: extended character ’ is not valid in an identifier
a.cc:4:16: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
2 | string a, b, c;
| ^~~~~~
a.cc:3:1: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:3:8: error: 'a' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:13: error: 'b' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:18: error: 'c' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:4:10: error: '\U00002019A\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:4:16: error: '\U00002019a\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(){
|
s703106185 | p03737 | C++ | int main(){
string a, b, c;
cin >> a >> b >> c;
char dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
}
| a.cc:4:10: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:10: error: extended character ’ is not valid in an identifier
a.cc:4:16: error: extended character ’ is not valid in an identifier
4 | char dif=’A’ - ’a’;
| ^
a.cc:4:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
2 | string a, b, c;
| ^~~~~~
a.cc:3:1: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:3:8: error: 'a' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:13: error: 'b' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:3:18: error: 'c' was not declared in this scope
3 | cin >> a >> b >> c;
| ^
a.cc:4:10: error: '\U00002019A\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:4:16: error: '\U00002019a\U00002019' was not declared in this scope
4 | char dif=’A’ - ’a’;
| ^~~
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(){
|
s283731556 | p03737 | C++ | #include"bits/stdc++.h"
using namespace std;
int main(){
str a,b,c;
char x,y,z;
cin >> a >> b >> c;
x=a.front();
y=b.front();
z=c.front();
cout << x-32 << y-32 << z-32 << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
5 | str a,b,c;
| ^~~
| std
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:20: error: 'c' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
|
s079564292 | p03737 | C++ | #include"bits/stdc++.h"
using namespace std;
int main(){
str a,b,c;
char x,y,z;
cin >> a >> b >> c;
x=a.front();
y=b.front();
z=c.front();
cout << x-0x20 << y-0x20 << z-0x20 << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
5 | str a,b,c;
| ^~~
| std
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:20: error: 'c' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
|
s802960316 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
char a[10],b[10],c[10],r[3];
cin >> a >> b >> c;
r[0] = a[0];
r[1] = b[0];
r[2] = c[0];
r = toupper(r);
cout << r << endl;
} | a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'toupper(char [3])'
9 | r = toupper(r);
| ~~~~~~~^~~
In file included from /usr/include/c++/14/cctype:42,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35,
from a.cc:1:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)' (near match)
125 | extern int toupper (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:125:12: note: conversion of argument 1 would be ill-formed:
a.cc:9:17: error: invalid conversion from 'char*' to 'int' [-fpermissive]
9 | r = toupper(r);
| ^
| |
| char*
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:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
2687 | toupper(_CharT __c, const locale& __loc)
| ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate expects 2 arguments, 1 provided
|
s588223530 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
char a[10],b[10],c[10],r[3];
cin >> a >> b >> c;
r[0] = a[0];
r[1] = b[0];
r[2] = c[0];
for (int i = 0;i < 3;i++){
StrToUpper(r[i]);
}
cout << r << endl;
} | a.cc: In function 'int main()':
a.cc:10:5: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
10 | StrToUpper(r[i]);
| ^~~~~~~~~~
| toupper
|
s521563223 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
char a[10],b[10],c[10],r[3];
cin >> a >> b >> c;
r[0] = a[0];
r[1] = b[0];
r[2] = c[0];
StrToUpper(r);
cout << r << endl;
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
9 | StrToUpper(r);
| ^~~~~~~~~~
| toupper
|
s885037544 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
char a[10],b[10],c[10],r[3];
cin >> a >> b >> c;
r[0] = a[0];
r[1] = b[0];
r[2] = c[0];
for (int i = 0;i < 3;i++){
StrToUpper(char r[i]);
}
cout << r << endl;
} | a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before 'char'
10 | StrToUpper(char r[i]);
| ^~~~
a.cc:10:5: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
10 | StrToUpper(char r[i]);
| ^~~~~~~~~~
| toupper
|
s486731994 | p03737 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
char i=toupper(a[0]),j=toupper(b[0]),k=toupper(c[0])
cout<<i<<j<<k;
} | a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
8 | cout<<i<<j<<k;
| ^~~~
|
s437787509 | 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.at(0)<<b.at(0)<<c.at(0)<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
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:13: 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:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform (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:13: 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:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
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:13: 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
|
s673643353 | p03737 | C++ | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin() ,::toupper);
transform(b.begin(), b.end(), b.begin() ,::toupper);
transform(c.begin(), c.end(), c.begin() ,::toupper);
cout << a.at(0) << b.at(0) << c.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:9:21: error: request for member 'begin' in 'a', which is of non-class type 'int'
9 | transform(a.begin(), a.end(), a.begin() ,::toupper);
| ^~~~~
a.cc:9:32: error: request for member 'end' in 'a', which is of non-class type 'int'
9 | transform(a.begin(), a.end(), a.begin() ,::toupper);
| ^~~
a.cc:9:41: error: request for member 'begin' in 'a', which is of non-class type 'int'
9 | transform(a.begin(), a.end(), a.begin() ,::toupper);
| ^~~~~
a.cc:10:21: error: request for member 'begin' in 'b', which is of non-class type 'int'
10 | transform(b.begin(), b.end(), b.begin() ,::toupper);
| ^~~~~
a.cc:10:32: error: request for member 'end' in 'b', which is of non-class type 'int'
10 | transform(b.begin(), b.end(), b.begin() ,::toupper);
| ^~~
a.cc:10:41: error: request for member 'begin' in 'b', which is of non-class type 'int'
10 | transform(b.begin(), b.end(), b.begin() ,::toupper);
| ^~~~~
a.cc:11:21: error: request for member 'begin' in 'c', which is of non-class type 'int'
11 | transform(c.begin(), c.end(), c.begin() ,::toupper);
| ^~~~~
a.cc:11:32: error: request for member 'end' in 'c', which is of non-class type 'int'
11 | transform(c.begin(), c.end(), c.begin() ,::toupper);
| ^~~
a.cc:11:41: error: request for member 'begin' in 'c', which is of non-class type 'int'
11 | transform(c.begin(), c.end(), c.begin() ,::toupper);
| ^~~~~
a.cc:13:19: error: request for member 'at' in 'a', which is of non-class type 'int'
13 | cout << a.at(0) << b.at(0) << c.at(0) << endl;
| ^~
a.cc:13:30: error: request for member 'at' in 'b', which is of non-class type 'int'
13 | cout << a.at(0) << b.at(0) << c.at(0) << endl;
| ^~
a.cc:13:41: error: request for member 'at' in 'c', which is of non-class type 'int'
13 | cout << a.at(0) << b.at(0) << c.at(0) << endl;
| ^~
|
s841574641 | p03737 | C++ | #include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
#define ALL(a) begin(a), end(a)
#define TPL template
#define TNM typename
using ll = long long;
using ull = unsigned long long;
TPL<TNM T> using vec = vector<T>;
TPL<TNM T> using vec2 = vec<vec<T>>;
TPL<TNM T> using vec3 = vec<vec2<T>>;
TPL<TNM T> using vec4 = vec<vec3<T>>;
TPL<TNM T> using vec5 = vec<vec4<T>>;
TPL<TNM T> inline istream& operator >> (istream& is, vector<T>& vec) { for (T& x : vec) is >> x; return is; }
TPL<TNM V, TNM H> void resize(vector<V>& _v, const H _h) { _v.resize(_h); }
TPL<TNM V, TNM H, TNM ... T> void resize(vector<V>& _v, const H& _h, const T& ... _t) { _v.resize(_h); for (auto& __v : _v) resize(__v, _t ...); }
TPL<TNM V, TNM T> TNM enable_if<!is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { std::fill(ALL(_v), _t); }
TPL<TNM V, TNM T> TNM enable_if<is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { for (auto &_e : _v) fill(_e, _t); }
TPL<TNM T> inline void UNIQUE(vector<T>& _v) { sort(ALL(_v)); _v.erase(unique(ALL(_v)), _v.end()); }
struct pre_ { pre_() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(6); } } pre__;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
string ans = { a[0] , b[0] , c[0] };
std::transform(ans.begin(), ans.end(), ans.begin(), std::toupper);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:30: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>)'
30 | std::transform(ans.begin(), ans.end(), ans.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:30:23: note: couldn't deduce template parameter '_UnaryOperation'
30 | std::transform(ans.begin(), ans.end(), ans.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
|
s080214299 | p03737 | C++ | #include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
#define ALL(a) begin(a), end(a)
#define TPL template
#define TNM typename
using ll = long long;
using ull = unsigned long long;
TPL<TNM T> using vec = vector<T>;
TPL<TNM T> using vec2 = vec<vec<T>>;
TPL<TNM T> using vec3 = vec<vec2<T>>;
TPL<TNM T> using vec4 = vec<vec3<T>>;
TPL<TNM T> using vec5 = vec<vec4<T>>;
TPL<TNM T> inline istream& operator >> (istream& is, vector<T>& vec) { for (T& x : vec) is >> x; return is; }
TPL<TNM V, TNM H> void resize(vector<V>& _v, const H _h) { _v.resize(_h); }
TPL<TNM V, TNM H, TNM ... T> void resize(vector<V>& _v, const H& _h, const T& ... _t) { _v.resize(_h); for (auto& __v : _v) resize(__v, _t ...); }
TPL<TNM V, TNM T> TNM enable_if<!is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { std::fill(ALL(_v), _t); }
TPL<TNM V, TNM T> TNM enable_if<is_class<V>::value>::type fill(vector<V>& _v, const T &_t) { for (auto &_e : _v) fill(_e, _t); }
TPL<TNM T> inline void UNIQUE(vector<T>& _v) { sort(ALL(_v)); _v.erase(unique(ALL(_v)), _v.end()); }
struct pre_ { pre_() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(6); } } pre__;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
string ans = { a[0] , b[0] , c[0] };
std::transform(ans.begin(), ans.end(), ans.begin(), toupper);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:30: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>)'
30 | std::transform(ans.begin(), ans.end(), ans.begin(), toupper);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:30:23: note: couldn't deduce template parameter '_UnaryOperation'
30 | std::transform(ans.begin(), ans.end(), ans.begin(), toupper);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.