submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s992669140
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T...
a.cc: In function 'int main()': a.cc:29: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>)' 29 | std::transform(ans.begin(), ans.end()...
s845214597
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T...
a.cc: In function 'int main()': a.cc:29:23: 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>::const_iterator, <unresolved overloaded function type>)' 29 | std::transform(ans....
s022198853
p03737
C++
#include <bits/stdc++.h> using namespace std; #define ALL(a) begin(a), end(a) #define TPL template #define TNM typename using ll = long long; using ull = unsigned long long; TPL<TNM T> using vec = vector<T>; TPL<TNM T> using vec2 = vec<vec<T>>; TPL<TNM T> using vec3 = vec<vec2<T>>; TPL<TNM T> using vec4 = vec<vec3<T...
a.cc: In function 'int main()': a.cc:29:23: 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>)' 29 | std::transform(ans.cbegin...
s640416620
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper); | ^~~~~~~~~
s913498119
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:42: error: expected unqualified-id before '(' token 9 | string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); | ^ a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), resu...
s684920821
p03737
C++
#include <iostream> using namespace std; #include <string> #include <algorithm> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), std::toupper); cout << result; cout << endl; return 0;...
a.cc: In function 'int main()': a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(result.begin(), result.end(...
s554352737
p03737
C++
#include <iostream> using namespace std; #include <string> #include <algorithm> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 12 | transform(result.begin(), result.end(...
s338984276
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper); cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper); | ^~~~~~~~~
s231160828
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper) cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), result.end(), result.begin(), ::toupper) | ^~~~~~~~~
s708503091
p03737
C++
#include <iostream> using namespace std; #include <string> int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); transform(result.begin(), result.end(), result.begin(), ::toupper) cout << result; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:42: error: expected unqualified-id before '(' token 9 | string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1); | ^ a.cc:11:9: error: 'transform' was not declared in this scope 11 | transform(result.begin(), resu...
s031582847
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: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 (a.begin(),a.end(),a.begin(),toupp...
s479934868
p03737
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; ++i) #define repR(i, n) for(int i = n; i >= 0; ++i) #define FDS(i, n) for(int i = 0; i < n; ++i) #define FDSR(i, n) for(int i = n; i >= 0; ++i) #define FOR(i, m, n) for(int i = m; i < n; ++i) #define FORR(i, m, n) for(int i = m;i >= n;--i) #define VSORT(v...
a.cc: In function 'int main()': a.cc:18:13: error: expected unqualified-id before '[' token 18 | A=a.[0]+('A'-'a'); | ^ a.cc:19:13: error: expected unqualified-id before '[' token 19 | B=b.[0]+('A'-'a'); | ^ a.cc:20:13: error: expected unqualified-id before '[' ...
s795431582
p03737
C++
#include <iostream> #include <algorithm> #include <string> 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:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier ...
s983395274
p03737
C++
#include <iostream> #include <algorithm> #include <string> 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:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier ...
s879913513
p03737
C
#include <iostream> #include <algorithm> 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; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s973146623
p03737
C++
#include <iostream> #include <algorithm> int main (){ string a , b , c ; cin >> a >> b >> c ; char dif = ’A ’ - ’a ’; printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif ); return 0; }
a.cc:7:12: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc:7:15: error: extended character ’ is not valid in an identifier 7 | char dif = ’A ’ - ’a ’; | ^ a.cc:7:19: error: extended character ’ is not valid in an identifier ...
s707427359
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; }
main.c: In function 'main': main.c:2:1: error: unknown type name 'string' 2 | string a , b , c ; | ^~~~~~ main.c:3:1: error: 'cin' undeclared (first use in this function) 3 | cin >> a >> b >> c ; | ^~~ main.c:3:1: note: each undeclared identifier is reported only once for each function it appears in...
s956651464
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:12: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc:4:15: error: extended character ’ is not valid in an identifier 4 | char dif = ’A ’ - ’a ’; | ^ a.cc:4:19: error: extended character ’ is not valid in an identifier ...
s423404756
p03737
C++
#include <iostream> #include <algorithm> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; transform(A.begin(), A.end(), A.begin(), toupper); transform(B.begin(), B.end(), B.begin(), toupper); transform(C.begin(), C.end(), C.begin(), toupper); cout << A[0] << B[0] << C[0] << endl; return...
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...
s639402767
p03737
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.next(); String s2 = sc.next(); String s3 = sc.next(); s1 = s1.toUpperCase(); s2 = s2.toUpperCase(); s3 = s3.toUpperCa...
Main.java:16: error: int cannot be dereferenced System.out.print((s1.charAt(0) + s2.charAt(0) + s3.charAt(0)).toUpperCase()); ^ 1 error
s294604237
p03737
C++
#include <stdio.h> #include <string> #include <algorithm> #include <map> #include <iostream> #include<math.h> using namespace std; int main() { long long n,a[100001], ans1 = 0,ans2=0; cin >> n; for (int i = 0; i < n; i++)cin >> a[i]; long long sum1=a[0],sum2=a[0]; for (int i = 1; i < n;i++) { sum2 += a[i]; i...
a.cc: In function 'int main()': a.cc:27:19: error: redeclaration of 'long long int sum1' 27 | long long sum1 = a[0], sum2 = a[0]; | ^~~~ a.cc:14:19: note: 'long long int sum1' previously declared here 14 | long long sum1=a[0],sum2=a[0]; | ^~~~ a.cc:2...
s724095361
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]; return 0; }
a.cc: In function 'int main()': a.cc:7:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 7 | transform(a.begin(),a.end(),a.begin(),touppe...
s950641330
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(); list<string>::iterator i; i=S.begin() if (*i==a){ i++; if (*i==a){ cout << "EQUAL" << endl; } else{ ...
a.cc: In function 'int main()': a.cc:11:18: error: expected ';' before 'if' 11 | i=S.begin() | ^ | ; 12 | if (*i==a){ | ~~ a.cc:21:7: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s866234593
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a >> b; list<string> S; S={a,b}; S.sort(); list<string>::iterator i; i=S.begin() if (*i==a){ i++; if (*i==a){ cout << "EQUAL" << endl; } else{ ...
a.cc: In function 'int main()': a.cc:11:18: error: expected ';' before 'if' 11 | i=S.begin() | ^ | ; 12 | if (*i==a){ | ~~ a.cc:21:7: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s544873449
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b; cin >> a >> b; if (a>b){ cont << "GREATER" << endl; } if (a==b){ cont << "EQUAL" << endl; } if (a<b){ cont << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'? 8 | cont << "GREATER" << endl; | ^~~~ | const a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'? 11 | cont << "EQUAL" << endl; ...
s192291642
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); 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.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin(),tou...
s443939811
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a.begin()); transform(b.begin(),b.end(),b.begin()); transform(c.begin(),c.end(),c.begin()); cout << a << b << c ...
a.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 10 | transform(a.begin(),a.end(),a.begin()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~...
s530490723
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a,begin()); transform(b.begin(),b.end(),b,begin()); transform(c.begin(),c.end(),c,begin()); cout << a << b << c ...
a.cc: In function 'int main()': a.cc:10:40: error: no matching function for call to 'begin()' 10 | transform(a.begin(),a.end(),a,begin()); | ~~~~~^~ In file included from /usr/include/c++/14/bits/algorithmfwd.h:39, from /usr/include/c++/14/bits/stl_algo.h:...
s302964659
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; a = a.substr(1,1); b = b.substr(1,1); c = c.substr(1,1); transform(a.begin(),a.end(),a,begin); transform(b.begin(),b.end(),b,begin); transform(c.begin(),c.end(),c,begin); cout << a << b << c << end...
a.cc: In function 'int main()': a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::string&, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a,begin); | ~~~~~~~~~^~~~~~~~~~~~...
s000572679
p03737
C++
#include <iostream> using namespace std; typedef long long unsigned int ll; int main() { string a,b,c,d; cin >> a; cin >>b; cin >>c; int a; a='A'-'a'; cout << a[0]+a<< b[0]+a<<c[0]+a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:7: error: conflicting declaration 'int a' 11 | int a; | ^ a.cc:7:10: note: previous declaration as 'std::string a' 7 | string a,b,c,d; | ^
s178020419
p03737
C++
#include<bits/stdc++.h> using namespac std; int main(void){ char s[3]; for(int i=0;i<3;i++) cin>>s[1]; for(int i=0;i<3;i++){ s[i]+='A'-'a'; cout<<s[i]; } cout<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespac' 2 | using namespac std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>s[1]; | ^~~ | std::cin In file included fr...
s168481677
p03737
C++
#include <iostream> using namespace std; int main(){ int S1, S2, S3; cin >> S1 >> S2 >> S3; cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: invalid types 'int[int]' for array subscript 8 | cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl; | ^ a.cc:8:34: error: invalid types 'int[int]' for array subscript 8 | cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + ...
s242032147
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); ...
a.cc: In function 'int main()': a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(s1.begin(), s1.end(), | ~~...
s310152163
p03737
C++
#include <iostream> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string small="abcdefghijklmnopqrstuvwxyz"; string big="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for(int i=0;i<26;i++){ if(a.at(0)==small.at(i)){ cout << big(i); } } for(int i=0;i<26;i++){ if(b.at(0)==small.at(i)){...
a.cc: In function 'int main()': a.cc:11:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 11 | cout << big(i); | ~~~^~~ a.cc:16:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 16 | cout << big...
s823377008
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(),...
a.cc: In function 'int main()': a.cc:14: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>)' 14 | transform(ans.begin(), | ~~~~~~...
s874875505
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(),...
a.cc: In function 'int main()': a.cc:14: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>)' 14 | transform(ans.begin(), | ~~~~~~...
s646374497
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string tf = ans; transform(ans.begin(),...
a.cc: In function 'int main()': a.cc:14: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>)' 14 | transform(ans.begin(), | ~~~~~~...
s018644207
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ...
a.cc: In function 'int main()': a.cc:13: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>)' 13 | transform(ans.begin(), | ~~~~~~...
s306110797
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a,b,c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); string Ans = ans; transform(ans.begin(), ans...
a.cc: In function 'int main()': a.cc:14: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>)' 14 | transform(ans.begin(), ans.end(), Ans.beg...
s581594921
p03737
C++
#include<iostream> #include <algorithm> #include <string> #include<math.h> #define rep(i,n)for(i=0;i<n;i++) using namespace std; int main() { string a,b,c; cin >> a >> b >> c; string ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), t...
a.cc: In function 'int main()': a.cc:13: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>)' 13 | transform(ans.begin(), ans.end(), ans.beg...
s896785066
p03737
C++
#include<string> #include<iostream> #include<vector> #include<bits/stdc++.h> 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; }
a.cc:10:12: error: extended character ’ is not valid in an identifier 10 | char dif=’A’ - ’a’; | ^ a.cc:10:12: error: extended character ’ is not valid in an identifier a.cc:10:18: error: extended character ’ is not valid in an identifier 10 | char dif=’A’ - ’a’; | ^ a....
s745702540
p03737
C++
#include<string> #include<iostream> #include<vector> 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; }
a.cc:9:12: error: extended character ’ is not valid in an identifier 9 | char dif=’A’ - ’a’; | ^ a.cc:9:12: error: extended character ’ is not valid in an identifier a.cc:9:18: error: extended character ’ is not valid in an identifier 9 | char dif=’A’ - ’a’; | ^ a.cc:...
s235476007
p03737
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = sc.next().charAt(0); char b = sc.next().charAt(0); char c = sc.next().charAt(0); else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A')); } }
Main.java:8: error: 'else' without 'if' else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A')); ^ 1 error
s177288430
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a, b, c; cin >> a >> b >> c; char vec[3]; for (int i = 0; i < 3; ++i) { vec[i] += 32; } cout << vec << end; }
a.cc: In function 'int main()': a.cc:11:21: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << vec << end; | ~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/...
s249221084
p03737
C++
main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());} | ^
s050855105
p03737
C
#include<stdio.h> #include<string.h> int main(void){ int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,cou3,v[1000000],w[1000000],min_i,en=0; char S[100],W[100],s[100],X,Y; scanf("%s %s %s",&S,&W,&s); if(S[i]>=97&&S[i]<=122) S[i]=S[i]-32; } if(W[i]>=97&&W[i]<=122) W[i]=W[i]-32; } if(s[i]>=97&&s[i]<=1...
main.c:10:3: error: expected identifier or '(' before 'if' 10 | if(W[i]>=97&&W[i]<=122) | ^~ main.c:12:3: error: expected identifier or '(' before '}' token 12 | } | ^ main.c:13:3: error: expected identifier or '(' before 'if' 13 | if(s[i]>=97&&s[i]<=122) | ^~ main.c:15:3: error: ...
s671118568
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; a[0] -= 32; b[0] -= 32; c[0] -= 32; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:15:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 15 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s055617082
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; a -= 32; b -= 32; c -= 32; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:12:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 12 | a -= 32; | ~~^~~~~ a.cc:13:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and ...
s263191562
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:12:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 12 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s144390785
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; }
a.cc: In function 'int main()': a.cc:11:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'? 11 | cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl; | ^~~~~~~~ | towupper
s696053178
p03737
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; }
a.cc: In function 'int main()': a.cc:11:16: error: request for member 'topupper' 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'} 11 | cout << a[0].topupper << b[0].topupper << c[0].topupper << endl; ...
s074206840
p03737
C++
#include <bits/stdc++.h> using namespace std; int main(){ char s1[10], s2[10], s3[10]; cin >> s1 >> s2 >> s3; x == toupper(s1[0]); y == toupper(s2[1]); z == toupper(s3[0]); cout << x << y << z << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'x' was not declared in this scope 7 | x == toupper(s1[0]); | ^ a.cc:8:3: error: 'y' was not declared in this scope; did you mean 'yn'? 8 | y == toupper(s2[1]); | ^ | yn a.cc:9:3: error: 'z' was not declared in this scope 9 | z =...
s260672812
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x = 'A' || x = 'a'){ cout << "A"; } if( x = 'B' || x = 'b'){ cout << "B"; } if( x = 'C' |...
a.cc: In function 'int main()': a.cc:11:15: error: lvalue required as left operand of assignment 11 | if( x = 'A' || x = 'a'){ | ~~~~^~~~ a.cc:14:16: error: lvalue required as left operand of assignment 14 | if( x = 'B' || x = 'b'){ | ~~~~^~~~ a.cc:17:15: error: lvalue requir...
s159437227
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x= 'A' || x= 'a'){ cout << "A" << endl; } if( x= 'B' || x= 'b'){ cout << "B" << endl; } i...
a.cc: In function 'int main()': a.cc:11:14: error: lvalue required as left operand of assignment 11 | if( x= 'A' || x= 'a'){ | ~~~~^~~~ a.cc:14:15: error: lvalue required as left operand of assignment 14 | if( x= 'B' || x= 'b'){ | ~~~~^~~~ a.cc:17:14: error: lvalue required as ...
s827443468
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin >> Letter.at(0) >> Letter.at(1) >> Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x='A' || x='a'){ cout << "A" << endl; } if( x='B' || x='b'){ cout << "B" << endl; } if( x...
a.cc: In function 'int main()': a.cc:11:13: error: lvalue required as left operand of assignment 11 | if( x='A' || x='a'){ | ~~~~^~~~ a.cc:14:14: error: lvalue required as left operand of assignment 14 | if( x='B' || x='b'){ | ~~~~^~~~ a.cc:17:13: error: lvalue required as left o...
s678960101
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> Letter(3); cin << Letter.at(0) << Letter.at(1) << Letter.at(2); for(int i = 0; i < 3; i++){ char x = Letter.at(0).at(0); if( x='A' || x='a'){ cout << "A" << endl; } if( x='B' || x='b'){ cout << "B" << endl; } if( x...
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'}) 6 ...
s039147312
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:8:12: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:15: error: extended character ’ is not valid in an identifier 8 | char dif = ’A ’ - ’a ’; | ^ a.cc:8:19: error: extended character ’ is not valid in an identifier ...
s057380826
p03737
C++
#include<cstdio> #include<iostream> using namespace std; int main(void) { 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] << "\n";...
a.cc: In function 'int main()': a.cc:12:9: error: 'transform' was not declared in this scope 12 | transform(a.begin(), a.end(), a.begin(), ::toupper); | ^~~~~~~~~
s468996474
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string x, y, z; cin >> x >> y >> z; cout << x.at(0) << y.at(0) << z.at(0) }
a.cc: In function 'int main()': a.cc:7:40: error: expected ';' before '}' token 7 | cout << x.at(0) << y.at(0) << z.at(0) | ^ | ; 8 | } | ~
s843151584
p03737
C++
#include<cstdio> #include<iostream> #include<string> #include<algorithm> using namespace std; int main(void) { 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.cc: In function 'int main()': a.cc:14:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 14 | transform(a.begin(), a.end(), a.begin...
s997203744
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; transform(a.begin(),a.end(),a.begin(),toupper); transform(b.begin(),b.end(),b.begin(),toupper); transform(c.begin(),c.end(),c.begin(),toupper); cout << a.at(0) << ...
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 10 | transform(a.begin(),a.end(),a.begin(),toupp...
s642051190
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> 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:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)' 10 | transform(a.begin(),a.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, ...
s427200107
p03737
C++
#include <iostream> #include <string> #include <cctype> #include <algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:10:20: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 10 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ~~~~~~~~~^~~~~~~~~ In file included from /usr/in...
s752371874
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: 'transform' was not declared in this scope 8 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ^~~~~~~~~
s475484462
p03737
C++
#include <iostream> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; }
a.cc: In function 'int main()': a.cc:7:11: error: 'transform' was not declared in this scope 7 | cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl; | ^~~~~~~~~
s084520605
p03737
C++
#include<iostream> #include<vector> #include<algorithm> #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); cou...
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.beg...
s313071204
p03737
C++
#define _USE_MATH_DEFINES #include<iostream> #include<cstdlib> #include<algorithm> #include<cmath> #include<string> #include<set> #include<map> #include<stdbool.h> #include<math.h> #include<sstream> #include<math.h> #include<vector> #include<functional> #include<queue> #include<utility> typedef long long ll; #define N ...
a.cc:19:13: error: narrowing conversion of '1.0e+10' from 'double' to 'int' [-Wnarrowing] 19 | #define INF 1e10 | ^~~~ a.cc:25:20: note: in expansion of macro 'INF' 25 | int dp[100010] = { INF }; | ^~~
s295541197
p03737
C++
#define _USE_MATH_DEFINES #include<iostream> #include<cstdlib> #include<algorithm> #include<cmath> #include<string> #include<set> #include<map> #include<stdbool.h> #include<math.h> #include<sstream> #include<math.h> #include<vector> #include<functional> #include<queue> #include<utility> typedef long long ll; #define N ...
a.cc: In function 'int main()': a.cc:28: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>)' 28 | transform(s1.begin(), s1.end(), s1.be...
s593992102
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); transform(c.begin(), c.end(), c.begin(), toupper); cout << a[0] << b[0] << c[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...
s041278651
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string a,b,c; char s1,s2,s3; 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); s1=a.at(0) s2=b.at(0) s3=c.at(0) ...
a.cc: In function 'int main()': a.cc:13:13: error: expected ';' before 's2' 13 | s1=a.at(0) | ^ | ; 14 | s2=b.at(0) | ~~
s384561556
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string a,b,c; char s1,s2,s3; 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) s1=a.at(0) s2=b.at(0) s3=c.at(0) ...
a.cc: In function 'int main()': a.cc:9:51: error: expected ';' before 'transform' 9 | transform(a.begin(),a.end(),a.begin(),::toupper) | ^ | ; 10 | transform(b.begin(),b.end(),b.begin(),::toupper) ...
s654952116
p03737
C++
int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ transform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string S; | ^~~~~~ a.cc:3:9: error: expected ';' before 'ans' 3 | string ans; | ^~~~ | ; a.cc:4:3: error: 'cin' was not declared in this scope 4 | cin >> S; | ^~~ a....
s721725572
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ cin >> S; trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:11:5: error: 'trasform' was not declared in this scope 11 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~
s406149077
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i); } cout << ans ; }
a.cc: In function 'int main()': a.cc:10:5: error: 'trasform' was not declared in this scope 10 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~
s029812936
p03737
C++
#include<bits/stdc++.h> using namespace std; int main () { string S; string ans; cin >> S; for(int i = 0; i<3;i++){ trasform(S.begin(),S.end(),S.begin(),::toupper); ans += S.at(i) } cout << ans ; }
a.cc: In function 'int main()': a.cc:10:5: error: 'trasform' was not declared in this scope 10 | trasform(S.begin(),S.end(),S.begin(),::toupper); | ^~~~~~~~ a.cc:11:19: error: expected ';' before '}' token 11 | ans += S.at(i) | ^ | ; 12 | } ...
s161465085
p03737
C
include<stdio.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); printf("%c%c%c\n",a[0]-0x20,b[0]-0x20,c[0]-0x20); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s241718960
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; transform(s1.begin(), s1.begin() + 1, s1.begin(), toupper); transform(s2.begin(), s2.begin() + 1, s2.begin(), toupper); transform(s3.begin(), s3.begin() + 1, s3.begin(), toupper);...
a.cc: In function 'int main()': a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 9 | transform(...
s397361508
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c;cin>>a>>b>>c; cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';}
a.cc:5:14: warning: multi-character character constant [-Wmultichar] 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ a.cc:5:25: warning: multi-character character constant [-Wmultichar] 5 | cout<<a[0]-'32'<<b[0]-'32'<c[0]-'32';} | ^~~~ a.cc:5:35: warning: m...
s223542441
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c;cin>>a>>b>>c; cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
a.cc: In function 'int main()': a.cc:5:13: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-' 5 | cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";} a.cc:5:24: error: invalid operands of types '__gnu_cxx::__alloc_traits<...
s864066410
p03737
C++
#include<iostream> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; char d = 'A' - 'a'; printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;) return 0; }
a.cc: In function 'int main()': a.cc:7:56: error: expected ')' before ';' token 7 | printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;) | ~ ^ | ) a.cc:7:57: error: expected primary-expressio...
s399412444
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdlib> using namespace std; int main(){ string a, b, c; cin >> a >> b >> c; transform (a.begin (), a.end (), a.begin (), toupper); transform (b.begin (), b.end (), b.begin (), toupper); transf...
a.cc: In function 'int main()': a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 11 | transform (a.begin (), a.end (), a.begi...
s236644936
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<string> s(3); int offset = 'A'-'a'; rep(i,3)cin>>s[i]; rep(i,3){ char a = s[i][0]+offset; cout<<a; } cout<<endl; }
a.cc: In function 'int main()': a.cc:7:13: error: 'i' was not declared in this scope 7 | rep(i,3)cin>>s[i]; | ^ a.cc:7:9: error: 'rep' was not declared in this scope 7 | rep(i,3)cin>>s[i]; | ^~~
s073750345
p03737
C++
//file_name:ABC59_A.cpp #include <bits/stdc++.h> #define fi first #define se second #define rep(i,n) for(int i = 0; i < (n); ++i) #define rrep(i,n) for(int i = 1; i <= (n); ++i) #define drep(i,n) for(int i = (n)-1; i >= 0; --i) #define srep(i,s,t) for (int i = s; i < t; ++i) #define rng(a) a.begin(),a.end() #define max...
a.cc: In function 'int main()': a.cc:83:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 83 | string s = a[0] + b[0] + c[0]; a.cc:85:16: error: no matching function for call to 'toupper(std::string&)' 85 | s = toupper(s); | ...
s785795655
p03737
C
#include <stdio.h> int main (){ char a,b,c; int h; scanf ("%s%s%s",a,b,c); h='A'-'a'; printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); return 0; }
main.c: In function 'main': main.c:7:19: error: subscripted value is neither array nor pointer nor vector 7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); | ^ main.c:7:26: error: subscripted value is neither array nor pointer nor vector 7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h); | ...
s976768784
p03737
C++
#include <iostream> #include <string> using namespace std; int main(void){ string s1; string s2; string s3; string tmp1; string tmp2; string tmp3; string ans; cin >> s1 >> s2 >> s3; tmp1=s1[0]; tmp2=s2[0]; tmp3=s3[0]; ans=tmp1+tmp2+tmp3; transform(ans.cbegin(),a...
a.cc: In function 'int main()': a.cc:23:5: error: 'transform' was not declared in this scope 23 | transform(ans.cbegin(),ans.cend(),ans.begin(),::toupper); | ^~~~~~~~~
s096782597
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl; }
a.cc: In function 'int main()': a.cc:10:29: error: expected primary-expression before 'char' 10 | cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl; | ^~~~ a.cc: At global scope: a.cc:10:47: error: expected unqualified-id before '<<' token 10 | cout<<char...
s244879399
p03737
C++
#pragma once #include <sstream> #include <string> #include <vector> #include <map> #include <algorithm> #include <iostream> #include <utility> #include <set> #include <cctype> #include <queue> #include <stack> #include <cstdio> #include <cstdlib> #include <cmath> #include <deque> #include <numeric> using namespace std;...
a.cc:1:9: warning: #pragma once in main file 1 | #pragma once | ^~~~ a.cc: In function 'void Threeletteracronym()': a.cc:31: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>::i...
s354600772
p03737
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <array> #include <tuple> #...
a.cc: In function 'int main()': a.cc:39:5: error: expected ',' or ';' before 'cout' 39 | cout << s1[0] + diff << s2[0] + diff << s3[0] + diff << endl; | ^~~~
s178606096
p03737
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<cmath> #include<cstdio> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; char dif = 'A' - 'a'; printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif; return 0; }
a.cc: In function 'int main()': a.cc:13:57: error: expected ')' before ';' token 13 | printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif; | ~ ^ | )
s391342035
p03737
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2,s3; cin>>s1>>s2>>s3; cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 } // ASCII文字コード表より、小文字から32を引くと大文字に変換される。
a.cc: In function 'int main()': a.cc:8:21: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | cout<<s1[0]-32<<s2-32<<s3-32<<endl; // 文字には番号が割り振られており、 | ~~^~~ | | | | | in...
s973618630
p03737
C++
#include<stdio.h> #include<string.h> int main() { char a[1000],b[5]; gets(a); int len,i,j; len=strlen(a); printf("%d\n",len); for(i=0; i<len; i++) { if(i==0) printf("%c",a[0]-32); if(a[i]==' ') printf("%c",a[i+1]-32); } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s302884988
p03737
C++
#include<stdio.h> #include<string.h> int main() { char a[1000],b[5]; gets(a); int len,i,j; len=strlen(a); printf("%d\n",len); for(i=0; i<len; i++) { if(i==0) printf("%c",a[0]-32); if(a[i]==' ') printf("%c",a[i+1]-32); } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s524908767
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include <cctype> 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); ...
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...
s919454514
p03737
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1,s2,s3; cin >> s1 >> s2 >>s3 ; transform(s1.begin(), s1.end(), s1.begin(), toupper); transform(s2.begin(), s2.end(), s2.begin(), toupper); transform(s3.begin(), s3.end(), s3.begin(), toupper); cout << s1[0]<< ...
a.cc: In function 'int main()': a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 13 | transform(s1.begin(), s1.end(), s1.be...
s882974705
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; char org_str[] = {a[0],b[0],c[0]}; string str(org_str, end(org_str)); transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:3: error: 'transform' was not declared in this scope 14 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s233799010
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string str = {a[0],b[0],c[0]}; transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:3: error: 'transform' was not declared in this scope 12 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s489524787
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string str = {a[0],b[0],c[0]}; transform(str.begin(),str.end(),str.begin(), ::toupper); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:3: error: 'transform' was not declared in this scope 12 | transform(str.begin(),str.end(),str.begin(), ::toupper); | ^~~~~~~~~
s529512612
p03737
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B,C; cin >> A >> B >> C; A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A"; cout << A.at(0)<< B.at(0)<< C.at(0)<<endl; }
a.cc: In function 'int main()': a.cc:7:21: error: invalid use of member function 'std::__cxx11::basic_string<char>::at' (did you forget the '()' ?) 7 | A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A"; | ~~^~ a.cc:7:35: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::...
s384767957
p03737
C++
int main(){ string a,b,c; cin >> a >> b >> c; int x = 'a' - 'A'; cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl; }
a.cc: In function 'int main()': a.cc:2:5: error: 'string' was not declared in this scope 2 | string a,b,c; | ^~~~~~ a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:3:12: error: 'a' was not declared in this scope 3 | cin >> a >> b >> c;...
s081417540
p03737
C++
#include<bits/stdc++.h> #include<string> #include<algorithm> #include<vector> using namespace std; int main(){ string s, t, u; cin >> s >> t >> u; transform(s.cbegin(), s.cend(), s.begin(), toupper); transform(t.cbegin(), t.cend(), t.begin(), toupper); transform(u.cbegin(), u.cend(), u.begin(), toupper); co...
a.cc: In function 'int main()': a.cc:10: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>)' 10 | transform(s.cbegin(), s.cend(),...