submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s500112467 | 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:7:11: error: extended character ‘ is not valid in an identifier
7 | cout << ‘A’<<B.at(0)<<‘C’<< endl;
| ^
a.cc:7:11: error: extended character ’ is not valid in an identifier
a.cc:7:25: error: extended character ‘ is not valid in an identifier
7 | cout << ‘A’<<B.at(0)<<‘C’<< endl;
... |
s446190262 | 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:7:11: error: extended character “ is not valid in an identifier
7 | cout << “A”<<B.at(0)<<“C”<< endl;
| ^
a.cc:7:11: error: extended character ” is not valid in an identifier
a.cc:7:25: error: extended character “ is not valid in an identifier
7 | cout << “A”<<B.at(0)<<“C”<< endl;
... |
s451328796 | p03860 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
cout << A << b.at(0) << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: 'A' was not declared in this scope
8 | cout << A << b.at(0) << C << endl;
| ^
a.cc:8:29: error: 'C' was not declared in this scope
8 | cout << A << b.at(0) << C << endl;
| ^
|
s179510077 | p03860 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void) {
string s;
cin >> s;
cout << A << s.at(0) << C << endl;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: 'A' was not declared in this scope
8 | cout << A << s.at(0) << C << endl;
| ^
a.cc:8:29: error: 'C' was not declared in this scope
8 | cout << A << s.at(0) << C << endl;
| ^
|
s587985962 | p03860 | C++ | #include<iostream>
#include<algorithm>
#include<string>
#include<functional>
#include<utility>
#include<stack>
#include<queue>
#include<cmath>
#include<list>
#include<cstdint>
#include<vector>
#include<map>
#include<deque>
#define rep(i,rept) for(ll i = 0; i<rept;i++)
typedef long long ll;
const ll MOD = 1e9 + 7;
using... | a.cc:29:2: error: stray '#' in program
29 | }#include<iostream>
| ^
a.cc:29:3: error: 'include' does not name a type
29 | }#include<iostream>
| ^~~~~~~
a.cc:44:10: error: redefinition of 'const ll MOD'
44 | const ll MOD = 1e9 + 7;
| ^~~
a.cc:16:10: note: 'const ll MOD' previously ... |
s122005534 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin>> a >> b >> c;
cout<<'A'<< b.begin() << 'C'<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:10: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::__cxx11::basic_string<char>::iterator')
7 | cout<<'A'<< b.begin() << 'C'<<endl;
| ~~~~~~~~~^~ ~~~~~~~~~
| | |
| | std::__cxx11::basi... |
s260712715 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin>> a >> b >> c;
cout<<'A'<< b.begin() << 'C'<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:10: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::__cxx11::basic_string<char>::iterator')
7 | cout<<'A'<< b.begin() << 'C'<<endl;
| ~~~~~~~~~^~ ~~~~~~~~~
| | |
| | std::__cxx11::basi... |
s743650875 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin>> a >> b >> c;
cout<<“A” << b.begin()<< “C” <<endl;
return 0;
} | a.cc:7:7: error: extended character “ is not valid in an identifier
7 | cout<<“A” << b.begin()<< “C” <<endl;
| ^
a.cc:7:7: error: extended character ” is not valid in an identifier
a.cc:7:26: error: extended character “ is not valid in an identifier
7 | cout<<“A” << b.begin()<< “C” <<endl;
| ... |
s955795344 | p03860 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin>> a >> b >> c;
cout<<“A” << b[0] << “C” <<endl;
return 0;
} | a.cc:7:7: error: extended character “ is not valid in an identifier
7 | cout<<“A” << b[0] << “C” <<endl;
| ^
a.cc:7:7: error: extended character ” is not valid in an identifier
a.cc:7:22: error: extended character “ is not valid in an identifier
7 | cout<<“A” << b[0] << “C” <<endl;
| ... |
s252108722 | p03860 | C | #include<stdio.h>
int main(){
s[3][110];
for(int i=0;i<3;i++)
scanf("%s",s[i]);
printf("A%cC\n",s[1][0]);
} | main.c: In function 'main':
main.c:4:3: error: 's' undeclared (first use in this function)
4 | s[3][110];
| ^
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
|
s736671404 | p03860 | C++ | #include<iostream>
#include<string>
#include<stdio.h>
using namespace std;
int main(){
char a[102];
gets(a);
for(int i=0;i<102;i++){
if(a[i]==' '){
cout<<"A"<<a[i+1]<<"C";
return 0;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s926192853 | p03860 | C++ | #include<iostream>
#include<string>
#include<stdio.h>
using namespace std;
int main(){
char a[102];
gets(a);
for(int i=0;i<102;i++){
if(a[i]==' '){
cout<<"A"<<a[i+1]<<"C";
return 0;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s133097776 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
string a,b,c;
int main(){
cin>>a>>b>>c;/
cout<<a[0]<<b[0]<<c[0]<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:18: error: expected primary-expression before '/' token
5 | cin>>a>>b>>c;/
| ^
|
s520294431 | p03860 | C++ | #include<bits/c++.h>
using namespace std;
string a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0]<<endl;
return 0;
} | a.cc:1:9: fatal error: bits/c++.h: No such file or directory
1 | #include<bits/c++.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s546191638 | p03860 | C++ | #include <cstring>
#include <iostream>
int main()
{
char a[10000];
for(int i=1;i<=3;i++)
{
cin>>a;
cout<<a[0];
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin>>a;
| ^~~
| std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; //... |
s395504956 | 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:5:1: error: expected initializer before 'cin'
5 | cin>>a>>b>>c;
| ^~~
a.cc:6:19: error: 'c' was not declared in this scope
6 | cout<<a[0]<<b[0]<<c[0]<<endl;
| ^
|
s468559317 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
string a,s,c;
cin>>a>>s>>c;
x=s.at(0);
cout<<a[0]<<s[0]<<c[0]<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:2: error: 'x' was not declared in this scope
6 | x=s.at(0);
| ^
|
s261360253 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[101],b[101],c[101];
cin>>a>>b>>c;
cout<<a[0]<<<<b[0]<<<<c[0];
} | a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '<<' token
7 | cout<<a[0]<<<<b[0]<<<<c[0];
| ^~
a.cc:7:25: error: expected primary-expression before '<<' token
7 | cout<<a[0]<<<<b[0]<<<<c[0];
| ^~
|
s887422646 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
string a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:7:24: error: expected identifier before numeric constant
7 | cout<<a[0]<<b[0]<<[0];
| ^
a.cc: In lambda function:
a.cc:7:26: error: expected '{' before ';' token
7 | cout<<a[0]<<b[0]<<[0];
| ^
|
s057915805 | p03860 | C++ | #include<bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
string a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:10:24: error: expected identifier before numeric constant
10 | cout<<a[0]<<b[0]<<[0];
| ^
a.cc: In lambda function:
a.cc:10:26: error: expected '{' before ';' token
10 | cout<<a[0]<<b[0]<<[0];
| ^
|
s764009867 | p03860 | C++ | #include<bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
string a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:10:24: error: expected identifier before numeric constant
10 | cout<<a[0]<<b[0]<<[0];
| ^
a.cc: In lambda function:
a.cc:10:26: error: expected '{' before ';' token
10 | cout<<a[0]<<b[0]<<[0];
| ^
|
s218766594 | p03860 | C++ | #include<bits/stdc++.h>//万能头
using namespace std;
int main()//主程序
{
string a;//string
string b;//string
string c;//string
int x,y,z;//int
getline(cin,a);//输入
getline(cin,b);//输入
getline(cin,c);//输入
x=a.size();//取一个长度
for(int i=0;i<n;i++)//循环
{
cout<<a[i]<<b[i]<<c[i]<<endl;//截取第一个数字输出
}
return 0;... | a.cc: In function 'int main()':
a.cc:13:23: error: 'n' was not declared in this scope
13 | for(int i=0;i<n;i++)//循环
| ^
|
s880725153 | p03860 | C++ | #include<iostream>
#include<algorithm>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int main(){
char a;
cin>>a;
cout<<"A"<<a[0]<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: invalid types 'char[int]' for array subscript
9 | cout<<"A"<<a[0]<<"C"<<endl;
| ^
|
s499097748 | p03860 | C++ | #include <stdio.h>
int main (){
char a[118];
for(int i=0;i<118;i++){
scanf('%1c',&a[i]);
}
printf("A'%1c'C",a[8]);
return 0;
} | a.cc:5:7: warning: multi-character character constant [-Wmultichar]
5 | scanf('%1c',&a[i]);
| ^~~~~
a.cc: In function 'int main()':
a.cc:5:7: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
5 | scanf('%1c',&a[i]);
| ^~~~~
| |
| int
In file inc... |
s431512223 | p03860 | C++ | #include <stdio.h>
int main (){
char a[118];
for(int i=0;i<118;i++){
scanf('%c',&a[i]);
}
printf("A'%c'C",a[8]);
return 0;
} | a.cc:5:7: warning: multi-character character constant [-Wmultichar]
5 | scanf('%c',&a[i]);
| ^~~~
a.cc: In function 'int main()':
a.cc:5:7: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
5 | scanf('%c',&a[i]);
| ^~~~
| |
| int
In file include... |
s725284559 | p03860 | C++ | #include<iostream>
#include<cstring>
string a,b,c;
int main(){
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0]<<endl;
return 0;
} | a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
3 | string a,b,c;
| ^~~~~~
| stdin
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.... |
s524470258 | p03860 | C++ | #include<iostream>
#include<cstring>
int main(){
string s;
std::cin>>s;std::cout<<s[0];
std::cin>>s;std::cout<<s[0];
std::cin>>s;std::cout<<s[0]<<"\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostre... |
s988751879 | 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:7:41: error: expected ';' before 'endl'
7 | cout<<a[0]<<" "<<b[0]<<" "<<c[0]endl;
| ^~~~
| ;
|
s985864043 | 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:7:37: error: expected primary-expression before '<<' token
7 | cout<<a[0]<<" "<<b[0]<<" "<<<<c[0]endl;
| ^~
|
s030327681 | p03860 | C++ | #include<iostrema>
#include<cstring>
using namespace std;
int main()
{
string a,b,c;
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0];
return 0;
} | a.cc:1:9: fatal error: iostrema: No such file or directory
1 | #include<iostrema>
| ^~~~~~~~~~
compilation terminated.
|
s257710701 | p03860 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
string a,b,c;
int main()
{
cin.sync_with_stdio(false);
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0];
return 0;
} | a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
4 | string a,b,c;
| ^~~~~~
| stdin
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin.sync_with_stdio(false);
| ^~~
| std::ci... |
s070001680 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void){
string s;
cin >> s;
cout << A << s.front() << C << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:11: error: 'A' was not declared in this scope
9 | cout << A << s.front() << C << endl;
| ^
a.cc:9:29: error: 'C' was not declared in this scope
9 | cout << A << s.front() << C << endl;
| ^
|
s497298949 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> AtCoder >> s >> Contest;
cout << "AtCoder" << s.at(0) << "Contest" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder >> s >> Contest;
| ^~~~~~~
a.cc:6:26: error: 'Contest' was not declared in this scope; did you mean 'const'?
6 | cin >> AtCoder >> s >> Contest;
| ^~~~~... |
s624296546 | p03860 | C | #include <stdio.h>
#include <string>
int main(){
char At[100];
char s[110];
char Co[120];
scanf("%s%s%s",&At,&s,&Co );
printf("%c%c%c\n",At[0],s[0],Co[0] );
return 0;
}
| main.c:2:10: fatal error: string: No such file or directory
2 | #include <string>
| ^~~~~~~~
compilation terminated.
|
s131063138 | p03860 | C | include<stdio.h>
int main(){
char s;
scanf("AtCoder %c",&s);
printf("A%cC",s);
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s578859215 | p03860 | C | #include <stdio.h>
#include <string>
int main(){
char At[100];
char s[110];
char Co[120];
scanf("%s%s%s",&At,&s,&Co );
printf("%c%c%c\n",At[0],s[0],Co[0] );
return 0;
}
| main.c:2:10: fatal error: string: No such file or directory
2 | #include <string>
| ^~~~~~~~
compilation terminated.
|
s797485855 | p03860 | C | #include <stdio.h>
#include <string>
int main(){
char At[100];
char s[110];
char Co[120];
scanf("%s%s%s",&At,&s,&Co );
printf("%c%c%c\n",At[0],s[0],Co[0] );
return 0;
}
| main.c:2:10: fatal error: string: No such file or directory
2 | #include <string>
| ^~~~~~~~
compilation terminated.
|
s428102134 | p03860 | C | #include <stdio.h>
#include <string>
int main(){
char At[100];
char s[110]
char Co[120]
scanf("%s%s%s",&At,&s,&Co );
printf("%c%c%c\n",At[0],s[0],Co[0] );
return 0;
}
| main.c:2:10: fatal error: string: No such file or directory
2 | #include <string>
| ^~~~~~~~
compilation terminated.
|
s595571731 | p03860 | C++ | include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << 'A' << b[0] << 'C' << endl;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string a, b, c;
| ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
5 | cin >> a >> b >> c;
| ... |
s550985556 | p03860 | C++ | #include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
#include "dbgtoki.hpp"
#define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i)
DbgTimer D_t;
#define TSTART() D_t.start()
#define TSTOP() D_t.stop()
#else
#define DUMP(i)
#define TSTART()
#define TS... | a.cc: In function 'int main()':
a.cc:38:29: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
38 | string ans = "A" + s[0] + "C";
| ^ ~~~
| |
| const char [2]
|
s906241761 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A=AtCoder;
string B;
string C=Contest;
cin >> B;
cout << A.at(0) << B.at(0) << C.at(0) << endl;
}
| a.cc: In function 'int main()':
a.cc:5:12: error: 'AtCoder' was not declared in this scope
5 | string A=AtCoder;
| ^~~~~~~
a.cc:7:12: error: 'Contest' was not declared in this scope; did you mean 'const'?
7 | string C=Contest;
| ^~~~~~~
| const
|
s380988218 | p03860 | C++ | #include <cstdio>
using namespace std;
int main(void){
char b[1000];
gets(b);
printf("A%cC\n",b[8]);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(b);
| ^~~~
| getw
|
s093773180 | p03860 | C++ | #include <iostream>
#include<cstring>
#include<string>
#include<bits/c++.h>
using namespace std;
char miku[105];
int main()
{
gets(miku);
int rin=strlen(miku);
cout<<miku[0];
for(int i=1; i<rin; i++)
if(miku[i]==' ')
cout<<miku[i+1];
cout<<endl;
return 0;
}
| a.cc:4:9: fatal error: bits/c++.h: No such file or directory
4 | #include<bits/c++.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s849080899 | p03860 | C++ | #include <iostream>
#include<cstring>
#include<string>
#include<bits/c++.h>
using namespace std;
char miku[105];
int main()
{
gets(miku);
int rin=strlen(miku);
cout<<miku[0];
for(int i=1; i<rin; i++)
if(miku[i]==' ')
cout<<miku[i+1];
cout<<endl;
return 0;
}
| a.cc:4:9: fatal error: bits/c++.h: No such file or directory
4 | #include<bits/c++.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s523934121 | p03860 | C++ | #include <iostream>
#include<cstring>
#include<string>
using namespace std;
char miku[105];
int main()
{
gets(miku);
int rin=strlen(miku);
cout<<miku[0];
for(int i=1; i<rin; i++)
if(miku[i]==' ')
cout<<miku[i+1];
cout<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(miku);
| ^~~~
| getw
|
s241157089 | p03860 | C++ | #include <iostream>
#include<cstring>
using namespace std;
char miku[105];
int main()
{
gets(miku);
int rin=strlen(miku);
cout<<miku[0];
for(int i=1; i<rin; i++)
if(miku[i]==' ')
cout<<miku[i+1];
cout<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(miku);
| ^~~~
| getw
|
s447611379 | p03860 | C++ | #include <iostream>
#inlcude <string>
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:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
2 | #inlcude <string>
| ^~~~~~~
| include
|
s045324278 | p03860 | C++ | #include<iostream>
#include<string>
using namespace std;
char a[10];
char c[10];
char b[10];
int main()
{
gets(a);
gets(b);
gets(c);
cout<<a[0]<<b[0]<<c[0];
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
|
s781875917 | p03860 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
string a, b;
cin a >> b ;
cout << "A" << b.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'a'
6 | cin a >> b ;
| ^~
| ;
|
s547460402 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
String s[3];
cin >> s[0] >> s[1] >> s[2];
cout << "A" << s[1].at(0) << "C";
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
5 | String s[3];
| ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
6 | cin >> s[0] >> s[1] >> s[2];
| ^
|
s302471885 | 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:6:27: error: expected ';' before 'char'
6 | cin >> A >> B >> C
| ^
| ;
7 | char s = B.at(0);
| ~~~~
a.cc:8:23: error: 's' was not declared in this scope
8 | ... |
s385410349 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
string s1,s2,s3;
cin >> s1 >> s2 >> s3;
cout << "A" + s2[0] + "C" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:23: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
10 | cout << "A" + s2[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s620880029 | p03860 | C++ | #include<iostream>
#include<string.h>
int main(){
string s;
cin>>s;
char ans=s[8];
cout<<"A"<<ans<<"C"<<endl;
} | 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/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:4... |
s569561491 | p03860 | C++ | #include<iostream>
#include<string.h>
int main(){
string s="";
cin>>s;
char ans=s[8];
cout<<"A"<<ans<<"C"<<endl;
} | 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/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostrea... |
s307457347 | p03860 | Java | import java.util.Scanner;
public class Main048{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String name = sc.nextLine();
System.out.println(name);
System.out.println("A" + name.charAt(8) + "C");
}
}
| Main.java:2: error: class Main048 is public, should be declared in a file named Main048.java
public class Main048{
^
1 error
|
s770117190 | p03860 | C++ | a = list(input().split())
b = list(a[1])
print('A'+b[0]+'C') | a.cc:1:1: error: 'a' does not name a type
1 | a = list(input().split())
| ^
|
s035622844 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, S, B;
cin << A << S << B;
char X = S.at(0);
cout << "A" << X << "B" << 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 << S << B;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::ba... |
s209238991 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, S, B;
cin << A << S << B;
char X = S.at(0);
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 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << A << S << B;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx1... |
s553515859 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, S, B;
cin << A << S << B;
char X = S.at(0);
cout << A << X << B << 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 << S << B;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx1... |
s132532863 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, S, B;
cin << A << S << B;
char X = S.at(0);
cout << A << S << B << 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 << S << B;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx1... |
s888663816 | p03860 | C++ | #include <iostream>
#include <string>
int main(){
string a;
cin>>a;
cout<<'A'<<a[8]<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string a;
| ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:4... |
s180981728 | p03860 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=1;i<=n;++i)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
using namespace std;
int main(){
int a,b,c;
cout << a << b << c;
cout << "A" << b.at(0) << "C" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:20: error: request for member 'at' in 'b', which is of non-class type 'int'
10 | cout << "A" << b.at(0) << "C" << endl;
| ^~
|
s608666400 | p03860 | C | #include<stdio.h>
int main(void)
{
char str1[100],str2[100],str3[100];
scanf("%s %s %s",str1,str2,str3);
printf("%c%c%c\n",str1[0],str2[0],str3[0]);
return 0
}
| main.c: In function 'main':
main.c:7:11: error: expected ';' before '}' token
7 | return 0
| ^
| ;
8 | }
| ~
|
s392646880 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
char s[100];
cout << "AtCoder" << endl;
cin >> s;
cou << "Contest" << endl;
cout << "A" << s[0] << "C";
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cou' was not declared in this scope
8 | cou << "Contest" << endl;
| ^~~
|
s833506008 | p03860 | Java | public static void main(String[] args) {
if (args[0].equals("AtCoder") && args[2].equals(" Contest ")
&& args[1].length() > 0 && args[1].length() < 100) {
for (int i = 0; i < args.length; i++) {
System.out.print(args[i].substring(0, 1));
}
}
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s711286050 | p03860 | Java | public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
System.out.print(args[i].substring(0, 1));
}
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s593568342 | p03860 | Java | for (int i = 0; i < args.length; i++) {
System.out.print(args[i].substring(0, 1));
} | Main.java:1: error: class, interface, enum, or record expected
for (int i = 0; i < args.length; i++) {
^
Main.java:1: error: class, interface, enum, or record expected
for (int i = 0; i < args.length; i++) {
^
Main.java:1: error: class, interface, enum, or record expected
for (int i = 0; i < args.length... |
s705670973 | p03860 | Java | package virtualContest;
public class A {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
System.out.print(args[i].substring(0, 1));
}
}
}
| Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s147014075 | p03860 | Java | public class Hoge {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println(shorten(in.readLine()));
}
static String shorten(String src) {
return src.replaceAll("([A-Z])[a-z]* ([A-Z])[a-z]* ([A-Z])[a-z]*", "$1$2$... | Main.java:1: error: class Hoge is public, should be declared in a file named Hoge.java
public class Hoge {
^
Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class Hoge
Ma... |
s911505767 | p03860 | C++ | #include <stdio.h>
int main(){
char a,b,c,d;
scanf("%s %s %s",&a,&b,&c);
d=b[0];
printf("A%sC",d);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:12: error: invalid types 'char[int]' for array subscript
5 | d=b[0];
| ^
|
s438820340 | p03860 | C++ | #include <stdio.h>
int main(){
char a,b,c;
scanf("%s %s %s",&a,&b,&c);
printf("A%sC",b[0]);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:24: error: invalid types 'char[int]' for array subscript
5 | printf("A%sC",b[0]);
| ^
|
s161708172 | p03860 | C++ | #include <stdio.h>
int main(){
char a,b,c;
scanf("%s %s %s",&a,%b,%c);
printf("%s %s %s",a[0],b[0],c[0]);
return 0;
} | a.cc: In function 'int main()':
a.cc:4:29: error: expected primary-expression before '%' token
4 | scanf("%s %s %s",&a,%b,%c);
| ^
a.cc:4:32: error: expected primary-expression before '%' token
4 | scanf("%s %s %s",&a,%b,%c);
| ... |
s727688363 | p03860 | C++ | #include <iostream>
#include <string>
int main(){
std::string a,b,c;
std::cin >> a >> b >>c;
std::cout << 'A' << S[0] << 'C' << std::endl;
} | a.cc: In function 'int main()':
a.cc:6:21: error: 'S' was not declared in this scope
6 | std::cout << 'A' << S[0] << 'C' << std::endl;
| ^
|
s065123331 | p03860 | C++ | #include <iostream>
#include <string>
int main(){
std::string S;
std::cin >> "AtCoder" >> S >> "Contest";
std::cout << 'A' << S[0] << 'C' << std::endl;
} | a.cc: In function 'int main()':
a.cc:5:10: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
5 | std::cin >> "AtCoder" >> S >> "Contest";
| ~~~~~~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::i... |
s256016862 | p03860 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string s;
cin>>"Atcoder">>s>>"Contest";
cout<<'A'<<s[0]<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:7:12: 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... |
s554867209 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb ... | a.cc: In function 'int main()':
a.cc:42:24: error: 's' was not declared in this scope; did you mean 'st'?
42 | cout << "A" << s[0] << "C" << endl;
| ^
| st
|
s048898595 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb ... | a.cc: In function 'int main()':
a.cc:42:24: error: 's' was not declared in this scope; did you mean 'st'?
42 | cout << "A" << s[0] << "C" << endl;
| ^
| st
|
s976874958 | p03860 | C++ | main = putStrLn . map head . words =<< getLine | a.cc:1:1: error: 'main' does not name a type
1 | main = putStrLn . map head . words =<< getLine
| ^~~~
|
s398226380 | p03860 | C++ | #include<iostream>
#include<string>
using namespace;
int main()
{
string a,b,c;
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0]<<endl;
return 0;
} | a.cc:3:16: error: expected identifier before ';' token
3 | using namespace;
| ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
6 | string a,b,c;
| ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/ios... |
s669756368 | p03860 | C++ | #include<iostream>
#include<string>
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:8:24: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<<a[0]<<b[0]<c[0]<<endl;
|
s283467274 | p03860 | C++ | #include<iostream>
#include<string>
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:5:3: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostre... |
s722404774 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
cout << "A" << b[0] << "C\n"
return 0;
} | a.cc: In function 'int main()':
a.cc:7:33: error: expected ';' before 'return'
7 | cout << "A" << b[0] << "C\n"
| ^
| ;
8 | return 0;
| ~~~~~~
|
s071959581 | p03860 | C++ | #include <iostream>
#include <string>
#include <cstdlib>
#include <algorithm>
using namespace std;
int main(){
string s;
cin >> s;
transform(s.begin(), ::toupper);
cout << "A + s[0] + C" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, int (&)(int) noexcept)'
10 | transform(s.begin(), ::toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
... |
s972286477 | p03860 | C++ | #include<stdio.h>
int main(void){
char r[100],s[100],t[100];
scanf("%s %s %s"&r,s,t);
printf("A%sC",s[0]);
return 0;
} | a.cc: In function 'int main()':
a.cc:4:29: error: invalid operands of types 'const char [9]' and 'char [100]' to binary 'operator&'
4 | scanf("%s %s %s"&r,s,t);
| ~~~~~~~~~~^~
| | |
| | char [100]
| ... |
s528154099 | p03860 | C++ | #include <iostream>
using namespace std;
int main()
{
string a, x, c;
cin >> a >> x >> c;
cour << a[0] << x[0] << c[0] << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'cour' was not declared in this scope
9 | cour << a[0] << x[0] << c[0] << endl;
| ^~~~
|
s400345672 | p03860 | C++ | #include <string>
#include <iostream>
using namespace std;
int main(){
string s;
cin>>"AtCoder ">>s>>" Contest";
cout<<"A"<<s[0]<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:4: 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 std::basic_istream<char... |
s440208138 | p03860 | C++ | #include <string>
#include <iostream>
using namespace std;
int main(){
string s;
cin>>"AtCoder ">>s>>" Contest";
cout<<"A"<<s[0]<<"C"<<endl
} | a.cc: In function 'int main()':
a.cc:6:4: 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 std::basic_istream<char... |
s848959079 | p03860 | C++ | #include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main() {
string s;
cin >> "Atcoder" >> s >> "Contest";
cout << "A" << s[0] << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:7:13: 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]
|... |
s805359037 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int ara_D[100][200];
int ara[100000];
char ara1[100000];
int main()
{
int i,j,k,l,a,b,h,area;
gets(ara1);
printf("A%cC\n",ara1[8]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(ara1);
| ^~~~
| getw
|
s250028633 | p03860 | C++ | #include <iostream>
#include <string>
int main(){
string s,t,u;
cin >> s >> t >> u;
cout << s[0] << s[1] << s[2] << endl;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
5 | string s,t,u;
| ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/... |
s848527716 | p03860 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
String[] word = l... | Main.java:9: error: cannot find symbol
String[] word = line.sprit(" ");
^
symbol: method sprit(String)
location: variable line of type String
1 error
|
s978417316 | p03860 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
String[] word = l... | Main.java:12: error: ')' or ',' expected
char c = word[2].charAt(0
^
1 error
|
s649535532 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
long long a, b, x;
cin >> a >> b >> x;
if (a != 0){
long long re1 = (a-1) / x;
}else{
long long re1 = a / x;
}
long long re2 = b / x;
long long result = re2 - re1;
cout << result << endl;
} | a.cc: In function 'int main()':
a.cc:13:34: error: 're1' was not declared in this scope; did you mean 're2'?
13 | long long result = re2 - re1;
| ^~~
| re2
|
s467142759 | p03860 | C++ |
#include <bits/stdc++.h>
using namespace std;
//int main( int argc, char *argv[] )
{
char S[ 110 ];
char lpAns[] = "ABC";
ios::sync_with_stdio( false );
cin.tie( 0 );
cin >> S;
cin >> S;
lpAns[ 1 ] = S[ 0 ];
cout << lpAns << endl;
return 0;
}
| a.cc:6:1: error: expected unqualified-id before '{' token
6 | {
| ^
|
s025512871 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() >= 1){
char a = s.[0]
cout << A + a + C << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:19: error: expected unqualified-id before '[' token
9 | char a = s.[0]
| ^
|
s935628666 | p03860 | C++ | print "".join(map(lambda x: x[0].upper(), raw_input().split())) | a.cc:1:1: error: 'print' does not name a type; did you mean 'int'?
1 | print "".join(map(lambda x: x[0].upper(), raw_input().split()))
| ^~~~~
| int
|
s590630659 | p03860 | Java | import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class A {
static void solve(FastScanner sc, PrintWriter out) {
sc.ns();
String s = sc.ns();
sc.ns();
out.println("A" + s.char... | Main.java:7: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s015288687 | p03860 | C++ | package main
import (
"fmt"
)
func main(){
var a,b,c string
fmt.Scan(&a, &b, &c)
fmt.Println(string(a[0]) + string(b[0]) + string(c[0]))
} | a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
|
s475076575 | p03860 | C++ | #include<bits/stdc++.h>
#define fr(i1,m) for(int i1=0;i1<m;i1++)
using namespace std;
int main()
{
string s;
while(cin>>s)
{
cout<<ss[0];
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:18: error: 'ss' was not declared in this scope; did you mean 's'?
10 | cout<<ss[0];
| ^~
| s
|
s463110471 | p03860 | C++ |
let _ =
let a, s, c = Scanf.scanf "%s %s %s" (fun a s c -> a, s, c) in
Printf.printf "%c%c%c\n" (String.get a 0) (String.get s 0) (String.get c 0)
| a.cc:2:1: error: 'let' does not name a type
2 | let _ =
| ^~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.