submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s125820029 | p03737 | C++ | a.cc:1:1: error: extended character is not valid in an identifier
1 |
| ^
a.cc:1:1: error: '\U00003000' does not name a type
1 |
| ^~
| |
s008441748 | p03737 | C++ |
#include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
string ans = toupper(a[0]) +toupper(b[0]) + toupper(c[0]);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:43: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans = toupper(a[0]) +toupper(b[0]) + toupper(c[0]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
|
s681124716 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
transform(s1.cbegin(),s1.cend(),s1.begin(),toupper);
transform(s2.cbegin(),s2.cend(),s2.begin(),toupper);
transform(s3.cbegin(),s3.cend(),s3.begin(),toupper);
cout << s1.at(0) << s2.at(0) << s3.at(0)... | a.cc: In function 'int main()':
a.cc:7: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>)'
7 | transform(s1.cbegin(),s1.cend(... |
s702877040 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
string s = {s1.at(0),s2.at(0),s3.at(0)};
transform(s.cbegin(),s.cend(),s.begin(),toupper);
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:8: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>)'
8 | transform(s.cbegin(),s.cend(),... |
s857502300 | p03737 | C++ | #include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main()
{
string s1, s2, s3;
cin >> s1 >> s2 >> s3
char ch1 = toupper(s1[0]);
char ch2 = toupper(s2[0]);
char ch3 = toupper(s3[0]);
cout << ch1 << ch2 << ch3 << endl;
}
| a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'char'
11 | cin >> s1 >> s2 >> s3
| ^
| ;
12 |
13 | char ch1 = toupper(s1[0]);
| ~~~~
a.cc:17:13: error: 'ch1' was not declared in this scope... |
s820018361 | p03737 | C++ | //保留所有权利。
#include<iostream>
#include<stdio.h>//printするよ
#include<vector>
#include<algorithm>//辞書順はnext_permutationだよ
#include<set>
#include<string>
#include<sstream>
#include<string.h>
#include<time.h>
#include<random>
#include<cmath>
#include<math.h>
#include<queue>
#include<time.h>
#include<iomanip>
#include<locale>... | a.cc:30:9: warning: "vcin" redefined
30 | #define vcin(v) for (int i = 0; i < (v).size(); i++) { cin >> (v)[i]; }
| ^~~~
a.cc:29:9: note: this is the location of the previous definition
29 | #define vcin(s,n) rep(i,n)cin>>s[i];//vcin(配列名),(繰り返し回数)
| ^~~~
a.cc: In function 'int main()':... |
s817152586 | p03737 | C++ | def abc(a,b,c):
return (a[0] + b[0] + c[0]).upper()
def main():
a , b , c = map(str, input().split())
print(abc(a , b , c))
if __name__ == '__main__':
main() | a.cc:8:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
8 | if __name__ == '__main__':
| ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
1 | def abc(a,b,c):
| ^~~
|
s796792563 | p03737 | C++ | //{{{
#include <bits/stdc++.h>
using namespace std;
const string truename = "YES";
const string falsename = "NO";
struct IoSetup {
IoSetup(){
cin.tie(nullptr);
// ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
cerr << fixed << setprecision(10);
};
} ioSetup;
//{{{ rep rrep loop
#... | a.cc: In function 'int main()':
a.cc:162:28: error: expected ';' before '}' token
162 | print(s[0] + 'A' - 'a')
| ^
| ;
163 | }
| ~
|
s945501241 | p03737 | C++ | #include <bits/stdc+++.h>
using namespace std;
int main() {
string a, b, c;cin>>a>>b>>c;
cout<<toupper(a[0])<<toupper(b[0])<<toupper(c[0])<<endl;
return 0;
}
| a.cc:1:10: fatal error: bits/stdc+++.h: No such file or directory
1 | #include <bits/stdc+++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s651236827 | p03737 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
#include <iomanip>
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;++i)
#define rrep(i,a,b) for(int i=a;i>=b;--i)
using namespace std;
ll mod = 1e9 + 7;
using namespace std;
int main()
{
string s1... | a.cc:31:1: error: extended character is not valid in an identifier
31 | return 0;
| ^
a.cc:31:1: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:25:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__... |
s436417535 | p03737 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
#include <iomanip>
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;++i)
#define rrep(i,a,b) for(int i=a;i>=b;--i)
using namespace std;
ll mod = 1e9 + 7;
using namespace std;
int main()
{
string s1... | a.cc: In function 'int main()':
a.cc:25: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>)'
25 | transform(s1.cbegin(), s1... |
s630218974 | p03737 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
#include <iomanip>
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;++i)
#define rrep(i,a,b) for(int i=a;i>=b;--i)
using namespace std;
ll mod = 1e9 + 7;
using namespace std;
int main()
{
string s1... | a.cc: In function 'int main()':
a.cc:25: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>)'
25 | transform(s1.cbegin(), s1... |
s685716253 | p03737 | C++ | #include <iostream>
#include <string>
int main() {
std::string a,b,c;
std::cin>>a>>b>>c;
std::transform(a.begin(), a.end(), a.begin(), std::toupper);
std::transform(b.begin(), b.end(), b.begin(), std::toupper);
std::transform(c.begin(), c.end(), c.begin(), std::toupper);
cout<<a.substr(0,1)<<b.subst... | a.cc: In function 'int main()':
a.cc:8:8: error: 'transform' is not a member of 'std'
8 | std::transform(a.begin(), a.end(), a.begin(), std::toupper);
| ^~~~~~~~~
a.cc:9:8: error: 'transform' is not a member of 'std'
9 | std::transform(b.begin(), b.end(), b.begin(), std::toupper);
| ... |
s867909030 | p03737 | C++ | #include<bits/stdc++/h>
using namespace std;
int main()
{
string a, b, c;
cin>>a>>b>>c;
cout<<toupper(a[0])<<toupper(b[0])<<toupper(c[0]);
return 0;
} | a.cc:1:9: fatal error: bits/stdc++/h: No such file or directory
1 | #include<bits/stdc++/h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s373892902 | p03737 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.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:9: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>)'
9 | transform(a.begin(), a.end(), a.begin(... |
s570923931 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
}
| a.cc: In function 'int main()':
a.cc:9:25: error: request for member 'at' in 'a', which is of non-class type 'int'
9 | cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
| ^~
a.cc:9:49: error: request for member 'at' in 'b', which is of non-class type... |
s698758244 | p03737 | C++ | #define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
#define rrep(i,n) for(ll i##_len=(n) ,i=i##_len-1;i>=0;--i)
#define repi(i,a,b) for(ll i=ll(a);i<ll(b);++i)
#define fe(vec,lambda) std::for_each(vec.begin(), vec.end(), lambda );
#define printd(val) std::cout<< #val" = " <<val<<"\n";
#define printv(val) std::for... | a.cc: In function 'void src()':
a.cc:29:16: warning: ignoring return value of '_FIter std::upper_bound(_FIter, _FIter, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >]', declared with attribute 'nodisca... |
s197556124 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl; | a.cc: In function 'int main()':
a.cc:6:91: error: expected '}' at end of input
6 | cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
| ^
a.cc:3:12: note: to match this '{'
3 |... |
s990520886 | p03737 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl; | a.cc: In function 'int main()':
a.cc:8:91: error: expected '}' at end of input
8 | cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
| ^
a.cc:5:12: note: to match this '{'
5 |... |
s662023496 | p03737 | C++ | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main(){
string c1,c2,c3;
cin >> c1 >> c2 >> c3;
string str = c1.at(0)+c2.at(0)+c3.at(0);
transform(str.begin(), str.end(), str.begin(), ::toupper);
cout << str << endl;
}
| a.cc: In function 'int main()':
a.cc:7:33: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string str = c1.at(0)+c2.at(0)+c3.at(0);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~
|
s277659255 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
transform(a.begin()::toupper);
transform(b.begin()::toupper);
transform(c.begin()::toupper);
cout << a[1] << b[1] << c[1] << endl;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before '::' token
8 | transform(a.begin()::toupper);
| ~ ^~
| )
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator)'
8 | transform(a.begin(... |
s802733381 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
transform(a.begin());
transform(b.begin());
transform(c.begin());
cout << a[1] << b[1] << c[1] << endl;
} | a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator)'
8 | transform(a.begin());
| ~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bit... |
s194912425 | p03737 | C++ | #include <bits/stdc++>
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:1:10: fatal error: bits/stdc++: No such file or directory
1 | #include <bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s417868862 | p03737 | Java | import java.util.*;
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();
String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
anslow = amslow.toUpperCase();
System.... | Main.java:10: error: cannot find symbol
anslow = amslow.toUpperCase();
^
symbol: variable amslow
location: class Main
1 error
|
s133126142 | p03737 | Java | import java.util.*;
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();
String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
anslow = toUpperCase(anslow)
System.ou... | Main.java:10: error: ';' expected
anslow = toUpperCase(anslow)
^
1 error
|
s413712016 | p03737 | Java | import java.util.*;
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();
String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
anslow = String.toUpperCase(anslow);
S... | Main.java:10: error: incompatible types: String cannot be converted to Locale
anslow = String.toUpperCase(anslow);
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
|
s294267766 | p03737 | Java | import java.util.*;
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();
String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
anslow = String.toUpperCase(anslow)
Sy... | Main.java:10: error: ';' expected
anslow = String.toUpperCase(anslow)
^
1 error
|
s620263114 | p03737 | Java | import java.util.*;
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();
System.out.println(String.toUpperCase(s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1)));
}
} | Main.java:9: error: incompatible types: String cannot be converted to Locale
System.out.println(String.toUpperCase(s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1)));
^
Note: Some messages have been simplified; recompile with -Xdiags:ve... |
s113510251 | p03737 | C++ | ///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<int(n);++i)
typedef long long ll;
const int inf=1e9;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
string s=s1[0]+s2[0]+s3[0];
s=transform(s.begin(),s.end(),s.begin(),toupper);
cout<<s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:23: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
10 | string s=s1[0]+s2[0]+s3[0];
a.cc:11:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basi... |
s860486276 | p03737 | C++ | #include<iostream>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
if(s1[0]>='a'&&s1[0]<='z'){
s1[0]-=32;
}
if(s2[0]>='a'&&s2[0]<='z'){
s2[0]-=32;
}
if(s3[0]>='a'&&s3[0]<='z'){
s3[0]-=32;
}
cout<<s1[0]<<s2[0]<<s3[0]<<endl;
return 0;
| a.cc: In function 'int main()':
a.cc:26:10: error: expected '}' at end of input
26 | return 0;
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s054940276 | p03737 | C++ | a, b, c = input().split()
print(a[0].upper()+b[0].upper()+c[0].upper())
| a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = input().split()
| ^
|
s758065567 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<(char)(s1-32)<<(char)(s2-32)<<(char)(s3-32);
} | a.cc: In function 'int main()':
a.cc:7:18: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
7 | cout<<(char)(s1-32)<<(char)(s2-32)<<(char)(s3-32);
| ~~^~~
| | |
| | int
| ... |
s080052616 | p03737 | C++ | #include<iostream>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
if(s1[0]>='a'&&1[0]<='z'){
s1[0]-=32;
}
if(s2[0]>='a'&&s2[0]<='z'){
s2[0]-=32;
}
if(s3[0]>='a'&&s3[0]<='z'){
s3[0]-=32;
}
cout<<s1[0]<<s2[0]<<s3[0]<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:17: error: invalid types 'int[int]' for array subscript
12 | if(s1[0]>='a'&&1[0]<='z'){
| ^
|
s887301134 | p03737 | Java | import java.util.*;
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();
String st1 = s1.substring(0,1).toUpperCase();
String st2 = s2.substring(0,1).toUpperCase();
String st3 = s3.substri... | Main.java:16: error: reached end of file while parsing
}
^
1 error
|
s177321287 | p03737 | Java | import java.util.*;
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();
String s1 = s1.substring(0,1);
String s2 = s2.substring(0,1);
String s3 = s3.substring(0,1);
System.out.printl... | Main.java:11: error: variable s1 is already defined in method main(String[])
String s1 = s1.substring(0,1);
^
Main.java:12: error: variable s2 is already defined in method main(String[])
String s2 = s2.substring(0,1);
^
Main.java:13: error: variable s3 is already defined in method main(String[])
... |
s963186425 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
char dif 'A' - 'a';
cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before 'A'
8 | char dif 'A' - 'a';
| ^~~
a.cc:9:16: error: 'dif' was not declared in this scope; did you mean 'div'?
9 | cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
| ^~~
| ... |
s248280553 | p03737 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string str1,str2,str3;
cin>> str1 >>str2 >>str3;
str1[0]-= 32;
str2[0]-= 32;
str3[0]-= 32;
cout << str1[0]<<str2[0]<<str3[0]<<endl;
return 0:
}
| a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before ':' token
13 | return 0:
| ^
| ;
a.cc:13:17: error: expected primary-expression before ':' token
|
s197967445 | p03737 | C | #include<iostream>
#include<string>
using namespace std;
int main()
{
string str1,str2,str3;
cin>> str1 >>str2 >>str3;
str1[0]-= 32;
str2[0]-= 32;
str3[0]-= 32;
cout << str1[0]<<str2[0]<<str3[0]<<endl;
return 0:
}
| main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s253390387 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
for (int i = 0; i < 3; i++) {
cin >> s;
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s[0];
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:8: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>)'
8 | transform(s.begin(), s.end(), ... |
s559522306 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), toupper);
transform(s2.begin(), s2.end(), s2.begin(), toupper);
transform(s3.begin(), s3.end(), s3.begin(), toupper);
cout << s1[0] << s2[0] << s3... | a.cc: In function 'int main()':
a.cc:9:3: error: 'transform' was not declared in this scope
9 | transform(s1.begin(), s1.end(), s1.begin(), toupper);
| ^~~~~~~~~
|
s162160951 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
transform(s2.begin(), s2.end(), s2.begin(), ::toupper);
transform(s3.begin(), s3.end(), s3.begin(), ::toupper);
cout << s1[0] << s2[0]... | a.cc: In function 'int main()':
a.cc:9:3: error: 'transform' was not declared in this scope
9 | transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
| ^~~~~~~~~
|
s434088476 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), ::toupper)
transform(s2.begin(), s2.end(), s2.begin(), ::toupper)
transform(s3.begin(), s3.end(), s3.begin(), ::toupper)
cout << s1[0] << s2[0] <<... | a.cc: In function 'int main()':
a.cc:9:3: error: 'transform' was not declared in this scope
9 | transform(s1.begin(), s1.end(), s1.begin(), ::toupper)
| ^~~~~~~~~
|
s204607735 | p03737 | C++ | #include <iostream>
#include <string>
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << s1[0] - 32;
cout << s2[0] - 32;
cout << s3[0] - 32 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string s1, s2, s3;
| ^~~~~~
a.cc:5: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/... |
s127678189 | p03737 | C++ | #include <stdio.h>
#include<string.h>
int main()
{
int k;
char s[100],i=0;
gets(s);
k=strlen(s);
printf("%c",s[0]-32);
for(i;i<k;i++)
{
if(s[i]==' ')
printf("%c",s[i+1]-32);
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s635411105 | p03737 | C++ | #include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265358979323846
#define MOD 1000... | a.cc: In function 'int main()':
a.cc:70:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
70 | cin << (s1[0]+dif)+(s2[0]+dif)+(s3[0]+dif);
| ~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | ... |
s721353583 | p03737 | C++ | #include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#include <cctype>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.1415926535897932384... | a.cc: In function 'int main()':
a.cc:70: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>)'
70 | transform(s1.begin(),s1.end(),s1.begin(),to... |
s245291374 | p03737 | C++ | #include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265358979323846
#define MOD 1000... | a.cc: In function 'int main()':
a.cc:69:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
69 | transform(s1.cbegin(),s1.end(),s1.beg... |
s726593689 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
char[] a=sc.next().toCharArray();
char[] b=sc.next().toCharArray();
char[] c=sc.next().toCharArray();
a[0]=String.valueOf(a[0]).toUpperCase().toChar();
b[0]=String.valueOf(b[0]).t... | Main.java:9: error: cannot find symbol
a[0]=String.valueOf(a[0]).toUpperCase().toChar();
^
symbol: method toChar()
location: class String
Main.java:10: error: cannot find symbol
b[0]=String.valueOf(b[0]).toUpperCase().toChar();
... |
s580902036 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
char[] a=sc.next().toCharArray();
char[] b=sc.next().toCharArray();
char[] c=sc.next().toCharArray();
a[0]=String.valueOf(a[0]).toUpperCase().toChar;
b[0]=String.valueOf(b[0]).toU... | Main.java:9: error: cannot find symbol
a[0]=String.valueOf(a[0]).toUpperCase().toChar;
^
symbol: variable toChar
location: class String
Main.java:10: error: cannot find symbol
b[0]=String.valueOf(b[0]).toUpperCase().toChar;
... |
s962801162 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
char[] a=sc.next().toCharArray();
char[] b=sc.next().toCharArray();
char[] c=sc.next().toCharArray();
a[0]=a[0].toUpperCase();
b[0]=b[0].toUpperCase();
c[0]=c[0].toUpperCase()... | Main.java:9: error: char cannot be dereferenced
a[0]=a[0].toUpperCase();
^
Main.java:10: error: char cannot be dereferenced
b[0]=b[0].toUpperCase();
^
Main.java:11: error: char cannot be dereferenced
c[0]=c[0].toUpperCase();
^
3 errors
|
s191206200 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
char[] a=sc.next().toCharArray();
char[] b=sc.next().toCharArray();
char[] c=sc.next().toCharArray();
a[0]=a[0].toUpperCase();
b[0]=b[0].toUpperCase();
c[0]=c[0].toUpperCase()... | Main.java:12: error: illegal start of expression
String s=String.valueOf({a[0],a[1],a[2]});
^
Main.java:12: error: not a statement
String s=String.valueOf({a[0],a[1],a[2]});
^
Main.java:12: error: ';' expected
String s=String.valueOf({a[0],a[1],a[2]}... |
s657142370 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
char[] a=sc.next().toCharArray();
char[] b=sc.next().toCharArray();
char[] c=sc.next().toCharArray();
a[0]=a[0].toUpperCase();
b[0]=b[0].toUpperCase();
c[0]=c[0].toUpperCase()... | Main.java:12: error: ';' expected
String s=String.value of({a[0],a[1],a[2]});
^
Main.java:12: error: illegal start of expression
String s=String.value of({a[0],a[1],a[2]});
^
Main.java:12: error: not a statement
String s=String.value of({a[0],a[1],a[2]})... |
s214829856 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String[] s=sc.next().split(" ");
for(int i=0;i<3;i++){
char c=s[i].charAt(0);
System.out.print(String.valueOf(c).toUpperCase());
}
System.out.print(\n);
}
} | Main.java:11: error: illegal character: '\'
System.out.print(\n);
^
Main.java:11: error: not a statement
System.out.print(\n);
^
Main.java:11: error: ';' expected
System.out.print(\n);
^
3 errors
|
s936492471 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String[] s=sc.next().split(" ");
for(int i=0;i<3,i++){
s[i]=s[i].substring(0,1).toUpperCase();
}
System.out.println(s[0]+s[1]+s[2]);
}
} | Main.java:7: error: ';' expected
for(int i=0;i<3,i++){
^
1 error
|
s371974356 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
int main(){
string a,b,c; 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:8:37: error: expected primary-expression before ';' token
8 | string a,b,c; cin>>a>>b>>c>>;
| ^
|
s476700358 | p03737 | C++ | #include"bits/stdc++.h"
using namespace std;
//typedef
//------------------------------------------
typedef long long LL;
typedef unsigned long long ULL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef vector<string> VS;
typedef pair<LL, LL> PLL;
//container util
//------------------------------------------... | a.cc: In function 'int main()':
a.cc:44: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>)'
44 | transform(s.begin(), s.end(), s.begin... |
s620606258 | p03737 | C | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
char a[10101],b[10100];
gets(a);
int k=0;
int l=strlen(a);
for(int i=0;i<l;i++)
{
if(i==0)
b[k++]=a[i]-32;
else if(a[i]==' '&&a[i+1]!=' ')
b[k++]=a[i+1]-32;
}
printf("%s\n",b);
return 0;
} | main.c:3:9: fatal error: algorithm: No such file or directory
3 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s519570887 | p03737 | C++ | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
char a[10101],b[10100];
gets(a);
int k=0;
int l=strlen(a);
for(int i=0;i<l;i++)
{
if(i==0)
b[k++]=a[i]-32;
else if(a[i]==' '&&a[i+1]!=' ')
b[k++]=a[i+1]-32;
}
printf("%s\n",b);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
|
s066422016 | p03737 | C++ | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
char a[10101],b[10100];
gets(a);
int k=0;
int l=strlen(a);
for(int i=0;i<l;i++)
{
if(i==0)
b[k++]=a[i]-32;
else if(a[i]==' '&&a[i+1]!=' ')
b[k++]=a[i+1]-32;
}
printf("%s\n",b);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
|
s935350395 | p03737 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
using namespace std;
char toupr(char c);
int main(){
string a,b,c;
cin >> a>>b>>c;
char d,e,f;
d =a[0];
e =b[0];
f =c[0];
cout << tolowr(d) <<tolowr(e) << tolowr(f) << e... | a.cc: In function 'int main()':
a.cc:18:9: error: 'tolowr' was not declared in this scope; did you mean 'tolower'?
18 | cout << tolowr(d) <<tolowr(e) << tolowr(f) << endl;
| ^~~~~~
| tolower
|
s015330154 | p03737 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
using namespace std;
char toupr(char c);
int main(){
string a,b,c;
cin >> a>>b>>c;
char d,e,f;
d =a[0];
e =b[0];
f =c[0];
cout << tolowr(d) <<tolowr(e) << tolowr(f) << e... | a.cc: In function 'int main()':
a.cc:18:9: error: 'tolowr' was not declared in this scope; did you mean 'tolower'?
18 | cout << tolowr(d) <<tolowr(e) << tolowr(f) << endl;
| ^~~~~~
| tolower
|
s876116246 | p03737 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
using namespace std;
int main(){
string a,b,c;
cin >> a>>b>>c;
cout << a[0]+dif <<b[0]+dif << c[0] +dif;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:14: error: 'dif' was not declared in this scope; did you mean 'div'?
13 | cout << a[0]+dif <<b[0]+dif << c[0] +dif;
| ^~~
| div
|
s472602995 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using VI = vector<int>;
using VL = vector<ll>;
#define FOR(i,a,n) for(int (i)=(a);(i)<(n);++(i))
#define eFOR(i,a,n) for(int (i)=(a);(i)<=(n);++(i))
#define rFOR(i,a,n) for(int (i)=(n)-1;(i)>=(a);--(i))
#define erFOR(i,a,n) for(int (i)=(n);(i)>=(a);--(... | a.cc: In function 'int main()':
a.cc:27: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>)'
27 | transform(all(s[i]), s[i].begin(), to... |
s594835021 | p03737 | C++ | vinclude<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
#define reps(i,n) for(int i=1; i<(n); i++)
#define pii pair<int,int>
#define all(x) (x).begin(), (x).end()
#define int long long
#define setout(n,x) setw(n) << setfill(x)
#define Fixed fixed << setprecision(10)
const int INF = 0x3f3f3f3f;
const long long... | a.cc:1:1: error: 'vinclude' does not name a type
1 | vinclude<bits/stdc++.h>
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: 'cin' was not declared in this scope
16 | cin.tie(0);
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#... |
s052754040 | 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<<endl;
}#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()... | a.cc:8:4: error: stray '#' in program
8 | }#include<bits/stdc++.h>
| ^
a.cc:8:5: error: 'include' does not name a type
8 | }#include<bits/stdc++.h>
| ^~~~~~~
a.cc:10:5: error: redefinition of 'int main()'
10 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined ... |
s695385671 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >>c;
string ans;
ans += (char)(a[0]-'a'+'A')
ans += (char)(b[0]-'a'+'A')
ans += (char)(c[0]-'a'+'A')
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before 'ans'
8 | ans += (char)(a[0]-'a'+'A')
| ^
| ;
9 | ans += (char)(b[0]-'a'+'A')
| ~~~
|
s274233689 | p03737 | C++ | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <numeric>
typedef long long Int;
#define rep(i,a,b) for(Int i=a;i<b;++i)
#define rrep(i,a,b) for(Int i=a;i>=b;--i)
using namespace std;
int main() {
cin.tie(0); cout.tie(0);
ios::sync_with_stdio(false);
vector<string> s[3];
rep(i, 0, 3) cin >>... | a.cc: In function 'int main()':
a.cc:14:22: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >')
14 | rep(i, 0, 3) cin >> s[i];
| ~~~ ^~ ~~~~
| | |
| ... |
s109184604 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef unsigned long long ull;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
vector<string> s[3];
rep(i, 0, 3) cin >> s[i];
rep(i, 0, 3) {
cout << (s[i][0] + 0x20);
}
}
| a.cc:11:16: error: macro "rep" passed 3 arguments, but takes just 2
11 | rep(i, 0, 3) cin >> s[i];
| ^
a.cc:2:9: note: macro "rep" defined here
2 | #define rep(i,n) for(int i=0;i<n;++i)
| ^~~
a.cc:12:16: error: macro "rep" passed 3 arguments, but takes just 2
12 | re... |
s903945845 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef unsigned long long ull;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
vector<string> s[3];
rep(i, 0, 3) cin >> s[i];
rep(i, 0, 3) {
cout << (s[i] + 0x20);
}
}
| a.cc:11:16: error: macro "rep" passed 3 arguments, but takes just 2
11 | rep(i, 0, 3) cin >> s[i];
| ^
a.cc:2:9: note: macro "rep" defined here
2 | #define rep(i,n) for(int i=0;i<n;++i)
| ^~~
a.cc:12:16: error: macro "rep" passed 3 arguments, but takes just 2
12 | re... |
s770001933 | p03737 | C++ | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#includ... | a.cc: In function 'int main()':
a.cc:214:35: error: array must be initialized with a brace-enclosed initializer
214 | char ans[3] = a[0] + b[0] + c[0];
|
s835490721 | p03737 | C++ | #include<iostream>
#include<string>
using namespace;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << s1[0] - 0x20 << " " << s2[0] - 0x20 << " " << s3[0] - 0x20 ;
return 0;
}
| a.cc:3:16: error: expected identifier before ';' token
3 | using namespace;
| ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string s1, s2, s3;
| ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/1... |
s994565689 | p03737 | C++ | #include<iostream>
#include<string>
using namespace;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << s1 - 0x20 << " " << s2 - 0x20 << " " << s3 - 0x20 ;
return 0;
} | a.cc:3:16: error: expected identifier before ';' token
3 | using namespace;
| ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string s1, s2, s3;
| ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/1... |
s656994620 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0) ,::toupper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;
} | In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of '_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = char; _OIter = char; ... |
s208938677 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0) ,::toupper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;
} | In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of '_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = char; _OIter = char; ... |
s125808536 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0) ,::ToUpper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;
} | a.cc: In function 'int main()':
a.cc:12:41: error: '::ToUpper' has not been declared; did you mean 'toupper'?
12 | transform(S.at(0), T.at(0),U.at(0) ,::ToUpper);
| ^~~~~~~
| toupper
|
s135562415 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
template <typename T_char>
T_char ToUpper (T_char cX) { return toupper(cX);
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0),ToUpper<char>);
cout<... | a.cc: In function 'T_char ToUpper(T_char)':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
9 | int main() {
| ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
9 | int main() {
| ^~
| --
a.cc:9:9: ... |
s644761298 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
template <typename T_char>
T_char ToUpper (T_char cX) { return toupper(cX);
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0),ToUpper);
cout<<S.at(... | a.cc: In function 'T_char ToUpper(T_char)':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
9 | int main() {
| ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
9 | int main() {
| ^~
| --
a.cc:9:9: ... |
s888973925 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
char ToUpper (char cX) { return toupper(cX); }
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0),ToUpper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;
} | In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of '_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = char; _OIter = char; ... |
s108500196 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
int main() {
char ToUpper (char cX) { return toupper(cX); }
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0),ToUpper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;... | a.cc: In function 'int main()':
a.cc:9:26: error: a function-definition is not allowed here before '{' token
9 | char ToUpper (char cX) { return toupper(cX); }
| ^
a.cc:12:38: error: 'ToUpper' was not declared in this scope; did you mean 'toupper'?
12 | transform(S.at(0), T.at(... |
s027217156 | p03737 | C++ | #include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;
int main() {
string S; string T; string U;
cin>>S>>T>>U;
transform(S.at(0), T.at(0),U.at(0),ToUpper);
cout<<S.at(0)<<T.at(0)<<U.at(0)<<endl;
} | a.cc: In function 'int main()':
a.cc:11:38: error: 'ToUpper' was not declared in this scope; did you mean 'toupper'?
11 | transform(S.at(0), T.at(0),U.at(0),ToUpper);
| ^~~~~~~
| toupper
|
s718996781 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define len(v) ll(v.size())
#define fi first
#define se second
template <class T>
void cout_vec(const vector<T> &vec){
for(auto itr:v... | a.cc: In function 'int main()':
a.cc:26:35: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
26 | string ans=toupper(a)+toupper(b)+toupper(c);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
|
s257305933 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
string s;
s.push_back(s1.at(0));
s.push_back(s2.at(0));
s.push_back(s3.at(0));
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13: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>)'
13 | transform(s.begin(), s.end(), s.begin(), to... |
s280048902 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); ++i)
typedef long long ll;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
const ll INF = 1LL << 60... | a.cc: In function 'int main()':
a.cc:12:54: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
12 | string ans = toupper(s1[0]) + toupper(s2[0]) + toupper(s3[0]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
a.cc:1... |
s273745839 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
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... | a.cc: In function 'int main()':
a.cc:6: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>)'
6 | transform (a.begin (), a.end (), a.begin (),... |
s863931727 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
string a,b,c; int>>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... | a.cc: In function 'int main()':
a.cc:5:20: error: expected unqualified-id before '>>' token
5 | string a,b,c; int>>a>>b>>c;
| ^~
a.cc:6:13: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx... |
s096769314 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define repr(i,n) for(int i = (int)(n); i >= 0; i--)
#define all(v) v.begin(),v.end()
typedef long long ll;
int main(){
string s,t,u;
cin >> s >> t >> u;
transform(s.begin(),s.end(),s.begin(),toupper);
tran... | a.cc: In function 'int main()':
a.cc:11: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>)'
11 | transform(s.begin(),s.end(),s.begin(),tou... |
s445882364 | p03737 | C++ | #include <iostream>
#include <vector>
using namespace std;
string compare(string a, string b){
if(a == b)return "EQUAL";
else if(a.szie() > b.size()) return "GREATER";
else if(a.size() < b.size()) return "LESS";
}else{
int t = a.size();
t--;
if(a[t] == b[t]){
int n = t;
while(... | a.cc: In function 'std::string compare(std::string, std::string)':
a.cc:9:13: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'szie'; did you mean 'size'?
9 | else if(a.szie() > b.size()) return "GREATER";
| ^~~~
| size
a.cc: At global sc... |
s553467948 | p03737 | C++ | #include <iostream>
using namespace std;
int main(){
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
int a, b, c;
a = s1 - 'a', b = s2 - 'a', c = s3 - 'a';
char A, B, C;
A = a + 'A', B = b + 'A', C = c + 'A';
cout << A << B << C;
} | a.cc: In function 'int main()':
a.cc:10:10: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | a = s1 - 'a', b = s2 - 'a', c = s3 - 'a';
| ~~ ^ ~~~
| | |
| | char
| std::string {aka std::__... |
s405844753 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
for(int i=0; i<3; i++){
string s; cin >> s;
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s[0];
}
}
| a.cc: In function 'int main()':
a.cc:8: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>)'
8 | transform(s.begin(), s.end(), s.begin(... |
s400610965 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
for(int i=0; i<n; i++){
string s; cin >> s;
transform(s.begin(), s.end(), s.begin(), ::toupper);
cout << s[0];
}
}
| a.cc: In function 'int main()':
a.cc:6:20: error: 'n' was not declared in this scope
6 | for(int i=0; i<n; i++){
| ^
|
s067020127 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s_1,s_2,s_3;
cin>>s_1>>s_2>>s_3;
transform(s_1.begin(),s_1.end(),s_1.begin(),toupper);
transform(s_2.begin(),s_2.end(),s_2.begin(),toupper);
transform(s_3.begin(),s_3.end(),s_3.begin(),toupper);
cout<<s_1[0]<<s_2[0]<<s_3[0]<<endl;
... | a.cc: In function 'int main()':
a.cc:6: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>)'
6 | transform(s_1.begin(),s_1.end(),s_1.begin(... |
s057418395 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s_1,s_2,s_3;
cin>>s_1>>s_2>>s_3;
s_1=transform(s_1.begin(),s_1.end(),s_1.begin(),toupper);
s_2=transform(s_2.begin(),s_2.end(),s_2.begin(),toupper);
s_3=transform(s_3.begin(),s_3.end(),s_3.begin(),toupper);
cout<<s_1[0]<<s_2[0]<<s_... | a.cc: In function 'int main()':
a.cc:6: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>)'
6 | s_1=transform(s_1.begin(),s_1.end(),s_1.be... |
s487044799 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s_1,s_2,s_3;
cin>>s_1>>s_2>>s_3;
s_1=transform(s_1.begin(),s_1.end(),s_1.begin(),toupper)
s_2=transform(s_2.begin(),s_2.end(),s_2.begin(),toupper)
s_3=transform(s_3.begin(),s_3.end(),s_3.begin(),toupper)
cout<<s_1[0]<<s_2[0]<<s_3[0... | a.cc: In function 'int main()':
a.cc:6: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>)'
6 | s_1=transform(s_1.begin(),s_1.end(),s_1.be... |
s987205796 | p03737 | C++ | int main() {
string a, b, c;
cin >> a >> b >> c;
int d = 'A' - 'a';
cout << (char)(a[0]+d) << (char)(b[0]+d) << (char)(c[0]+d) << endl;
} | a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
2 | string a, b, c;
| ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:3:16: error: 'a' was not declared in this scope
3 | ... |
s355321582 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
// start
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << toupper(s1[0]) << toupper(s2[0]) << toupper... | a.cc: In function 'int main()':
a.cc:15:64: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | cout << toupper(s1[0]) << toupper(s2[0]) << toupper(s3[0]) < endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~... |
s942822913 | p03737 | C++ | #include <iostream>
#include <algorithm>
#include <string>
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, <unresolved overloaded function type>, int (&)(int) noexcept)'
10 | transform(a.begin(), a.end(), a.begin, ::toupper);
|... |
s462470700 | 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;
}
| a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, int (&)(int) noexcept)'
9 | transform(a.begin(), a.end(), a.begin, ::toupper);
| ... |
s872205109 | 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;
}
| a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, int (&)(int) noexcept)'
9 | transform(a.begin(), a.end(), a.begin, ::toupper);
| ... |
s789998859 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A; string B; string C;
cin>>A>>B>>C;
char a; char b; char c; char d; char e; char f; char g; char h; char i;
char j ;char k; char l; char m; char n; char o; char p; char q; char r; char s; char t; char u; char v; char w; char x; char y; char ... | a.cc: In function 'int main()':
a.cc:9:5: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
9 | a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; i=I; j=J; k=K; l=L; m=M; n=N;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
a.cc:9... |
s962554007 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A; string B; string C;
cin>>A>>B>>C;
char a; char b; char c; char d; char e; char f; char g; char h; char i;
char j ;char k; char l; char m; char n; char o; char p; char q; char r; xhar s; char t; char u; char v; char w; char x; char y; char ... | a.cc: In function 'int main()':
a.cc:8:76: error: 'xhar' was not declared in this scope; did you mean 'char'?
8 | char j ;char k; char l; char m; char n; char o; char p; char q; char r; xhar s; char t; char u; char v; char w; char x; char y; char z;
| ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.