submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s309798611
p03737
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) typedef long long ll; using namespace std; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; int h,w,x; char s[1000][1000]; bool visited [1000][1000]; pair<int,int> start,goal; queue<pair...
a.cc: In function 'int main()': a.cc:19:19: error: 'str' was not declared in this scope; did you mean 'std'? 19 | cout<<transform(str.begin(), str.end(), str.begin(), a[0])<<transform(str.begin(), str.end(), str.begin(), b[0])<<transform(str.begin(), str.end(), str.begin(), c[0]); | ^~~ ...
s971552965
p03737
C++
#include<iostream> #include<algorithm> #include<math.h> #include<queue> #include<string> #include<vector> #include<tuple> #include<stack> #include<iomanip> #include<map> 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] + ...
a.cc:16:12: error: extended character ’ is not valid in an identifier 16 | char dif = ’A ’ - ’a ’; | ^ a.cc:16:15: error: extended character ’ is not valid in an identifier 16 | char dif = ’A ’ - ’a ’; | ^ a.cc:16:19: error: extended character ’ is not valid in an identifier ...
s155368848
p03737
C++
#include<bits/stdc++.h> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; cout << upper(s1[0]) << upper(s2[0]) << upper(s3[0]) << endl; }
a.cc: In function 'int main()': a.cc:6:17: error: 'upper' was not declared in this scope; did you mean 'toupper'? 6 | cout << upper(s1[0]) << upper(s2[0]) << upper(s3[0]) << endl; | ^~~~~ | toupper
s193290153
p03737
C++
#include<iostream> #include<algorithm> #include<cmath> #include<cstdlib> #include<string> #include<vector> using namespace std; int main(void) { string s, t, u; cin >> s >> t >> u; char toupper(s[0]); char toupper(t[0]); char toupper(u[0]); cout << s[0] << t[0] << u[0]; return 0; }
a.cc: In function 'int main()': a.cc:13:14: error: redeclaration of 'char toupper' 13 | char toupper(t[0]); | ^~~~~~~ a.cc:12:14: note: 'char toupper' previously declared here 12 | char toupper(s[0]); | ^~~~~~~ a.cc:14:14: error: redeclaration of 'char toupper...
s248573614
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c; cin >> a >> b >> c; int d,e,f; d=ascii(a); e=ascii(b); f=ascii(c); cout << char(a+32) << char(b+32) << char(c+32) << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: 'ascii' was not declared in this scope; did you mean 'toascii'? 8 | d=ascii(a); | ^~~~~ | toascii a.cc:11:17: error: no match for 'operator+' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 11 | cout << ...
s513723488
p03737
C++
include<bits/stdc++.h> using namespace std; #define PI 3.1415926535897932 int main(){ char a[102],b[102]; scanf("%s",a); scanf("%s",b); if (strlen(a)>strlen(b)) { printf("GREATER\n"); return 0; } else if (strlen(a)<strlen(b)) { printf("LESS\n"); return 0; } ...
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:9:5: error: 'scanf' was not declared in this scope 9 | scanf("%s",a); | ^~~~~ a.cc:11:9: error: 'strlen' was not declared in this scope 11 | if (strlen(a)>strlen(b...
s257270740
p03737
C++
#include <iostream> #include <algorithm> #include <string> #include <stdio.h> using namespace std; int main() { string s_1, s_2, s_3; cin >> s_1 >> s_2 >> s_3; string ans; ans = s_1.at(0) + s_2.at(0) + s_3.at(0); transform (ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; ...
a.cc: In function 'int main()': 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 (ans.begin(), ans.end(), ans.be...
s375223548
p03737
C
#include<stdio.h> #include<string.h> char s1[10], s2[10], s3[10]; int main(void) { scanf_s("%s", s1, 10); scanf_s("%s", s2, 10); scanf_s("%s", s3, 10); printf("%c%c%c\n", s1[0] - 32, s2[0] - 32, s3[0] - 32); return 0; }
main.c: In function 'main': main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 8 | scanf_s("%s", s1, 10); | ^~~~~~~ | scanf
s297294399
p03737
C++
#include <bits/stdc++.h> using namespace std; string s1, s2, s3; int main() { cin >> s1 >> s2 >> s3; int tmp = 'a' - 'A' cout << s1[0] - tmp << s2[0] - tmp << s3[0] - tmp << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: expected ',' or ';' before 'cout' 8 | cout << s1[0] - tmp << s2[0] - tmp << s3[0] - tmp << endl; | ^~~~
s405429924
p03737
C++
#include <stdio.h> #include <iostream> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <string> #include <algorithm> #include <cstdlib> #include <limits> #include <numeric> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; int main() {...
a.cc: In function 'int main()': a.cc:23: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>)' 23 | transform(ans.begin(), ans.end(),ans....
s926305659
p03737
C++
#include <stdio.h> #include <iostream> #include <iostream> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <string> #include <algorithm> #include <cstdlib> #include <limits> #include <numeric> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<in...
a.cc: In function 'int main()': a.cc:24:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 24 | transform(ans.begin(), ans.end(),ans....
s282111604
p03737
C++
#include <stdio.h> #include <tchar.h> #include <iostream> #include <iostream> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <string> #include <algorithm> #include <cstdlib> #include <limits> #include <numeric> using namespace std; typedef long long ll; typedef unsigned long long ull...
a.cc:2:10: fatal error: tchar.h: No such file or directory 2 | #include <tchar.h> | ^~~~~~~~~ compilation terminated.
s716948141
p03737
C++
#include <iostream> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <string> #include <algorithm> #include <cstdlib> #include <limits> #include <numeric> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; int main() { string a, b, c,an...
a.cc: In function 'int main()': a.cc:22:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 22 | transform(ans.begin(), ans.end(),toupper); | ~~~~~~~~~^~~~~~~~~~~~~...
s446492608
p03737
C++
#include<bits/stdc++.h> using namespace std; int main() { srting s, t, u; cin >> s >> t >> u; cout << s[0] << t[0] << u[0]; }
a.cc: In function 'int main()': a.cc:4:9: error: 'srting' was not declared in this scope 4 | srting s, t, u; | ^~~~~~ a.cc:5:16: error: 's' was not declared in this scope 5 | cin >> s >> t >> u; | ^ a.cc:5:21: error: 't' was not declared in this scope; did you ...
s210912288
p03737
C++
/** * ABC 59 A * author : kyomukyomupurin * created : 2018-09-05 02:14:26 **/ #include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); t...
a.cc: In function 'int main()': a.cc:15:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 15 | transform(s1.begin(), s1.end(), s1.begin(...
s370316245
p03737
C++
#include <bits/stdc++.h> using namespace std; #define dump(x) cout << (x) << endl typedef long long ll; typedef pair<int, int> pi; typedef vector<int> V; int main() { string a, b, c; cin >> a >> b >> c; cout << toupper(a.front()) << toupper(b.front()) << toupper(c,front()) << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:65: error: 'front' was not declared in this scope 11 | cout << toupper(a.front()) << toupper(b.front()) << toupper(c,front()) << endl; | ^~~~~
s868273084
p03737
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<toupper(a.at(0))<<b.toupper(0)<<c.toupper(0)<<endl; }
a.cc: In function 'int main()': a.cc:8:31: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper' 8 | cout<<toupper(a.at(0))<<b.toupper(0)<<c.toupper(0)<<endl; | ^~~~~~~ a.cc:8:45: error: 'std::string' {aka 'class std::__cxx11::basic...
s532047504
p03737
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl; }
a.cc: In function 'int main()': a.cc:8:13: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper' 8 | cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl; | ^~~~~~~ a.cc:8:27: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no...
s858128013
p03737
C++
#include <iostream> #include <numeric> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <iterator> #include <math.h> #include <cmath> #include <set> #include <cctype> using namespace std; int main() { string s, t, r; cin >> s >> t >> r; transform(s.begin(), s.end(), s.be...
a.cc: In function 'int main()': a.cc:23: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>)' 23 | transform(s.begin(), s.end(), s.begin...
s761208713
p03737
C++
#include <iostream> #include <numeric> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <iterator> #include <math.h> #include <cmath> #include <set> #include <cctype> using namespace std; int main() { string s, t, r; cin >> s >> t >> r; transform(s.begin(), s.end(), s.be...
a.cc: In function 'int main()': a.cc:23: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>)' 23 | transform(s.begin(), s.end(), s.begin...
s145998464
p03737
C++
#include <iostream> int main() { std::string s1. s2. s3; std::cin >> s1 >> s2 >> s3; std::cout << s1.at(1) + 32 << s2.at(1) + 32 << s3.at(1) + 32; return 0; }
a.cc: In function 'int main()': a.cc:5:23: error: expected initializer before '.' token 5 | std::string s1. s2. s3; | ^ a.cc:6:21: error: 's1' was not declared in this scope 6 | std::cin >> s1 >> s2 >> s3; | ^~ a.cc:6:27: error: 's2' was not ...
s481849772
p03737
C++
#include <iostream> int main() { string s1. s2. s3; std::cin >> s1 >> s2 >> s3; std::cout << s1.at(1) + 32 << s2.at(1) + 32 << s3.at(1) + 32; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'string' was not declared in this scope 5 | string s1. s2. s3; | ^~~~~~ a.cc:5:9: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/inc...
s084924379
p03737
C++
#include <iostream> #include <string> #include <cstdlib> #include <algorithm> using namespace std; int main(){ string s1,s2,s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), tou...
a.cc: In function 'int main()': a.cc:11:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s1.begin(), s1.end(), s1.begin(),...
s621242380
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string s1,s2,s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1[0] << s2[0] << s3...
a.cc: In function 'int main()': a.cc:9:3: error: 'transform' was not declared in this scope 9 | transform(s1.begin(), s1.end(), s1.begin(), toupper); | ^~~~~~~~~
s108450695
p03737
C++
#include<bits/stdc++.h> using namespace std; #define rp(i,n) for(int i=0;i<n;i++) #define rep(i,m,n) for(int i=m;i<=n;i++) #define lrp(i,n) for(long long i=0;i<n;i++) #define lrep(i,m,n) for(long long i=m;i<=n;i++) #define ll long long #define sort(a) sort(a.begin(),a.end()) #define reverse(a) reverse(a.begin(),a.end()...
a.cc: In function 'int main()': a.cc:19:15: error: request for member 'at' in 'a', which is of non-class type 'char' 19 | cout << a.at(0)+dif << b.at(0)+dif << c.at(0)+dif << endl; | ^~ a.cc:19:30: error: request for member 'at' in 'b', which is of non-class type 'char' 19 | cout << a....
s759538335
p03737
C++
#include<bits/stdc++.h> using namespace std; #define rp(i,n) for(int i=0;i<n;i++) #define rep(i,m,n) for(int i=m;i<=n;i++) #define lrp(i,n) for(long long i=0;i<n;i++) #define lrep(i,m,n) for(long long i=m;i<=n;i++) #define ll long long #define sort(a) sort(a.begin(),a.end()) #define reverse(a) reverse(a.begin(),a.end()...
a.cc: In function 'int main()': a.cc:19:14: error: invalid types 'char[int]' for array subscript 19 | cout << a[0]+dif << b[0]+dif << c[0]+dif << endl; | ^ a.cc:19:26: error: invalid types 'char[int]' for array subscript 19 | cout << a[0]+dif << b[0]+dif << c[0]+dif << endl; | ...
s984639168
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string ans = “”; for(int i = 0; i < 3; i++){ string s; cin >> s; char a; a = s[0]; a -+ 32; ans += a; } cout << ans << endl; return 0;
a.cc:5:14: error: extended character “ is not valid in an identifier 5 | string ans = “”; | ^ a.cc:5:14: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:5:14: error: '\U0000201c\U0000201d' was not declared in this scope 5 | string ans = “”; ...
s833275833
p03737
C++
#include <bits/stdc++.j> using namespace std; int main(){ string ans = “”; for(int i = 0; i < 3; i++){ string s; cin >> s; char a; a = s[0]; a -+ 32; ans += a; } cout << ans << endl; return 0;
a.cc:1:10: fatal error: bits/stdc++.j: No such file or directory 1 | #include <bits/stdc++.j> | ^~~~~~~~~~~~~~~ compilation terminated.
s775448949
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; a[0]=a[0]-32 b[0]=b[0]-32 c[0]=c[0]-32 cout<<a[0]<<b[0]<<c[0]<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: expected ';' before 'b' 7 | a[0]=a[0]-32 | ^ | ; 8 | b[0]=b[0]-32 | ~
s192313154
p03737
C++
#include <bits/stdc++.h> using namespace std; string a, b, c; char d, e, f; int main(){ cin<<a<<b<<c; d=a[0] - 32; e=b[0] - 32; f=c[0] - 32; cout<<d<<e<<f<<endl; }
a.cc: In function 'int main()': a.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | cin<<a<<b<<c; | ~~~^~~ | | | | | std::string {aka std::__cxx11::basic_string<c...
s170971517
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string answer; std::transform(s1.begin(), s1.end(), s1.begin(), toupper); std::transform(s2.begin(), s2.end(), s2.begin(), toupper); std::transform(s3.begin(), s3.end(), s3.begin()...
a.cc: In function 'int main()': a.cc:11:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | std::transform(s1.begin(), s1.end(), ...
s413342506
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string answer; std::transform(s1.begin(), s1.end(), s1.begin(), toupper); std::transform(s2.begin(), s2.end(), s2.begin(), toupper); std::transform(s3.begin(), s3.end(), s3.begin()...
a.cc: In function 'int main()': a.cc:11:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | std::transform(s1.begin(), s1.end(), ...
s315044863
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string answer; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); c...
a.cc: In function 'int main()': a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s1.begin(), s1.end(), s1.be...
s061263818
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; string a,b,c; int main(){ cin>>a>>b>>c; transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout<<a[0]<<b[0]<<c[0]<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin()...
s743042270
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; string a,b,c; int main(){ cin>>a>>b>>c; transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout<<a[0]<<b[0]<<c[0]<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin()...
s828556739
p03737
C++
s1, s2, s3 = map(str, input().split()) print(s1[0].upper() + s2[0].upper() + s3[0].upper())
a.cc:1:1: error: 's1' does not name a type 1 | s1, s2, s3 = map(str, input().split()) | ^~
s555366007
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<cctype> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.cbegin(), a.cend(), a.begin(), toupper); transform(b.cbegin(), b.cend(), b.begin(), toupper); transform(c.cbegin(), c.cend(), c.begin(), toupper); cout << a[0...
a.cc: In function 'int main()': a.cc:10:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.cbegin(), a.c...
s376776789
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.cbegin(), a.cend(), a.begin(), toupper); transform(b.cbegin(), b.cend(), b.begin(), toupper); transform(c.cbegin(), c.cend(), c.begin(), toupper); cout << a[0] << b[0] << c[0]...
a.cc: In function 'int main()': a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(a.cbegin(), a.ce...
s246893439
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; char d='A'-'a' cout<<(char)(a[0]+d)<<(char)(b[0]+d)<<(char)(c[0]+d)<<endl; }
a.cc: In function 'int main()': a.cc:7:3: error: expected ',' or ';' before 'cout' 7 | cout<<(char)(a[0]+d)<<(char)(b[0]+d)<<(char)(c[0]+d)<<endl; | ^~~~
s629257749
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; char d = 'A'-'a'; cout<<char[a(0)]+d<<char[b(0)]+d<<char[c(0)]+d<<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: expected primary-expression before 'char' 7 | cout<<char[a(0)]+d<<char[b(0)]+d<<char[c(0)]+d<<endl; | ^~~~
s353720197
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; char d = 'A'-'a'; cout<<char[a.at(0)]+d<<char[b.at(0)]+d<<char[c.at(0)]+d<<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: expected primary-expression before 'char' 7 | cout<<char[a.at(0)]+d<<char[b.at(0)]+d<<char[c.at(0)]+d<<endl; | ^~~~
s652299495
p03737
C++
#include <stdio.h> #include <algorithm> #include <iostream> #include <string> #include <vector> #include <functional> #include <map> #include <iomanip> #include <math.h> #include <stack> #include <queue> #include <bitset> #include <cstdlib> #include <tuple> using namespace std; int main() { int i, j, k; string str...
a.cc: In function 'int main()': a.cc:24:26: 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>)' 24 | transform(str[i]....
s208129896
p03737
C++
#include<iostream> using namespace std; int main(){ string s1,s2,s3; cin >> s1 >> s2 >> s3; cout << transform(s1.cbegin(0)),s1.cend(1),s1.begin(0),toupper) << transform(s2.cbegin(0)),s2.cend(1),s2.begin(0),toupper) << transform(s3.cbegin(0)),s3.cend(1),s3.begin(0),toupper) << endl; }
a.cc: In function 'int main()': a.cc:7:30: error: no matching function for call to 'std::__cxx11::basic_string<char>::cbegin(int)' 7 | cout << transform(s1.cbegin(0)),s1.cend(1),s1.begin(0),toupper) | ~~~~~~~~~^~~ In file included from /usr/include/c++/14/string:54, from...
s028039788
p03737
C
#include <iostream> #include <algorithm> #include <string> int main() { std::string a, b, c; std::cin >> a >> b >> c; std::string s; s.push_back( a[ 0 ] ); s.push_back( b[ 0 ] ); s.push_back( c[ 0 ] ); std::transform( s.cbegin(), s.cend(), s.begin(), toupper ); std::cout << s << std::endl; return ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s149998518
p03737
C
#include <iostream> #include <algorithm> #include <string> int main() { std::string a, b, c; std::cin >> a >> b >> c; std::string s; s.push_back( a[ 0 ] ); s.push_back( b[ 0 ] ); s.push_back( c[ 0 ] ); std::transform( s.cbegin(), s.cend(), s.begin(), toupper ); std::cout << s << std::endl; return ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s415620978
p03737
C
#include <iostream> #include <algorithm> #include <string> int main() { std::string a, b, c; std::cin >> a >> b >> c; std::string s; s.push_back( a[ 0 ] ); s.push_back( b[ 0 ] ); s.push_back( c[ 0 ] ); std::transform( s.cbegin(), s.cend(), s.begin(), toupper ); std::cout << s << std::endl; return ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s241455554
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.cbegin(), a.cend(), a.begin(), toupper); transform(b.cbegin(), b.cend(), b.begin(), toupper); transform(c.cbegin(), c.cend(), c.begin(), toupper); cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:6: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>)' 6 | transform(a.cbegin(), a.cend(), ...
s280389823
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); transform(c.begin(), c.end(), c.begin(), toupper); cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:6: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>)' 6 | transform(a.begin(), a.end(), a.begin(), tou...
s575267959
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<a-'a'+'A'; cout<<b-'a'+'A'; cout<<b-'a'+'A'; }
a.cc: In function 'int main()': a.cc:6:8: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 6 | cout<<a-'a'+'A'; | ~^~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file inc...
s978456674
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s, t, r; cin >> s >> t >> r; transform(s.begin(), s.end(), s.begin(), toupper); transform(t.begin(), t.end(), t.begin(), toupper); transform(r.begin(), r.end(), r.begin(), toupper); cout << s[0] << t[0] << r[0] <<...
a.cc: In function 'int main()': a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform(s.begin(), s.end(), s.begin...
s540390967
p03737
C++
using namespace std; int main() { string a,b,c,d,f,g; cin>>a>>b>>c; d = a[0] - 32; f = b[0] - 32; g = c[0] - 32; cout<<d<<f<<g<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string a,b,c,d,f,g; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:6:...
s820905639
p03737
C++
#include<iostream> #include<vector> #include<algorithm> #include<string> #include<cmath> #include<climits> #include<map> #include<set> #include<queue> #include<stack> #include<bitset> #include<iomanip> using namespace std; #define rep(i,j,n) for(int i=(j);i<(n);i++) #define rep2(i,j,n) for(int i=(j);i<=(n);i++) #defin...
a.cc: In function 'int main()': a.cc:32:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 32 | transform(all(s), s.begin(), ...
s453027400
p03737
C++
#include <iostream> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; transform(a.begin(),a.end(),a.begin(), ::toupper); transform(b.begin(),b.end(),b.begin(), ::toupper); transform(c.begin(),c.end(),c.begin(), ::toupper); cout << a[0]<<b[0]<<c[0]<<endl; ...
a.cc: In function 'int main()': a.cc:6:9: error: 'transform' was not declared in this scope 6 | transform(a.begin(),a.end(),a.begin(), ::toupper); | ^~~~~~~~~
s939774744
p03737
C++
#include <iostream> #include <algorithm> #include <cctype> #include <clocale> using namespace std; int main(){ vector<string> s(3); for(int i = 0; i < 3; i++){ cin >> s[i]; } string ans; for(int i = 0; i < 3; i++){ char c = s[i][0]; ans += (char)(c-32); } cout << ans; return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'vector' was not declared in this scope 8 | vector<string> s(3); | ^~~~~~ a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 4 | #include <clocale> +++ |+#include <vector> 5 | usin...
s439874385
p03737
C++
#include <iostream> #include <algorithm> #include <ctype> #include <clocale> using namespace std; int main(){ vector<string> s(3); for(int i = 0; i < 3; i++){ cin >> s[i]; } string ans; for(int i = 0; i < 3; i++){ char c = s[i][0]; ans += (char)(c-32); } cout << ans; return 0; }
a.cc:3:10: fatal error: ctype: No such file or directory 3 | #include <ctype> | ^~~~~~~ compilation terminated.
s258033688
p03737
C++
#include<cstdio> int main(){ char a[10]={}; char b[10]={}; char c[10]={}; scanf("%s%s%s",a,b,c); char s[3]={}; s[0]=a[0]+’A'-'a'; s[1]=b[0]+'A'-'a'; s[2]=c[0]+'A'-'a'; printf("%s",s); return 0; }
a.cc:8:11: error: extended character ’ is not valid in an identifier 8 | s[0]=a[0]+’A'-'a'; | ^ a.cc:8:17: warning: missing terminating ' character 8 | s[0]=a[0]+’A'-'a'; | ^ a.cc:8:17: error: missing terminating ' character 8 | s[0]=a[0]+’A'-'a'; | ...
s258310337
p03737
C++
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { String s1, s2, s3; public static void main(String args[]) { new Main().run(); } void run() { FastReader sc = new FastReader(); s1 ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.BufferedReader; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.io.IOException; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fm...
s092377869
p03737
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s576310634
p03737
C++
#include<algorithm> #include <bits/stdc++.h> using namespace std; int main(void){ char ans[4],s[3][10],a[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ",b[]="abcdefghijklmnopqrstuvwxyz"; cin>>s[0]>>s[1]>>s[2]; for(int i=0;i<a.size();i++){ if(s[0][0]==b[i]) ans[0]=a[i]; if(s[1][0]==b[i]) ans[1]=a[i]; if(s[2][0]==b[i...
a.cc: In function 'int main()': a.cc:7:25: error: request for member 'size' in 'a', which is of non-class type 'char [27]' 7 | for(int i=0;i<a.size();i++){ | ^~~~
s947441337
p03737
C++
#include<algorithm> #include <bits/stdc++.h> using namespace std; int main(void){ char ans[4],s[3][10],a[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ",b[]="abcdefghijklmnopqrstuvwxyz"; cin>>s[0]>>s[1]>>s[2]; for(int i=0;i<a.size();i++){ if(s[0][0]==b[i]) ans[0]=a[i]; if(s[1][0]==b[i]) ans[1]=a[i]; if(s[2][0]==b[i...
a.cc: In function 'int main()': a.cc:7:25: error: request for member 'size' in 'a', which is of non-class type 'char [27]' 7 | for(int i=0;i<a.size();i++){ | ^~~~
s866723980
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string S; S = S + a[0] + b[0] + c[0]; transform(S.begin(), S.end(), S.begin(), toupper); cout << S << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(S.begin(), S.end(), S.begin(), ...
s893595340
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string S; S = S + a[0] + b[0] + c[0]; transform(S.begin(), S.end(), S.begin(), toupper); cout << S << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(S.begin(), S.end(), S.begin(), ...
s295220848
p03737
C++
#include <iostream> #include <algorithm> #include <string> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string S; S = a[0] + b[0] + c[0]; transform(S.begin(), S.end(), S.begin(), toupper); cout << S << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(S.begin(), S.end(), S.begin(), ...
s422494856
p03737
C++
#include <iostream> #include <algorithm> #include <string> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; string S; S = a + b + c; transform(S.begin(), S.end(), S.begin(), toupper); cout << S << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(S.begin(), S.end(), S.begin(), ...
s655120918
p03737
C++
#include <iostream> #include <algorithm> #include <string> using namespace std; int main(){ string a,b,c; cin>>a>b>>c; char dif='A'-'a'; cout<<(char)(a[0]+dif)<<(char)(b[0]+dif)<<(char)(c[0]+dif)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator>>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 8 | cin>>a>b>>c; | ~^~~ | | | | | basic_string<[....
s593410684
p03737
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] s = new String[3]; for(int i = 0;i < 3;i++){ s[i] = sc.next(); } String[] t = new String[3]; for(int i = 0;i < 3;i++){ t[i] = s[i].toUpperCase(); } String u = (t[0].charAt(0),t[1]...
Main.java:13: error: ')' expected String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0)); ^ Main.java:13: error: ']' expected String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0)); ^ Main.java:13: error: ';' expected String u = (t[0].charAt(0),t[1]...
s477509165
p03737
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] s = new String[3]; for(int i = 0;i < 3;i++){ s[i] = sc.next(); } String[] t = new String[3]; for(int i = 0;i < 3;i++){ t[i] = s[i].toUpperCase(); } String u = {t[0].charAt(0),t[1]...
Main.java:13: error: illegal initializer for String String u = {t[0].charAt(0),t[1].charAt(0),t[2].charAt(0)}; ^ 1 error
s371124674
p03737
C++
#pragma warning(disable:4996) #include <bits/stdc++.h> using namespace std; //macro #define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() #define EPS (1e-8) #define equals(a,b)(fabs((a)-(b))<EPS) using ll = long long; using ull = unsigned long long; using...
a.cc: In function 'int main()': a.cc:38:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 38 | transform(ans.begin(), ans.end(), ans...
s136507928
p03737
C++
#pragma warning(disable:4996) #include <bits/stdc++.h> using namespace std; //macro #define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() #define EPS (1e-8) #define equals(a,b)(fabs((a)-(b))<EPS) using ll = long long; using ull = unsigned long long; using...
a.cc: In function 'int main()': a.cc:38:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 38 | transform(ALL(ans), ans.begin(), toup...
s288093574
p03737
C++
#include <string> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; char d = 'A' - 'a'; cout << (char)(s1[0]+d); cout << (char)(s2[0]+d); cout << (char)(s3[0]+d); }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin >> s1 >> s2 >> s3; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <string> +++ |+#include <iostream> ...
s476676998
p03737
C++
#include<iostream> using namespace std; int main() { char a,b,c; cin >> a >> b >> c; cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: expected primary-expression before 'int' 7 | cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl; | ^~~
s663897122
p03737
C++
#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { char a,b,c; cin >> a >> b >> c; cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl; }
a.cc: In function 'int main()': a.cc:8:17: error: expected primary-expression before 'int' 8 | cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl; | ^~~
s935858882
p03737
C++
#include <iostream> using namespace std; int main(){ str a, b, c; char dif = 'A' - 'a'; cin >> a >> b >> c; cout << a[0] + dif << b[0] + dif << c[0] + dif; }
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 |...
s939330705
p03737
C++
#include <iostream> using namespace std; int main(){ str a, b, c; char def = 'A' - 'a'; cin >> a >> b >> c; cout << a[0] + def << b[0] + def << c[0] + def; }
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 |...
s107448105
p03737
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair...
a.cc: In function 'void trans(std::string&)': a.cc:25:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 25 | transform(s.begin(), s....
s006086505
p03737
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair...
a.cc: In function 'void trans(std::string&)': a.cc:25:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 25 | transform(s.begin(), s....
s300323723
p03737
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair...
a.cc: In function 'void trans(std::string&)': a.cc:25:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 25 | transform(s.begin(), s....
s396365932
p03737
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <list> #include <set> #include <numeric> #include <map> #include <math.h> #include <iomanip> #include <stack> #include <queue> #include <bitset> #define INF 100100100 typedef long long int llint; using namespace std; typedef pair...
a.cc: In function 'void trans(std::string&)': a.cc:25:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 25 | transform(s.begin(), s....
s309037927
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a, b, c,x; cin >> a >> b >> c; a = a[0]; b = b[0]; c = c[0]; x = a + b + c; transform(x.begin(), x.end(), x.begin(), toupper); cout << x << endl; }
a.cc: In function 'int main()': a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(x.begin(), x.end(), x.begin...
s434067528
p03737
C++
#include <iostream> #include "libstdc++.h" #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep(i,j,n) for(int (i)=(j);(i)<(n);(i)++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = ""; transform(a.begin(), a.begin()+1, a.begin(), toupper); transform(b.begin(), b.begin() ...
a.cc:2:10: fatal error: libstdc++.h: No such file or directory 2 | #include "libstdc++.h" | ^~~~~~~~~~~~~ compilation terminated.
s216140100
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s,t,u; cin >> s>> t>>u; s[0]=s[0]-'a'+'A'; t[0]=t[0]-'a'+'A'; u[0]=u[0]-'a'+'A'; cout<<s[0]>>t[0]<<u[0]<<endl; }
a.cc: In function 'int main()': a.cc:13:19: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 13 | cout<<s[0]>>t[0]<<u[0]<<endl; a.cc:13:19: note: candidate: 'operator>>(int, int)' (built-in) a....
s363271269
p03737
C++
#include <bits/stdc++.h> #include <iostream> #include <direct.h> #define FOR(i,a,b) for(int i = a; i < b; ++i) #define FORR(i,a,b) for(int i = a; i <= b; ++i) //#define LOCAL_DEFINE using namespace std; #define maxn 1234 double dist[maxn]; map<string, int>mp; struct Edge { int src, dest; double weight; }; s...
a.cc:3:10: fatal error: direct.h: No such file or directory 3 | #include <direct.h> | ^~~~~~~~~~ compilation terminated.
s703563448
p03737
C++
fun main(args: Array<String>) { val ans = readLine()!!.split(" ").map{x -> x.toList().first()}.joinToString("").toUpperCase() println(ans) }
a.cc:1:1: error: 'fun' does not name a type 1 | fun main(args: Array<String>) | ^~~
s104842690
p03737
C++
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <vector> #include <algorithm> #include <numeric> #include <map> #include <set> #include <queue> #include <deque> #include <functional> using namespace std; using ll = long long; #define FOR(i, m, ...
a.cc: In function 'int main()': a.cc:47: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>)' 47 | transform(s1.begin(), s1.end(), s1.be...
s361465282
p03737
C++
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <vector> #include <algorithm> #include <numeric> #include <map> #include <set> #include <queue> #include <deque> #include <functional> using namespace std; using ll = long long; #define FOR(i, m, ...
a.cc: In function 'int main()': a.cc:47:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 47 | transform(s1.cbegin(), s1...
s351847819
p03737
C++
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <vector> #include <algorithm> #include <numeric> #include <map> #include <set> #include <queue> #include <deque> #include <functional> using namespace std; using ll = long long; #define FOR(i, m, ...
a.cc: In function 'int main()': a.cc:47:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 47 | transform(s1.cbegin(), s1...
s265333264
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; cout << toupper(s1[0]) << toupper(s2[0]) << toupper(s3[0]) < endl; }
a.cc: In function 'int main()': a.cc:7:64: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | cout << toupper(s1[0]) << toupper(s2[0]) << toupper(s3[0]) < endl; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~...
s457078747
p03737
C++
n = gets.split puts n[0][0].upcase + n[1][0].upcase + n[2][0].upcase
a.cc:1:1: error: 'n' does not name a type 1 | n = gets.split | ^
s288310259
p03737
C++
resident register number
a.cc:1:1: error: 'resident' does not name a type 1 | resident register number | ^~~~~~~~
s435788987
p03737
C++
#include<bits/stdc++.h> using namespce std; int main(){ char s1[11], s2[11], s3[11]; scanf("%s %s %s", s1, s2, s3); printf("%c%c%c\n", s1[0] + 'A' - 'a', s2[0] + 'A' - 'a', s3[0] + 'A' - 'a'); return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespce' 2 | using namespce std; | ^~~~~~~~
s192017430
p03737
C++
#include <map> #include <set> #include <list> #include <cmath> #include <deque> #include <queue> #include <stack> #include <cstdio> #include <string> #include <vector> #include <complex> #include <cstdlib> #include <cstring> #include <iomanip> #include <numeric> #include <utility> #include <iostream> #include <algorith...
a.cc: In function 'int main()': a.cc:56: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>)' 56 | transform(s1.begin(), s1.end(), s1.be...
s033115964
p03737
C++
#include <iostream> #include <algorithm> #include <cstdlib> #include <string> using namespace std; int main(void) { 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(), t...
a.cc: In function 'int main()': a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s1.begin(), s1.end(), s1.be...
s801979846
p03737
C++
#include <iostream> #include <iomanip> #include <cstring> #include <algorithm> #include <cstdlib> #include <string> using namespace std; int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transfo...
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(s1.begin(), s1.end(), s1.be...
s204033458
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string s1,s2,s3; cin >> s1 >> s2; int len1,len2; len1 = s1.size(); len2 = s2.size(); if(len1 > len2){ cout << "GREATER" << endl; return 0; }else if(len < len2)...
a.cc: In function 'int main()': a.cc:15:18: error: 'len' was not declared in this scope; did you mean 'len2'? 15 | }else if(len < len2){ | ^~~ | len2
s763503443
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { std::string a,b,c; std::string ryk; cin >> a >> b >> c; std::ryk=a[0]+b[0]+c[0]; std::transform(ryk.begin(), ryk.end(), ryk.begin(), ::toupper); cout << ryk << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:8: error: 'ryk' is not a member of 'std' 13 | std::ryk=a[0]+b[0]+c[0]; | ^~~
s957271464
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { std::string a,b,c; std::string ryk; cin >> a >> b >> c; ryk=a[0]+b[0]+c[0]; transform(ryk.begin(), ryk.end(), ryk.begin(), toupper); cout << ryk << endl; return 0; }
a.cc: In function 'int main()': a.cc:15: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>)' 15 | transform(ryk.begin(), ryk.end(), ryk.begin...
s036559214
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { std::string a,b,c; std::string ryk; cin >> a >> b >> c; ryk=a[0]+b[0]+c[0]; transform(ryk.begin(), ryk.end(), ryk.begin(), toupper); cout << ryk << endl; return 0; }
a.cc: In function 'int main()': a.cc:15: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>)' 15 | transform(ryk.begin(), ryk.end(), ryk.begin...
s197148120
p03737
C++
#include <iostream> #include <string> using namespace std; int main() { std::string a,b,c; std::string ryk; cin >> a >> b >> c; ryk=a[0]+b[0]+c[0]; transform(ryk.begin(), ryk.end(), ryk.begin(), toupper); cout << ryk << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:3: error: 'transform' was not declared in this scope 14 | transform(ryk.begin(), ryk.end(), ryk.begin(), toupper); | ^~~~~~~~~
s179726180
p03737
C++
#include <iostream> #include <string> using namespace std; int main() { std::string a,b,c; std::string ryk; cin >> a >> b >> c; ryk=a[0]+b[0]+c[0]; transform(ryk.begin(), ryk.end(), s.begin(), toupper); cout << ryk << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:37: error: 's' was not declared in this scope 14 | transform(ryk.begin(), ryk.end(), s.begin(), toupper); | ^ a.cc:14:3: error: 'transform' was not declared in this scope 14 | transform(ryk.begin(), ryk.end(), s.begin(), toupper...
s165498672
p03737
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 1e5+10; int n; ll arr[ MAXN ]; int g( ll x ) { if( x < 0 ) return -1; if( x == 0 ) return 0; return 1; } ll f( ll s ) { ll r = 0, acc = 0; for( int i = 0; i < n; ++i ) { acc += arr[i]; if( g(acc) != sgn ) { r += abs(s...
a.cc: In function 'll f(ll)': a.cc:22:31: error: 'sgn' was not declared in this scope; did you mean 'sin'? 22 | if( g(acc) != sgn ) { | ^~~ | sin