submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s380681385
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; char b = B.at(0) cout << A << b << C << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'cout' 8 | cout << A << b << C << endl; | ^~~~
s474852362
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, B, C; cin >> A >> B >> c; char b = B.at(0) cout << A << b << C << endl; }
a.cc: In function 'int main()': a.cc:6:20: error: 'c' was not declared in this scope 6 | cin >> A >> B >> c; | ^ a.cc:8:5: error: expected ',' or ';' before 'cout' 8 | cout << A << b << C << endl; | ^~~~
s915724367
p03860
C++
nclude <iostream> int main(void) { std::string prefix, suffix, contest_name; std::cin >> prefix >> contest_name >> suffix; std::cout << prefix.at(0) << contest_name.at(0) << suffix.at(0) << std::endl; return 0; }
a.cc:1:1: error: 'nclude' does not name a type 1 | nclude <iostream> | ^~~~~~
s977308803
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:10: error: 'A' was not declared in this scope 7 | cin >> A >> s >> C; | ^ a.cc:7:20: error: 'C' was not declared in this scope 7 | cin >> A >> s >> C; | ^
s875650910
p03860
C++
#include<bits/stdc++.h> using namespace std; int main() { string x; cin >> x; cout << "A"+x.at(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"+x.at(0)+"C" << endl; | ~~~~~~~~~~~^~~~ | | | | | const char [2] | const char*
s776493799
p03860
C++
string a, b, c; cin >> a >> b >>c; cout << a[0] << b[0] << c[0] << endl;
a.cc:1:1: error: 'string' does not name a type 1 | string a, b, c; | ^~~~~~ a.cc:2:1: error: 'cin' does not name a type 2 | cin >> a >> b >>c; | ^~~ a.cc:3:1: error: 'cout' does not name a type 3 | cout << a[0] << b[0] << c[0] << endl; | ^~~~
s606912629
p03860
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string n; cin >> n; cout << 'A' + n.at(0) 'C' << endl; }
a.cc: In function 'int main()': a.cc:9:28: error: expected ';' before 'C' 9 | cout << 'A' + n.at(0) 'C' << endl; | ^~~~ | ;
s118876838
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,S,C; cin >> A >> S >> C; string a=A.at(0),c=C.at(0); char x = S.at(0); cout << a + x + c << endl; }
a.cc: In function 'int main()': a.cc:7:16: 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 a=A.at(0),c=C.at(0); | ~~~~^~~ a.cc:7:26: error: conver...
s555339689
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,S,C; cin >> A >> S >> C; string a=A.at(0),c=C.at(0); char x = S.at(0); cout << A + x + C << endl; }
a.cc: In function 'int main()': a.cc:7:16: 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 a=A.at(0),c=C.at(0); | ~~~~^~~ a.cc:7:26: error: conver...
s123896752
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char x = S.at(1); cout << 'A' + x + 'C' << endl;
a.cc: In function 'int main()': a.cc:8:33: error: expected '}' at end of input 8 | cout << 'A' + x + 'C' << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s375699969
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; char x = s.at(i) cout << 'A' << x << 'C' << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: 'i' was not declared in this scope 7 | char x = s.at(i) | ^
s326664679
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; char x = s.at(i) cout << 'A' + x + 'C' << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: 'i' was not declared in this scope 7 | char x = s.at(i) | ^
s927632216
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; char c; cin >> s; c = s.at(0); cout << A << c << C << endl; }
a.cc: In function 'int main()': a.cc:9:11: error: 'A' was not declared in this scope 9 | cout << A << c << C << endl; | ^ a.cc:9:21: error: 'C' was not declared in this scope 9 | cout << A << c << C << endl; | ^
s116746844
p03860
C++
#include<bits/stdc++.h> #include <math.h> using namespace std; #define rep(i,n) for(ll i=0;i<n;i++) #define repl(i,l,r) for(ll i=(l);i<(r);i++) #define per(i,n) for(ll i=n-1;i>=0;i--) #define lper(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define mp make_pair #define all(x) (x).begin(),(x).end() ...
a.cc: In function 'int main()': a.cc:28:26: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 28 | cout <<A.at(0)<<B.at(0)>>C.at(0)<< endl; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ | ...
s487546517
p03860
C++
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false); cin.tie(0); #define FOR(i,s,n) for(int i = s; i < (n); i++) #define REP(i,n) FOR(i,0,n) #define ALL(n) (n).begin(), (n).end() #define RALL(n) (n).rbegin(), (n).rend() #define ATYN(n) cout << ( (n) ? "Yes":"No") << '\n'; #define CFYN(...
a.cc: In function 'int main()': a.cc:22:23: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 22 | OUT("A" + s[1][0] + "C") | ^ ~~~ | | | const char [2] a.cc:10:25: note: in definition ...
s126826341
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string x; cin>>x; cout<<"A"<<string.at(0)<<"C"<<endl; }
a.cc: In function 'int main()': a.cc:8:18: error: expected primary-expression before '.' token 8 | cout<<"A"<<string.at(0)<<"C"<<endl; | ^
s358040740
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000],c[1000]; cin >> a >> b >> c; cout << "A" << b[0] << "C"; return 0; if(a==b==c){ cout << 1; } else if(a==b||b==c||c==a){ cout << 2; } else{ cout << e; } }
a.cc: In function 'int main()': a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a==b==c){ | ~~~~^~~ a.cc:15:13: error: 'e' was not declared in this scope 15 | cout << e; | ^
s280075214
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000],c[1000]; cin >> a >> b >> c; cout << "A" << b[0] << "C"; return 0; if(a==b==c){ cout << 1; } else if(a==b||b==c||c==a){ cout << 2; } int e=3; else{ cout << e; } }
a.cc: In function 'int main()': a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a==b==c){ | ~~~~^~~ a.cc:15:3: error: 'else' without a previous 'if' 15 | else{ | ^~~~
s966592535
p03860
C++
#include <bits/stdc++.h> using namespace std; string a; int main() { scanf("AtCoder %s Contest",a); printf("A%cC",b[0]); return 0; }
a.cc: In function 'int main()': a.cc:7:19: error: 'b' was not declared in this scope 7 | printf("A%cC",b[0]); | ^
s759506330
p03860
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String ans = "A" + String.valueOf(c.charAt(8)) + "C"; System.out.println(ans); } }
Main.java:7: error: cannot find symbol String ans = "A" + String.valueOf(c.charAt(8)) + "C"; ^ symbol: variable c location: class Main 1 error
s974199258
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s1,s2 s3; cin >> s2; char c = s2.at(0); cout << 'A' << c << 'C' << endl; }
a.cc: In function 'int main()': a.cc:5:16: error: expected initializer before 's3' 5 | string s1,s2 s3; | ^~ a.cc:6:10: error: 's2' was not declared in this scope; did you mean 's1'? 6 | cin >> s2; | ^~ | s1
s749316630
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; char c = s.at(0); cout << 'A' << c << 'C' }
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before '}' token 9 | cout << 'A' << c << 'C' | ^ | ; 10 | } | ~
s285256768
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string c ; cin >> c; cout << "A" + c.at(0) + "C" << endl; } // が母音であるとき、vowel と、そうでないとき consonant
a.cc: In function 'int main()': a.cc:8:31: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 8 | cout << "A" + c.at(0) + "C" << endl; | ~~~~~~~~~~~~~ ^ ~~~ | | | | const char* const ch...
s166756658
p03860
Java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); sc.close(); String ans = "A"; sc = new Scanner(s); for(int i = 0; i < 2; ++i){ String tmp = sc.next(); } sc.close(); ans += tmp.charAt(0)...
Main.java:15: error: cannot find symbol ans += tmp.charAt(0) + "C"; ^ symbol: variable tmp location: class Main 1 error
s864291954
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:8:12: error: expected identifier before numeric constant 8 | return[0] | ^ a.cc: In lambda function: a.cc:9:1: error: expected '{' before '}' token 9 | } | ^ a.cc: In function 'int main()': a.cc:8:11: error: invalid user-defined conversion from 'ma...
s795196040
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cout << a[0] << b[0] << c[0] << endl; return[0] }
a.cc: In function 'int main()': a.cc:7:12: error: expected identifier before numeric constant 7 | return[0] | ^ a.cc: In lambda function: a.cc:8:1: error: expected '{' before '}' token 8 | } | ^ a.cc: In function 'int main()': a.cc:7:11: error: invalid user-defined conversion from 'ma...
s266046027
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c, cout << a[0] << b[0] << c[0] << endl; }
a.cc: In function 'int main()': a.cc:6:10: error: expected initializer before '<<' token 6 | cout << a[0] << b[0] << c[0] << endl; | ^~
s574785671
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S ; cin >> S; cout << "Atcoder" << S.at(0); << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:37: error: expected primary-expression before '<<' token 8 | cout << "Atcoder" << S.at(0); << "Contest" << endl; | ^~
s323838661
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S, s ; cin >> S; char s = S.at(0); cout << "Atcoder" << "s" << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: conflicting declaration 'char s' 8 | char s = S.at(0); | ^ a.cc:5:13: note: previous declaration as 'std::string s' 5 | string S, s ; | ^
s946495693
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S, s ; cin >> S; char s = S.at(0) cout << "Atcoder" << "s" << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: conflicting declaration 'char s' 8 | char s = S.at(0) | ^ a.cc:5:13: note: previous declaration as 'std::string s' 5 | string S, s ; | ^
s365508227
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S, s ; cin >> S; char s == S.at(0) cout << "Atcoder" << "s" << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: expected initializer before '==' token 8 | char s == S.at(0) | ^~
s129311317
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S, s ; cin >> S; s == S.at(0) cout << "Atcoder" << "s" << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:6: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 8 | s == S.at(0) | ~ ^~ ~~~~~~~ | | | | | ...
s960534120
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; s == S.at(0) cout << "Atcoder" << "s" << "Contest" << endl; }
a.cc: In function 'int main()': a.cc:8:4: error: 's' was not declared in this scope 8 | s == S.at(0) | ^
s091318725
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:7:34: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 7 | string ans = a.at(0) + b.at(0) + c.at(0); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~
s998958017
p03860
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] strs = sc.nextLine();.split(" "); System.out.println("A" + strs[1].charAt(0) + "C"); } }
Main.java:5: error: illegal start of expression String[] strs = sc.nextLine();.split(" "); ^ 1 error
s026603918
p03860
C++
#include<bits/stdc++.h> #define int long long using namespace std; int main(){ int N,x; cin >> N >> x; vector<int> a(N); int loop; for(loop=0;loop<N;loop++){ cin >> a[loop]; } int ans=0,tmp; if(a[0]>x){ ans += a[0]-x; a[0]=x; } for(loop=1;loop<N;loop++){ if(a[loop-1]+a[loop]>x){ tmp = a[loop-1]+a[...
cc1plus: error: '::main' must return 'int'
s623174195
p03860
C++
#include <bits/stdc++> using namespace std; int main() { string str; char c; cin >> str; c = str.at(8); cout << "A" << c << 'C' << endl; }
a.cc:1:10: fatal error: bits/stdc++: No such file or directory 1 | #include <bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s723926813
p03860
C++
#include <bits/stdc++> using namespace std; int main() { string str; char c; cin >> str; c = str.at(8); cout << "A" << c << 'C' << endl; }
a.cc:1:10: fatal error: bits/stdc++: No such file or directory 1 | #include <bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s119336847
p03860
C++
//{{{ #include <bits/stdc++.h> using namespace std; const string truename = "Yes"; const string falsename = "No"; struct IoSetup { IoSetup(){ cin.tie(nullptr); // ios::sync_with_stdio(false); cout << fixed << setprecision(10); cerr << fixed << setprecision(10); }; } ioSetup; //{{{ rep rrep loop #...
a.cc: In function 'int main()': a.cc:161:10: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'in') 161 | a = in(); | ^ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, ...
s691647259
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s;cin>>"Atcoder"<<s<<"Contest"; cout<<"A"<<(char)toupper(s[0])<<"C"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:15: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]') 5 | string s;cin>>"Atcoder"<<s<<"Contest"; | ~~~^~~~~~~~~~~ | | | | | const char [8] |...
s932245390
p03860
C++
#pragma gcc optimize("Ofast") #include <bits/stdc++.h> using namespace std; using ll = long long; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(V) (V).begin(),(V).end() #define SORT(V) sort(ALL(V)) //小さい方からソート #define REV(V) reverse(ALL(V)) //リバース #define RSORT(V) SOR...
a.cc: In function 'int main()': a.cc:62:15: error: could not convert 'y' from 'long long int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'} 62 | OUT("A"+gCh(y,0)+"C"); | ^ | | | long long int a.cc:27:24: note: in definition of macro 'OUT' 2...
s751980566
p03860
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next().substring(0,1); String s = sc.next().substring(0,1); String c = sc.next().substring(0,1); System.out.println(a + x + c); } }
Main.java:11: error: cannot find symbol System.out.println(a + x + c); ^ symbol: variable x location: class Main 1 error
s222367250
p03860
C++
#include <bits/stdc++.h> using namespace std; int main () { string a, b, c; cin >> a >> b >> c; cout << "A" << b.t(0) << "C" << endl; }
a.cc: In function 'int main()': a.cc:8:22: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 't'; did you mean 'at'? 8 | cout << "A" << b.t(0) << "C" << endl; | ^ | at
s378506540
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a>>b>>c; cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl; }
a.cc: In function 'int main()': a.cc:10:17: error: request for member 'at' in 'a', which is of non-class type 'int' 10 | cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl; | ^~ a.cc:10:26: error: request for member 'at' in 'b', which is of non-class type 'int' 10 | cout<<a.at(0)<<b.at(0)...
s829017031
p03860
C
#include <stdio.h> int main(void){ char Su[120],bin[255]; scanf("&s%s&s",Su[],Su[],bin[]); printf("A%sC",Su[8]); return 0; }
main.c: In function 'main': main.c:4:27: error: expected expression before ']' token 4 | scanf("&s%s&s",Su[],Su[],bin[]); | ^
s215499789
p03860
C
#include<stdio.h> int main(void){ int a,b,x,i; scanf("%d %d %d",&a,&b,&x); i = (b - a) / x printf("%d",i); return 0; }
main.c: In function 'main': main.c:5:18: error: expected ';' before 'printf' 5 | i = (b - a) / x | ^ | ; 6 | printf("%d",i); | ~~~~~~
s110211579
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]<<"\n"; return 0; }
a.cc: In function 'int main()': a.cc:7:20: error: expected primary-expression before '>' token 7 | cin>>a>>b>>>c; | ^
s969815229
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,s; int b; cin >> a ; for(int i = 0;i < i.size();i++){ if (b){ s=a.at(i); break; } if(a.at(i) == ' ') b=1; } cout << "A" << s << "C" << endl; }
a.cc: In function 'int main()': a.cc:8:21: error: request for member 'size' in 'i', which is of non-class type 'int' 8 | for(int i = 0;i < i.size();i++){ | ^~~~
s769279149
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,s; int b; cin >> a ; for(int i = 0;i < i.size();i++){ if (b){ s=a.at(i); break; } if(a.at(i) == ' ') b=1; } cout >> "A" >> s >> "C" >> endl; }
a.cc: In function 'int main()': a.cc:8:21: error: request for member 'size' in 'i', which is of non-class type 'int' 8 | for(int i = 0;i < i.size();i++){ | ^~~~ a.cc:16:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [2...
s146001734
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:8: error: expected unqualified-id before '>>' token 5 | string >>a>>b>>c>>; | ^~ a.cc:6:6: error: 'a' was not declared in this scope 6 | cin>>a>>b>>c>>; | ^ a.cc:6:9: error: 'b' was not declared in this scope 6 | cin>>a>>b>>c>>; | ...
s476103180
p03860
C++
#include<iostream> using namespace std; int main(){ string S; char c; cin >> S; /*for('A'>S[0] || 'Z'<S[0]){ cin >>S; if('A'<S[0] && 'Z'>S[0])break; } */ cout <<"AtCoder "<< S << " Contest"<<endl; c = S.at(0); cout <<'A' << <<'C' <<endl; }
a.cc: In function 'int main()': a.cc:18:24: error: expected primary-expression before '<<' token 18 | cout <<'A' << <<'C' <<endl; | ^~
s885924020
p03860
C++
#include<iostream> using namespace std; int main(){ string S; for('A'>S[0] || 'Z'<S[0]){ cin >>S; if('A'<S[0] && 'Z'>S[0])break; } cout <<"AtCoder "<< S << " Contest"<<endl; cout <<'A' << S.at(0) <<'C' <<endl; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ';' before ')' token 7 | for('A'>S[0] || 'Z'<S[0]){ | ^ | ; a.cc:14:43: error: expected ')' before ';' token 14 | cout <<'A' << S.at(0) <<'C' <<endl; | ...
s811701368
p03860
C++
#include<iostream> using namespace std; int main(){ string S; /*for('A'>S[0] || 'Z'<S[0]){ cin >>S; if('A'<S[0] && 'Z'>S[0])break; } */ cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:12:39: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '<unresolved overloaded function type>') 12 | cout <<"AtCoder %s Contest",S <<endl; | ~~^~~~~~ In file included ...
s129788878
p03860
C++
#include<iostream> using namespace std; int main(){ string S; for('A'>S[0] || 'Z'<S[0]){ cin >>S; if('A'<S[0] && 'Z'>S[0])break; } cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ';' before ')' token 7 | for('A'>S[0] || 'Z'<S[0]){ | ^ | ; a.cc:12:39: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<ch...
s379420555
p03860
C++
#include<iostream> using namespace std; int main(){ string S; for('A'>S[0] || 'Z'<S[0]){ cin >>S; if('A'<S[0] && 'Z'>S[0])break; } cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ';' before ')' token 7 | for('A'>S[0] || 'Z'<S[0]){ | ^ | ; a.cc:12:39: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<ch...
s923039586
p03860
C++
#include<iostream> using namespace std; int main(){ string S; /*for('A'>S[0] || 'Z'<S[0]){ cin >>s2; if('A'<S[0] && 'Z'>S[0])break; } */ cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:12:39: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '<unresolved overloaded function type>') 12 | cout <<"AtCoder %s Contest",S <<endl; | ~~^~~~~~ In file included ...
s351080097
p03860
C++
#include<iostream> using namespace std; int main(){ string S; for('A'>S[0] || 'Z'<S[0]){ cin >>s2; if('A'<S[0] && 'Z'>S[0])break; } cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ';' before ')' token 7 | for('A'>S[0] || 'Z'<S[0]){ | ^ | ; a.cc:12:39: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<ch...
s226214371
p03860
C++
#include<iostream> using namespace std; int main(){ string S for('A'>S[0] || 'Z'<S[0]){ cin >>s2; if('A'<S[0] && 'Z'>S[0])break; } cout <<"AtCoder %s Contest",S <<endl; cout <<"A%cC",S.at(0) <<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: expected initializer before 'for' 7 | for('A'>S[0] || 'Z'<S[0]){ | ^~~ a.cc:12:37: error: 'S' was not declared in this scope 12 | cout <<"AtCoder %s Contest",S <<endl; | ^
s875095002
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c, x; cin >> a >> b >> c; x = "aaa" x.at(0) = a.at(0); x.at(1) = b.at(0); x.at(2) = c.at(0); cout << x << endl; }
a.cc: In function 'int main()': a.cc:8:12: error: expected ';' before 'x' 8 | x = "aaa" | ^ | ; 9 | x.at(0) = a.at(0); | ~
s115655192
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; char x, y, z; cin >> a >> b >> c; x = a.at(0); y = b.at(0); z = c.at cout << x + y + z << endl; }
a.cc: In function 'int main()': a.cc:11:9: error: cannot resolve overloaded function 'at' based on conversion to type 'char' 11 | z = c.at | ^~
s011854801
p03860
C++
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ char c; scanf("%*s %c",&d); printf("A%cC\n",c); return 0; }
a.cc: In function 'int main()': a.cc:8:33: error: 'd' was not declared in this scope 8 | char c; scanf("%*s %c",&d); | ^
s642418888
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string r,s,t; cin >> r >> s >> t; cout >> 'A' >> s.at(0) >> 'C' >> endl; }
a.cc: In function 'int main()': a.cc:6:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char') 6 | cout >> 'A' >> s.at(0) >> 'C' >> endl; | ~~~~ ^~ ~~~ | | | | | char | std::ostream {aka std::basic_ostream<char>...
s623723955
p03860
C++
#includd<bits/stdc++.h> using namespace std; int main(){ string r,s,t; cin >> r >> s >> t; cout >> 'A' >> s.at(0) >> 'C' >> endl; }
a.cc:1:2: error: invalid preprocessing directive #includd; did you mean #include? 1 | #includd<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:4:3: error: 'string' was not declared in this scope 4 | string r,s,t; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined i...
s868778741
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; cout << "A" + S.at(8) + "C" << endl; }
a.cc: In function 'int main()': a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 7 | cout << "A" + S.at(8) + "C" << endl; | ~~~~~~~~~~~~~ ^ ~~~ | | | | const char* const char [2]
s197738688
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:27: error: 'C' was not declared in this scope 7 | cout << "A" + S.at(8) + C << endl; | ^
s362237510
p03860
C++
#include"bits/stdc++.h" #include<boost/multi_array.hpp> #include<boost/optional.hpp> #include<boost/range/irange.hpp> #include<boost/range/algorithm.hpp> #include<boost/range/adaptors.hpp> using namespace std; namespace adaptor = boost::adaptors; #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep3(i,m,n) for(in...
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory 2 | #include<boost/multi_array.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s885097036
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:46: error: expected ';' before '}' token 7 | cout << a.at(0) + b.at(0) + c.at(0) << endl | ^ | ; 8 | } | ~
s269393446
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string ; char c = str.at(0); cout << str + c << endl; // HelloH }
a.cc: In function 'int main()': a.cc:5:3: error: declaration does not declare anything [-fpermissive] 5 | string ; | ^~~~~~ a.cc:7:12: error: 'str' was not declared in this scope; did you mean 'std'? 7 | char c = str.at(0); | ^~~ | std
s874714588
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:8:11: error: extended character ‘ is not valid in an identifier 8 | cout << ‘A’ + x.at(0) + ‘C’ << endl; | ^ a.cc:8:11: error: extended character ’ is not valid in an identifier a.cc:8:27: error: extended character ‘ is not valid in an identifier 8 | cout << ‘A’ + x.at(0) + ‘C’ << endl;...
s626800649
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S>> S; cout << “A“ << S.at(0)<< “C”<< endl; }
a.cc:7:9: error: extended character “ is not valid in an identifier 7 | cout << “A“ << S.at(0)<< “C”<< endl; | ^ a.cc:7:9: 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“ << S.at(0)<< “C”<< endl; |...
s294215273
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s>> s; cout << “A“ << s.at(0)<< “C”<< endl; }
a.cc:7:9: error: extended character “ is not valid in an identifier 7 | cout << “A“ << s.at(0)<< “C”<< endl; | ^ a.cc:7:9: 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“ << s.at(0)<< “C”<< endl; |...
s648663264
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s>> s; cout << “A“ << s.at(0)<< “ C”<< endl; }
a.cc:7:9: error: extended character “ is not valid in an identifier 7 | cout << “A“ << s.at(0)<< “ C”<< endl; | ^ a.cc:7:9: 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“ << s.at(0)<< “ C”<< endl; ...
s960594904
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; char s; cin >> a >> s; cout << A << s << C; }
a.cc: In function 'int main()': a.cc:9:11: error: 'A' was not declared in this scope 9 | cout << A << s << C; | ^ a.cc:9:21: error: 'C' was not declared in this scope 9 | cout << A << s << C; | ^
s293624072
p03860
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String s=sc.next(); char[] c=s.tocharArray(); System.out.println("A"+c[9]+"C"); } }
Main.java:7: error: cannot find symbol char[] c=s.tocharArray(); ^ symbol: method tocharArray() location: variable s of type String 1 error
s499886624
p03860
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String[] s=sc.next(); char[] c=s.tocharArray(); System.out.println("A"+c[9]+"C"); } }
Main.java:6: error: incompatible types: String cannot be converted to String[] String[] s=sc.next(); ^ Main.java:7: error: cannot find symbol char[] c=s.tocharArray(); ^ symbol: method tocharArray() location: variable s of type String[] 2 errors
s474825830
p03860
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String[] s=sc.next().split(" "); char[] c=s[1].tocharArray(); System.out.println("A"+c[1]+"C"); } }
Main.java:7: error: cannot find symbol char[] c=s[1].tocharArray(); ^ symbol: method tocharArray() location: class String 1 error
s779158679
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)<< }
a.cc: In function 'int main()': a.cc:9:1: error: expected primary-expression before '}' token 9 | } | ^
s774987241
p03860
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String[] s=sc.next().split(" "); s[1]=s[1].replaceAll("a-z","A-Z"); char[] answer={s[0].charAt(0),s[1].charAt(1),s.charAt(2)}; String ans=String.valueOf(answer); System.out....
Main.java:8: error: cannot find symbol char[] answer={s[0].charAt(0),s[1].charAt(1),s.charAt(2)}; ^ symbol: method charAt(int) location: variable s of type String[] 1 error
s764733067
p03860
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String[] s=sc.next().split(" "); s[1]=s[1].replaceAll("a-z","A-Z"); String ans=s[0].charAt(0)+s[1].charAt(1)+s.charAt(2); System.out.println(ans); } }
Main.java:8: error: cannot find symbol String ans=s[0].charAt(0)+s[1].charAt(1)+s.charAt(2); ^ symbol: method charAt(int) location: variable s of type String[] 1 error
s895139641
p03860
C++
#include<cstdio> #include<iostream> using namespace std; long long a[100005]; int main() { long long n,x,t; while(~scanf("%lld%lld",&n,&x)) { long long sum = 0; a[0] = 0; for(int i = 1; i <= n; i++) { scanf("%lld",&a[i]); if(a[i] + a[i-1] > x) ...
a.cc: In function 'int main()': a.cc:21:43: error: expected primary-expression before '/' token 21 | t = a[i] + a[i-1] - x; / / the number of the difference from the previous value | ^ a.cc:21:45: error: expected primary-expression before '/' token ...
s592836809
p03860
C++
#include<cstdio> #include<iostream> using namespace std; long long a[100005]; int main() { long long n,x,t; while(~scanf("%lld%lld",&n,&x)) { long long sum = 0; a[0] = 0; for(int i = 1; i <= n; i++) { scanf("%lld",&a[i]); if(a[i] + a[i-1] > x) ...
a.cc: In function 'int main()': a.cc:21:43: error: expected primary-expression before '/' token 21 | t = a[i] + a[i-1] - x; / / the number of the difference from the previous value | ^ a.cc:21:45: error: expected primary-expression before '/' token ...
s045910003
p03860
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; string ans == ""; ans += a.at(0); ans += b.at(0); ans += c.at(0); cout << ans << endl; }
a.cc: In function 'int main()': a.cc:7:14: error: expected initializer before '==' token 7 | string ans == ""; | ^~ a.cc:8:3: error: 'ans' was not declared in this scope; did you mean 'abs'? 8 | ans += a.at(0); | ^~~ | abs
s765099802
p03860
C++
#include <stdio.h> #include <string.h> int main () { char str[101]; gets (str); printf("A%cC", str[0]); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets (str); | ^~~~ | getw
s867380968
p03860
C++
#include <stdio.h> int main () { char str[101]; gets (str); printf("A%cC", str[0]); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets (str); | ^~~~ | getw
s892246530
p03860
C++
#include <stdio.h> #include <cmath> #include <cstring> int main(){ char s[135]={0}; gets(s); printf("A%cC", s[8]); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw
s578130577
p03860
C++
#include <stdio.h> #include <cmath> #include <cstring> int main(){ char s[135]={0}; gets(s); printf("A%cC", s[8]); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw
s269408178
p03860
C++
#include <stdio.h> #include <cmath> int main(){ char s[135]={0}; gets(s); printf("A%cC", s[8]); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(s); | ^~~~ | getw
s077082763
p03860
C
#include <stdio.h> #include <cmath> int main(){ char s[135]={0}; gets(s); printf("A%cC", s[8]); return 0; }
main.c:2:10: fatal error: cmath: No such file or directory 2 | #include <cmath> | ^~~~~~~ compilation terminated.
s954935360
p03860
C++
#include <stdio.h> #include <cmath> int main(){ char s[135]={0}; gets(s); printf("A%cC", s[8]); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(s); | ^~~~ | getw
s521429379
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; string res = "A"; getline(cin, s); for(uint i = 7; i < s.size(); i++) { if(s.at(i) >= 'A' && s.at(i) <= 'Z') { res += s.at(i); res += "C" break; } } cout << res << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:17: error: expected ';' before 'break' 14 | res += "C" | ^ | ; 15 | break; | ~~~~~
s829813246
p03860
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long int a,b,x; cin >> a >> b >> x; if((b-a+1)>x){ long long int ans = (b-a)/x; if(a%x==0&&b%x==0) ans++; cout << ans << endl;} else if((b-a+1)=x) cout <...
a.cc: In function 'int main()': a.cc:11:23: error: lvalue required as left operand of assignment 11 | else if((b-a+1)=x) cout << 1 << endl;) | ~~~~^~~ a.cc:11:48: error: expected primary-expression before ')' token 11 | else if((b-a+1)=x) cout << 1 << endl;) | ...
s766896214
p03860
C++
#include <stdio.h> #include <cstring> int main(){ char x[]={0}; gets(x); ptintf("A%sC", x[9]); return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(x); | ^~~~ | getw a.cc:6:5: error: 'ptintf' was not declared in this scope; did you mean 'printf'? 6 | ptintf("A%sC", x[9]); | ^~~~~~ | printf
s033735865
p03860
C++
#include<bits/stdc++.h> using namespace std; #define ll long long // long long省略 #define pb push_back // push_back省略 #define mp make_pair // make_pair省略 #define fi first // fir...
a.cc: In function 'int main()': a.cc:30:5: error: 'stirng' was not declared in this scope 30 | stirng a,b,c;cin>>a>>b>>c; | ^~~~~~ a.cc:30:23: error: 'a' was not declared in this scope 30 | stirng a,b,c;cin>>a>>b>>c; | ^ a.cc:30:26: error: 'b' was not declared in this...
s068799154
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; char x; x = a.at(7); string A, C cout << A + x + C << endl; }
a.cc: In function 'int main()': a.cc:10:3: error: expected initializer before 'cout' 10 | cout << A + x + C << endl; | ^~~~
s968137547
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; char x; x = a.at(7); cout << A + x + C << endl; }
a.cc: In function 'int main()': a.cc:9:11: error: 'A' was not declared in this scope 9 | cout << A + x + C << endl; | ^ a.cc:9:19: error: 'C' was not declared in this scope 9 | cout << A + x + C << endl; | ^
s027813102
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; x = a.at(7); cout << A + x + C << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'x' was not declared in this scope 7 | x = a.at(7); | ^ a.cc:8:11: error: 'A' was not declared in this scope 8 | cout << A + x + C << endl; | ^ a.cc:8:19: error: 'C' was not declared in this scope 8 | cout << A + x + C << endl; ...
s916518951
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { str a; cin >> a; x = a.at(7); cout << A + x + C << endl; }
a.cc: In function 'int main()': a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'? 5 | str a; | ^~~ | std a.cc:6:10: error: 'a' was not declared in this scope 6 | cin >> a; | ^ a.cc:7:3: error: 'x' was not declared in this scope 7 | x = a.at(7); ...
s253532108
p03860
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main(){ string s; cin>>s; cout<<'A'<<s[0]<<'C' return 0; }
a.cc: In function 'int main()': a.cc:7:25: error: expected ';' before 'return' 7 | cout<<'A'<<s[0]<<'C' | ^ | ; 8 | return 0; | ~~~~~~
s842400413
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string C; cin >> C; char c = C.at(8); cout << "A" + c + "C" <<endl; }
a.cc: In function 'int main()': a.cc:10:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 10 | cout << "A" + c + "C" <<endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s354232355
p03860
C++
#include <bits/stdc++.h> using namespace std; int main() { string C; cin >> C; char c = C.at(9); cout << "A" + c + "C" <<endl; }
a.cc: In function 'int main()': a.cc:10:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 10 | cout << "A" + c + "C" <<endl; | ~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*