submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s229258231
p03860
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string a,b,c,s; cin >> a >> b >> c; s = a.at(0) + b.at(0) + c.at(0); transform(s.begin(), s.end(), s.begin(), std::toupper); cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)' 8 | transform(s.begin(), s.end(), s.begin(), std...
s147225075
p03860
C++
#include <iostream> #include <string> using namespace std; int main(){ string a,b,c,s; cin >> a >> b >> c; s = a.at(0) + b.at(0) + c.at(0); transform(s.begin(), s.end(), s.begin(), std::toupper); cout << s << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'transform' was not declared in this scope 7 | transform(s.begin(), s.end(), s.begin(), std::toupper); | ^~~~~~~~~
s991390842
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]
s942732239
p03860
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; char c = s.at(0); cout << "A" + c + "C" << endl; }
a.cc: In function 'int main()': a.cc:7:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 7 | cout << "A" + c + "C" << endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s899261236
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A; string X; string C; cin>>A>>X>>C; cout<<A.at(0)X.at(0)C.at(0)<<endl; }
a.cc: In function 'int main()': a.cc:10:16: error: expected ';' before 'X' 10 | cout<<A.at(0)X.at(0)C.at(0)<<endl; | ^ | ;
s898294727
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string tmp, s; cin >> tmp >> s; s = "A"+s.at(0)+"C"; cout << s << endl; }
a.cc: In function 'int main()': a.cc:7:18: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 7 | s = "A"+s.at(0)+"C"; | ~~~~~~~~~~~^~~~ | | | | | const char [2] | const char*
s561539471
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; char s; cin >> S; s = S.at(0); cout << "A" << s << "C" << end; }
a.cc: In function 'int main()': a.cc:9:27: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | cout << "A" << s << "C" << end; | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, ...
s867799195
p03860
C++
#include <iostream> #include <string> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; cout << s[0] << s[1] << s[2] << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: 's' was not declared in this scope; did you mean 's3'? 8 | cout << s[0] << s[1] << s[2] << endl; | ^ | s3
s443998162
p03860
C++
#include<iostream> #include<string> #include <algorithm> using namespace std; int main() { string s; cin >> s; int position = s.find(' ') cout << "A" << s[position+1] << "C" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:3: error: expected ',' or ';' before 'cout' 11 | cout << "A" << s[position+1] << "C" << endl; | ^~~~
s034862504
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> s; char s = S.at(9); cout << "A" << s << "C" << endl; }
a.cc: In function 'int main()': a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^
s412459903
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; char s; cin >> s; s = S.at(9); cout << "A" + s + "C" << endl; }
a.cc: In function 'int main()': a.cc:9:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 9 | cout << "A" + s + "C" << endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s378328161
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; char s; cin >> s; s = S.at(9); cout << A << s << C << endl; }
a.cc: In function 'int main()': a.cc:9:11: error: 'A' was not declared in this scope 9 | cout << A << s << C << endl; | ^ a.cc:9:21: error: 'C' was not declared in this scope 9 | cout << A << s << C << endl; | ^
s384897399
p03860
C
#include<stdio.h> int main(){ char s[100]; scanf("AtCoder %s Contest", s); println("A%cC", s[0]); return 0; }
main.c: In function 'main': main.c:6:1: error: implicit declaration of function 'println'; did you mean 'printf'? [-Wimplicit-function-declaration] 6 | println("A%cC", s[0]); | ^~~~~~~ | printf
s919686104
p03860
C
#include<stdio.h> int main(){ char s[100],; scanf("AtCoder %s Contest", s); println("A%cC", s[0]); return 0; }
main.c: In function 'main': main.c:4:15: error: expected identifier or '(' before ';' token 4 | char s[100],; | ^ main.c:6:1: error: implicit declaration of function 'println'; did you mean 'printf'? [-Wimplicit-function-declaration] 6 | println("A%cC", s[0]); | ^~~~~~~ | print...
s467144387
p03860
C++
a,b,c=input().split() print('A'+b[0]+'C')
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=input().split() | ^
s103732223
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string title; cin >> title ; char dai[sizeof(title)] = title; cout << "A" << dai.at(8) << "C" << endl; }
a.cc: In function 'int main()': a.cc:7:36: error: array must be initialized with a brace-enclosed initializer 7 | char dai[sizeof(title)] = title; | ^~~~~ a.cc:9:28: error: request for member 'at' in 'dai', which is of non-class type 'char [32]' 9 | cout...
s533941734
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string title; cin >> title ; char dai[sizeof(title)) = title; cout << "A" << dai.at(8) << "C" << endl; }
a.cc: In function 'int main()': a.cc:7:32: error: expected ']' before ')' token 7 | char dai[sizeof(title)) = title; | ^ | ] a.cc:9:24: error: 'dai' was not declared in this scope 9 | cout << "A" << dai.at(8) << "C" << en...
s484455931
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:15: error: 'A' was not declared in this scope 7 | cout<<A<<b.at(0)<<C<<endl; | ^ a.cc:7:27: error: 'C' was not declared in this scope 7 | cout<<A<<b.at(0)<<C<<endl; | ^
s072175130
p03860
C++
#include<iostream> #include<cstdio> #include<vector> #include<queue> #include<map> #include<unordered_map> #include<stack> #include<string> #include<algorithm> #include<functional> #include<cstring> #include<utility> #include<bits/stdc++.h> #include<math.h> using namespace std; /**** Type Define ****/ typedef long lo...
a.cc: In function 'int main()': a.cc:181:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 181 | s="A"+s[0]+"C"; | ^~~~ | | | const char [2]
s472664346
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:9: error: 'A' was not declared in this scope 7 | cout<<A<<s.at(8)<<C<<endl; | ^ a.cc:7:21: error: 'C' was not declared in this scope 7 | cout<<A<<s.at(8)<<C<<endl; | ^
s668999552
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, s, C; cin >> A >> s >> C; cout << "A" + s.at(0) + "C"; }
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"; | ~~~~~~~~~~~~~ ^ ~~~ | | | | const char* const char [2]
s078619402
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; cout << "A" + S[8] + "C" << endl; }
a.cc: In function 'int main()': a.cc:7:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 7 | cout << "A" + S[8] + "C" << endl; | ^ ~~~ | | | const char [2]
s867137404
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string x, y, z; cin >> x >> y >> z; cout << A << y.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 << y.at(0) << C << endl; | ^ a.cc:7:27: error: 'C' was not declared in this scope 7 | cout << A << y.at(0) << C << endl; | ^
s100601898
p03860
C++
using namespace std; #include<bits/stdc++.h> #define BEGIN ios_base::sync_with_stdio(0);cin.tie(0); #define END return EXIT_SUCCESS; #define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++) #define REP(I,N) FOR((I),0,(N)) #define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++) #define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--) #define IN(P) cin...
a.cc: In function 'void solve()': a.cc:30:7: error: 'i' was not declared in this scope 30 | INS(i,3,s); | ^ a.cc:5:25: note: in definition of macro 'FOR' 5 | #define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++) | ^ a.cc:12:20: note: in expansion of macro 'REP' 12 | #define...
s722028096
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c; cin >> a>> c >> b; cout << A << c.at(0) << C << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: 'A' was not declared in this scope 7 | cout << A << c.at(0) << C << endl; | ^ a.cc:7:29: error: 'C' was not declared in this scope 7 | cout << A << c.at(0) << C << endl; | ^
s622096819
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; cout << A << c.at(0) << C << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: 'A' was not declared in this scope 7 | cout << A << c.at(0) << C << endl; | ^ a.cc:7:29: error: 'C' was not declared in this scope 7 | cout << A << c.at(0) << C << endl; | ^
s435300947
p03860
C++
#include <bits/stdc++.h> using namespace std; int main () { string s; cin >> s; cout << AtCoder.at(0) << s.at(0) << Contest.at(0) << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: 'AtCoder' was not declared in this scope 8 | cout << AtCoder.at(0) << s.at(0) << Contest.at(0) << endl; | ^~~~~~~ a.cc:8:39: error: 'Contest' was not declared in this scope; did you mean 'const'? 8 | cout << AtCoder.at(0) << s.at(0) << Contes...
s985217666
p03860
C++
#include <bits/stdc++.h> using namespace std; int main () { string 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; | ^
s830011484
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: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; | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string...
s121278889
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:6:11: error: 'A' was not declared in this scope 6 | cout << A + b.at(0) + C << endl; | ^ a.cc:6:25: error: 'C' was not declared in this scope 6 | cout << A + b.at(0) + C << endl; | ^
s285613915
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:6:14: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes 6 | cout << A +'b.at(0)' + C << endl; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:11: error: 'A' was not declared in this scope 6 | cout << A +'b.at(0)' + C << endl; | ^ a.cc...
s852731630
p03860
C
#include<stdio.h> int main (){ char a,b,c; scanf ("%s%s%s",a,b,c); printf("A%cC",b[0]); return 0; }
main.c: In function 'main': main.c:5:18: error: subscripted value is neither array nor pointer nor vector 5 | printf("A%cC",b[0]); | ^
s891225536
p03860
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> #define For(i, n) for(int i = 0; i < (n); i ++) #define Range(c) c.begin(), c.end() #define RevRange(c) c.begin(), c.end() #define Cin(T, x) T x; cin >> x; #define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]; #define Cout(val) cout ...
a.cc:22:28: warning: missing terminating " character 22 | cout << "A" << b[0] << "C\n; | ^ a.cc:22:28: error: missing terminating " character 22 | cout << "A" << b[0] << "C\n; | ^~~~~ a.cc: In function 'int main()': a.cc:25:1: error: expect...
s322127472
p03860
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> #define For(i, n) for(int i = 0; i < (n); i ++) #define Range(c) c.begin(), c.end() #define RevRange(c) c.begin(), c.end() #define Cin(T, x) T x; cin >> x; #define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]; #define Cout(val) cout ...
a.cc: In function 'int main()': a.cc:22:21: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 22 | Cout("A" + b[0] + "C"); | ^ ~~~ | | | const char [2] a.cc:10:28: note: in definition of macr...
s574587645
p03860
C
#include <stdio.h> int main(){ char s[116]; for (i=0;i<116;i++){ scanf("%c",&s[i]); } printf("A%cC\n",s[8]); return 0; }
main.c: In function 'main': main.c:4:6: error: 'i' undeclared (first use in this function) 4 | for (i=0;i<116;i++){ | ^ main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
s024690701
p03860
C
#include <stdio.h> int main(){ char s[116]; for (i=0;i<116;i++){ scanf("%c",&s[1]); } printf("A%cC\n",s[8]); return 0; }
main.c: In function 'main': main.c:4:6: error: 'i' undeclared (first use in this function) 4 | for (i=0;i<116;i++){ | ^ main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
s891821924
p03860
C
#include <stdio.h> int main(){ char s[116]; for (i=0;i<116;i++){ scans("%c",&s[1]); } printf("A%cC\n",s[8]); return 0; }
main.c: In function 'main': main.c:4:6: error: 'i' undeclared (first use in this function) 4 | for (i=0;i<116;i++){ | ^ main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in main.c:5:1: error: implicit declaration of function 'scans'; did you mean 'scanf'? [-W...
s415986115
p03860
C++
#include <bits/stdc++.h> #include <unordered_map> typedef long long ll; #define rep(i,m,n) for(ll i = (m); i < (n); i++) #define rrep(i,m,n) for(ll i = (m); i >= (n); i--) #define print(x) cout << (x) << endl; #define print2(x,y) cout << (x) << " " << (y) << endl; #define printa(x,n) for(ll i = 0; i < n; i++){ cout << ...
a.cc: In function 'int main()': a.cc:20:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 20 | print("A" + s[1][0] + "C"); | ^ ~~~ | | | const char [2] a.cc:6:27: note: in def...
s078981463
p03860
C++
#include<iostream> #include<algorithm> #include<cmath> #include<cstring> #include<cstdlib> #include<ctime> #include<cstdio> #include<string> //#include<string> //#include<sstream> using namespace std; int main() { char a[1000]; gets(a); printf("A%cC\n",a[8]+32); //cout<<"A"<<(char)(a[8])<<"C"<<endl; }
a.cc: In function 'int main()': a.cc:16:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 16 | gets(a); | ^~~~ | getw
s212163644
p03860
C++
#include<iostream> using namespace std; int main() { string s; for(int i = 0;i < 3;i++){ cin >> s; if(i == 1) char ans = s[0]; } cout << "A" << ans << "C" << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:20: error: 'ans' was not declared in this scope; did you mean 'abs'? 12 | cout << "A" << ans << "C" << endl; | ^~~ | abs
s230643110
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; char b = str.at(0); cout << "A" + b + "C" << endl; }
a.cc: In function 'int main()': a.cc:9:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 9 | cout << "A" + b + "C" << endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s155257029
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; char b = str.at(0); cout << "A" + b + "C" << endl; }
a.cc: In function 'int main()': a.cc:9:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 9 | cout << "A" + b + "C" << endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s816238923
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; string b = str.at(0); string a = "A"; a += b; a += 'C'; cout << a << endl; }
a.cc: In function 'int main()': a.cc:8: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 8 | string b = str.at(0); | ~~~~~~^~~
s383008962
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; char b = str.at(0); cout << A+b+C << endl; }
a.cc: In function 'int main()': a.cc:9:9: error: 'A' was not declared in this scope 9 | cout << A+b+C << endl; | ^ a.cc:9:13: error: 'C' was not declared in this scope 9 | cout << A+b+C << endl; | ^
s824992688
p03860
C++
#include<iostream> using namespace std; int main( ) { string s; cin >> AtCoder >> s >> Contest; cout << "A" << s.at(0) << "C" << endl; }
a.cc: In function 'int main()': a.cc:7:10: error: 'AtCoder' was not declared in this scope 7 | cin >> AtCoder >> s >> Contest; | ^~~~~~~ a.cc:7:26: error: 'Contest' was not declared in this scope; did you mean 'const'? 7 | cin >> AtCoder >> s >> Contest; | ^~~~~...
s949624959
p03860
C++
#include<iostream> 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:7:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]') 7 | cin >> "AtCoder" >> s >> "Contest"; | ~~~ ^~ ~~~~~~~~~ | | | | | const char [8] | std::istream {aka std:...
s342305750
p03860
C++
#include <stdio.h> int main(void){ char c; scanf("Atcoder %c",&c); printf("A%cC\n",c); return 0;
a.cc: In function 'int main()': a.cc:6:12: error: expected '}' at end of input 6 | return 0; | ^ a.cc:2:15: note: to match this '{' 2 | int main(void){ | ^
s845908548
p03860
C++
#include<iostream> using namespace std; int main(void) { char a[110],b[110],c[110]; cin << a << b << c; cout >> a[0] + b[0] + c[0] >> endl; return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char [110]') 7 | cin << a << b << c; | ~~~ ^~ ~ | | | | | char [110] | std::istream {aka std::basic_istream<char>} In file in...
s917905311
p03860
C++
#include <iostream> using namespace std; int main() { char s[]; cin >> s[]; cout << "A" << s[0] << "B\n"; }
a.cc: In function 'int main()': a.cc:7:8: error: storage size of 's' isn't known 7 | char s[]; | ^ a.cc:8:13: error: expected primary-expression before ']' token 8 | cin >> s[]; | ^
s420086080
p03860
C
#include <stdio.h> int main(void) { char s[]; scanf("%s", &s); printf("A%cC", s[0]); return 0; }
main.c: In function 'main': main.c:4:14: error: array size missing in 's' 4 | char s[]; | ^
s233416108
p03860
C
#include <stdio.h> #include <iostream> #include <string> int main(void) { char s[100]; scanf("%c", &s); printf("A%cC", s[0]); return 0; }
main.c:2:10: fatal error: iostream: No such file or directory 2 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s896242697
p03860
C++
s = input().split() print('A'+s[1][0]+'C')
a.cc:1:1: error: 's' does not name a type 1 | s = input().split() | ^
s111672211
p03860
C++
#include<iostream> #include<string> using namespace std; int main(){ string s1,s2,s3; cin>>s1>>s2>>s3; cout>>'A'>>s2[0]>>'C'; return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 7 | cout>>'A'>>s2[0]>>'C'; | ~~~~^~~~~ | | | | | char | std::ostream {aka std::basic_ostream<char>} a.cc:7:7: note: cand...
s475438763
p03860
C++
#include<iostream> #include<string> usingn namespace std; int main(){ string temp1,temp2; cin >> temp1; cin >>temp2; cin >> temp1; cout<<"A" <<temp2[0]<<"C"<<endl; }
a.cc:4:1: error: 'usingn' does not name a type 4 | usingn namespace std; | ^~~~~~ a.cc: In function 'int main()': a.cc:8:2: error: 'string' was not declared in this scope 8 | string temp1,temp2; | ^~~~~~ a.cc:8:2: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, ...
s037096137
p03860
C++
#include<iostream> #include<string> usingn namespace std; int main(){ string temp1,temp2; cin >> temp1; cin >>temp2; cin >> temp1; cout<<A <<temp2[0]<<C<<endl; }
a.cc:4:1: error: 'usingn' does not name a type 4 | usingn namespace std; | ^~~~~~ a.cc: In function 'int main()': a.cc:8:3: error: 'string' was not declared in this scope 8 | string temp1,temp2; | ^~~~~~ a.cc:8:3: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41,...
s384720455
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(void){ string S; cin >> S; cout << A << S.at(0) << C << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: 'A' was not declared in this scope 7 | cout << A << S.at(0) << C << endl; | ^ a.cc:7:33: error: 'C' was not declared in this scope 7 | cout << A << S.at(0) << C << endl; | ^
s211738037
p03860
C++
#include<bits/stdc++> using namespace std; int main(void){ string S; cin >> S; cout << A << S.at(0) << C << endl; return 0; }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s748321919
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; }
a.cc: In function 'int main()': a.cc:7:3: error: 'String' was not declared in this scope 7 | String A,B,C; | ^~~~~~ a.cc:8:8: error: 'A' was not declared in this scope 8 | cin>>A>>B>>C; | ^ a.cc:8:11: error: 'B' was not declared in this scope 8 | cin>>A>>B>>C; | ^ ...
s512083419
p03860
C++
# include <bits/stdc++.h> # define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i) # define reps(i, n) for(int i=1, i##_len=(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 ALL(x) (x).begin(), (x).end() # define SZ(x) ((int)(x...
a.cc: In function 'int main()': a.cc:17:5: error: 'String' was not declared in this scope 17 | String s; cin >> s; | ^~~~~~ a.cc:17:22: error: 's' was not declared in this scope 17 | String s; cin >> s; | ^
s795490624
p03860
C++
AtCoder X Contest
a.cc:1:1: error: 'AtCoder' does not name a type 1 | AtCoder X Contest | ^~~~~~~
s606207156
p03860
C++
#inlcude <iostream> #include <string> using namespace std; int main(void){ string s1,s2,s3; cin >> s1 >> s2 >> s3; cout << "A" << s2[0] << "C" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:9:3: error: 'cin' was not declared in this scope 9 | cin >> s1 >> s2 >> s3; | ^~~ a.cc:3:1: note: 'std::cin' is defined in he...
s877568229
p03860
C++
#inlcude <iostream> #include <string> using namespace std; int main(void){ string s; cin >> s; cout << "A" << s[0] << "C" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:9:3: error: 'cin' was not declared in this scope 9 | cin >> s; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostre...
s624276739
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; char B = b.st(0); cout << "A" << b << "C"<< endl; }
a.cc: In function 'int main()': a.cc:7:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'? 7 | char B = b.st(0); | ^~ | at
s442110182
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; char a,b,c; cout << "A" << b << "C"<< endl; }
a.cc: In function 'int main()': a.cc:7:8: error: conflicting declaration 'char a' 7 | char a,b,c; | ^ a.cc:5:10: note: previous declaration as 'std::string a' 5 | string a,b,c; | ^ a.cc:7:10: error: conflicting declaration 'char b' 7 | char a,b,c; | ^ a.cc:5:...
s342635736
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; char a; for(int i = 0;i < s.size();i++){ if(s.at(i) == " "){ a = s.at(i+1); break; } } cout << "A" << a << "C"<<endl; }
a.cc: In function 'int main()': a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(s.at(i) == " "){ | ~~~~~~~~^~~~~~
s922346453
p03860
C++
#include <bits/stdc++;> using namespace std; int main(){ string s; cin >> s; char a; for(int i = 0;i < s.size();i++){ if(s.at(i) == " "){ a = s.at(i+1); break; } } cout << "A" << a << "C"<<endl; }
a.cc:1:10: fatal error: bits/stdc++;: No such file or directory 1 | #include <bits/stdc++;> | ^~~~~~~~~~~~~~ compilation terminated.
s034117951
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; char a, b, c; a = A.at(0); b = B.at(0); c = C.at(0); cout >> a >> b >> c >> endl; }
a.cc: In function 'int main()': a.cc:12:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 12 | cout >> a >> b >> c >> endl; | ~~~~ ^~ ~ | | | | | char | std::ostream {aka std::basic_ostream<char>} a.cc:12:8...
s713252144
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string S; cout<<A<<S.at(0)<<C<<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: 'A' was not declared in this scope 7 | cout<<A<<S.at(0)<<C<<endl; | ^ a.cc:7:21: error: 'C' was not declared in this scope 7 | cout<<A<<S.at(0)<<C<<endl; | ^
s198678248
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string S; cout<<A<<S[0]<<C<<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: 'A' was not declared in this scope 7 | cout<<A<<S[0]<<C<<endl; | ^ a.cc:7:18: error: 'C' was not declared in this scope 7 | cout<<A<<S[0]<<C<<endl; | ^
s113284442
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]'; return 0; }
a.cc:9:11: warning: multi-character character constant [-Wmultichar] 9 | cout << 'a[0]' + 'b[0]' + c[0]'; | ^~~~~~ a.cc:9:20: warning: multi-character character constant [-Wmultichar] 9 | cout << 'a[0]' + 'b[0]' + c[0]'; | ^~~~~~ a.cc:9:33: warning: missing terminati...
s754253714
p03860
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define sz(x) ((int)(x).size()) #define in(x) int x;cin>>x #define bit(n) (1<<(n)) #define rep(i,n) for (int i=0;i<(n);i++) #define repp(i,n) for (int i=0;i<=(n);i++) int main(){ string s[100]; cin >> s; cout << "A" << s[8] << "C" << endl; ...
a.cc: In function 'int main()': a.cc:16:13: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [100]' {aka 'std::__cxx11::basic_string<char> [100]'}) 16 | cin >> s; | ~~~ ^~ ~ | | | | | std::...
s088980825
p03860
C
#include <stdio.h> #include <math.h> #include <string.h> #include <algorithm> using namespace std; int main(){ char a[1005]; int k = 0,len; while(~scanf("%s",a)){ printf("%c",a[0]); memset(a,0,sizeof(a)); } return 0; }
main.c:4:10: fatal error: algorithm: No such file or directory 4 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s492181685
p03860
C++
#include <stdio.h> #include <math.h> #include <algorithm> #include <string.h> using namespace std; int main(){ char a[1005]; int len,k; gets(a); len = strlen(a); for( k = 0; k <= len; k++){ if( a[k] >= 65 && a[k] <= 90){ printf("%c",a[k]); } } return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(a); | ^~~~ | getw
s742776475
p03860
C
#include<stdio.h> int main(){ char Atcoder[100], s[100], Contest[100], a[4]; scanf("%s %s %s", Atcoder, s , Contest); a[0] = Atcoder[0]; a[1] = s[0]; c[2] = Contest[0]; a[3] = 0; printf("%s\n", a); }
main.c: In function 'main': main.c:10:3: error: 'c' undeclared (first use in this function) 10 | c[2] = Contest[0]; | ^ main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
s048232623
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { strung A,B,C ; cin >> A >> B >> C; cout << "A" << B.at(0) << "C" << endl; }
a.cc: In function 'int main()': a.cc:5:3: error: 'strung' was not declared in this scope; did you mean 'trunc'? 5 | strung A,B,C ; | ^~~~~~ | trunc 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 s...
s538390186
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> srt; char x = str.at(0); cout << "A" << x << "C" << endl; }
a.cc: In function 'int main()': a.cc:6:10: error: 'srt' was not declared in this scope; did you mean 'str'? 6 | cin >> srt; | ^~~ | str
s636809930
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; s.at(8) = x; cout << "A" << x << "C" << endl; }
a.cc: In function 'int main()': a.cc:8:13: error: 'x' was not declared in this scope 8 | s.at(8) = x; | ^
s687625003
p03860
C++
#include<bits/stdc++.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:5:7: 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:...
s611876741
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; cout << A << s[0] << C << endl; }
a.cc: In function 'int main()': a.cc:6:11: error: 'A' was not declared in this scope 6 | cout << A << s[0] << C << endl; | ^ a.cc:6:24: error: 'C' was not declared in this scope 6 | cout << A << s[0] << C << endl; | ^
s162464253
p03860
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <string> using namespace std; char s[105]; int b = 0; int main() { while(~scanf("%s",&s)){ cout << s[0]; memset(s, 0, sizeof(s)); } cout << endl; system("pause"); }
a.cc: In function 'int main()': a.cc:19:17: error: 'memset' was not declared in this scope 19 | memset(s, 0, sizeof(s)); | ^~~~~~ a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <algorithm> +++...
s939169469
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s;cin>>s; string t="A"; t+=substr(8,1); t+="C"; cout<<t<<endl; }
a.cc: In function 'int main()': a.cc:6:6: error: 'substr' was not declared in this scope; did you mean 'strstr'? 6 | t+=substr(8,1); | ^~~~~~ | strstr
s309705526
p03860
C
#include<stdio.h> using namespace std; #include<cstring> int main(){ char s[105]; gets(s); int len = strlen(s); printf("%c%c%c\n",s[0],s[8],s[len-7]); return 0; }
main.c:2:1: error: unknown type name 'using' 2 | using namespace std; | ^~~~~ main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 2 | using namespace std; | ^~~ main.c:3:9: fatal error: cstring: No such file or directory 3 | #include<cstring> |...
s696008958
p03860
C++
#include<stdio.h> using namespace std; #include<cstring> int main(){ char s[105]; gets(s); int len = strlen(s); printf("%c%c%c\n",s[0],s[8],s[len-7]); 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(s); | ^~~~ | getw
s879993612
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:6:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 6 | cout << "A"+x.at(0)+"C" << endl; | ~~~~~~~~~~~^~~~ | | | | | const char [2] | const char*
s177957634
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string x, y, z; cin >> x >> y >> z; char b = y.at(0); char a = x.at(0); char c = z.at(0); cout >> a >> b >> c >> endl; }
a.cc: In function 'int main()': a.cc:9:9: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 9 | cout >> a >> b >> c >> endl; | ~~~~ ^~ ~ | | | | | char | std::ostream {aka std::basic_ostream<char>} a.cc:...
s647962139
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string x, y, z; cin >> x >> y >> z; char b = y.at(0); char a = x.at(0); char c = z.at(0); cout >> a >> b >> c >> endl; }
a.cc: In function 'int main()': a.cc:9:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 9 | cout >> a >> b >> c >> endl; | ~~~~ ^~ ~ | | | | | char | std::ostream {aka std::basic_ostream<char>} a.cc:9:6: note: cand...
s234617736
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string x, y, z; cin >> x >> y >> z; char b = y.at(0); char a = x.at(0); char c = z.at(0); cout >> a >> b >> c >>endl; }
a.cc: In function 'int main()': a.cc:9:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 9 | cout >> a >> b >> c >>endl; | ~~~~ ^~ ~ | | | | | char | std::ostream {aka std::basic_ostream<char>} a.cc:9:6: note: candi...
s805214399
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string x, y, z; cin >> x >> y >> z; char c = y.at(0); cout >> x >> c >> z >>endl; }
a.cc: In function 'int main()': a.cc:7:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | cout >> x >> c >> z >>endl; | ~~~~ ^~ ~ | | | | | std::string {aka std::__cxx11:...
s377833879
p03860
C++
include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; char c = s.at(10); cout << "A" << 'c' << "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:5:1: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin >> s; | ^~~ a.cc:6:8: error: '...
s162207782
p03860
C++
#include <iostream> using namespace std; int main(){ string S2,S,S3; cin << S2 << S << S3; char ans = S[0]; cout << "A" << ans << "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 << S2 << S << S3; | ~~~ ^~ ~~ | | | | | std::string {aka std::__cxx11:...
s046896349
p03860
C++
#include "iostream" #include "cstdio" #include "cstring" using namespace std; const int maxn=10000000; char ss[maxn]; int main(int argc, char* argv[]) { int n,i; scanf("%d",&n); getchar(); //过滤换行符 while(n--) { gets(ss); for (i=0;i<(int)strlen(ss);i++) { if (i==0) //判断第一个字符 { if (ss[i]>='a...
a.cc: In function 'int main(int, char**)': a.cc:16:17: error: 'gets' was not declared in this scope; did you mean 'getw'? 16 | gets(ss); | ^~~~ | getw
s212221364
p03860
C++
#include<iostream> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string e = a + b + c; char d = e.at(7); cout << "A" << d << "C" << endl;
a.cc: In function 'int main()': a.cc:15:34: error: expected '}' at end of input 15 | cout << "A" << d << "C" << endl; | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s122870995
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:7:13: error: 'A' was not declared in this scope 7 | cout << A << x.at(0) << C << endl; | ^ a.cc:7:30: error: 'C' was not declared in this scope 7 | cout << A << x.at(0) << C << endl; | ^
s477611393
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> "Atcoder"+s+"Contest"; 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::__cxx11::basic_string<char>') 6 | cin >> "Atcoder"+s+"Contest"; | ~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~ | | | | | s...
s130578627
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> "Atcoder" >> s >> "Contest"; 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 'const char [8]') 6 | cin >> "Atcoder" >> s >> "Contest"; | ~~~ ^~ ~~~~~~~~~ | | | | | const char [8] | std::istream {aka std:...
s850739510
p03860
C++
#include <iostream> #include <string> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << "A" + string(b[0]) + "C" << endl; }
a.cc: In function 'int main()': a.cc:7:28: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 7 | cout << "A" + string(b[0]) + "C" << endl; | ^ In file included from /usr/incl...
s597720367
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; }
a.cc: In function 'int main()': a.cc:7:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 7 | cout << "A" + b[0] + "C" << endl; | ^ ~~~ | | | const char [2]
s525715941
p03860
C++
#include <iostream> #include <string> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << "A" + b[0] + "C" << endl; }
a.cc: In function 'int main()': a.cc:7:18: error: invalid types 'int[int]' for array subscript 7 | cout << "A" + b[0] + "C" << endl; | ^
s516306856
p03860
C++
#include <iostream> #include <string> int main() { int a, b, c; cin >> a >> b >> c; cout << "A" + b[0] + "C" << endl; }
a.cc: In function 'int main()': a.cc:5:3: 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.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s475889120
p03860
C++
#include<bits/stdc++.h> using namespace std; int main () { string s; cin >> s; cout << "A" + s.at(8) + "C" << endl; }
a.cc: In function 'int main()': a.cc:6:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 6 | cout << "A" + s.at(8) + "C" << endl; | ~~~~~~~~~~~~~ ^ ~~~ | | | | const char* const char [2]