submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s041696055 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
getline(cin, S) ;
cout << "A" + S[8] +"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + S[8] +"C" << endl;
| ^~~~
| |
| const char [2]
|
s433561977 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string at;
cin >> at;
cout << A << at.at(7) << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'A' was not declared in this scope
7 | cout << A << at.at(7) << C << endl;
| ^
a.cc:7:28: error: 'C' was not declared in this scope
7 | cout << A << at.at(7) << C << endl;
| ^
|
s910857657 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, X;
cin >> A >> X;
char x = X.at(0)
cout << "A" + x + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
8 | cout << "A" + x + "C" << endl;
| ^~~~
|
s269598729 | p03860 | C++ |
#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
cout << 'A' << s2.at(0) << 'C' << endl;
}
| a.cc:2:10: fatal error: pch.h: No such file or directory
2 | #include "pch.h"
| ^~~~~~~
compilation terminated.
|
s697599308 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string words[3];
for(int i = 0; i < 3; ++i)
{
cin >> words[i];
}
char initisls[3];
for(int i = 0; i < 3; ++i)
{
initisls[i] = words[i].front();
}
cout << word << endl;
}
| a.cc: In function 'int main()':
a.cc:17:17: error: 'word' was not declared in this scope; did you mean 'words'?
17 | cout << word << endl;
| ^~~~
| words
|
s679468031 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string words[3];
for(int i = 0; i < 3; ++i)
{
cin >> words[i];
}
char initisls[3];
for(int i = 0; i < 3; ++i)
{
initisls[i] = words[i].substr(1);
}
cout << word << endl;
}
| a.cc: In function 'int main()':
a.cc:15:36: error: cannot convert 'std::__cxx11::basic_string<char>' to 'char' in assignment
15 | initisls[i] = words[i].substr(1);
| ~~~~~~~~~~~~~~~^~~
| |
| std::__cxx11... |
s575612293 | p03860 | C++ | #include <iostream>
using namespace std;
int main()
{
char word[3];
for(int i = 0; i < 3; ++i)
{
cin << word[i];
}
cout << word << endl;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
9 | cin << word[i];
| ~~~ ^~ ~~~~~~~
| | |
| | char
... |
s527218346 | p03860 | C++ | #include <iostream>
namespace std;
int main()
{
char word[3];
for(int i = 0; i < 3; ++i)
{
cin << word[i];
}
cout << word << endl;
}
| a.cc:2:14: error: expected '{' before ';' token
2 | namespace std;
| ^
a.cc: In function 'int main()':
a.cc:9:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | cin << word[i];
| ^~~
| std::cin
In file incl... |
s136329610 | p03860 | C++ | #include <iostream>
int main()
{
char word[3];
for(int i = 0; i < 3; ++i)
{
cin << word[i];
}
cout << word << endl;
} | a.cc: In function 'int main()':
a.cc:8:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin << word[i];
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | ... |
s679133729 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a, s, c;
cin >> a >> s >> c;
cout << a.at(0) << s.at(0) << c.at(0) << endls;
} | a.cc: In function 'int main()':
a.cc:7:44: error: 'endls' was not declared in this scope
7 | cout << a.at(0) << s.at(0) << c.at(0) << endls;
| ^~~~~
|
s210451380 | p03860 | C++ | #include<bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using p = pair<int, int>;
typedef vector<int> vi;
int main() {
string a, b, c;
cin >> a >> b >> c;
string ans = a[0]+b[0]+c[0];
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:25: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
11 | string ans = a[0]+b[0]+c[0];
|
s488929768 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
string first,second.third;
cin>>first>>second>>third;
cout<<first[0]<<second[0]<<third[0];
} | a.cc: In function 'int main()':
a.cc:4:22: error: expected initializer before '.' token
4 | string first,second.third;
| ^
a.cc:5:15: error: 'second' was not declared in this scope
5 | cin>>first>>second>>third;
| ^~~~~~
a.cc:5:23: error: 'third' was not declar... |
s335494061 | 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;
}
| main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
1 | #include<bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s269897394 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> AtCoder s Contest;
cout << "A" << s.at(7) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
|
s422727061 | 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:8:32: error: expected ';' before '}' token
8 | cout << "A" << s.at(0) << "C"
| ^
| ;
9 |
10 | }
| ~
|
s455642122 | p03860 | C++ | #include <iostream>
#include <vector>
#include <range/v3/all.hpp>
int main()
{
using namespace ranges;
auto result = istream_view<std::string>(std::cin> | views::transform([](const auto &word){ return word[0]; }) | to<std::string>();
std::cout << result << std::endl;
}
| a.cc:3:10: fatal error: range/v3/all.hpp: No such file or directory
3 | #include <range/v3/all.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
|
s403401059 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a , x , c;
cin >> a >> x >> c ;
cout >> a.at(0) + x.at(0) + c.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:11:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
11 | cout >> a.at(0) + x.at(0) + c.at(0) << endl;
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| ... |
s707018660 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a , x , c;
cin >> a >> x >> c ;
cout >> 'A' + x.at(0) + 'C' << endl;
} | a.cc: In function 'int main()':
a.cc:11:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
11 | cout >> 'A' + x.at(0) + 'C' << endl;
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~
| | |
| | ... |
s745046386 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
getline(cin, s);
cout << "A" + s.at(8) + "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" + s.at(8) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s701146584 | p03860 | C++ | // lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで
#include <bits/stdc++.h>
#define mod 1000000007
#define INF LLONG_MAX
#define ll long long
#define ln cout<<endl
#define Yes cout<<"Yes"<<endl
#define NO cout<<"NO"<<endl
#define YES cout<<"YES"<<endl
#define No cout<<"No"<<endl
#define REP(i,m,n) for(ll ... | a.cc: In function 'int main()':
a.cc:28:31: error: expected ';' before ':' token
28 | cout<<"A"<<g[0]<<"C"<<endl:
| ^
| ;
|
s968538324 | 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:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + s.at(8) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s918464664 | 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:9:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s845425591 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string A , x , C;
cin >> A >> x >> C ;
cout >> A.at(1) + x.at(1) + C.at(1) << endl;
} | a.cc: In function 'int main()':
a.cc:11:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
11 | cout >> A.at(1) + x.at(1) + C.at(1) << endl;
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| ... |
s832176573 | p03860 | C++ | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(a... | a.cc: In function 'int main()':
a.cc:29:1: error: 'strng' was not declared in this scope
29 | strng a,b,c;
| ^~~~~
a.cc:31:15: error: 'a' was not declared in this scope
31 | cin >>a>>b>>c;
| ^
a.cc:31:18: error: 'b' was not declared in this scope
31 | cin >>a>>b>>c;
... |
s730921310 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string x;
string ans = "A";
cin >> x;
ans += x + "C"
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before 'cout'
8 | ans += x + "C"
| ^
| ;
9 | cout << ans << endl;
| ~~~~
|
s461223363 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
string t={};
int r=1;
cin>>s;
t[0]=s[0];
for(int i=1;i<s.length();i++){
if(s[i]==" "){
t[r]==s[i+1];
r++;
}
}
cout<<t;
} | a.cc: In function 'int main()':
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(s[i]==" "){
|
s432762945 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
string t={};
int r=1;
cin>>s;
t[0]=s[0];
for(i=1;i<s.length();i++){
if(s[i]==" "){
t[r]==s[i+1];
r++;
}
}
cout<<t;
} | a.cc: In function 'int main()':
a.cc:10:13: error: 'i' was not declared in this scope
10 | for(i=1;i<s.length();i++){
| ^
|
s807330575 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
string t=[];
int r=1;
cin>>s;
t[0]=s[0];
for(i=1;i<s.length();i++){
if(s[i]==" "){
t[r]==s[i+1];
r++;
}
}
} | a.cc: In lambda function:
a.cc:6:20: error: expected '{' before ';' token
6 | string t=[];
| ^
a.cc: In function 'int main()':
a.cc:6:18: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | s... |
s455887520 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
string t=[];
int r=1;
t[0]=s[0];
cin>>s;
for(i=1;i<s.length();i++){
if(s[i]==" "){
t[r]==s[i+1];
r++;
}
}
} | a.cc: In lambda function:
a.cc:6:20: error: expected '{' before ';' token
6 | string t=[];
| ^
a.cc: In function 'int main()':
a.cc:6:18: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
6 | s... |
s632179825 | p03860 | C++ | #include<iostream>
using namespace std;
int main (){
string s, d;
cin >> d >> s >> d;
cout << "A" << str[0] << "C" << '\n';
} | a.cc: In function 'int main()':
a.cc:7:18: error: 'str' was not declared in this scope; did you mean 'std'?
7 | cout << "A" << str[0] << "C" << '\n';
| ^~~
| std
|
s951074868 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, x ,b;
cin >> a >> x >> b;
cout << A << x.at(0) << B << endl;
}
| a.cc: In function 'int main()':
a.cc:10:11: error: 'A' was not declared in this scope
10 | cout << A << x.at(0) << B << endl;
| ^
a.cc:10:27: error: 'B' was not declared in this scope
10 | cout << A << x.at(0) << B << endl;
| ^
|
s752823964 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
char x;
s.at(0) = x;
cout << A << x << C << endl;
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'A' was not declared in this scope
9 | cout << A << x << C << endl;
| ^
a.cc:9:21: error: 'C' was not declared in this scope
9 | cout << A << x << C << endl;
| ^
|
s297317664 | p03860 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String name = "";
for(int i = 0;i<3;i++){
String a = sc.next();
name = name + a.subString(0,0);
}
System.out.println(name);
}
} | Main.java:9: error: cannot find symbol
name = name + a.subString(0,0);
^
symbol: method subString(int,int)
location: variable a of type String
1 error
|
s585711444 | p03860 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String name = "";
for(int i = 0;i<3;i++){
String a = sc.next();
name += a.subString(0,0);
}
System.out.println(name);
}
} | Main.java:9: error: cannot find symbol
name += a.subString(0,0);
^
symbol: method subString(int,int)
location: variable a of type String
1 error
|
s795117113 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
stirng n="A";
stirng m="C";
cout<<n+b.at(0)+m<<endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
7 | stirng n="A";
| ^~~~~~
a.cc:8:9: error: expected ';' before 'm'
8 | stirng m="C";
| ^~
| ;
a.cc:9:9: error: 'n' was not declared in this scope
9 | cout<<n+b.at(0)+m<<endl;
... |
s684829393 | 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:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout<<"A"+b.at(0)+"C"<<endl;
| ~~~~~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s069444186 | 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:8:11: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments
8 | cout << "A"b.at(0) + "C" << endl;
| ^~~~
|
s396240600 | 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:8:11: error: unable to find character literal operator 'operator""b' with 'char' argument
8 | cout << 'A'b.at(0) + 'C' << endl;
| ^~~~
|
s203037271 | p03860 | C++ | ソースコード
Copy
Copy
#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:1:1: error: '\U000030bd\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' does not name a type
1 | ソースコード
| ^~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bi... |
s849056373 | 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:8:11: error: unable to find character literal operator 'operator""b' with 'char' argument
8 | cout << 'A'b.at(0) + 'C' << endl;
| ^~~~
|
s131166377 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << "A"s.at(0)"C" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before string constant
8 | cout << "A"s.at(0)"C" << endl;
| ^~~
| ;
|
s435510660 | p03860 | C++ | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i=0;i<(n);++i)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
int main() {
string a,b,c;
cin>>a>>b>>c;
cout>>a[0]>>b[0]>>c[0]>>endl;
} | a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
10 | cout>>a[0]>>b[0]>>c[0]>>endl;
a.cc:10:9: note: candidate: 'operator>>(int, int)... |
s907335199 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string Atcoder, s, Contest;
cin >> Atcoder >> s >> Contest;
char p=s.at(0);
cout << "A"+p+"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:10:18: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
10 | cout << "A"+p+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s504105886 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> Atcoder s Contest;
char p=s.at(0);
cout << A+p+C << endl;
}
| a.cc: In function 'int main()':
a.cc:6:12: error: 'Atcoder' was not declared in this scope
6 | cin >> Atcoder s Contest;
| ^~~~~~~
a.cc:10:13: error: 'A' was not declared in this scope
10 | cout << A+p+C << endl;
| ^
a.cc:10:17: error: 'C' was not declared in this scope... |
s114248050 | p03860 | C++ | #include<iostream>
using namespace std;
int main()
{
int s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<s1[0]<<s2[0]<<s3[0]<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:11: error: invalid types 'int[int]' for array subscript
7 | cout<<s1[0]<<s2[0]<<s3[0]<<endl;
| ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
7 | cout<<s1[0]<<s2[0]<<s3[0]<<endl;
| ^
a.cc:7:25: error: invalid typ... |
s929817653 | p03860 | C++ | #include<iostream>
using namespace std;
int main();
{
string s1,s2,s3;
cin>>s1>>s2>>s3;
cout<<s1[0]<<s2[0]<<s3[0]<<endl;
return 0;
} | a.cc:4:1: error: expected unqualified-id before '{' token
4 | {
| ^
|
s226128881 | p03860 | C++ | #include<iostream>
using namespace std;
int main()
{
string s;
cin>>s;
cout<<s[0]<<s[8]<<s[s.length()-7<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:35: error: invalid operands of types 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout<<s[0]<<s[8]<<s[s.length()-7<<endl;
| ~~~~~~~~~~~~^~~~~~
a.cc:7... |
s601430146 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s, at;
cin >> at >> s;
cout << "A" + s.at(0) + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + s.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s688663659 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s, at;
cin >> at >> s;
cout << A + s.at(0) + C << endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'A' was not declared in this scope
8 | cout << A + s.at(0) + C << endl;
| ^
a.cc:8:25: error: 'C' was not declared in this scope
8 | cout << A + s.at(0) + C << endl;
| ^
|
s184556567 | p03860 | 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();
b = (String)b.charAt(0);
System.out.println("A" + b + "C");
}... | Main.java:11: error: incompatible types: char cannot be converted to String
b = (String)b.charAt(0);
^
1 error
|
s082112660 | p03860 | 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();
b = b.charAt(0);
System.out.println("A" + b + "C");
}
} | Main.java:11: error: incompatible types: char cannot be converted to String
b = b.charAt(0);
^
1 error
|
s470388360 | p03860 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.nextString();
String b = sc.nextString();
String c = sc.nextString();
b = b.charAt(0);
System.out.println("A" + b + "... | Main.java:8: error: cannot find symbol
String a = sc.nextString();
^
symbol: method nextString()
location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
String b = sc.nextString();
^
symbol: method nextString()
location: variable... |
s088697186 | p03860 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.nextInt();
String b = sc.nextInt();
String c = sc.nextInt();
b = b.charAt(0);
System.out.println("A" + b + "C");
... | Main.java:8: error: incompatible types: int cannot be converted to String
String a = sc.nextInt();
^
Main.java:9: error: incompatible types: int cannot be converted to String
String b = sc.nextInt();
^
Main.java:10: error: incompatible types: int... |
s880477842 | p03860 | C++ | #include <iostream>
using namespace std;
int main(void){
cin >> a >> b >> c;
cout << a[0] << b[0] << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
4 | cin >> a >> b >> c;
| ^
a.cc:4:15: error: 'b' was not declared in this scope
4 | cin >> a >> b >> c;
| ^
a.cc:4:20: error: 'c' was not declared in this scope
4 | cin >> a >> b >>... |
s507092253 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char x = S.at(8);
cout << "A" + x + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + x + "C" << endl;
| ~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
|
s096503432 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char x = S.at(8);
cout << "A" + x + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + x + "C" << endl;
| ~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
|
s093729186 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char x = S.at(0);
cout << "AtCoder " + x + " Contest" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:26: error: invalid operands of types 'const char*' and 'const char [9]' to binary 'operator+'
8 | cout << "AtCoder " + x + " Contest" << endl;
| ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
| | |
| | const char [9]... |
s009425560 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str1, str2 ,str3;
cin >> str1 >> str2 >> str3;
cout << A + str2.at(0) + C << endl;
}
| a.cc: In function 'int main()':
a.cc:7:11: error: 'A' was not declared in this scope
7 | cout << A + str2.at(0) + C << endl;
| ^
a.cc:7:28: error: 'C' was not declared in this scope
7 | cout << A + str2.at(0) + C << endl;
| ^
|
s495740793 | p03860 | C++ | int main()
{
string A, B, C;
string ans;
cin >> A >> B >> C;
ans.at(0) = A.at(0);
ans.at(1) = B.at(0);
ans.at(2) = C.at(0);
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
3 | string A, B, C;
| ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
4 | string ans;
| ^~~~
| ;
a.cc:6:9: error: 'cin' was not declared in this scope... |
s336781217 | p03860 | C++ | int main()
{
string A, B, C;
string ans;
cin >> A >> B >> C;
ans.at(0) = A.at(0);
ans.at(1) = B.at(0);
ans.at(2) = C.at(0);
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
3 | string A, B, C;
| ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
4 | string ans;
| ^~~~
| ;
a.cc:6:9: error: 'cin' was not declared in this scope... |
s091846977 | p03860 | C++ | int main()
{
string A, B, C;
string ans ;//= "000";
cin >> A >> B >> C;
ans.at(0) = A.at(0);
ans.at(1) = B.at(0);
ans.at(2) = C.at(0);
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
3 | string A, B, C;
| ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
4 | string ans ;//= "000";
| ^~~~
| ;
a.cc:6:9: error: 'cin' was not declared in... |
s279791369 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3; cin >> s1 >> s2 >> s3;
cout << "A" << s2.at(0) << "C" endl;
} | a.cc: In function 'int main()':
a.cc:5:33: error: expected ';' before 'endl'
5 | cout << "A" << s2.at(0) << "C" endl;
| ^~~~~
| ;
|
s106781159 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin >> A >> B >> C;
cout << A.at(0) << B.at(0) << C.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'at' in 'A', which is of non-class type 'int'
7 | cout << A.at(0) << B.at(0) << C.at(0) << endl;
| ^~
a.cc:7:24: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | cout << A.at(0) << B.at(0) << C.... |
s787301429 | p03860 | C++ | #include<bits/stdc++.h>
#define yes cout<<"Yes"<<endl;
#define no cout<<"No"<<endl;
#define ll long long int
using namespace std;
int main()
{
ll tc;
ll a,b,c,n,x,y,z,cnt=0,sum=0;
string str,str1,str1;
int flag;
cin>>str>>str1>>str2;
cout<<str[0]<<str1[1]<<str2[0]<<endl;
}
| a.cc: In function 'int main()':
a.cc:10:21: error: redeclaration of 'std::string str1'
10 | string str,str1,str1;
| ^~~~
a.cc:10:16: note: 'std::string str1' previously declared here
10 | string str,str1,str1;
| ^~~~
a.cc:12:21: error: 'str2' was not declared... |
s442790356 | p03860 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next();
String x = sc.next();
String c = sc.next();
System.out.println(a+x[0]+c);
}
} | Main.java:9: error: array required, but String found
System.out.println(a+x[0]+c);
^
1 error
|
s384334884 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A;
cin >> A >> S >> A;
cout << "A" + S.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" + S.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s681895359 | 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:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + s.at(8) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s131501589 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define ll long long
const ll mod = 1e9+7;
const ll INF = 1e18;
const double pi = acos(-1);
ll modmul(ll a,ll b,ll mod){
return a%mod * (b%mod) %mod;
}
ll modpow(ll a,ll b,ll mod){
if(b==0) return 1;
else if(b%2==... | a.cc: In function 'int main()':
a.cc:27:5: error: 'cour' was not declared in this scope
27 | cour<<'A'<<b[0]<<'C'<<endl;
| ^~~~
|
s212718672 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a, b, c, hen;
cin >> a >> b >> c;
hen = toupper(b[0])
cout << a[0] << hen << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'cout'
7 | hen = toupper(b[0])
| ^
| ;
8 | cout << a[0] << hen << c[0] << endl;
| ~~~~
|
s904984735 | p03860 | C++ | #include <iostream>
#include <algorithm>
using namespace std{
string a, b;
cin >> a>> b;
cout<<"A"<<b[0]<<"C"<<endl;
} | a.cc:3:20: error: expected ';' before '{' token
3 | using namespace std{
| ^
| ;
a.cc:3:20: error: expected unqualified-id before '{' token
|
s656597071 | p03860 | C++ | #include <iostream>
#include <algorithm>
using namespace std;{
string a, b;
cin >> a>> b;
cout<<"A"<<b[0]<<"C"<<endl;
} | a.cc:3:21: error: expected unqualified-id before '{' token
3 | using namespace std;{
| ^
|
s990044027 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a, b, c, hen;
cin >> a >> b >> c;
hen = (int)b[0] - 0x20;
cout << a[0] << (char)hen << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'char'
8 | cout << a[0] << (char)hen << c[0] << endl;
| ^~~~~~~~~
|
s855141063 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a, b, c, hen;
cin >> a >> b >> c;
hen = (int)b[0] - 0x20
cout << a[0] << (char)hen << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'cout'
7 | hen = (int)b[0] - 0x20
| ^
| ;
8 | cout << a[0] << (char)hen << c[0] << endl;
| ~~~~
|
s893839763 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
hen = (int)b[0] - 0x20
cout << a[0] << (char)hen << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'hen' was not declared in this scope
7 | hen = (int)b[0] - 0x20
| ^~~
|
s572201813 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string = a, b, c;
cin >> a >> b >> c;
a = a[0]; b = b[0] - 0x20; c = c[0];
cout << a+b+c << endl;
} | a.cc: In function 'int main()':
a.cc:5:12: error: expected unqualified-id before '=' token
5 | string = a, b, c;
| ^
a.cc:6:12: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:17: error: 'b' was not declared in this scope
6 | cin >>... |
s234637956 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int s;
cin >> s >> s;
cout << s.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:8:13: error: request for member 'at' in 's', which is of non-class type 'int'
8 | cout << s.at(0) << endl;
| ^~
|
s770564610 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string x;
cin>>x;
cout<<"AtCoder"<<""<<x.at(0)<<""<<Contest<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:35: error: 'Contest' was not declared in this scope; did you mean 'const'?
8 | cout<<"AtCoder"<<""<<x.at(0)<<""<<Contest<<endl;
| ^~~~~~~
| const
|
s337520383 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
// -------------------
// ここから先は変更しない
// -------------------
int main() {
string name;
cin >>name;
cout << "A"+name[8]+"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:11:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
11 | cout << "A"+name[8]+"C" << endl;
| ^~~~
| |
| const char [2]
|
s703940099 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
// -------------------
// ここから先は変更しない
// -------------------
int main() {
string name;
cin >>name;
cout << "A"+str[8]+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:11:17: error: 'str' was not declared in this scope; did you mean 'std'?
11 | cout << "A"+str[8]+"C" << endl;
| ^~~
| std
|
s889531666 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
// -------------------
// ここから先は変更しない
// -------------------
int main() {
string name,;
cin >>name;
cout << "A"+name[8]+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: expected unqualified-id before ';' token
8 | string name,;
| ^
a.cc:11:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
11 | cout << "A"+name[8]+"C" << endl;
| ... |
s267838194 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
// -------------------
// ここから先は変更しない
// -------------------
int main() {
string name,;
cin >>name;
cout << "A"+str[8]+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: expected unqualified-id before ';' token
8 | string name,;
| ^
a.cc:11:17: error: 'str' was not declared in this scope; did you mean 'std'?
11 | cout << "A"+str[8]+"C" << endl;
| ^~~
| ... |
s741626682 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using P = pair<int,string>;
int main() {
string s,t,u;
cin >> s >>t >> u;
cout << A << t.at(0) << C << endl;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'A' was not declared in this scope
10 | cout << A << t.at(0) << C << endl;
| ^
a.cc:10:25: error: 'C' was not declared in this scope
10 | cout << A << t.at(0) << C << endl;
| ^
|
s675243571 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
cout << 'A' s.at(1) 'C' << endl;
} | a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 's'
7 | cout << 'A' s.at(1) 'C' << endl;
| ^~
| ;
|
s920053382 | p03860 | C++ | #include <bits/stdc++.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: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before '=' token
5 | string= a,b,c;
| ^
a.cc:6:9: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:12: error: 'b' was not declared in this scope
6 | cin>>a>>b>>c;
| ... |
s105011772 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string= a,b,c;
cin>>a>>b>>c;
cout<<a.at(1)<<b.at(1)<<c.at(1)<<endl;
} | a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before '=' token
5 | string= a,b,c;
| ^
a.cc:6:9: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:12: error: 'b' was not declared in this scope
6 | cin>>a>>b>>c;
| ... |
s545347301 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A,B,C;
cin>>A>>B>>C
cout<<A.at(1)<<B.at(1)<<C.at(1)<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'cout'
6 | cin>>A>>B>>C
| ^
| ;
7 |
8 | cout<<A.at(1)<<B.at(1)<<C.at(1)<<endl;
| ~~~~
|
s784706355 | p03860 | C++ |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
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:9:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s831287598 | p03860 | C++ | #include <iostream>
using namespace std;
int main()
{
stirng a, b, c;
cin >> a >> b >> c;
cout << "A" << b[0] << "C";
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
5 | stirng a, b, c;
| ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
... |
s421094968 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 3; i++) {
string c;
cin >> c;
string a;
a += c.at(0);
}
cout << a << endl;
}
| a.cc: In function 'int main()':
a.cc:11:11: error: 'a' was not declared in this scope
11 | cout << a << endl;
| ^
|
s038845480 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
cout << 'A' + c.at(8) + 'C' << endl;
}
} | a.cc:9:1: error: expected declaration before '}' token
9 | }
| ^
|
s961109708 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 3; i++) {
string c;
cin >> c;
I = c.at(0)
cout << I << endl;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'I' was not declared in this scope
8 | I = c.at(0)
| ^
a.cc:10:2: error: expected '}' at end of input
10 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s216889447 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 3; i++) {
string c;
cin >> c;
cout << c.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:9:2: error: expected '}' at end of input
9 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s466405487 | p03860 | C++ | #include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<string>
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
//inline int read(){int t = 0;int neg=1;char c;while((c=getchar_unlocked())!='\n'&&c!=' '&&c!=EOF)... | a.cc: In function 'int main()':
a.cc:35:18: error: expected primary-expression before '.' token
35 | string s;.cin>>s>>s;
| ^
|
s081869507 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
typedef pair<ll,ll> pll;
const ll mod=1e9+7;
//const ll mod=998244353;
const ll inf=1LL<<61;
int main() {
vector<string> s(3);
for(ll i=0;i<3;i++) {
cin >> s[i];
}
cout << "A" << char(s[1]-'a... | a.cc: In function 'int main()':
a.cc:16:27: error: no match for 'operator-' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and 'char')
16 | cout << "A" << char(s[1]-'a'+'A') <<... |
s437535745 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
cin>>S;
cout<'A'+S.at(0)+'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<'A'+S.at(0)+'C'<<endl;
| ~~~~~~~~~~~~~~~^~~~~~
|
s298170610 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
S="A"+S.at(8)+"C";
cout<<S<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | S="A"+S.at(8)+"C";
| ~~~~~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s280477793 | 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:7:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout<<"A"+S.at(8)+"C"<<endl;
| ~~~~~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s073699392 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
S='A'+S.at(8)+'C'
cout<<S<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'cout'
7 | S='A'+S.at(8)+'C'
| ^
| ;
8 | cout<<S<<endl;
| ~~~~
|
s378002243 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string "AtCoder",a,"Contest";
cin >> "AtCoder",a,"Contest";
cout << "A" << a.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before string constant
6 | string "AtCoder",a,"Contest";
| ^~~~~~~~~
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 >> "AtCode... |
s177276566 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string AtCoder, Contest;
string s;
cin >> AtCoder >> s >> Contest;
cout << Atcoder.at(0) << s.at(0) << Contest.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:9:11: error: 'Atcoder' was not declared in this scope; did you mean 'AtCoder'?
9 | cout << Atcoder.at(0) << s.at(0) << Contest.at(0) << endl;
| ^~~~~~~
| AtCoder
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.