submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s859054637 | p03737 | C++ | program prob1
implicit none
character(1) :: a, b, c
character(3) :: s
read(*,*) a, b, c
s = achar(iachar('A') + iachar(a) - iachar('a'))
s = s(1:1) // achar(iachar('A') + iachar(b) - iachar('a'))
s = s(1:2) // achar(iachar('A') + iachar(c) - iachar('a'))
write(*,'(a)') s
stop
conta... | a.cc:10:13: warning: multi-character character constant [-Wmultichar]
10 | write(*,'(a)') s
| ^~~~~
a.cc:1:1: error: 'program' does not name a type
1 | program prob1
| ^~~~~~~
|
s650745054 | p03737 | Java | import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scn = new Scanner(System.in);
BigInteger a = scn.nextBigInteger();
BigInteger b = scn.nextBigInteger();
if(a.subtract(b)>0){
System.out.println("GREATER");
... | Main.java:9: error: bad operand types for binary operator '>'
if(a.subtract(b)>0){
^
first type: BigInteger
second type: int
Main.java:11: error: bad operand types for binary operator '<'
}else if(a.subtract(b)<0){
^
first type: BigInteger
se... |
s159351333 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'A' was not declared in this scope
7 | cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
| ^
|
s757923322 | p03737 | C++ | #include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
#define intmax INT_MAX
#define lmax LONG_MAX
#define uint... | a.cc:50:11: warning: multi-character character constant [-Wmultichar]
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^~~~
a.cc:50:23: warning: multi-character character constant [-Wmultichar]
50 | X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
| ^~~~
a.cc:50:35: warning: mul... |
s506292285 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string str = s1[0]+s2[0]+s3[0];
transform(str.begin(), str.end(),str.begin(), ::toupper);
cout<<str<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string str = s1[0]+s2[0]+s3[0];
|
s343870049 | p03737 | C++ | #include <algorithm>
#include <cctype>
#include <iostream>
#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);... | a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(a.begin(), a.end(), a.begin(), ... |
s341195774 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
a[0]'A'-'a';
b[0]'A'-'a';
c[0]'A'-'a';
cout << a[0] << b[0] << c[0];
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'A'
7 | a[0]'A'-'a';
| ^~~
| ;
a.cc:7:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _... |
s312930839 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t, u;
cin >> s >> t >> u;
cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
} | a.cc: In function 'int main()':
a.cc:8:66: error: expected ';' before 'endl'
8 | cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
| ^~~~~
| ;
|
s294536560 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
signed main(){
string s1, s2, s3, d = 'A' - 'a';
cin >> s1 >> s2 >> s3;
printf("%c%c%c\n", s1[0] + d, s2[0] + d, s3[0] + d);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:37: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
5 | string s1, s2, s3, d = 'A' - 'a';
| ~~~~^~~~~
|
s329918929 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
string a , b , c ;
cin >> a >> b >> c ;
char dif = ’A ’ - ’a ’;
printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
return 0;
} | a.cc:7:12: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
7 | char dif = ’A ’ - ’a ’;
| ^
a.cc:7:19: error: extended character ’ is not valid in an identifier
... |
s729757194 | p03737 | C | #include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), ::toupper);
transform(b.begin(), b.end(), b.begin(), ::toupper);
transform(c.begin(), c.end(), c.begin(), ::toupper);
cout << a[0] << b[0] << c[0] << end... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s077608451 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
}
| a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before 'char'
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ^~~~
a.cc:10:20: error: expression cannot be used as a function
10 | cout << A-32(char) << B-32(char) << C-32(char) << endl;
| ... |
s143209732 | p03737 | C++ | #include bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
}
| a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h>
| ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is proba... |
s336929930 | p03737 | C++ | #include bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
int A=a.at(0);
int B=b.at(0);
int C=c.at(0);
cout << A-32(char) << B-32(char) << C-32(char) << endl;
} | a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h>
| ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is proba... |
s295421637 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[100],b[100];
long long int i,c=0;
gets(a);
b[c]=a[0];
c++;
for(i=0;i<(sizeof(a));i++)
{
if(isspace(a[i]))
{
b[c]=a[i+1];
c++;
}
}
strupr(b);
puts(b);
}... | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
a.cc:18:5: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
18 | strupr(b);
| ^~~~~~
| strstr
|
s844004202 | p03737 | C++ | #include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
char a[100],b[100];
long long int i,c=0;
gets(a);
b[c]=a[0];
c++;
for(i=0;i<(sizeof(a));i++)
{
if(isspace(a[i]))
{
b[c]=a[i+1];
c++;
}
}... | a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
a.cc:20:5: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
20 | strupr(b);
| ^~~~~~
| strstr
|
s613275669 | p03737 | C++ | #include<stdio.h>
#include<string.h>
#define N 10
int main()
{
char s1[10],s2[10],s3[10];
gets(s1);
gets(s2);
gets(s3);
char dif = 'A'-'a';
printf("%c%c%c",s1[0]+dif,s2[0]+dif,s3[0]+dif);
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s1);
| ^~~~
| getw
|
s374993766 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int>data(N);
int y;
cin >> y;
data.at(0)=y;
for(int i=1;i<N;i++){
int x;
cin >> x;
data.at(i)=data.at(i-1)+x;
}
int64_t sei_ans=0;
int64_t hu_ans=0;
int64_t zyoutai=0;
for(int i=0;i<N;i++){
if(i%2... | a.cc: In function 'int main()':
a.cc:21:20: error: no matching function for call to 'max(int, int64_t)'
21 | int64_t a=max(0,1-data.at(i)-zyoutai);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++... |
s979334745 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
if(a.at(0)=='a'){
cout << "A";
}
else if(a.at(0)=='b'){
cout << "B"
}
else if(a.at(0)=='c'){
cout << "C";
}
else if(a.at(0)=='d'){
cout << "D";
}
else if(a.at(0)=='e'){
cout << "E";
}... | a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
11 | cout << "B"
| ^
| ;
12 | }
| ~
|
s156367666 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
int a.at(0)-=32;
int b.at(0)-=32;
int c.at(0)-=32;
cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
} | a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '.' token
6 | int a.at(0)-=32;
| ^
a.cc:7:8: error: expected initializer before '.' token
7 | int b.at(0)-=32;
| ^
a.cc:8:8: error: expected initializer before '.' token
8 | int c.at(0)-=32;
| ... |
s284775010 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
for(int i=0;i<3;i++){
string a
a.at(0)+='A'-'a';
cout << a.at(0);
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'a'
7 | a.at(0)+='A'-'a';
| ^
a.cc:8:11: error: 'a' was not declared in this scope
8 | cout << a.at(0);
| ^
|
s139131776 | p03737 | C++ | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;
using Graph = vector<vector<int>>;
// int ctoi(const char c){
// if('0' <= c && c <= '9') return (c-'0')... | a.cc: In function 'int main()':
a.cc:39:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
39 | transform(S.cbegin(), S.cend(),... |
s268294382 | p03737 | C++ | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;
using Graph = vector<vector<int>>;
// int ctoi(const char c){
// if('0' <= c && c <= '9') return (c-'0')... | a.cc: In function 'int main()':
a.cc:39: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>)'
39 | transform(S.begin(), S.end(), S.begin(), to... |
s917337034 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
const string s=abcdefghijklmnopqrstuvwxyz;
const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
string ss[3];
cin>>ss[0]>>ss[1]>>ss[2];
string ans;
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(ss[i].at(0)==s[j]){
ans+=S[j];
}
}
... | a.cc: In function 'int main()':
a.cc:5:18: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
5 | const string s=abcdefghijklmnopqrstuvwxyz;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:18: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
6 | const string S=AB... |
s807216456 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
const string s=abcdefghijklmnopqrstuvwxyz;
const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
int main(){
string ss[3];
cin>>ss[0]>>ss[1]>>ss[2];
string ans;
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(ss[i].at(0)==s[j]){
ans+=S[j];
}
}
}
... | a.cc:3:16: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
3 | const string s=abcdefghijklmnopqrstuvwxyz;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:4:16: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
4 | const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ... |
s015860291 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), std::toupper);
}
... | a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(s[i].begin(), s[i].end(), s[... |
s460973934 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
}
c... | a.cc: In function 'int main()':
a.cc:11:65: error: no matching function for call to 'toupper()'
11 | transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
| ~~~~~~~^~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
... |
s084636239 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
vector<string> s(3);
rep(i, 3) {
cin >> s[i];
transform(s[i].begin(), s[i].end(), s[i].begin(), toupper);
}
cou... | a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(s[i].begin(), s[i].end(), s[... |
s694883663 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string s1big = transform(s1.begin(),s1.end(),s1.begin(),toupper);
string s2big = transform(s2.begin(),s2.end(),s2.begin(),toupper);
string s3big = tra... | a.cc: In function 'int main()':
a.cc:8:27: 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 | string s1big = transform(s1.begin(),s1.end()... |
s310822576 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
string s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
string s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
string s3big = transfo... | a.cc: In function 'int main()':
a.cc:8:27: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>, <unresolved overloaded function type>)'
8 | string s1big = transform(s1.begin(),s1.end(),s1.b... |
s194283038 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s1,s2,s3;cin>>s1>>s2>>s3;
s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
s2big = transform(s2.begin(),s2.end(),s2.begin,toupper);
s3big = transform(s3.begin(),s3.end(... | a.cc: In function 'int main()':
a.cc:8:3: error: 's1big' was not declared in this scope
8 | s1big = transform(s1.begin(),s1.end(),s1.begin,toupper);
| ^~~~~
a.cc:8:20: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator,... |
s327920005 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < n; i++)
#define lrep(i,n,m) for(int i = n; i < m; i++)
using ll = long long;
using Vii = vector<vector<int> >;
using Gjudge = vector<vector<bool>>;
using Vi = vector<int>;
using Vl = vector<ll>;
using Vs = ve... | a.cc: In function 'int main()':
a.cc:24:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
24 | transform(a.begin(), a.end(), a.begin... |
s155261753 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <climits>
#include <vector>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#include <new>
#include <cstdint>
#include <cctype>
using namespac... | a.cc: In function 'int main()':
a.cc:38:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
38 | transform(a.begin(), a.end(), a.begin... |
s898894047 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <climits>
#include <vector>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#include <new>
#include <cstdint>
using namespace std;
#define re... | a.cc: In function 'int main()':
a.cc:38:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
38 | transform(a.begin(), a.end(), a.begin... |
s450115705 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
#define MODSIZE 1000000007
int main(){
int a[13],b[13],c[13];
scanf("%s %s %s", a, b, c);
printf("%c%c%c\n", a[0] - 'a' + 'A', b[0] - 'a' + 'A', c[0] - 'a' + 'A')
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:75: error: expected ';' before 'return'
12 | printf("%c%c%c\n", a[0] - 'a' + 'A', b[0] - 'a' + 'A', c[0] - 'a' + 'A')
| ^
| ... |
s605349835 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> AAA={"a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
vector<string> BBB={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
f... | a.cc: In function 'int main()':
a.cc:13:17: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__... |
s234482624 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
vector<string> b={A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z};
for(int i=0; i<3; i++){
string x;
cin >> x;
for(int j=0; j<25; j++){
if(x==a.at(j)){
... | a.cc: In function 'int main()':
a.cc:6:23: error: 'b' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
| ^
a.cc:6:25: error: 'c' was not declared in this scope
6 | vector<string> a={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,... |
s186079178 | p03737 | C++ | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
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(), __toup... | a.cc: In function 'int main()':
a.cc:10:49: error: '__toupper' was not declared in this scope; did you mean '_toupper'?
10 | transform(s1.begin(), s1.end(), s1.begin(), __toupper);
| ^~~~~~~~~
| _toupper
|
s159407588 | p03737 | C++ | s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
puts s1[0] + s2[0] + s3[0]
| a.cc:1:1: error: 's1' does not name a type
1 | s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
| ^~
|
s664189202 | p03737 | C++ | z | a.cc:1:1: error: 'z' does not name a type
1 | z
| ^
|
s142055073 | p03737 | C++ | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstd... | a.cc: In function 'int main()':
a.cc:41: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>)'
41 | transform(S.begin(), S.end(), S.begin(), ... |
s371271589 | p03737 | C++ | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstd... | a.cc: In function 'int main()':
a.cc:41: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>)'
41 | transform(S.begin(), S.end(), S.begin(), ... |
s563112764 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x , y , z ;
cin >> x >> y >> z ;
X = x[0] + 26 ;
Y = y[0] + 26 ;
Z = z[0] + 26 ;
cout << x << y << z << endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
8 | X = x[0] + 26 ;
| ^
a.cc:9:3: error: 'Y' was not declared in this scope
9 | Y = y[0] + 26 ;
| ^
a.cc:10:3: error: 'Z' was not declared in this scope
10 | Z = z[0] + 26 ;
| ^
|
s968306271 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x , y , z ;
cin >> x >> y >> z ;
X = x[0] + (A-a) ;
Y = y[0] + (A-a) ;
Z = z[0] + (A-a) ;
cout << xyz << endl;
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
8 | X = x[0] + (A-a) ;
| ^
a.cc:8:15: error: 'A' was not declared in this scope
8 | X = x[0] + (A-a) ;
| ^
a.cc:8:17: error: 'a' was not declared in this scope
8 | X = x[0] + (A-a) ;
|... |
s383546958 | p03737 | C++ | #include <bits/stdc++.h>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C ... | a.cc: In function 'int main()':
a.cc:12:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
12 | string A = transform(a.begin(), a.end(), a.... |
s393013526 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C = transform(c.begin(), c.end(), c.begin(), toupper);
... | a.cc: In function 'int main()':
a.cc:9:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | string A = transform(a.begin(), a.end(), a.b... |
s206432958 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), a.end(), a.begin(), toupper);
string B = transform(b.begin(), b.end(), b.begin(), toupper);
string C = transform(c.begin(), c.end(), c.begin(), toupper);
cout << A[0] << B[0]... | a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | string A = transform(a.begin(), a.end(), a.b... |
s425946908 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a[0], toupper);
string B = transform(b[0], toupper);
string C = transform(c[0], toupper);
cout << A << B << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
8 | string A = transform(a[0], toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /us... |
s070823831 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string A = transform(a.begin(), toupper);
string B = transform(a.begin(), toupper);
string C = transform(a.begin(), toupper);
cout << A << B << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | string A = transform(a.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/... |
s599705604 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
string x = a.at(0) + b.at(0) + c.at(0);
transform(x.begin(),x.end(),x.begin(),toupper);
cout << x << endl;
} | a.cc: In function 'int main()':
a.cc:6:32: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | string x = a.at(0) + b.at(0) + c.at(0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:7:12: error: no matching function for call to 'transform(std... |
s440358458 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9+7;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
string ans = s1[0] ... | a.cc: In function 'int main()':
a.cc:15:36: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
15 | string ans = s1[0] + s2[0] + s3[0];
a.cc:16:24: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator... |
s171106706 | p03737 | C++ | #include "bits/stdc++.h"
using namespace std;
using ll=long long;
#define print(n) cout<<n<<endl
#define rep(i,a,n) for(ll i=a;i<n;i++)
#define ALL(s) s.begin(),s.end()
#define P pair<ll,ll>
#define vl vector<ll>
#define vi vector<int>
#define vvl vector<vector<ll>>
#define vvi vector<vector<int>>
const int M=200111;
c... | a.cc: In function 'int main()':
a.cc:115:28: 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>)'
115 | rep(i,0,3)transform(ALL(s[i]),s[i].b... |
s378262173 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string ANS="ANS";
ANS.at(0)=A.at(0);
ANS.at(1)=B.at(0);
ANS.at(2)=C.at(0);
transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
cout<<ANS<<endl;
}
| a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(ANS.begin(),ANS.end(),ANS.begin()... |
s363201759 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string ANS="ANS";
ANS.at(0)=A.at(0);
ANS.at(1)=B.at(0);
ANS.at(2)=C.at(0);
transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
cout<<ANS<<endl;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
10 | transform(ANS.begin(),ANS.end(),ANS.begin()... |
s742765480 | p03737 | C++ | #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <fstream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <istream>
#include <sstream>
#include <cctype>
#define fore(i,x,y) for(long long i=x;i<y;i++)
typedef long long ll;
using namespace std;
int main()
... | a.cc: In function 'int main()':
a.cc:23:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
23 | transform(d.cbegin(), d.c... |
s858460553 | p03737 | C++ | #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <fstream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <istream>
#include <sstream>
#include <cctype>
#define fore(i,x,y) for(long long i=x;i<y;i++)
typedef long long ll;
using namespace std;
int main()
... | a.cc: In function 'int main()':
a.cc:23:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
23 | transform(d.cbegin(), d.c... |
s195337490 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
int god = 'a' - 'A';
cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
}
| a.cc: In function 'int main()':
a.cc:8:20: error: 'd' was not declared in this scope
8 | cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
| ^
|
s000790830 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string X,Y,Z;
cin >> X >> Y >> Z;
int god = 'a' - 'A';
cout << X[0]god+Y[0]god+Z[0]god <<endl;
}
| a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'god'
8 | cout << X[0]god+Y[0]god+Z[0]god <<endl;
| ^~~
| ;
|
s574153113 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string X,Y,Z;
cin >> X >> Y >> Z;
int god = 'a' - 'A';
cout << godX[0]+godY[0]+godZ[0] <<endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'godX' was not declared in this scope; did you mean 'god'?
8 | cout << godX[0]+godY[0]+godZ[0] <<endl;
| ^~~~
| god
a.cc:8:19: error: 'godY' was not declared in this scope; did you mean 'god'?
8 | cout << godX[0]+godY[0]+godZ[... |
s820768933 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next().toUpperCase();
String b = sc.next().toUpperCase();
String c = sc.next().toUpperCase();
System.out.println(a.charAt(0)+""+b.charAt(0)+""+ch... | Main.java:9: error: cannot find symbol
System.out.println(a.charAt(0)+""+b.charAt(0)+""+charAt(0));
^
symbol: method charAt(int)
location: class Main
1 error
|
s786430020 | p03737 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
String c = sc.next();
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUp... | Main.java:9: error: char cannot be dereferenced
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
^
Main.java:9: error: char cannot be dereferenced
System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toU... |
s944658723 | p03737 | C++ | #include <bits/stdc++.h>
#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);
string res = a.substr(0, 1) + b.substr... | a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(a.begin(), a.end(), a.begin(), tou... |
s965749956 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(res.begin(), res.end(), res.begin(... |
s111177989 | p03737 | C++ | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), ToUpper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:9:50: error: 'ToUpper' was not declared in this scope; did you mean 'toupper'?
9 | transform(res.begin(), res.end(), res.begin(), ToUpper);
| ^~~~~~~
| toupper
|
s884990781 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.toupper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
8 | res.toupper();
| ^~~~~~~
|
s733128231 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.makeupper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'makeupper'
8 | res.makeupper();
| ^~~~~~~~~
|
s180341044 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.MakeUpper();
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
8 | res.MakeUpper();
| ^~~~~~~~~
|
s793519941 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
res.MakeUpper;
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
8 | res.MakeUpper;
| ^~~~~~~~~
|
s889812991 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
res.MakeUpper;
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
7 | string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
| ^~~
| std
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member... |
s686174298 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << 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, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(res.begin(), res.end(), res.begin(... |
s583065505 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
7 | string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
| ^~~
| std
a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<ch... |
s743746873 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.at(0) + b.at(0) + c.at(0);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string res = a.at(0) + b.at(0) + c.at(0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:8:12: error: no matching function for call to 'transform... |
s157464977 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string res = a.at(0) + a.at(1) + a.at(2);
transform(res.begin(), res.end(), res.begin(), toupper);
cout << res << endl;
}
| a.cc: In function 'int main()':
a.cc:7:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string res = a.at(0) + a.at(1) + a.at(2);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:8:12: error: no matching function for call to 'transform... |
s885467754 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
7 | cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
| ^~~~~~~~
| towupper
|
s562882021 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'to_uppder' was not declared in this scope; did you mean 'towupper'?
7 | cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
| ^~~~~~~~~
| towupper
|
s220578877 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
char x,y,z;
cin>>a>>b>>c;
x='A'+(a-'a');
y='A'+(b-'a');
z='A'+(c-'a');
cout<<x<<y<<z<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:11: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | x='A'+(a-'a');
| ~^~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>... |
s184278386 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
char s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'char[int]' for array subscript
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
| ^
a.cc:8:30: error: invalid types 'char[int]' for array subscript
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupp... |
s072747898 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'toupper' in 's1.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'}
8 | cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
... |
s936836970 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'upper' in 's1.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'}
8 | cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
| ... |
s080930399 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
string a = A ;
transform(str.begin(), str.end(), str.begin(), ::toupper);
string b = B ;
transform(str.begin(), str.end(), str.begin(), ::toupper);
string c = C ;
transform(str.begin(), str.end(), str.begin(),... | a.cc: In function 'int main()':
a.cc:7:15: error: 'str' was not declared in this scope; did you mean 'std'?
7 | transform(str.begin(), str.end(), str.begin(), ::toupper);
| ^~~
| std
|
s636630273 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
char di='A'-'a'
cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cout'
7 | cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;
| ^~~~
|
s018137978 | p03737 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder
{
class Program
{
static void Main(string[] args)
{
var words = Console.ReadLine().Split(' ');
var word = "";
for(var i = 0; i < words.Length; i++)
{
word += (char)(words[i][0] - ('a' - 'A'));... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s786996431 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
printf( "%c\n", toupper(s1[1]);)
printf( "%c\n", toupper(s2[1] );)
printf( "%c\n", toupper(s3[1] );)
} | a.cc: In function 'int main()':
a.cc:9:35: error: expected ')' before ';' token
9 | printf( "%c\n", toupper(s1[1]);)
| ~ ^
| )
a.cc:9:36: error: expected primary-expression before ')' token
9 | printf( "%c\n", toupper(s1[1]);)... |
s395099192 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main(){
string s1,s2,s3;
cin>>s1>>s2>>s3;
printf( "%c\n", toupper(s1[1]) );
printf( "%c\n", toupper(s2[1] );
printf( "%c\n", toupper(s3[1] );
} | a.cc: In function 'int main()':
a.cc:10:36: error: expected ')' before ';' token
10 | printf( "%c\n", toupper(s2[1] );
| ~ ^
| )
a.cc:11:36: error: expected ')' before ';' token
11 | printf( "%c\n", toupper(s3[1] );
| ... |
s251802200 | p03737 | C++ | #include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
... | a.cc: In function 'int main()':
a.cc:18:20: error: invalid types 'll {aka long long int}[int]' for array subscript
18 | cout << (char)(s1[0] - 32);
| ^
a.cc:19:20: error: invalid types 'll {aka long long int}[int]' for array subscript
19 | cout << (char)(s2[0] - 32);
| ... |
s886570484 | p03737 | C++ | #include<iostream>
using namespace std;
int main()
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
string str;
str+=toupper(s1[0])
str+=toupper(s2[0]);
str+=toupper(s3[0]);
cout<<str;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'str'
8 | str+=toupper(s1[0])
| ^
| ;
9 | str+=toupper(s2[0]);
| ~~~
|
s279494697 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1000000007;
int main() {
vector<string> s(3)
cin >> s[0] >> s[1] >> s[2];
string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alp="abcdefghijklmnopqrstuvwxyz";
for(int i=0;i<3;i++){
for(int j=0;j<26;j++){
if(s[i][0]==alp[j]... | a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
9 | cin >> s[0] >> s[1] >> s[2];
| ^~~
|
s021421443 | p03737 | C++ | #include <iostream>
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[0]... | 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);
| ^~~~~~~~~
|
s522824236 | p03737 | C++ | string = input().split()
ans = ""
for s in string:
ans += s[0].upper()
print(ans) | a.cc:1:1: error: 'string' does not name a type
1 | string = input().split()
| ^~~~~~
|
s991318241 | p03737 | C++ | #include<iostream>
#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.at(0) << s2.at(0) << ... | a.cc: In function 'int main()':
a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(s1.begin(), s1.end(), s1.be... |
s598589864 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
transform(a.begin(),a.end(),a.begin(),toupper);
transform(b.begin(),b.end(),b.begin(),toupper);
transform(c.begin(),c.end(),c.begin(),toupper);
cout << a[0] << b[0] << c[0] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | transform(a.begin(),a.end(),a.begin(),touppe... |
s433867699 | p03737 | C++ | #include <iostream>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
a[0]=toupper(a[0]);
b[0]=toupper(b[0]);
c[0]=toupper(c[0]);
cout<<a[0]<b[0]<<c[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int')
9 | cout<<a[0]<b[0]<<c[0];
| ^
a.cc:9:13: note: candidate: 'operator<(int, int)' (built-in)
9 | cout<<a[0]<b[0]<<c[0];
a.cc:9:13: note: no known conversion ... |
s545250749 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <functional>
#include <iomanip>
#include <bitset>
#include <numeric>
#include <queue>
#include <map>
#include <cstdint>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
const long long mod = 1000000... | a.cc: In function 'int main()':
a.cc:33: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>)'
33 | transform(ans.begin(), ans.end(),ans.... |
s553515610 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <functional>
#include <iomanip>
#include <bitset>
#include <numeric>
#include <queue>
#include <map>
#include <cstdint>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
const long long mod = 1000000... | a.cc: In function 'int main()':
a.cc:33: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>)'
33 | transform(ans.begin(), ans.end(),ans.... |
s827480397 | p03737 | C++ | resident register number
| a.cc:1:1: error: 'resident' does not name a type
1 | resident register number
| ^~~~~~~~
|
s666534220 | p03737 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
char x = a[0],y = b[0],z = c[0];
x = 'A'+(x-'a');
y = 'A'+(y-'a');
z = 'A'+(z-'a');
printf("%c%c%c",x,y,z)... | a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before '}' token
13 | printf("%c%c%c",x,y,z)
| ^
| ;
14 | }
| ~
|
s139371281 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c; cin >> a >> b >> c;
string ans = "";
ans += toupper(a[0])
ans += toupper(b[0])
ans += toupper(c[0])
cout << ans;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'ans'
8 | ans += toupper(a[0])
| ^
| ;
9 | ans += toupper(b[0])
| ~~~
|
s117279287 | p03737 | C++ | #include <iostream>
#include <algorithm>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 10... | 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(all(a), a.begin(), toupper)... |
s225509991 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1001001001;
const ... | 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(all(a), a.begin(), toupper)... |
s538394993 | p03737 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define rrep(i,n) for(int i=1;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin,(a).rend()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1001001001;
const ... | 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(all(a), a.begin(), toupper)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.