submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s581467194 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
vector<string> win;
cin >> win;
cout << "A" << win.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
5 | vector<string> win;
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include<iostream>
+++ |+#include <vector>
2 | using... |
s907734391 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
stirng a, b, c; cin >> a >> b >> c;
cout << a.at(0) << b.at(0) << c.at(0) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^~~~~~
a.cc:5:26: error: 'a' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^
a.cc:5:31: error: 'b' was not decl... |
s065031097 | p03860 | C++ | #include<cstdio>
int main(){
char a, x, c;
scanf("%s %s %s", a, x, c);
printf("%s%s%s", a[0], x[0], c[0]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:21: error: invalid types 'char[int]' for array subscript
6 | printf("%s%s%s", a[0], x[0], c[0]);
| ^
a.cc:6:27: error: invalid types 'char[int]' for array subscript
6 | printf("%s%s%s", a[0], x[0], c[0]);
| ^
a.... |
s872662072 | p03860 | C++ | #include<cstdio>
int main(){
char s[100];
scanf("%s", s[]);
printf("A%sC", s[8]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:17: error: expected primary-expression before ']' token
4 | scanf("%s", s[]);
| ^
|
s204290122 | p03860 | C++ | #include<cstdio>
int main(){
char x;
scanf("%s", x);
printf("A%sC", x[7]);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:19: error: invalid types 'char[int]' for array subscript
6 | printf("A%sC", x[7]);
| ^
|
s309201131 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
long long a, b, x;
cin >> a >> b >> x;
a += (1 - a%x);
b -= b%x;
long long res=0;
if(a==b)
res =0;
else{
res = b/x - a/x +1;}
cout << res << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | b -= b%x;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000b' was not declared in this scope
8 | b -= b%x;
| ^~~
|
s882653857 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
long long a, b, x;
cin >> a >> b >> x;
a += 1 - a%x;
b -= b%x;
long long res=0;
if(a==b)
res =0;
else{
res = b/x - a/x +1;}
cout << res << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | b -= b%x;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000b' was not declared in this scope
8 | b -= b%x;
| ^~~
|
s641788239 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
string A2 = A + X;
cout << A2 + c << endl;
}
| a.cc: In function 'int main()':
a.cc:16:14: error: 'c' was not declared in this scope
16 | cout << A2 + c << endl;
| ^
|
s479529095 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
cout << "A"+X+"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:14:14: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
14 | cout << "A"+X+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s239076096 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
cout << AXC << endl;
}
| a.cc: In function 'int main()':
a.cc:14:9: error: 'AXC' was not declared in this scope
14 | cout << AXC << endl;
| ^~~
|
s309292155 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >>a>>b>>c;
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:7:15: error: 's' was not declared in this scope
7 | cout <<'A'<<s.at(0)<<'C';
| ^
|
s972524448 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka s... |
s032610090 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka s... |
s233711233 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka s... |
s007967333 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> "AtCoder" >> s >> "Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std:... |
s916322070 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >>"AtCoder">> s>> "Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin >>"AtCoder">> s>> "Contest";
| ~~~ ^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic... |
s721519066 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s
cin >>s
cout <<'A'<<s.at(0)<<'c';
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin >>s
| ^~~
|
s022478548 | p03860 | C | #include <stdio.h>
int main(){
char s[];
gets("%s",s);
printf("A%sC",&s[9]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
main.c:4:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
4 | gets("%s",s);
| ^~~~
| fgets
|
s664240403 | p03860 | C | #include <stdio.h>
int main(){
char s[];
scanf("%s",s);
printf("A%sC",&s[9]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
|
s352299471 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scanf("%s",s);
S[1] ='\0';
printf("A%sC",s);
return 0;
} | main.c: In function 'main':
main.c:5:3: error: 'S' undeclared (first use in this function)
5 | S[1] ='\0';
| ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
|
s403373855 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scanf("%s",s);
S[1] = \0;
printf("A%sC",s);
return 0;
} | main.c: In function 'main':
main.c:5:3: error: 'S' undeclared (first use in this function)
5 | S[1] = \0;
| ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:10: error: stray '\' in program
5 | S[1] = \0;
| ^
|
s025188168 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scandf("%s",s);
printf("A%sC",s[0]);
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scandf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scandf("%s",s);
| ^~~~~~
| scanf
|
s318908806 | p03860 | C | #include <stdio.h>
int main(){
char s[];
scan("%s",s);
printf("A%sC",s[0]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
main.c:4:3: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scan("%s",s);
| ^~~~
| scanf
|
s354782732 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int Atcoder, s, Contest ;
cin >> Atcoder >> s >> Contest;
string sat = Atcoder ;
string str = s ;
string con = Contest ;
cout << sat.at(0) << str.at(0) << con.at(0)
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string sat = Atcoder ;
| ^~~~~~~
a.cc:10:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_... |
s731164756 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
char d=a.at(0);
cout << "A"+d+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:15: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A"+d+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s709295444 | p03860 | C++ | #include "/etc/passwd" | a.cc:1:10: fatal error: /etc/passwd: No such file or directory
1 | #include "/etc/passwd"
| ^~~~~~~~~~~~~
compilation terminated.
|
s940229564 | p03860 | C++ | print( "A{}C".format((input().split()[1])[0]))
| a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | print( "A{}C".format((input().split()[1])[0]))
| ^
|
s411598870 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder">>s>>"Contest"
cout<<'A'<<s.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCoder">>s>>"Contest"
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istrea... |
s607147526 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cins>>s;
cout<<'A'<<s.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'cins' was not declared in this scope
6 | cins>>s;
| ^~~~
|
s743602164 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cins>>s;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'cins' was not declared in this scope
6 | cins>>s;
| ^~~~
a.cc:8:14: error: 'S' was not declared in this scope
8 | cout<<'A'<<S.at(0)<<'C'<<endl;
| ^
|
s346592962 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder>>s>>""Contes";
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [19]')
6 | cin>>"AtCoder>>s>>""Contes";
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const char [19]
| std::istream {aka st... |
s607245037 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder">>s>>"Contes"t;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCoder">>s>>"Contes"t;
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istre... |
s826251672 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
strings s;
cin>>"AtCoder">>s>>"Contes"t;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:4:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
4 | strings s;
| ^~~~~~~
| stdin
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCo... |
s455308423 | p03860 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
transform(b.begin(),b.end(),b.begin(), toupper);
cout<<a<<b<<c<<endl;
}
| a.cc: In function 'int main()':
a.cc:7: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>)'
7 | transform(b.begin(),b.end(),b.begin(), tou... |
s812632902 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string str;
cin >> str;
char c = str.at(7)
cout << "A" << c << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
8 | cout << "A" << c << "C" << endl;
| ^~~~
|
s467996142 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char s;
cin >> s;
cout << "A" << s.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'at' in 's', which is of non-class type 'char'
7 | cout << "A" << s.at(0) << "C" << endl;
| ^~
|
s845521513 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << s.st(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
7 | cout << "A" << s.st(0) << "C" << endl;
| ^~
| at
|
s489285516 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
char x = AtCoder s Contest.at(8);
cout << "A" << x << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
|
s532177361 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
string x = AtCoder s Contest.at(8)
cout << "A" << x << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
a.cc:7:22: error: expected ',' or ';' before 's'
... |
s347928296 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
cout << "A" << AtCoder s Contest.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
|
s537926081 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string x;
cin >> x;
string s = x.at(8);
cout << "A" << 's' << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = x.at(8);
| ~~~~^~~
|
s105409150 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string x;
cin >> x;
string s = x.at(8);
cout << "A" << s << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = x.at(8);
| ~~~~^~~
|
s639495153 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << s.at(8) << "C" endl;
}
| a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'endl'
8 | cout << "A" << s.at(8) << "C" endl;
| ^~~~~
| ;
|
s731360430 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << " s.at(8)" << "C" endl;
}
| a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before 'endl'
8 | cout << "A" << " s.at(8)" << "C" endl;
| ^~~~~
| ;
|
s668279292 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder" >> s >> "Contest";
cout << "A"<< s.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
7 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka ... |
s486829428 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> “AtCoder” >> c >> “Contest”;
cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
}
| a.cc:6:10: error: extended character “ is not valid in an identifier
6 | cin >> “AtCoder” >> c >> “Contest”;
| ^
a.cc:6:10: error: extended character ” is not valid in an identifier
a.cc:6:28: error: extended character “ is not valid in an identifier
6 | cin >> “AtCoder” >> c >> “Contest”;
... |
s350541097 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std+
int main() {
string A, s, C;
cin >> A >> s >> C;
string a = "A", c = "C";
cout << a + s.at(0) + c << endl;
} | a.cc:2:20: error: expected ';' before '+' token
2 | using namespace std+
| ^
| ;
a.cc:2:20: error: expected unqualified-id before '+' token
|
s949841538 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << a << b;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_s... |
s313003190 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
String a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
5 | String a,b;
| ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin << a << b;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin << a << b;
| ... |
s273462064 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
String a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
5 | String a,b;
| ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin << a << b;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin << a << b;
| ... |
s328080103 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
char a , b , c;
cin >> a >> b >> c;
cout << a[0] << b [0] << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: invalid types 'char[int]' for array subscript
6 | cout << a[0] << b [0] << c[0] << endl;
| ^
a.cc:6:21: error: invalid types 'char[int]' for array subscript
6 | cout << a[0] << b [0] << c[0] << endl;
| ^
a.cc:6:29: ... |
s850658436 | p03860 | C++ | #include <iostream>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s;
cin >> "AtCoder" >> s >> "Contest";
cout << s[0] << endl;
} | a.cc: In function 'int main()':
a.cc:13:13: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
13 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
... |
s045511455 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string text[3];
cin << text[0] << text[1] << text[2];
cout >> text[0].at(0) >> text[1].at(0) >> text[2].at(0) >> endl;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << text[0] << text[1] << text[2];
| ~~~ ^~ ~~~~~~~
| | |
| | ... |
s732460954 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << a[0]<< b[0] << c[0] endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'endl'
9 | cout << a[0]<< b[0] << c[0] endl;
| ^~~~~
| ;
|
s048222280 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s,t,u;
cin>>s;
cout<<"A"<<t.st(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
8 | cout<<"A"<<t.st(0)<<"C"<<endl;
| ^~
| at
|
s058062009 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char s ;
cin>>s;
cout<<"A"<<s.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 's', which is of non-class type 'char'
8 | cout<<"A"<<s.at(0)<<"C"<<endl;
| ^~
|
s586707869 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string AtCoder s Contest ;
cin>>AtCoder s Contest;
cout<<"A"<<AtCoder s Contest.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before 's'
5 | string AtCoder s Contest ;
| ^
a.cc:6:6: error: 'AtCoder' was not declared in this scope
6 | cin>>AtCoder s Contest;
| ^~~~~~~
|
s231571790 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string AtCoder s Contest ;
cin>>AtCoder s Contest;
cout<<"A"<<s.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before 's'
5 | string AtCoder s Contest ;
| ^
a.cc:6:6: error: 'AtCoder' was not declared in this scope
6 | cin>>AtCoder s Contest;
| ^~~~~~~
a.cc:8:12: error: 's' was not declared in this scope
8 | cout<<... |
s264907697 | p03860 | C++ | #include<stdio.h>
int main(void)
{
char a[8];
char s[101];
char c[8];
scanf("%s",&a);
scanf("%s",&s);
scanf("%s",&c);
printf("%s\n",a[0]s[0]c[0]);
return 0;
} | a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before 's'
10 | printf("%s\n",a[0]s[0]c[0]);
| ~ ^
| )
|
s353226195 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
cout << A << S.at(0) << C << endl;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'A' was not declared in this scope
6 | cout << A << S.at(0) << C << endl;
| ^
a.cc:6:25: error: 'C' was not declared in this scope
6 | cout << A << S.at(0) << C << endl;
| ^
|
s117193359 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string s;
cin>>s;
string ans=s[0];
cout<<'A'<<ans<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:8:17: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans=s[0];
| ^
|
s441099644 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string s;
cin>>s;
string ans=s.front();
cout<<'A'<<ans<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans=s.front();
| ~~~~~~~^~
|
s845242797 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >> a>.b>>c;
char d,e,f;
d=a.at(0);
e=b.at(0);
f=c.at(0);
cout<<d<<e<<f<<endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '.' token
6 | cin >> a>.b>>c;
| ^
|
s566145754 | p03860 | C++ | #!/usr/bin/env python
print("A%sC" % list(map(str,input().split()))[1][0])
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env python
| ^
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
2 | print("A%sC" % list(map(str,input().split()))[1][0])
| ^
|
s499332246 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
str a,b,c;
cin >> a >> b >> c;
char B = b.at(0);
cout << "ABC" << endl:
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
6 | str a,b,c;
| ^~~
| std
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | ... |
s742346079 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
char x;
x = b.at(0);
cout << "A" + x + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + x + "C" << endl;
| ~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
|
s433072013 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string A,S,C;
cin >> A;
cin >> S;
cin >> C;
char s;
s = S.at(0);
cout << "A"+s+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
10 | cout << "A"+s+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s858103444 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s, t, u;
cin >> s >> t >> u;
cout << "A" + t[0] + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + t[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s804017981 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
std::string a,b,c;
cin >> a >> b >> c;
cout << "A" + b.at(0) + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s195212349 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
cout << "A" + b.at(0) + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s120570621 | p03860 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<map>
#include<set>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
int main() {
string a, x, c;
cin >> a >> x >> c;
cout << "A" << x[0] << "c" < endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:36: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
18 | cout << "A" << x[0] << "c" < endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,... |
s577905091 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
char c = str.at(0);
cout << 'A' << c << 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: 'str' was not declared in this scope; did you mean 'std'?
7 | char c = str.at(0);
| ^~~
| std
|
s667783781 | p03860 | C++ | #include<bitsstdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << a.at(0)<<b.at(0) << c.at(0)<< endl;
} | a.cc:1:9: fatal error: bitsstdc++.h: No such file or directory
1 | #include<bitsstdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s484221996 | p03860 | C++ | #include <cstdio>
using namespace std;
int main() {
long long a, b, x;
scanf("%lld %lld %lld", &a, &b, &x);
printf("%lld", b/x - max(0, (a-1))/x);
}
| a.cc: In function 'int main()':
a.cc:9:26: error: 'max' was not declared in this scope
9 | printf("%lld", b/x - max(0, (a-1))/x);
| ^~~
|
s304577325 | p03860 | C++ | print("A"+input()[8]+"C") | a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | print("A"+input()[8]+"C")
| ^
|
s929196068 | p03860 | C++ | int main(){
string a, s, c; cin >> a >> s >> c;
cout << "A" << s[0] << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^~~~~~
a.cc:2:19: error: 'cin' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^~~
a.cc:2:26: error: 'a' was not declare... |
s380879163 | p03860 | C++ | #include <stdio.h>
#include <algorithm>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <cstdio>
#include <list>
#define ll long... | a.cc: In function 'int main()':
a.cc:43:16: error: 's' was not declared in this scope
43 | cout<<"A"<<s.at(0)<<"C"<<endl;
| ^
|
s500976406 | p03860 | C++ | #include <bits/stdc++. h>
using namespace std;
int main() {
string x;
cin>>x;
cout<<"A" <<x. at(8)<<"C" <<endl;
}
| a.cc:1:10: fatal error: bits/stdc++. h: No such file or directory
1 | #include <bits/stdc++. h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s364698739 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> >> s;
cout << "A" << s.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>>' token
6 | cin >> >> s;
| ^~
|
s855854595 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s:
cin >> s;
cout << "A" << s.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:13: error: found ':' in nested-name-specifier, expected '::'
5 | string s:
| ^
| ::
a.cc:5:12: error: 's' has not been declared
5 | string s:
| ^
a.cc:6:9: error: qualified-id in declaration before '>>' token
... |
s206654702 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _... | a.cc: In function 'int main()':
a.cc:21:19: error: 'B' was not declared in this scope
21 | cout << "A" << B[0] << "C" << endl;
| ^
|
s914273200 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char A, B, C;
cin >> A >> B >> C;
cout << A[0] + B[0] + C[0] << endl;
} | a.cc: In function 'int main()':
a.cc:10:18: error: invalid types 'char[int]' for array subscript
10 | cout << A[0] + B[0] + C[0] << endl;
| ^
a.cc:10:25: error: invalid types 'char[int]' for array subscript
10 | cout << A[0] + B[0] + C[0] << endl;
| ... |
s086679863 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _... | a.cc:21:26: warning: missing terminating " character
21 | cout << "A" + b[0] + "C;
| ^
a.cc:21:26: error: missing terminating " character
21 | cout << "A" + b[0] + "C;
| ^~~
a.cc: In function 'int main()':
a.cc:22:1: error: expected primary-exp... |
s003284996 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s>>s;
cout <<A<<s.at(0)<<C<<endl;
} | a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
7 | cout <<A<<s.at(0)<<C<<endl;
| ^
a.cc:7:22: error: 'C' was not declared in this scope
7 | cout <<A<<s.at(0)<<C<<endl;
| ^
|
s923769067 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, s, C;
cin >> A >> s >> C;
cout << "A" + s[0] + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + s[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s710718859 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >>c;
char s = b.at(0);
cout << "A"+s+"c"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A"+s+"c"<<endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s139351719 | p03860 | C++ | #include <iostram>
#include <string>
using namespace std;
int main()
{
string s[3];
cin >> s[0] >> s[1] >> s[2];
cout << 'A' << s[1][0] << 'C' << endl;
} | a.cc:1:10: fatal error: iostram: No such file or directory
1 | #include <iostram>
| ^~~~~~~~~
compilation terminated.
|
s025205165 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
char b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:12: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | char b=B.at(0);
| ^~
|
s582052337 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C,b;
cin>>A>>B>>C;
b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | b=B.at(0);
| ^~
|
s282273909 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
char b;
cin>>A>>B>>C;
b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: request for member 'at' in 'B', which is of non-class type 'int'
8 | b=B.at(0);
| ^~
|
s031716914 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
B=B.at(0);
cout<<"A"<<B<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | B=B.at(0);
| ^~
|
s552361879 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> a;
cout << 'A' << s[8] << 'C';
return 0;
} | a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | cin >> a;
| ^
|
s890417408 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
}
| a.cc:8:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
8 | cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
| ^~~~~~~~~~
a.cc:8:36: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
8 | cout << 'AtCoder ' << s.at(9) << ' ... |
s453171217 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cout <<'A' << stirng.at(0) << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'stirng' was not declared in this scope
7 | cout <<'A' << stirng.at(0) << C << endl;
| ^~~~~~
a.cc:7:33: error: 'C' was not declared in this scope
7 | cout <<'A' << stirng.at(0) << C << endl;
| ^
|
s205963074 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cout <<'A' << stirng.at(1) << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'stirng' was not declared in this scope
7 | cout <<'A' << stirng.at(1) << C << endl;
| ^~~~~~
a.cc:7:33: error: 'C' was not declared in this scope
7 | cout <<'A' << stirng.at(1) << C << endl;
| ^
|
s658029772 | p03860 | C++ | s = input()
print('A' + s[0] + 'C')
| a.cc:1:1: error: 's' does not name a type
1 | s = input()
| ^
|
s915483692 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >>a >>b >>c;
cout <<A <<b.at(0) <<C <<endl;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
7 | cout <<A <<b.at(0) <<C <<endl;
| ^
a.cc:7:24: error: 'C' was not declared in this scope
7 | cout <<A <<b.at(0) <<C <<endl;
| ^
|
s665812626 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c,B;
cin a >> b >> c;
B = b[0];
cout << 'A' + B + 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: expected ';' before 'a'
6 | cin a >> b >> c;
| ^~
| ;
|
s457018270 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
string s,s2;
cin >> s2 >> s >> s2;
cout << "A"+s[0]+"C" <<endl;
} | a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
6 | cout << "A"+s[0]+"C" <<endl;
| ^~~~
| |
| const char [2]
|
s657808468 | p03860 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
string a,b,c,s; cin >> a >> b >> c;
s = a.at(0) + b.at(0) + c.at(0);
transform(s.begin(), s.end(), s.begin(), std::toupper);
cout << s << 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(s.begin(), s.end(), s.begin(), std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.