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; | ...
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,...
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; | ^~~ ...
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,...
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) << end...
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,...
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...
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); | ...
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(),...
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.f...
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...
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<...
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 );...
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 mat...
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: e...
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: er...
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:...
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)-0x2...
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(),touppe...
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, ...
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 (),...
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...
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_...
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(), to...
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(), ...
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...
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]); ...
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:...
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();...
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.a...
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...
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.MakeUpp...
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(),touppe...
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::st...
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 | ...
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).be...
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/alg...
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: er...
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') { cou...
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()'...
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...
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 fil...
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 >> ...
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...
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 n...
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...
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: ...
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 (),...
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:4...
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...
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, ...
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...
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 overloade...
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)...
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 overloade...
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(...
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 mea...
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...
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...
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(),touppe...
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 '...
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::bas...
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',...
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' | ^...
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 +=...
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 ...
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; | ...
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 ); retur...
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 ...
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 >...
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<...
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 (), ...
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); ...
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 ...
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...
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(in...
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...
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...
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....
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...
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....
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...
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....
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...
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; | ...
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...
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 head...
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> #includ...
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, ...
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: er...
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: er...
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: er...
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 | ...
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 | ...
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: /u...
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 (),...
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) <<...
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 | ...
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> usin...
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()...
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> usin...
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()...