submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s074878247 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string atcoder,s,contest;
cin >> atcoder >> s >> contest;
char a;
a=s.at(0);
cout << "A"+a+"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A"+a+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s348324954 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string atcoder,s,contest;
cin << atcoder << s << contest;
char a;
a=s.at(0);
cout << "A"+a+"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 << atcoder << s << contest;
| ~~~ ^~ ~~~~~~~
| | |
| | std::string {ak... |
s531016807 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string a, b;
cin >> a >> s >> b >>;
cout << 'A' << s.at(0) << 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:8:30: error: expected primary-expression before ';' token
8 | cin >> a >> s >> b >>;
| ^
|
s292291231 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
getline(cin, S);
cout << "A" + S[8] + "C" << endl;
return 0;
} | 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[8] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s807959210 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
getLine(cin, S);
cout << "A" + S[8] + "C" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'getLine' was not declared in this scope; did you mean 'getline'?
6 | getLine(cin, S);
| ^~~~~~~
| getline
a.cc:8:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + S[8] + "C" << end... |
s450606863 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string name;
cin >> name;
cout << 'A' + string.at(8) + 'C';
} | a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '.' token
8 | cout << 'A' + string.at(8) + 'C';
| ^
|
s257398972 | 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:12: error: expected initializer before 'B'
5 | string A B C;
| ^
a.cc:6:7: error: 'A' was not declared in this scope
6 | cin>>A>>B>>C;
| ^
a.cc:6:10: error: 'B' was not declared in this scope
6 | cin>>A>>B>>C;
| ^
a.cc:6:... |
s652861388 | 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:12: error: expected initializer before 'B'
5 | string A B C;
| ^
a.cc:6:8: error: 'A' was not declared in this scope
6 | cin>>A>>B>>C;
| ^
a.cc:6:11: error: 'B' was not declared in this scope
6 | cin>>A>>B>>C;
| ^
a.c... |
s529311878 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int str;
getline(cin, str);
char center;
center = str.at(8);
cout << "A" << center << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: no matching function for call to 'getline(std::istream&, int&)'
6 | getline(cin, str);
| ~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-l... |
s118190970 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
char center;
center = b.at(0);
cout << "A" + center + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:9:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + center + "C" << endl;
| ~~~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| ... |
s903644112 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string str;
getline(cin, str);
char center;
center = str.at(9);
cout << "A" + center + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:9:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + center + "C" << endl;
| ~~~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| ... |
s345203207 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string str;
getline(cin, str);
char center;
center = str.at(9)
cout << "A" + center + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'cout'
8 | center = str.at(9)
| ^
| ;
9 | cout << "A" + center + "C" << endl;
| ~~~~
|
s833733956 | 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:7:30: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << a.at(0)+" "+b.at(0)+" "+c.at(0) << endl;
| ~~~~~~~~~~~~~~~~~~~^~~~
| | |
| | const ch... |
s228431523 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s,a,b;
cin >>a>>s>>b;
cout<<"A"+s[0]+"C";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout<<"A"+s[0]+"C";
| ^~~~
| |
| const char [2]
|
s980475917 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string A,s,C;
char x;
cin>>A>>S>>C;
x = s.at(0);
cout<<'A'<<x<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'S' was not declared in this scope
7 | cin>>A>>S>>C;
| ^
|
s236987531 | 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:5:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
5 | cin>>"AtCoder">>s>>"Contest";
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istre... |
s825076211 | 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:5:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
5 | cin>>"Atcoder">>s>>"Contest";
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istre... |
s316452944 | p03860 | C++ | #include <bits/stdc++.h>
using mamespace std;
int main(){
string s;
cin>>"Atcoder">>s>>"Contest";
cout<<"A"<<s.at(0)<<"C"<<endl;} | a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
2 | using mamespace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include... |
s110807747 | p03860 | C++ | #include <bits/stdc++.h>
using mamespace std;
int main(){
string s;
cin>>"Atcoder">>s>>"Contest";
cout<<"A"+s.at(0)+"C"<<endl;} | a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
2 | using mamespace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include... |
s908753448 | p03860 | C++ | #include <bits/stdc++.h>
using mamespace std;
int main(){
string s;
cin>>"Atcoder"<<s<<"Contest";
cout<<"A"<<s.at(0)<<"C"<<endl;} | a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
2 | using mamespace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include... |
s835612237 | p03860 | C++ | #include <bits/stdc++.h>
using mamespace std;
int main(){
string s;
cin>>"Atcoder"<<s<<"Contest";
cout<<"A"+s.at(0)+"C"<<endl;} | a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
2 | using mamespace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include... |
s190910340 | 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:7:11: error: 'A' was not declared in this scope
7 | cout << A << S.at(0) << C << endl;
| ^
a.cc:7:27: error: 'C' was not declared in this scope
7 | cout << A << S.at(0) << C << endl;
| ^
|
s011338707 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t, u;
cin << s << t << u;
cout << s.at(1) + t.at(1) + u.at(1) << 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 << s << t << u;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::ba... |
s765215078 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
char b = B.at(0);
string name;
name = "A"+b+"C";
cout << name << endl;
}
| a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | name = "A"+b+"C";
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s563130949 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string x,y,z;
cin >> x >> y >> z;
cout << A << y << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'A' was not declared in this scope
7 | cout << A << y << C << endl;
| ^
a.cc:7:21: error: 'C' was not declared in this scope
7 | cout << A << y << C << endl;
| ^
|
s798037748 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << a.at(o) << b.at(0) << c.at(0) << endl;
} | a.cc: In function 'int main()':
a.cc:8:16: error: 'o' was not declared in this scope
8 | cout << a.at(o) << b.at(0) << c.at(0) << endl;
| ^
|
s901550894 | 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:8:8: 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'})
8 | cout >> a.at(0) >> b.at(0) >> c.at(0) >> endl;
| ~~~~ ^~ ~~~~~~~
| ... |
s713632213 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout >> a.at(o) >> b.at(0) >> c.at(0) >> endl;
} | a.cc: In function 'int main()':
a.cc:8:16: error: 'o' was not declared in this scope
8 | cout >> a.at(o) >> b.at(0) >> c.at(0) >> endl;
| ^
|
s034151054 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
char x;
x = s.at(i);
cout << "A" << x << "C" <<endl;
} | a.cc: In function 'int main()':
a.cc:8:12: error: 'i' was not declared in this scope
8 | x = s.at(i);
| ^
|
s020483018 | p03860 | Java | package atcoder;
import java.util.Scanner;
/** https://atcoder.jp/contests/abc048/tasks/abc048_b */
public class B048 {
/** 入力値A */
private static int a;
/** 入力値B */
private static int b;
/** 入力値X */
private static int X;
/**
* メインメソッド
*
* @param args 実行時引数
*/
public static void main(S... | Main.java:6: error: class B048 is public, should be declared in a file named B048.java
public class B048 {
^
1 error
|
s593921146 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c,x,y,z;
cin >> a,b,c;
// ここにプログラムを追記
x = a.at(0);
y = b.at(0);
z = c.at(0);
cout << xyz << endl;
}
| a.cc: In function 'int main()':
a.cc:12:11: error: 'xyz' was not declared in this scope
12 | cout << xyz << endl;
| ^~~
|
s475140019 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c,x,y,z;
cin >> a,b,c;
// ここにプログラムを追記
x = a.at(0);
y = a.at(0);
z = c.at(0);
cout << xyz << endl;
}
| a.cc: In function 'int main()':
a.cc:12:11: error: 'xyz' was not declared in this scope
12 | cout << xyz << endl;
| ^~~
|
s637123509 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c,x,y,z;
cin >> a,b,c;
// ここにプログラムを追記
x = a.at(0);
y = b.at(0);
z = c.at(0);
cout << xyz << endl;
}
| a.cc: In function 'int main()':
a.cc:12:11: error: 'xyz' was not declared in this scope
12 | cout << xyz << endl;
| ^~~
|
s133568839 | 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:8:11: error: 'A' was not declared in this scope
8 | cout << A << s.at(0) << C << endl;
| ^
a.cc:8:27: error: 'C' was not declared in this scope
8 | cout << A << s.at(0) << C << endl;
| ^
|
s935989297 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
for(int i=0;i<3;i++){
cin>>a;
cout<<a.at(0)
}
} | a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '}' token
8 | cout<<a.at(0)
| ^
| ;
9 | }
| ~
|
s222897778 | 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:11: error: 'A' was not declared in this scope
7 | cout << A << s.at(8) << C << endl;
| ^
a.cc:7:27: error: 'C' was not declared in this scope
7 | cout << A << s.at(8) << C << endl;
| ^
|
s276188320 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
for(int i=0;i<3;i++){
cin>>a;
cout<<str.at(0)
}
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'str' was not declared in this scope; did you mean 'std'?
8 | cout<<str.at(0)
| ^~~
| std
|
s893285752 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int main() {
string a;
for(int i=0;i<3;i++){
cin>>a;
cout<<str.at(0)
}
}
} | a.cc: In function 'int main()':
a.cc:5:11: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
5 | int main() {
| ^~
a.cc:5:11: note: remove parentheses to default-initialize a variable
5 | int main() {
| ^~
| --
a.cc:5:11:... |
s506863233 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string data;
getline(cin,data,' ');
cout<<data[0][0]<<data[1][0]<<data[2][0];
} | a.cc: In function 'int main()':
a.cc:8:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
8 | cout<<data[0][0]<<data[1][0]<<data[2][0];
| ^
a.cc:8:28: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<c... |
s434754131 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char S = S.at(0);
cout << "A" << S << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: conflicting declaration 'char S'
7 | char S = S.at(0);
| ^
a.cc:5:10: note: previous declaration as 'std::string S'
5 | string S;
| ^
|
s108123439 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char S = at.(0);
cout << "A" << S << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: conflicting declaration 'char S'
7 | char S = at.(0);
| ^
a.cc:5:10: note: previous declaration as 'std::string S'
5 | string S;
| ^
a.cc:7:12: error: 'at' was not declared in this scope
7 | char S = at.(0);
| ... |
s442543515 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char S = at.(0);
cout << "A" + S + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: conflicting declaration 'char S'
7 | char S = at.(0);
| ^
a.cc:5:10: note: previous declaration as 'std::string S'
5 | string S;
| ^
a.cc:7:12: error: 'at' was not declared in this scope
7 | char S = at.(0);
| ... |
s771860714 | 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: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]
|
s615089044 | 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:8:15: error: invalid operands of types 'const char [2]' and 'const char [8]' to binary 'operator+'
8 | cout << "A" + "S.at(0)" + "C" << endl;
| ~~~ ^ ~~~~~~~~~
| | |
| | const char [8]
| const char [2]
|
s879160097 | 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:8:11: error: 'A' was not declared in this scope
8 | cout << A + "S.at(0)" + C << endl;
| ^
a.cc:8:27: error: 'C' was not declared in this scope
8 | cout << A + "S.at(0)" + C << endl;
| ^
|
s363581670 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string x, y, z, w;
cin >> x >> y >> z;
cout << A+y.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+y.at(0)+C << endl;
| ^
a.cc:8:21: error: 'C' was not declared in this scope
8 | cout << A+y.at(0)+C << endl;
| ^
|
s755570235 | p03860 | 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 s;
cin >> s;
cout << A << s[7] << C << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:11: error: 'A' was not declared in this scope
10 | cout << A << s[7] << C << endl;
| ^
a.cc:10:24: error: 'C' was not declared in this scope
10 | cout << A << s[7] << C << endl;
| ^
|
s684323197 | p03860 | 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 s;
cin >> s;
cout << A << s[7] << C << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:11: error: 'A' was not declared in this scope
10 | cout << A << s[7] << C << endl;
| ^
a.cc:10:24: error: 'C' was not declared in this scope
10 | cout << A << s[7] << C << endl;
| ^
|
s984724783 | p03860 | C++ | #include<stdio.h>
const int maxk=100001;
using namespace std;
int main()
{
char s[maxk];
gets(s);
char k=s[8];
printf("A%cC",k);
} | a.cc: In function 'int main()':
a.cc:8:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s);
| ^~~~
| getw
|
s324896782 | p03860 | C++ | #include<bits/stdc++.h>
const int maxk=100001;
using namespace std;
int main()
{
char s[maxk];
gets(s);
char k=s[8];
printf("A%cC",k);
} | a.cc: In function 'int main()':
a.cc:8:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s);
| ^~~~
| getw
|
s256458839 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
char x = s.at(0);
cout << A << x << C;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'A' was not declared in this scope
8 | cout << A << x << C;
| ^
a.cc:8:21: error: 'C' was not declared in this scope
8 | cout << A << x << C;
| ^
|
s280487034 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
char main() {
string a, b, c;
cin >> a >> b >> c;
cout << a.at(0) + b.at(0) + c.at(0) << endl;
}
| a.cc:4:1: error: '::main' must return 'int'
4 | char main() {
| ^~~~
|
s065466704 | 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(!) + c.at(!) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ^
a.cc:7:37: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ... |
s724989617 | 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(!) + c.at(!) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ^
a.cc:7:37: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ... |
s382682383 | 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(!) + c.at(!) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ^
a.cc:7:37: error: expected primary-expression before ')' token
7 | cout << a.at(1) + b.at(!) + c.at(!) << endl;
| ... |
s334180046 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int name;
cin >> name;
char x = name.at(9);
cout << 'A' + 'x' + 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: request for member 'at' in 'name', which is of non-class type 'int'
7 | char x = name.at(9);
| ^~
|
s475763780 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int name;
cin << name;
int x = name.at(9);
cout >> 'A' + 'x' + '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 'int')
6 | cin << name;
| ~~~ ^~ ~~~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: '... |
s156500436 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int name;
cin >> name;
int x = name.at(9);
cout << 'A' + 'x' + 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: request for member 'at' in 'name', which is of non-class type 'int'
7 | int x = name.at(9);
| ^~
|
s750633526 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string S;
char c = S.at(0);
cin >> S;
cout << "Atcoder" c "Contest" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'c'
7 | cout << "Atcoder" c "Contest" << endl;
| ^~
| ;
|
s213794608 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string S;
char c = S.at(0)
cin >> S;
cout << ""Atcoder"" c ""Contest"" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
6 | cin >> S;
| ^~~
a.cc:7:20: error: unable to find string literal operator 'operator""Atcoder' with 'const char [1]', 'long unsigned int' arguments
7 | cout << ""Atcoder"" c ""Contest"" << endl;
| ... |
s853091290 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string S;
char c = S.at(0)
cin >> S;
cout << Atcoder c Contest << endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
6 | cin >> S;
| ^~~
a.cc:7:11: error: 'Atcoder' was not declared in this scope
7 | cout << Atcoder c Contest << endl;
| ^~~~~~~
|
s400125160 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string S;
char c = S.at(0)
cin >> S;
cout << Atcoder c Contest
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
6 | cin >> S;
| ^~~
a.cc:7:11: error: 'Atcoder' was not declared in this scope
7 | cout << Atcoder c Contest
| ^~~~~~~
|
s596967648 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
8 | cout >> a.at(0) + b.at(0) + c.at(0) >> endl;
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | ... |
s800556832 | 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: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:... |
s919468753 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, s, c;
cin >> a >> s >> c;
cout << a.at(0)
cout << s.at(0);
cout << c.at(0);
} | a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'cout'
7 | cout << a.at(0)
| ^
| ;
8 | cout << s.at(0);
| ~~~~
|
s411952277 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,x;
char x;
cin >>a>>x>>b;
cout << 'A' << x << 'B' << endl;
} | a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'char x'
6 | char x;
| ^
a.cc:5:14: note: previous declaration as 'std::string x'
5 | string a,b,x;
| ^
|
s869054791 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,x;
cin >>a>>x>>b;
cout << 'A' << x << 'B' << endl;
| a.cc: In function 'int main()':
a.cc:7:35: error: expected '}' at end of input
7 | cout << 'A' << x << 'B' << endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s059595330 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
getline(cin, str)
cout << "A" << str.at(8) << "C";
} | a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before 'cout'
6 | getline(cin, str)
| ^
| ;
7 | cout << "A" << str.at(8) << "C";
| ~~~~
|
s785305749 | p03860 | C++ | #include <bits/stdc++.h>
#define ll long long
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end))) // rep(i, 1, 5) --> {1,2,3,4} // rep(i, 5, 1) --> {4,3,2,1} // rep(it, end(v), begin(v)) --> *it
using namespace std;
int main()
... | a.cc: In function 'int main()':
a.cc:11:21: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
11 | cout << "A"+b[0]+"C";
| ^~~~
| |
| const char [2]
|
s861175009 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string X;
cin >> X;
cout << "A", X.at(9), "B" << endl;
} | a.cc: In function 'int main()':
a.cc:8:29: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout << "A", X.at(9), "B" << endl;
| ~~~~^~~~~~~
|
s502381766 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string X;
cin >> X;
cout << "A", X.at(8), "B" << endl;
} | a.cc: In function 'int main()':
a.cc:8:29: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout << "A", X.at(8), "B" << endl;
| ~~~~^~~~~~~
|
s946667642 | p03860 | Java | import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] str1 = scanner.nextLine().split(" ");
for (String s : str1) {
System.out.print(s.substring(0, 1));
}
scanner.close();
}... | Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s486382888 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
for (string s; cin >> s;) cout << s.at(0)
} | a.cc: In function 'int main()':
a.cc:5:44: error: expected ';' before '}' token
5 | for (string s; cin >> s;) cout << s.at(0)
| ^
| ;
6 | }
| ~
|
s450537843 | 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]
|
s140253111 | 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: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]
|
s217407627 | 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:15: error: expected primary-expression before ';' token
6 | cin >> s >> ;
| ^
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;
| ~~~~~~~~~~~~... |
s925133769 | 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: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:... |
s634559564 | 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:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::__cxx11::basic_string<char>')
6 | cin >> "Atcoder" + s + "Contest";
| ~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | ... |
s383540305 | 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:11: error: expected ';' before 'cout'
6 | cin >> s
| ^
| ;
7 | cout << "A" << s.at(0) << "C" << endl;
| ~~~~
|
s164690172 | 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:8:40: error: expected ';' before 'endl'
8 | cout << a.at(0) << b.at(0) << c.at(0) endl;
| ^~~~~
| ;
|
s224949525 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >> a >> b >> c;
string ans = a.at(0) + b.at(0) + c.at(0);
cout << ans <<endl;
} | a.cc: In function 'int main()':
a.cc:8:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans = a.at(0) + b.at(0) + c.at(0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
|
s292626518 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
cout << "A"<< s.at(8) <<"C"<< endl;
}
| a.cc: In function 'int main()':
a.cc:7:21: error: request for member 'at' in 's', which is of non-class type 'char'
7 | cout << "A"<< s.at(8) <<"C"<< endl;
| ^~
|
s206087044 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string AtCoder, S, Contest;
cin << AtCoder << S << Contest;
cout << AtCoder.at(0) << S.at(0) << Contest.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 << AtCoder << S << Contest;
| ~~~ ^~ ~~~~~~~
| | |
| | std::string {ak... |
s638390329 | p03860 | C++ | \#include <bits/stdc++.h>
using namespace std;
main () {
string A ,B ,C;
cin >> A >> B >> C;
cout << A.at(0) << B.at(0) << C.at(0) <<endl;
} | a.cc:1:1: error: stray '\' in program
1 | \#include <bits/stdc++.h>
| ^
a.cc:1:2: error: stray '#' in program
1 | \#include <bits/stdc++.h>
| ^
a.cc:1:3: error: 'include' does not name a type
1 | \#include <bits/stdc++.h>
| ^~~~~~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main... |
s501200160 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char *s;
cin >> s;
string str = s.at(8);
cout << "A" << str << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: request for member 'at' in 's', which is of non-class type 'char*'
7 | string str = s.at(8);
| ^~
|
s690387776 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char *s;
cin >> s;
string str = s[8];
cout << "A" << str << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:19: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string str = s[8];
| ~~~^
|
s739434025 | 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: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*
|
s039718448 | 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:6:3: error: 'getLine' was not declared in this scope; did you mean 'getline'?
6 | getLine(cin, s);
| ^~~~~~~
| getline
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;
... |
s276694791 | 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*
|
s519011426 | 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:5:3: error: 'String' was not declared in this scope
5 | String s;
| ^~~~~~
a.cc:6:8: error: 's' was not declared in this scope
6 | cin>>s;
| ^
|
s156964056 | 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;
} | a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before '+' token
5 | string a,b,c+
| ^
a.cc:7:27: error: 'c' was not declared in this scope
7 | cout << a[0] << b[0] << c[0] <<endl;
| ^
|
s824302880 | p03860 | C++ | A,B,C=input().split()
ans="A"
ans=ans+B[0]
ans=ans+"C"
print(ans)
| a.cc:1:1: error: 'A' does not name a type
1 | A,B,C=input().split()
| ^
|
s673391890 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s, a;
cin >> a >> s;
cout << "A" + s[0] + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + s[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s220914209 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,s,c;
cin>>a>>s>>c;
cou<<a.st(0)<<s.at(0)<<c.st(0)<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 'cou' was not declared in this scope; did you mean 'cos'?
8 | cou<<a.st(0)<<s.at(0)<<c.st(0)<<endl;
| ^~~
| cos
a.cc:8:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
8 | cou... |
s116266994 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,s,c;
cin>>a>>s>>c;
cou<<a<<s.at(0)<<c<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 'cou' was not declared in this scope; did you mean 'cos'?
8 | cou<<a<<s.at(0)<<c<<endl;
| ^~~
| cos
|
s531329912 | p03860 | C++ | include<iostream>
using namespace std;
int main(){
string s;
while(cin>>s){
cout<<s[0];
}
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string s;
| ^~~~~~
a.cc:6:9: error: 'cin' was not declared in this scope
6 | while(cin>>s){
| ^~~
a.cc:... |
s422449504 | 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:21: error: 'C' was not declared in this scope
6 | cout<<A<<S.at(0)<<C<<endl;
| ^
|
s300033476 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
string x = s.at(0);
cout << "A"+x+"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 x = s.at(0);
| ~~~~^~~
|
s768534513 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
cout << A << str.at(1) << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:11: error: 'A' was not declared in this scope
8 | cout << A << str.at(1) << C << endl;
| ^
a.cc:8:29: error: 'C' was not declared in this scope
8 | cout << A << str.at(1) << C << endl;
| ^
|
s041593282 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
cin>>A>>B>>C;
char W=B.at(0);
cout<<"A"+W+"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout<<"A"+W+"C"<<endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.