submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s998675220
p03737
Java
import java.util.Scanner; 2.import java.util.Random; 3.import java.util.Arrays; 4. 5.class Main { 6. 7. public static void main(String[] args) { 8. Scanner sc = new Scanner(System.in); 9. String a = sc.next(); 10. String b = sc.next(); 11. String c = sc.next(); 12. 13. String str = a.substring(0,1) + b.substri...
Main.java:2: error: class, interface, enum, or record expected 2.import java.util.Random; ^ Main.java:3: error: class, interface, enum, or record expected 3.import java.util.Arrays; ^ Main.java:4: error: class, interface, enum, or record expected 4. ^ Main.java:6: error: illegal start of type 6. ^ Main.java:8: error:...
s744493627
p03737
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> #include <utility> #include <climits> #include <vector> using namespace std; #define ll long long int const int MOD = 1000000007; int main() { string s1, s2, s3, ans; cin >> s1 >> s2 >> s3; transform(s1.cbegin(), s1.cend(), s1.begin(), ...
a.cc: In function 'int main()': a.cc:19: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>)' 19 | transform(s1.cbegin(), s1...
s604761937
p03737
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> #include <utility> #include <climits> #include <vector> using namespace std; #define ll long long int const int MOD = 1000000007; int main() { string s1, s2, s3, ans; cin >> s1 >> s2 >> s3; transform(s1.cbegin(), s1.cend(), s1.begin(), ...
a.cc: In function 'int main()': a.cc:19: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>)' 19 | transform(s1.cbegin(), s1...
s380868890
p03737
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> #include <utility> #include <climits> #include <vector> using namespace std; #define ll long long int const int MOD = 1000000007; int main() { string s1, s2, s3, ans; cin >> s1 >> s2 >> s3; transform(s1.cbegin(), s1.cend(), s1.begin(), ...
a.cc: In function 'int main()': a.cc:19: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>)' 19 | transform(s1.cbegin(), s1...
s148786313
p03737
C++
#include<iostream> #include<string.h> usingnamespace std; int main() { string a, b, c; cin>>a>>b>>c; cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A'; return 0;}
a.cc:3:1: error: 'usingnamespace' does not name a type 3 | usingnamespace std; | ^~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:1: error: 'string' was not declared in this scope 7 | string a, b, c; | ^~~~~~ a.cc:7:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosf...
s547458490
p03737
C++
#include <iostream> using namespace std; int main(){ string s1; string s2; string 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[...
a.cc: In function 'int main()': a.cc:8:5: error: 'transform' was not declared in this scope 8 | transform(s1.begin(), s1.end(), s1.begin(), ::toupper); | ^~~~~~~~~
s350994290
p03737
C++
#include<iostream> #include<algorithm> #include<ctype.h> #include<vector> #include<cstdio> #include<string> using namespace std; int main() { string a; cin >> a; string b; cin >> b; string c; cin >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); trans...
a.cc: In function 'int main()': a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 17 | transform(a.begin(), a.end(), a.begin...
s693394597
p03737
C++
#include<iostream> #include<algorithm> #include<vector> #include<cstdio> #include<string> using namespace std; int main() { string a; cin >> a; string b; cin >> b; string c; cin >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); transform(c.begin(), c....
a.cc: In function 'int main()': a.cc:16:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 16 | transform(a.begin(), a.end(), a.begin...
s930080159
p03737
C++
#include<iostream> #include<algorithm> #include<vector> #include<string> using namespace std; int main() { string a; cin >> a; string b; cin >> b; string c; cin >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(), toupper); transform(c.begin(), c.end(), c.begin(),...
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(a.begin(), a.end(), a.begin...
s727589068
p03737
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a; cin >> a; string b; cin >> b; string c; cin >> 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...
s418536429
p03737
C++
// ABC067_A.cpp : Defines the entry point for the console application. // #include <iostream> #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(), touppe...
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(s1.begin(), s1.end(), s1.be...
s622592118
p03737
C++
// ABC067_A.cpp : Defines the entry point for the console application. // #include <iostream> #include <cstdlib> #include <algorithm> #include <string> using namespace std; int main(int argc, char *argv[]) { string s[3]; cin >> s[0] >> s[1] >> s[2]; for (int i = 0; i < 3; i++) { transform(s[i].begin(), s[i].end...
a.cc: In function 'int main(int, char**)': a.cc:16: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>)' 16 | transform(s[i].beg...
s282642647
p03737
C++
// ABC067_A.cpp : Defines the entry point for the console application. // #include <iostream> #include <cstdlib> #include <algorithm> #include <string> using namespace std; int main() { string s[3]; cin >> s[0] >> s[1] >> s[2]; for (int i = 0; i < 3; i++) { transform(s[i].begin(), s[i].end(), s[i].begin(), toup...
a.cc: In function 'int main()': a.cc:16: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>)' 16 | transform(s[i].begin(), s[i]....
s203898945
p03737
C++
#include <iostream> #include <algorithm> using namespace std; int main() { string a, b, c, d; cin >> a >> b >> c; cout << toupper(a[0]) << toupper(b[0] << toupper(c[0]) << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:60: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | cout << toupper(a[0]) << toupper(b[0] << toupper(c[0]) << endl;
s128625775
p03737
C++
int main(){ char s1, s2, s3; cin >> s1 >> s2 >> s3; s1 = char(s1 - 'a' + 'A'); s2 = char(s2 - 'a' + 'A'); s3 = char(s3 - 'a' + 'A'); cout << s1 << s2 << s3 << endl; return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'cin' was not declared in this scope 4 | cin >> s1 >> s2 >> s3; | ^~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout << s1 << s2 << s3 << endl; | ^~~~ a.cc:9:35: error: 'endl' was not declared in this s...
s673897305
p03737
C++
int main(){ string s1, s2, s3, ans1, ans2, ans3; char dif = 'A' -' a'; cin >> s1 >> s2 >> s3; ans1 = s1[0] + dif; ans2 = s2[0] + dif; ans3 = s3[0] + dif; cout << ans1 << ans2 << ans3 << endl; return 0; }
a.cc:3:25: warning: multi-character character constant [-Wmultichar] 3 | char dif = 'A' -' a'; | ^~~~ a.cc: In function 'int main()': a.cc:2:9: error: 'string' was not declared in this scope 2 | string s1, s2, s3, ans1, ans2, ans3; | ^~~~~~ a.cc:3:24: ...
s960536226
p03737
C++
#include <iostream> #include <string> #include <algorithm> 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(), toupper); ...
a.cc: In function 'int main()': a.cc:9: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>)' 9 | transform(s1.begin(), s1.end(), s1.begin()...
s032447421
p03737
C++
#include <iostream> #include <string> #include <algorithm> 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(), toupper); ...
a.cc: In function 'int main()': a.cc:9: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>)' 9 | transform(s1.begin(), s1.end(), s1.begin()...
s227679177
p03737
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; int i; for(i=0;i<3;i++) { cin>>a; cout<<a[0]-'a'+'A' } return 0; }
a.cc: In function 'int main()': a.cc:10:19: error: expected ';' before '}' token 10 | cout<<a[0]-'a'+'A' | ^ | ; 11 | } | ~
s024252736
p03737
C++
import sys if __name__ == '__main__': string = raw_input().split() for strLine in string: sys.stdout.write(strLine[0].upper()) print
a.cc:3:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 3 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:1:1: error: 'import' does not name a type 1 | import sys | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s393661051
p03737
C++
#include <iostream> #include<string> #include<algorithm> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; int x='A'-'a';    printf("%c%c%c\n", a[0]+x, b[0]+x, c[0]+x); return 0; }
a.cc:10:1: error: extended character   is not valid in an identifier 10 |    printf("%c%c%c\n", a[0]+x, b[0]+x, c[0]+x); | ^ a.cc:10:1: error: extended character   is not valid in an identifier a.cc: In function 'int main()': a.cc:10:1: error: '\U00003000\U00003000' was not declared in this scope 10 |    ...
s977383973
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); if(a.length() > b.length()){ System.out.println("GREATER"); } else if(a.length() < b.length()){ System.out.println("LESS"); ...
Main.java:23: error: cannot find symbol if(i == a.length - 1){ ^ symbol: variable length location: variable a of type String 1 error
s526700829
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); if(a.length() > b.length()){ System.out.println("GREATER"); break; } else if(a.length() < b.length()){ System.out.println("...
Main.java:12: error: break outside switch or loop break; ^ Main.java:15: error: break outside switch or loop break; ^ Main.java:25: error: cannot find symbol if(i == a.length - 1){ ^ symbol: variable length location: variable a of type String 3 errors
s700529479
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = (a.chatAt(0)).ToString(); str += b.charAt(0); str += c.charAt(0); System.out.println(s...
Main.java:13: error: cannot find symbol String str = (a.chatAt(0)).ToString(); ^ symbol: method chatAt(int) location: variable a of type String 1 error
s521631522
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = a.chatAt(0); str += b.charAt(0); str += c.charAt(0); System.out.println(str); } }
Main.java:13: error: cannot find symbol String str = a.chatAt(0); ^ symbol: method chatAt(int) location: variable a of type String 1 error
s727185298
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = ""; str += a.chatAt(0); str += b.charAt(0); str += c.charAt(0); System.out.println(...
Main.java:15: error: cannot find symbol str += a.chatAt(0); ^ symbol: method chatAt(int) location: variable a of type String 1 error
s123707981
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = ""; str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + ""; System.out.println(str); } }...
Main.java:15: error: cannot find symbol str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + ""; ^ symbol: method chatAt(int) location: variable a of type String Main.java:15: error: cannot find symbol str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + ""; ^ symbol: method ch...
s721780842
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = ""; str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0); Syste.out.println(str); } }
Main.java:15: error: cannot find symbol str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0); ^ symbol: method chatAt(int) location: variable a of type String Main.java:15: error: cannot find symbol str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0); ^ symbol: method chatAt(int) loca...
s847992728
p03737
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.next(); String b = scan.next(); String c = scan.next(); String str = ""; str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0); Syste.out.println(str); } }
Main.java:15: error: cannot find symbol str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0); ^ symbol: method chatAt(int) location: variable a of type String Main.java:15: error: cannot find symbol str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0); ^ symbol: method chatAt(int) ...
s818837475
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<math.h> #include<queue> #include<map> #include <typeinfo> #include <stdlib.h> #define ll long long const int MOD = 1000000007; using namespace std; int main() { string s1, s2, s3, ans = "aaa"; cin >> s1 >> s2 >> s3; ans[0] = s1[0]; ans[1] = s2[0]; a...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(ans.begin(), ans.end(), ans...
s677053158
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<math.h> #include<queue> #include<map> #include <typeinfo> #include <stdlib.h> #define ll long long const int MOD = 1000000007; using namespace std; int main() { string s1, s2, s3, ans; cin >> s1 >> s2 >> s3; ans[0] = s1[0]; ans[1] = s2[0]; ans[2] = ...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(ans.begin(), ans.end(), ans...
s640407603
p03737
C++
main = getLine >>= putStrLn . map head . words
a.cc:1:1: error: 'main' does not name a type 1 | main = getLine >>= putStrLn . map head . words | ^~~~
s047081821
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; char d; cin>>a; cout<<a[1]-31<<endl; for(int i=0;i<a.size();i++){ if(a[i]==" "){ cout<<a[i+1]-31<<endl; } } }
a.cc: In function 'int main()': a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(a[i]==" "){
s153064211
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; char d; cin>>a; cout<<a[1]-31<<endl; for(int i=0;i<a.size;i++){ if(a[i]==' '){ cout<<a[i+1]-31<<endl; } } }
a.cc: In function 'int main()': a.cc:10:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsig...
s200505748
p03737
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; char d; cin>>a; cout<<a[1]-31<<endl; for(int i=0;i<a.size;i++){ if(a[i]==" "){ cout<<a[i+1]-31<<endl; } } }
a.cc: In function 'int main()': a.cc:10:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsig...
s126495027
p03737
C++
#include <iostream> #include <string> #include <ctype.h> using namespace std; int main() { //------------入力------------ //string型文字列a,b,cを定義 string a, b, c; //a,b,cを入力 cin >> a >> b >> c; //------------出力------------ //int型文字d,e,fを定義 int d, e, f; //入力された文字列a,b,cの先頭を各々大文字に変換 d = toupper(a[0]); e = toupper(...
a.cc: In function 'int main()': a.cc:26:17: error: expected ';' before '}' token 26 | return 0 | ^ | ; 27 | } | ~
s877130935
p03737
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<climits> #include<iostream> #include<sstream> #include<utility> #include<map> #include<vector> #include<queue> #include<algorithm> #include<set> #include<stack> using namespace std; typedef long long ll; typedef pair<int,int>P; string A,B,C; ...
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, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 22 | transform(A.begin(), A.end(), A.begin...
s248042518
p03737
C++
#include <bits/stdc++.h> using namespace std; #define MP make_pair #define PB push_back typedef long long LL; typedef pair<int,int> PII; const double eps=1e-8; const double pi=acos(-1.0); const int K=1e6+7; const int mod=1e9+7; LL ansa,ansb,sum,ls,n,x,a[K]; int main(void) { std::ios::sync_with_stdio(false); ...
a.cc: In function 'int main()': a.cc:23:15: error: expected ';' before 'for' 23 | ls=1,sum=0 | ^ | ; 24 | for(int i=1;i<=n;i++) | ~~~ a.cc:24:17: error: 'i' was not declared in this scope 24 | for(int i=1;i<=n;i++) | ^
s246909447
p03737
C++
#include <vector> #include <list> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
a.cc: In function 'int main()': a.cc:166: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>)' 166 | transform(ALL(a), a.begin(), toupper...
s424699750
p03737
C++
#include <vector> #include <list> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
a.cc: In function 'int main()': a.cc:166: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>)' 166 | transform(ALL(a), a.begin(), toupper...
s445359784
p03737
Java
import java.io.File; import java.util.Scanner; public class ABC { public static void main(String args[]){ Scanner sc = new Scanner(System.in); // 整数の入力 String input1 = sc.next(); String input2 = sc.next(); int a = new Integer(input1).intValue(); int b = new Integer(input2).intValue(); if(a...
Main.java:5: error: class ABC is public, should be declared in a file named ABC.java public class ABC { ^ Main.java:11: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int a = new Integer(input1).intValue(); ^ Main.java:12: warning: [removal] Integer(String)...
s290452221
p03737
C++
# -*- coding: utf-8 -*- import sys inputs = [] for line in sys.stdin: inputs.append(line.split()) for i in range(len(inputs)): print "{0}{1}{2}".format(inputs[i][0][0].upper(),inputs[i][0][0].upper(),inputs[i][0][0].upper())
a.cc:1:3: error: invalid preprocessing directive #- 1 | # -*- coding: utf-8 -*- | ^ a.cc:2:1: error: 'import' does not name a type 2 | import sys | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
s377777497
p03737
C
#inlcude <stdio.h> int main(){ char str1[11], str2[11], str3[11]; scanf("%d%d%d", str1, str2, str3); str1[1]=str1[1]-32; str2[1]=str2[1]-32; str3[1]=str3[1]-32: printf("%s%s%s", str1[1], str2[2], str3[3]); return 0; }
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | scanf("%d%d%d", str1, str2, str3); | ...
s362500555
p03737
C
#inlcude <stdio.h> int main(){ char str1[11], str2[11], str3[11]; scanf("%d%d%d", str1, str2, str3); str1[1]=str1[1]-32; str2[1]=str2[1]-32; str3[1]=str3[1]-32; printf("%s%s%s", str1[1], str[2], str3[3]); return 0; }
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | scanf("%d%d%d", str1, str2, str3); | ...
s498770785
p03737
C++
File Edit Options Buffers Tools C++ Help #include <iostream> #include <string> ...
a.cc:1:1: error: 'File' does not name a type 1 | File Edit Options Buffers Tools C++ Help | ^~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, ...
s004958589
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a,b,c,ans; cin >> a >> b >> c; ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; return 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(ans.begin(), ans.end(), ans...
s865689223
p03737
C++
#include <iostream> #include <string> #include<algorithm> using namespace std; int main() { string a, b, c, ans; cin >> a >> b >> c; ans = a.substr(0, 1); ans += b.substr(0, 1); ans += c.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans << endl; return 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(ans.begin(), ans.end(), ans...
s873133902
p03737
C++
include <stdio.h> int main() { char s[3][11], ret[4]; scanf("%s %s %s", s[0], s[1], s[2]); for (int i = 0; i < 3; i++) ret[i] = s[i][0] - 'a' + 'A'; ret[4] = 0; printf("%s\n", ret); return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <stdio.h> | ^~~~~~~
s997175820
p03737
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s[3]; cin >> s[0]; cin >> s[1]; cin >> s[2]; for (size_t i = 0; i < 3; i++) { std::transform(s[i].begin(), s[i].end(), s[i].begin(), toupper); cout << s[i][0]; } return 0; }
a.cc: In function 'int main()': a.cc:15:31: 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 | std::transform(s[i].begin(), ...
s973487965
p03737
C++
#define _CRT_SECURE_NO_WARNINGS #include <string> #include <vector> #include <algorithm> #include <numeric> #include <set> #include <map> #include <queue> #include <iostream> #include <sstream> #include <cstdio> #include <cmath> #include <ctime> #include <cstring> #include <cctype> #include <cassert> #include <limits> ...
a.cc: In function 'int main()': a.cc:73: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>)' 73 | transform(ALL(a), a.begin(), toupper)...
s994905416
p03737
C++
#define _CRT_SECURE_NO_WARNINGS #include <string> #include <vector> #include <algorithm> #include <numeric> #include <set> #include <map> #include <queue> #include <iostream> #include <sstream> #include <cstdio> #include <cmath> #include <ctime> #include <cstring> #include <cctype> #include <cassert> #include <limits> ...
a.cc: In function 'int main()': a.cc:73: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>)' 73 | transform(ALL(a), a.begin(), toupper)...
s166488510
p03737
C++
#include<bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define VS vector<string> #define ll long long int #define debug(x) cout << x << " :" <<#x << endl int main(void) { int n; cin >> n; vector<ll> a(100001); ll s; REP(i,n) { cin >{ s; a[i] = s; ...
a.cc: In function 'int main()': a.cc:12:9: error: 'i' was not declared in this scope 12 | REP(i,n) { | ^ a.cc:12:5: error: 'REP' was not declared in this scope 12 | REP(i,n) { | ^~~ a.cc:48:2: error: expected '}' at end of input 48 | } | ^ a.cc:7:16: note: to match this '...
s136450514
p03737
C++
import java.util.*; import java.math.*; import java.io.*; public class Main { static String s1,s2,s3; public static void main(String[] args) throws IOException { Reader in = new Reader(); PrintWriter out = new PrintWriter(System.out); s1 = in.next(); s2 = in.next(); s3 = in.next(); out.println((char)(...
a.cc:27:17: error: stray '@' in program 27 | @Override | ^ a.cc:28:17: error: stray '@' in program 28 | @SuppressWarnings("unchecked") | ^ a.cc:34:17: error: stray '@' in program 34 | @Override | ^...
s952081882
p03737
C++
#include <bits\stdc++.h> using namespace std; int main() { string ans = ""; for (int i=0; i<3; i++) { string str; cin >> str; ans += toupper(str[0]); } cout << ans << endl; return 0; }
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s772888823
p03737
C++
#include<cstdio> #include<cstring> #include<conio.h> #include<iostream> using namespace std; string s1,s2,s3; int main() { cin>>s1>>s2>>s3; char p1=s1[0]-32; char p2=s2[0]-32; char p3=s3[0]-32; cout<<p1<<p2<<p3<<endl; return 0; }
a.cc:3:9: fatal error: conio.h: No such file or directory 3 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s645834376
p03737
C++
#include<cstdio> #include<cstring> #include<conio.h> #include<iostream> using namespace std; string s1,s2,s3; int main() { cin>>s1>>s2>>s3; char p1=s1[0]-32; char p2=s2[0]-32; char p3=s3[0]-32; cout<<p1<<p2<<p3<<endl; return 0; }
a.cc:3:9: fatal error: conio.h: No such file or directory 3 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s122790925
p03737
C
#include <cstdio> #include <cstring> #include <ctime> #include <cstdlib> #include <cmath> #include <iostream> #include <string> #include <queue> #include <map> #include <stack> #include <vector> #include <algorithm> #include <set> #include <deque> #include <utility> #include <chrono> #include <sstream> #include <iomani...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s812007452
p03737
C++
#include<stdio.h> int main(void){ char waiwai[3]; int i; char s1[10]; char s2[10]; char s3[10]; gets(s1); gets(s2); gets(s3); waiwai[0]=s1[0]; waiwai[1]=s2[0]; waiwai[2]=s3[0]; for(i=0;i<3;i++){ if(waiwai[i]>96){ printf("%c",waiwai[i]-32); }else{ printf("%c",waiwai[i]); } } return 0; }
a.cc: In function 'int main()': a.cc:10:2: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(s1); | ^~~~ | getw
s609754979
p03737
C++
# include <iostream> # include <vector> # include <limits> # include <algorithm> # include <map> # include <string> # include <functional> # include <cmath> # include <iomanip> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper); transform(b.beg...
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(a.begin(), a.end(), a.begin...
s441554371
p03737
C++
#include<bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) for(int i=0;i<(n);i++) #define VS vector<string> #define ll long long int int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; char c1, c2, c3; c1 = toupper(s1[0]); c2 = toupper(s2[0]); ...
a.cc:16:2: error: expected class-name at end of input 16 | ~ | ^
s541014493
p03737
C++
#define REP(i,n) for(int i=0;i<(n);i++) #define VS vector<string> #define ll long long int int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; char c1, c2, c3; c1 = toupper(s1[0]); c2 = toupper(s2[0]); c3 = toupper(s3[0]); cout << c1 << c2 << c3 << endl; }
a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string s1, s2, s3; | ^~~~~~ a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin >> s1 >> s2 >> s3; | ^~~ a.cc:6:12: error: 's1' was not declared in this scope 6 | cin >> s1 ...
s759027979
p03737
C++
#define REP(i,n) for(int i=0;i<(n);i++) #define VS vector<string> #define ll long long int int main(void) { string s1, s2, s3; cin >> s1 >> s2 >> s3; char c1, c2, c3; c1 = toupper(s1[0]); c2 = toupper(s2[0]); c3 = toupper(s3[0]); cout << c1 << c2 << c3 << endl; }
a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string s1, s2, s3; | ^~~~~~ a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin >> s1 >> s2 >> s3; | ^~~ a.cc:6:12: error: 's1' was not declared in this scope 6 | cin >> s1 ...
s383601068
p03737
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(a59_(sc.nextInt(),sc.nextInt(),sc.nextInt())); } static String a59_(String s, String s1, String s2) { s = s.substring(0, 1).toUpperCase(); ...
Main.java:6: error: incompatible types: int cannot be converted to String System.out.println(a59_(sc.nextInt(),sc.nextInt(),sc.nextInt())); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
s279920340
p03737
C++
#include <iostream> using namespace std; int main(void){ char A,B; cin >> A >> B; if((string)A.length() > (string)B.length()) cout << "GREATER" << endl; else if((string)A.length() < (string)B.length()) cout << "LESS" << endl; else{ if(+A == +B) cout << "EQUAL" << endl; else if(+A > +...
a.cc: In function 'int main()': a.cc:7:16: error: request for member 'length' in 'A', which is of non-class type 'char' 7 | if((string)A.length() > (string)B.length()) | ^~~~~~ a.cc:7:37: error: request for member 'length' in 'B', which is of non-class type 'char' 7 | if((string)A.lengt...
s406847652
p03737
C++
#include <iostream> using namespace std; int main(){ int i[4]; cin >> i[0] >> i[1]; if(i[0] > i[1]){ i[4] = 1; }else if(i[0] < i[1]){ i[4] = 2; }else{ i[4] = 3; } swicth(i[4]){ case 1: cout << "GREATER" << endl; case 2: cout << "LESS" << endl; case 3: cout << "E...
a.cc: In function 'int main()': a.cc:14:3: error: 'swicth' was not declared in this scope 14 | swicth(i[4]){ | ^~~~~~
s027447610
p03737
C++
#include <iostream> #include <ctype.h> using namespace std; int main(){ string s[4]; cin >> s[0] >> s[1] >> s[2]; cout << toupper(s[0]) << toupper(s[1]) << toupper(s[2]); }
a.cc: In function 'int main()': a.cc:8:18: error: no matching function for call to 'toupper(std::string&)' 8 | cout << toupper(s[0]) << toupper(s[1]) << toupper(s[2]); | ~~~~~~~^~~~~~ In file included from /usr/include/c++/14/bits/basic_ios.h:37, from /usr/include/c++/14/ios:46, ...
s914581048
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string s[4]; cin >> s[1] >> s[2] >> s[3]; for(int i = 1; i != 4; i++){ cout << s[i][1] } return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: expected ';' before '}' token 9 | cout << s[i][1] | ^ | ; 10 | } | ~
s819705812
p03737
C++
#include <iostream> #include <string> using namespace std; int main(){ string s[4]; cin >> s[1] >> s[2] >> s[3]; for(int i = 1; i != 4; i++){ cout << s[i][1] } }
a.cc: In function 'int main()': a.cc:9:20: error: expected ';' before '}' token 9 | cout << s[i][1] | ^ | ; 10 | } | ~
s128350774
p03737
C
main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of '_' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: impli...
s010884050
p03737
C++
#include <iostream> #include <cstdlib> #include <algorithm> #include <string> using namespace std; using ll = long long; int main() { cin.sync_with_stdio(false); string s; for (int i = 0;i < 3;i++) { cin >> s; transform(s.begin(), s.end(), s.begin(), toupper); cout << s[0]; } cout << endl; return 0;...
a.cc: In function 'int main()': a.cc:15: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>)' 15 | transform(s.begin(), s.end(),...
s385299415
p03737
C++
#include <bits/stdc++.h> #define SZ(v) ((int)(v).size()) using namespace std; typedef long long ll; typedef pair<int, int> pii; int main(){ char s[11], t[11], u[11]; scanf("%s%s%s", s, t, u); printf("%c%c%c\n", s[0]-'a'+'A', t[0]-'a'+'A', u[0]-'a'+'A') return 0; }
a.cc: In function 'int main()': a.cc:11:69: error: expected ';' before 'return' 11 | printf("%c%c%c\n", s[0]-'a'+'A', t[0]-'a'+'A', u[0]-'a'+'A') | ^ | ; 12 |...
s067999804
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<cstdio> using namespace std; #define REP(i, a, n) for(int i=0; i<n; i++) int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string ans; ans = s1.substr(0, 1); char* c1 = new char[ans.size() + 1]; strcpy(c1, ans.c_str()); cou...
a.cc: In function 'int main()': a.cc:17:9: error: 'strcpy' was not declared in this scope 17 | strcpy(c1, ans.c_str()); | ^~~~~~ a.cc:6:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 5 | #include<cstdio> +++ |+#include <cstring>...
s379962031
p03737
Java
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class TaskA { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.nextLine(); String[] ar = s.split(" "); StringBuilder sb = new StringBuild...
Main.java:7: error: class TaskA is public, should be declared in a file named TaskA.java public class TaskA { ^ 1 error
s849053236
p03737
C++
#include "stdafx.h" #include <iostream> #include <string> using namespace std; const int MAX_N = 1000; char A[MAX_N], B[MAX_N]; void solve() { if (A > B) { cout << "GREATER" << endl; } else if(A < B) { cout << "LESS" << endl; } else { cout << "EQUAL" << endl; } } int main() { //入力 cin >> A >> B; solv...
a.cc:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s234772773
p03737
C++
#include <iostream> #include <cstdlib> #include <algorithm> #include <string> using namespace std; using ll = long long; int main() { cin.sync_with_stdio(false); string s; for (int i = 0;i < 3;i++) { cin >> s; transform(s.begin(), s.end(), s.begin(), toupper); cout << s[0]; } cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:15: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>)' 15 | transform(s.begin(), s.end(),...
s980346485
p03737
C++
#include<bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.sync_with_stdio(false); string s; for (int i = 0;i < 3;i++) { cin >> s; transform(s.begin(), s.end(), s.begin(), toupper); cout << s[0]; } cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11: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>)' 11 | transform(s.begin(), s.end(),...
s534262829
p03737
C++
#include <iostream> #include<algorithm> #include <vector> #include <string> #include <stdio.h> #include <cstdio> #include <ctype.h> #include <cstdlib> using namespace std; int main() { string a[100],b[100],c[100],d,e,f; cin>>a>>b>>c; d=toupper('a'); e=toupper('b'); f=toupper('c'); cout<<d[0]<<e[0]<<f[0]<<endl; ...
a.cc: In function 'int main()': a.cc:14:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [100]' {aka 'std::__cxx11::basic_string<char> [100]'}) 14 | cin>>a>>b>>c; | ~~~^~~ | | | | | std::st...
s803271341
p03737
C++
#include<iostream> using namespace std; int main(){ char a[10],b[10],c[10]; scanf("%d %d %d,&a,&b,&c); printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32); return 0; }
a.cc:5:15: warning: missing terminating " character 5 | scanf("%d %d %d,&a,&b,&c); | ^ a.cc:5:15: error: missing terminating " character 5 | scanf("%d %d %d,&a,&b,&c); | ^~~~~~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:6:49: error: expected ')' be...
s710859870
p03737
C++
/* ABC 059 A - Three-letter acronym */ #define _USE_MATH_DEFINES #include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <cfloat> #include <climits> #include <cstdlib> #include <cstring> #include <cmath> #include <map> #include <queue> #include <random> #include <set> #include <sstre...
a.cc: In function 'int main()': a.cc:53: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>)' 53 | transform(s1.begin(), s1.end(), s1.be...
s455677593
p03737
C
#include<iostream> #include<string> using namespace std; int main(){ for(int i=0;i<3;i++){ string hoge; cin >> hoge; cout << (char)(hoge[0]-0x20); } cout << endl; return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s576885462
p03737
C++
#include<iostream> #include<fstream> #include<string> #include<algorithm> #include<cmath> #include<vector> #include<stack> #include<climits> #include<cstring> #include<queue> using namespace std; const int MAX_N = 300000; typedef unsigned long long ull; typedef long long ll; const ull mod = 1000000000 + 7; #define REP...
a.cc:24:2: error: stray '#' in program 24 | }#include<iostream> | ^ a.cc:24:3: error: 'include' does not name a type 24 | }#include<iostream> | ^~~~~~~ a.cc:36:11: error: redefinition of 'const int MAX_N' 36 | const int MAX_N = 300000; | ^~~~~ a.cc:13:11: note: 'const int MAX_N' ...
s425685899
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int main(void) { cin >> a >> b >> c; a = a.substr(0, 1); b = b.substr(0, 1); c = c.substr(0, 1); transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin()...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(a.begin(), a.end(), a.begin...
s809945578
p03737
C++
/* ABC 059 A - Three-letter acronym */ #define _USE_MATH_DEFINES #include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <cfloat> #include <climits> #include <cstdlib> #include <cstring> #include <cmath> #include <map> #include <queue> #include <random> #include <set> #include <sstre...
a.cc: In function 'int main()': a.cc:53: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>)' 53 | transform(s1.begin(), s1.end(), s1.be...
s293295058
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int main(void) { cin >> a >> b >> c; a = a.substr(0, 1); b = b.substr(0, 1); c = c.substr(0, 1); transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin()...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(a.begin(), a.end(), a.begin...
s502407674
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int main(void) { cin >> a >> b >> c; a = a.substr(0, 1); b = b.substr(0, 1); c = c.substr(0, 1); transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin()...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(a.begin(), a.end(), a.begin...
s600895404
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int main(void) { cin >> a >> b >> c; a = a.substr(0, 1); b = b.substr(0, 1); c = c.substr(0, 1); transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin()...
a.cc: In function 'int main()': a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 19 | transform(a.begin(), a.end(), a.begin...
s666878649
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: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(s1.begin(), s1.end(), s1.be...
s434797730
p03737
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, a, n) for(int i=0; i<n; i++) int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string ans; ans = s1.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans; ans = s2.substr(0, 1); transform(ans.begin(), ans.end(), ans...
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(ans.begin(), ans.end(), ans...
s966775731
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int Main(void) { cin >> a >> b >> c; a = a.substr(0, 0); b = b.substr(0, 0); c = c.substr(0, 0); transform(a.begin(), a.begin(), a.begin(), toupper); transform(b.begin(), b.begin(), b.begi...
a.cc: In function 'int Main()': a.cc:18:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 18 | transform(a.begin(), a.begin(), a.beg...
s498736790
p03737
C++
#include<iostream> #include<string> int main(){ string s1,s2,s3; cin>>s1>>s2>>s3; int n='A'-'a'; cout<<s1[0]+n<<s2[0]+n<<s3[0]+n<<endl; }
a.cc: In function 'int main()': a.cc:4:3: error: 'string' was not declared in this scope 4 | string s1,s2,s3; | ^~~~~~ a.cc:4:3: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/os...
s202019634
p03737
C++
#include<iostream> #include<string> #include<algorithm> #include<cctype> using namespace std; #define REP(i, a, n) for(int i=0; i<n; i++) int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; string ans; ans = s1.substr(0, 1); transform(ans.begin(), ans.end(), ans.begin(), toupper); cout << ans; ans = s2.subs...
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(ans.begin(), ans.end(), ans...
s866593818
p03737
C++
#include<stdio.h> #include<iostream> #include<string> #include<algorithm> using namespace std; string a, b, c; int i, j; int main(void) { cin >> a >> b >> c; a = a.substr(0, 0); b = b.substr(0, 0); c = c.substr(0, 0); transform(a.begin(), a.end(), a.begin(), toupper); transform(b.begin(), b.end(), b.begin(),...
a.cc: In function 'int main()': a.cc:18:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 18 | transform(a.begin(), a.end(), a.begin...
s903552796
p03737
C++
#include<iostream> using namespace std; string a,b,c; int main(){ cin>>a>>b>>c; cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper(); }
a.cc: In function 'int main()': a.cc:7:12: error: request for member 'toupper' 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'} 7 | cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper(); | ...
s682039925
p03737
C++
#include <iostream> 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(), ::toupper); cout << s1[0] << s2[0] << s3...
a.cc: In function 'int main()': a.cc:7:5: error: 'transform' was not declared in this scope 7 | transform(s1.begin(), s1.end(), s1.begin(), ::toupper); | ^~~~~~~~~
s977837070
p03737
C++
#include <iostream> #include <vector> #include <algorithm> #include <cstdlib> #include <string> using namespace std; using ll = long long; #define reps(i,s,n) for(int (i) = (s) ; (i) < (n); ++(i)) #define rep(i,n) reps(i,0,n) string s1,s2,s3; string s4; int main(){ cin >> s1 >> s2 >> s3; s4 = (s1[0]); ...
a.cc: In function 'int main()': a.cc:21:14: 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>)' 21 | transform(s4.cbegin(),s4.cend...
s519538061
p03737
C++
#include <iostream> #include <algorithm> #include <cstdio> #include <cmath> #include <math.h> #include <string> #include <string.h> #include <stack> #include <queue> #include <vector> #include <utility> #include <set> #include <map> #include <stdlib.h> #include <iomanip> using namespace std; #define ll long long #def...
a.cc: In function 'int main()': a.cc:31: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>)' 31 | transform(s1.cbegin(), s1...
s067038379
p03737
C++
#include <iostream> #include <string> #include <queue> using namespace std; string a, b, c; int main() { cin.tie(0); ios::sync_with_stdio(false); 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(),...
a.cc: In function 'int main()': a.cc:16:9: error: 'transform' was not declared in this scope 16 | transform(a.begin(), a.end(), a.begin(), toupper); | ^~~~~~~~~
s745048841
p03737
C++
#define _USE_MATH_DEFINES // for C++ #include <cmath> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <array> #include <iterator> #include <utility> #include <set> #include <random> #include <map> #include <stack> #include <queue> #include <list> #include <fun...
a.cc: In function 'int main()': a.cc:27: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>)' 27 | transform(s.cbegin(), s.c...
s123926487
p03737
C++
# include <iostream> #include <cstdlib> # include <vector> # include <limits> # include <algorithm> # include <map> # include <string> # include <functional> # include <cmath> # include <iomanip> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper)...
a.cc: In function 'int main()': a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 17 | transform(a.begin(), a.end(), a.begin...
s699351625
p03737
C++
# include <iostream> #include <cstdlib> # include <vector> # include <limits> # include <algorithm> # include <map> # include <string> # include <functional> # include <cmath> # include <iomanip> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; transform(a.begin(), a.end(), a.begin(), toupper)...
a.cc: In function 'int main()': a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 17 | transform(a.begin(), a.end(), a.begin...