submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s332431634
p03729
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[length(a)-1]==b[0]&&b[length(b)-1]==c[0]) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:7:8: error: 'length' was not declared in this scope 7 | if(a[length(a)-1]==b[0]&&b[length(b)-1]==c[0]) | ^~~~~~
s504963953
p03729
C++
#include<iostream> #include<string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[len(a)-1]==b[0]&&b[len(b)-1]==c[0]) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:7:8: error: 'len' was not declared in this scope; did you mean 'mblen'? 7 | if(a[len(a)-1]==b[0]&&b[len(b)-1]==c[0]) | ^~~ | mblen
s442741506
p03729
C++
#include<iostream> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[len(a)-1]==b[0]&&b[len(b)-1]==c[0]) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:8: error: 'len' was not declared in this scope; did you mean 'mblen'? 6 | if(a[len(a)-1]==b[0]&&b[len(b)-1]==c[0]) | ^~~ | mblen
s116390683
p03729
C++
#include <iostream> #include <string> using namespace std; int main() { string x,y,z,a,b; cin>>x>>y>>z; a=x.size()-1; b=y.size()-1; if(x[a]==y[0] && y[b]==z[0]) cout<<"YES\n"; else cout<<"NO\n"; return 0; }
a.cc: In function 'int main()': a.cc:10:13: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if(x[a]==y[0] && y[b]==z[0]) cout<<"YES\n"; | ^ In file included from /usr/...
s153991603
p03729
C++
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #inc...
a.cc: In function 'int main()': a.cc:63:35: error: expected '}' at end of input 63 | else cout << "NO" << endl; | ^ a.cc:57:12: note: to match this '{' 57 | int main() { | ^
s762210385
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() { string, a, b, c; cin >> a >> b >> c; if(a.at(a.size()-1) == b.at(0) && b.at(b.size()-1) == c.at(0)) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:8: error: expected unqualified-id before ',' token 5 | string, a, b, c; | ^
s477057806
p03729
Java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); String af=a.subs...
Main.java:12: error: illegal start of expression String af=a.substring(a.length()-1,); ^ Main.java:14: error: illegal start of expression String bf=b.substring(b.length()-1,); ^ 2 errors
s095873786
p03729
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define INF (int)1e9+7 #define rep(i,a,b) for(int i=a;i<b;++i) #define rrep(i,a,b) for(int i=a;i>=b;--i) #define vi vector<int> #define vl vector<ll> #define vvi vector<vector<int>> #define vvl vector<vector<long long>> #define pii pair<int,int> #defi...
a.cc: In function 'int main()': a.cc:61:7: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >') 61 | if(a[a.end()-1]==b[b.begin()]&&b[b.end()-1]==c[c.begin()])cout<<"YES"<<"\n"; ...
s997069910
p03729
C++
#include <iostream> #include <bitset> #include <vector> #include <string> #include <algorithm> #include <set> #include <map> #include <cmath> #include <regex> using namespace std; using ll = long long int; using dd = long double; const ll MOD = 1e9 + 7; vector<string> dfs(string s, ll depth, vector<char> symbol) { ...
a.cc: In function 'int main()': a.cc:49:63: error: expected ',' or ';' before ')' token 49 | bool ok = (a.back() == b.front()) && b.back() == c.front()); | ^
s129931556
p03729
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { string a, b, c; cin >> a >> b >> c; string ar = reverse(a.begin(), a.end()); string br = reverse(b.begin(), b.end()); if (ar.at(0) == b.at(0) && br.at(0) == c.at(0)) cout << "YES" << endl; else cout << ...
a.cc: In function 'int main()': a.cc:8:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 8 | string ar = reverse(a.begin(), a.end()); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ a.cc:9:22: error: conversion from 'void' to non-scalar type 's...
s523799668
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a, b, c; cin >> a >> b >> c; if(a.at(size() - 1) == b.at(0) && b.at(size() - 1) == c.at(0)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: no matching function for call to 'size()' 8 | if(a.at(size() - 1) == b.at(0) && b.at(size() - 1) == c.at(0)) | ~~~~^~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /u...
s840334974
p03729
Java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String a = sc.nextString(); String b = sc.nextString(); String c = sc.nextString(); if (a.charAt(a.length() - 1) == b.charAt(0)) { if (b.charAt(b.length() - 1) == c.charA...
Main.java:6: error: cannot find symbol String a = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner Main.java:7: error: cannot find symbol String b = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scan...
s643512168
p03729
C++
a, b, c = input().split() print("YES" if a[-1] == b[0] and b[-1] == c[0] else "NO")
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = input().split() | ^
s652387642
p03729
C++
include <iostream>; using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; cout<<(a[a.size()-1]==b[0]&&b[b.size()]==c[0]?"YES":"NO")<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream>; | ^~~~~~~ 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:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding ...
s497009435
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; if (a.at(a.aize() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) { cout << "YES" << endl; } else { cout << "NO" << 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 'aize'; did you mean 'size'? 7 | if (a.at(a.aize() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) { | ^~~~ | size
s416605335
p03729
C++
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD=1e9+7; int main() { string a,b,c; cin>>a>>b>>c; int la=a.size(),lb=b.size(),lc=c.size(); if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; else cout<<"...
a.cc: In function 'int main()': a.cc:11:8: error: 'ia' was not declared in this scope; did you mean 'la'? 11 | if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; | ^~ | la
s759556529
p03729
C++
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD=1e9+7; int main() { string a,b,s; cin>>a>>b>>c; int la=a.size(),lb=b.size(),lc=c.size(); if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; else cout<<"...
a.cc: In function 'int main()': a.cc:9:14: error: 'c' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:11:8: error: 'ia' was not declared in this scope; did you mean 'la'? 11 | if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; | ^~ | la
s876662260
p03729
C++
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD=1e9+7; int main() { string a,b,s; cin>>a>>b>>c; int la=a.size(),lb=b.size(),lc=c.size(); if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; else coutNN"...
a.cc: In function 'int main()': a.cc:9:14: error: 'c' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:11:8: error: 'ia' was not declared in this scope; did you mean 'la'? 11 | if(a[ia-1]==b[0] && b[lb-1]==c[0]) cout<<"YES"<<endl; | ^~ | la a.cc:12:8: err...
s097767164
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; int N=A.size(); int M=B.size(); if(A.at(N-1)!=B.at(0)) cout<<"NO"<<endl; ellse{ if(B.at(M-1)!=C.at(0)) cout<<"NO"<<endl; else cout<<"YES"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:3: error: 'ellse' was not declared in this scope 10 | ellse{ | ^~~~~
s659891239
p03729
C++
#include <iostream> #include <stirng> using namespace std; int main() { string a,b,c; cin >> a >> b >> c; if(a[a.length()] == b[0] and b[b.length()] == c[0]){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc:2:10: fatal error: stirng: No such file or directory 2 | #include <stirng> | ^~~~~~~~ compilation terminated.
s966873842
p03729
C++
a,b,c=input().split() if a[len(a)-1]==b[0] and b[len(b)-1]==c[0]: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=input().split() | ^
s549809681
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; a=A.size(); if(A.at(a-1)==B.at(0)&&B.at(0)==C.at(0)){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:4: error: 'a' was not declared in this scope 7 | a=A.size(); | ^
s660520959
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; int a; int a=A.size(); if(A.at(a-1)==B.at(0)&&B.at(0)==C.at(0)){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:7: error: redeclaration of 'int a' 7 | int a=A.size(); | ^ a.cc:6:7: note: 'int a' previously declared here 6 | int a; | ^
s995797261
p03729
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s,t,u; cin >> s >> y >> u; if(s[s.size()-1]==t[0]&&t[t.size()-1]==u[0]){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:15: error: 'y' was not declared in this scope 7 | cin >> s >> y >> u; | ^
s661727738
p03729
Java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); if(a.charAt(a.length()-1) == b.charAt(0) && b.charAt(b.length()-1)==c.charAt(0)) ...
Main.java:12: error: illegal start of type }else{ ^ Main.java:16: error: class, interface, enum, or record expected } ^ 2 errors
s764957512
p03729
C++
#include <bits/stdc++.h> using ll = long long; #define FOR(i, k, n) for(ll i = (k); i < (n); i++) #define FORe(i, k, n) for(ll i = (k); i <= (n); i++) #define FORr(i, k, n) for(ll i = (k)-1; i > (n); i--) #define FORre(i, k, n) for(ll i = (k)-1; i >= (n); i--) #define REP(i, n) FOR(i, 0, n) #define REPr(i, n) FORre(i, ...
a.cc: In function 'int main()': a.cc:20:13: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to binary 'operator==' 20 | if(a.back == b[0] && b.back == c[0]) cout << "YES" << endl; a.cc:20:31: error: invali...
s037097712
p03729
C
#include<stdio.h> #include<string.h> int main() { char* a = new char[11]; char* b = new char[11]; char* c = new char[11]; scanf("%s %s %s", a, b, c); if((a[strlen(a) - 1] == b[0]) && (b[strlen(b) - 1] == c[0])) { printf("YES"); } else { printf("NO"); } return 0; }
main.c: In function 'main': main.c:6:15: error: 'new' undeclared (first use in this function) 6 | char* a = new char[11]; | ^~~ main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in main.c:6:19: error: expected ',' or ';' before 'char' 6 | ...
s113492189
p03729
C
#include<cstdio> #include<cstring> int main() { char* a = new char[11]; char* b = new char[11]; char* c = new char[11]; scanf("%s %s %s", a, b, c); if((a[strlen(a) - 1] == b[0]) && (b[strlen(b) - 1] == c[0])) { printf("YES"); } else { printf("NO"); } return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s671435414
p03729
C
#include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 char a[11],b[11],c[11]; 6 7 scanf("%s%s%s",a,b,c); 8 int anagasa = strlen(a); 9 int bnagasa = strlen(b); 10 11 if(a[anagasa-1]==b[0] && b[bnagasa-1]==c[0]) 12 printf("YES\n"); 13 else 14 printf("NO\n"); 15 ...
main.c:2:3: error: expected identifier or '(' before numeric constant 2 | 2 #include <string.h> | ^ main.c:2:5: error: stray '#' in program 2 | 2 #include <string.h> | ^
s951377807
p03729
C++
#include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 char a[11],b[11],c[11]; 6 7 scanf("%s%s%s",a,b,c); 8 int anagasa = strlen(a); 9 int bnagasa = strlen(b); 10 11 if(a[anagasa-1]==b[0] && b[bnagasa-1]==c[0]) 12 printf("YES\n"); 13 else 14 printf("NO\n"); 15 ...
a.cc:2:5: error: stray '#' in program 2 | 2 #include <string.h> | ^ a.cc:2:3: error: expected unqualified-id before numeric constant 2 | 2 #include <string.h> | ^
s586759918
p03729
C++
#include <stdio.h> #include <string.h> int main(void) { char A[11], B[11], C[11]; scanf("%s%s%s", A, B, C); int ae = strlen(A); //Aの文字数 int be = strlen(B); //Bの文字数 if (A[ae-1]==b[0] && b[be-1]==c[0]) printf("YES\n"); else printf("NO\n")...
a.cc: In function 'int main()': a.cc:13:22: error: 'b' was not declared in this scope 13 | if (A[ae-1]==b[0] && b[be-1]==c[0]) | ^ a.cc:13:39: error: 'c' was not declared in this scope 13 | if (A[ae-1]==b[0] && b[be-1]==c[0]) | ...
s506846804
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[11], B[11], C[11]; scanf("%s%s%s", A, B, C); int ae = strlen(A); //Aの文字数 int be = strlen(B); //Bの文字数 if (A[ae-1]==b[0] && b[be-1]==c[0]) printf("YES\n") else printf("NO\n");...
main.c: In function 'main': main.c:13:22: error: 'b' undeclared (first use in this function) 13 | if (A[ae-1]==b[0] && b[be-1]==c[0]) | ^ main.c:13:22: note: each undeclared identifier is reported only once for each function it appears in main.c:13:39: error: 'c' undeclared (first ...
s101930402
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[11], B[11], C[11]; scanf("%s%s%s", A, B, C); int ae = strlen(A); //Aの文字数 int be = strlen(B); //Bの文字数 if (A[ae-1]==b[0] && b[be-1]==c[0]) printf("YES\n") else printf("NO\n");...
main.c: In function 'main': main.c:13:22: error: 'b' undeclared (first use in this function) 13 | if (A[ae-1]==b[0] && b[be-1]==c[0]) | ^ main.c:13:22: note: each undeclared identifier is reported only once for each function it appears in main.c:13:39: error: 'c' undeclared (first ...
s393331006
p03729
C
#include<stdio.h> #include<string.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); if (((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0]))) printf("YES\n") else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:10:19: error: expected ';' before 'else' 10 | printf("YES\n") | ^ | ; 11 | else printf("NO\n"); | ~~~~
s734360333
p03729
C
#include<stdio.h> #include<string.h> int main(void) { char a[11],b[11],c[11]; int ar,br,cr; scanf("%s%s%s",a,b,c); ar=strlen(a); br=strlen(b); cr=strlen(c); if((a[ar-1]==b[0])&&(b[br-1]==c[0])) printf("Yes\n"); else printf("No\n"); return 0; } ~
main.c:17:1: error: expected identifier or '(' before '~' token 17 | ~ | ^
s501320398
p03729
C++
#include<stdio.h> #include<string.h> int main(void) { char A[10],B[10],C[10]; int a,b; scanf("%s%s%s",A,B,C); a = strlen(A); b = strlen(B); if((A[a-1] == B[0])&&(B[b-1] == C[0])) printf("YES\n"); else printf("NO\n"); retun 0; }
a.cc: In function 'int main()': a.cc:15:3: error: 'retun' was not declared in this scope 15 | retun 0; | ^~~~~
s008308378
p03729
C
#include<stdio.h> #include<string.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:9:35: error: expected identifier before '(' token 9 | if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) | ^
s766729757
p03729
C
#include<stdio.h> int main() { char A[11],B[11],C[11]; scanf("%s%s%s",A,B,C); if((A[10]==B[0])&&(B[10]==C[0])) printf("YES") else printf("NO"); return 0; }
main.c: In function 'main': main.c:8:20: error: expected ';' before 'else' 8 | printf("YES") | ^ | ; 9 | else | ~~~~
s272834348
p03729
C
#include <stdio.h> #include <string.h> int main() { int i,j; char A[11],B[11],C[11]; scanf("%s%s%s",A,B,C); i=strlen(A)-1; j=strlen(B)-1; if(A[i]==B[0]&&B[j]==C[0]) printf("YES\n"); else printf("NO\n"); return 0; } ~ ...
main.c:16:1: error: expected identifier or '(' before '~' token 16 | ~ | ^
s767921665
p03729
C
#include<stdio.h> #include<string.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) printf("YES\n") else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:9:35: error: expected identifier before '(' token 9 | if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) | ^
s950276442
p03729
C
#include<stdio.h> int main() { char A[11],B[11],C[11]; scanf("%s%s%s",A,B,C); if((A[9]==B[0])&&(B[9]==C[0])) printf("YES") else printf("NO"); }
main.c: In function 'main': main.c:8:20: error: expected ';' before 'else' 8 | printf("YES") | ^ | ; 9 | else | ~~~~
s015366582
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[11],B[11],C[11]; int a,b; scanf("%s%s%s", A, B, C); a=strlen(A); b=strlen(B); if((A[a-1]==B[0])&&(B[b-1]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:13:33: error: 'c' undeclared (first use in this function) 13 | if((A[a-1]==B[0])&&(B[b-1]==c[0])) | ^ main.c:13:33: note: each undeclared identifier is reported only once for each function it appears in
s200882457
p03729
C++
#include <stdio.h> #include <string.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a[],b[],c[]); if( a[strlen(a)-1] == b[0] && b[strlen(b)-1] == c[0] ) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: expected primary-expression before ']' token 8 | scanf("%s%s%s",a[],b[],c[]); | ^ a.cc:8:25: error: expected primary-expression before ']' token 8 | scanf("%s%s%s",a[],b[],c[]); | ^ a.cc:8:29: error: ...
s340955395
p03729
C
#include<stdio.h> #include<string.h> int main(void) { char a[11],b[11],c[11]; scanf("%s%s%s",a,b,c); if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) printf("Yes\n"); else printf("No\n"); return 0; }
main.c: In function 'main': main.c:9:35: error: expected identifier before '(' token 9 | if ((a[strlen(a)-1])==(b[0]))&&((b[strlen(b)-1])==(c[0])) | ^
s517310194
p03729
C++
#include<stdio.h> #include<string.h> int mailn(void){ char A[100],B[100],C[100]; scanf("%s%s%s",A,B,C); x=strlen(A); y=strlen(b); z=strlen(C); if(A[x-1]==B[0] && B[y-1]==C[0]) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int mailn()': a.cc:6:2: error: 'x' was not declared in this scope 6 | x=strlen(A); | ^ a.cc:7:2: error: 'y' was not declared in this scope 7 | y=strlen(b); | ^ a.cc:7:11: error: 'b' was not declared in this scope 7 | y=strlen(b); | ^ a.cc:8:2: error: 'z' w...
s977497210
p03729
C
#include<stdio.h> int main() { char A[11],B[11],C[11]; scanf("%s%s%s",A,B,C); if((A[9]==B[0])&&(B[9]==C[0])) printf("Yes"); else printf("No"); return 0; } ~
main.c:13:1: error: expected identifier or '(' before '~' token 13 | ~ | ^
s894556557
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[11],B[11],C[11]; int a,b,c; scanf("%s%s%s",A,B,C); a=strlen(A); b=strlen(B); c=strlen(C); if((A[a-1]==B[0])&&(B[b-1]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:13:34: error: subscripted value is neither array nor pointer nor vector 13 | if((A[a-1]==B[0])&&(B[b-1]==c[0])) | ^
s941968278
p03729
C
int main(void) { char A[11],B[11],C[11]; int a,b,c; scanf("%s%s%s",A,B,C); a=strlen(A); b=strlen(B); c=strlen(C); if((A[a]==B[0])&&(B[b]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | scanf("%s%s%s",A,B,C); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(void) main.c:6:5: warning: ...
s217478992
p03729
C++
int main(void) { char A[11],B[11],C[11]; int a,b,c; scanf("%s%s%s",A,B,C); a=strlen(A); b=strlen(B); c=strlen(C); if((A[a]==B[0])&&(B[b]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'scanf' was not declared in this scope 6 | scanf("%s%s%s",A,B,C); | ^~~~~ a.cc:8:7: error: 'strlen' was not declared in this scope 8 | a=strlen(A); b=strlen(B); c=strlen(C); | ^~~~~~ a.cc:1:1: note: 'strlen' is defined in header '<cs...
s591309853
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[11],B[11],C[11]; int a,b,c; scanf("%s%s%s",&A,&B,&C); a=strlen(A); b=strlen(B); c=strlen(C); if((A[a]==B[0])&&(B[b]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:13:30: error: subscripted value is neither array nor pointer nor vector 13 | if((A[a]==B[0])&&(B[b]==c[0])) | ^
s023383526
p03729
C
#include<stdio.h> #include<string.h> int main(void) { int a,b; char A[11],B[11],C[11]; scanf("%s%s%s", &A, &B, &C); a=strlen(chat *A); b=strlen(chat *B); if((A[a]==B[0]) && (B[b]==C[0])) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:11:13: error: 'chat' undeclared (first use in this function); did you mean 'char'? 11 | a=strlen(chat *A); | ^~~~ | char main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
s550866055
p03729
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String A=sc.next(),B=sc.next(),C=sc.next(); if(A.charAt((A.length()-1)==B.charAt(0)) && (B.charAt(B.length()-1)==C.charAt(0))){ System.out.println("YES"); }else{ System.out....
Main.java:7: error: incompatible types: boolean cannot be converted to int if(A.charAt((A.length()-1)==B.charAt(0)) && (B.charAt(B.length()-1)==C.charAt(0))){ ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
s660974606
p03729
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1e18; const ll MOD = 1e9 + 7; #define all(v) v.begin(), v.end() #define repi(i, n, init) for (ll i = init; i < (n); i++) #define repd(i, n, init) for (ll i = (n); i >= init; i--) #define repm(i, m) for (auto i = m.begin(); i != m.end(); ...
a.cc: In function 'int main()': a.cc:15:97: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 15 | cout << (A.at(A.length() - 1) == B.at(0) && B.at(B.length() - 1) == C.at(0)) ? "YES" : "NO" << endl; | ...
s332423864
p03729
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1e18; const ll MOD = 1e9 + 7; #define all(v) v.begin(), v.end() #define repi(i, n, init) for (ll i = init; i < (n); i++) #define repd(i, n, init) for (ll i = (n); i >= init; i--) #define repm(i, m) for (auto i = m.begin(); i != m.end(); ...
a.cc: In function 'int main()': a.cc:14:9: error: no match for 'operator>>' (operand types are '<unresolved overloaded function type>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 14 | sin >> A >> B >> C; | ~~~~^~~~ In file included from /usr/include/c++/14/string:54, fr...
s059727946
p03729
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a[a.length-1] == b[0] && b[b.length-1] == c[0]){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: request for member 'length' in 'a', which is of non-class type 'int' 6 | if(a[a.length-1] == b[0] && b[b.length-1] == c[0]){ | ^~~~~~ a.cc:6:24: error: invalid types 'int[int]' for array subscript 6 | if(a[a.length-1] == b[0] && b[b.length-1] ...
s485578777
p03729
C++
// include // ------------------------------------------------ #include <bits/stdc++.h> #include <vector> #include <algorithm> #include <math.h> using namespace std; // func // ------------------------------------------------ int CalcSumOfDigit(int n); // 各桁の和を計算する。 string upper(string str); // 英字を大文字に変換する...
a.cc: In function 'int main()': a.cc:36:8: error: conflicting declaration 'bool b' 36 | bool b = false; | ^ a.cc:34:12: note: previous declaration as 'std::string b' 34 | string a,b,c; | ^
s355174250
p03729
C++
#include <iostream> #include <vector> #include <string> #include <math.h> #include <algorithm> #include <set> #include <iomanip> #include <stdio.h> #include <sstream> #include <string> using namespace std; int main(void){ int a, b, c; cin>>a>>b>>c; if(a[a.length()-1]==b[0]&&b[b.length()-1]==c[0]){ cout<<"YES"...
a.cc: In function 'int main()': a.cc:15:10: error: request for member 'length' in 'a', which is of non-class type 'int' 15 | if(a[a.length()-1]==b[0]&&b[b.length()-1]==c[0]){ | ^~~~~~ a.cc:15:24: error: invalid types 'int[int]' for array subscript 15 | if(a[a.length()-1]==b[0]&&b[b.length()-1]=...
s576435512
p03729
C++
#include <iostream> #include <vector> #include <string> #include <math.h> #include <algorithm> #include <set> #include <iomanip> #include <stdio.h> #include <sstream> #include <string> using namespace std; int main(void){ int a, b, c; cin>>a>>b>>C; if(a[a.length()-1]==b[0]&&b[b.length()-1]==c[0]){ cout<<"YES"...
a.cc: In function 'int main()': a.cc:14:14: error: 'C' was not declared in this scope 14 | cin>>a>>b>>C; | ^ a.cc:15:10: error: request for member 'length' in 'a', which is of non-class type 'int' 15 | if(a[a.length()-1]==b[0]&&b[b.length()-1]==c[0]){ | ^~~~~~ a.cc:15:24: err...
s523704891
p03729
C++
// 失敗するからこそ そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから // ぜったいあきらめない #if defined(DAIJOBU) #include "/home/ichigo/includes.hpp" #include "/home/ichigo/debug.hpp" #define deb(x...) cerr << "[" << #x << "] = ["; _print(x) #else #include <bits/stdc++.h> #define deb(x...) #endif #define FIO {ios::sync_with_stdio(0);cin.tie(nullp...
a.cc:23:24: error: empty character constant 23 | else puts("NO")'' | ^~ a.cc: In function 'int main()': a.cc:23:24: error: expected ';' before '\x0' 23 | else puts("NO")'' | ^~ | ;
s297763639
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B,C; cin >>A>>B>>C; if(A.at(A.size())==B.at(0) && B.at(A.size())==C.at(0)) cout<<"YES"<<endl; else cout<<"NO"<<endl; }#include <bits/stdc++.h> using namespace std; int main() { string A,B,C; cin >>A>>B>>C; if(A.at(A.size()-1)==...
a.cc:8:5: error: stray '#' in program 8 | }#include <bits/stdc++.h> | ^ a.cc:8:6: error: 'include' does not name a type 8 | }#include <bits/stdc++.h> | ^~~~~~~ a.cc:10:6: error: redefinition of 'int main()' 10 | int main() { | ^~~~ a.cc:3:6: note: 'int main()' previousl...
s990059459
p03729
C++
a, b, c = input().split() if a[-1] == b[0] and b[-1] == c[0]: print("Yes") else: print("No"
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = input().split() | ^
s347716059
p03729
C++
#include <bits/stdc++.h> #include <math.h> #define REP(i, n) for(int i = 0; i < (n); i++) #define ALL(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; const int mINF = -1001001001; int main() { char a[10],b[10],c[10]; cin >> a >> b >> c; int a...
a.cc: In function 'int main()': a.cc:17:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 17 | int ans ="NO"; | ^~~~ | | | const char* a.cc:18:44: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 18 | if(a[a_num-1]==b[0]&&b[b_...
s639874482
p03729
Java
import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.n...
Main.java:13: error: cannot find symbol if(a.charAt(a.length()-1) == b.charAt(0) && b.charAt(length()-1) == c.charAt(0)){ ^ symbol: method length() location: class Main 1 error
s341077222
p03729
C++
#include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <string> #include <cstdio> #include <cstdlib> #include <cctype> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (a == 1) { cout << "YES" << endl; return 0; } for (int...
a.cc: In function 'int main()': a.cc:20:5: error: expected primary-expression before '{' token 20 | { | ^ a.cc:19:34: error: expected ')' before '{' token 19 | for (int i = 2; i <= 1000; i+ | ~ ^ | ) 20 | { ...
s991788659
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c; cin>>a>>b>>c; if(a[a.size]==b[0] && b[b.size]==c[0])cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: invalid use of non-static member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = ...
s548077880
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin >> A >> B >> C; if (A.at(A.size()-1)==B.at(0) && B.at(B.size()-1)==C.at(0)){ cout << "YES" << endl; } else if { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:12:11: error: expected '(' before '{' token 12 | else if { | ^ | (
s892774031
p03729
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:27:18: error: expected primary-expression before ';' token 27 | cin >>a>>b>>c>>; | ^
s091358647
p03729
C++
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; typedef long long ll; int main() { string a,b,c; cin>>a>>b>>c; if((a.at(a.size()-1)==b.at(0)) && (b.at(b.size()-1)==c.at(0))) cout<<"YES"<<endl; else cout<<"NO"<<nedl; return 0; }
a.cc: In function 'int main()': a.cc:10:20: error: 'nedl' was not declared in this scope 10 | else cout<<"NO"<<nedl; | ^~~~
s491295960
p03729
C++
#include <bits/stdc++.h> using namespace std; #define pp pair<int,int> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define ll long long #define ld long double #define all(a) (a).begin(),(a).end() #define mk make_pair ll MOD=1000000007; ll mod=998244353; int inf=1000001000; ll INF=1e18+5; int main() { string a,b,c;...
a.cc: In function 'int main()': a.cc:18:31: error: 's' was not declared in this scope 18 | if (a[a.size()-1]==b[0] && b[s.size()-1]==c[0]) cout << "YES" << endl; | ^
s811408874
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() string a; string b; string c; cin >>a >> b >>c; int x=a.size(); int y=b.size(); int z=c.size(); if ((a.at(x) ==b.at(0)) && (b.at(y)==c.at(0))) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc:6:3: error: expected initializer before 'string' 6 | string a; | ^~~~~~ a.cc:9:1: error: 'cin' does not name a type 9 | cin >>a >> b >>c; | ^~~ a.cc:10:7: error: 'a' was not declared in this scope 10 | int x=a.size(); | ^ a.cc:13:1: error: expected unqualified-id before 'if' ...
s595538657
p03729
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:12: error: expected initializer before '==' token 161 | bool ans == ss[0].back() == ss[1][0] && ss[1].back() == ss[2][0]; | ^~
s001321480
p03729
C++
#include <algorithm> #include <assert.h> #include <bitset> #include <cfloat> #include <complex> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include...
a.cc: In function 'int main()': a.cc:43:4: error: expected '}' at end of input 43 | } | ^ a.cc:33:11: note: to match this '{' 33 | int main(){ | ^
s089700580
p03729
C++
#include <algorithm> #include <assert.h> #include <bitset> #include <cfloat> #include <complex> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include...
a.cc: In function 'int main()': a.cc:38:13: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 38 | if(a.at(a - 1) == b.at(0) && b.at(b - 1) == c.at(0)){ | ~ ^ ~ | | | | | int | std...
s637626755
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin >> a >> b >>c; if(a.at(a - 1) == b.at(0) && b.at(b - 1) == c.at(0)){ cout << "Yes" <<endl; }else { cout << "No" <<endl; }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(a.at(a - 1) == b.at(0) && b.at(b - 1) == c.at(0)){ | ~ ^ ~ | | | | | int | std:...
s897955916
p03729
C++
#include<bits/stdc++/h> using namespace std; int main(){ string a,b,c; cin >> a >> b >>c; if(a.at(a - 1) == b.at(0) && b.at(b - 1) == c.at(0)){ cout << "Yes" <<endl; }else { cout << "No" <<endl; }
a.cc:1:9: fatal error: bits/stdc++/h: No such file or directory 1 | #include<bits/stdc++/h> | ^~~~~~~~~~~~~~~ compilation terminated.
s398033476
p03729
C++
#include <iostream> #include <string> #include <algorithm> using std::cin; using std::cout; using std::endl; using std::string; int main() { string a,b,c; cin>>a>>b>>c; if((a.substr(a.end(),1)==b.substr(0,1))&&(b.substr(b.end(),1)==c.substr(0,1))) cout<<a.substr(0,1)<<b.substr(0,1)<<c.substr(0,1); }
a.cc: In function 'int main()': a.cc:13:21: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 13 | if((a.substr(a.end(),1)==b.substr(0,1))&&(b.substr(b.end(),1)==c.substr(0,1))) | ~~~~~^~ | ...
s499984022
p03729
C++
#include<bits/stdc++.h> using namespace std; int main() { stirng a, b, c; cin>>a>>b>>c; if(a[a.length()-1] == b[0] && b[b.length()-1] == c[0]) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'stirng' was not declared in this scope 6 | stirng a, b, c; | ^~~~~~ a.cc:7:14: error: 'a' was not declared in this scope 7 | cin>>a>>b>>c; | ^ a.cc:7:17: error: 'b' was not declared in this scope 7 | c...
s344799976
p03729
C++
#include <bits/stdc++.h> using namespace std; int main (){ string A,B,C; cin>>A>>B>>C; if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:6: error: 'a' was not declared in this scope 7 | if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]){ | ^ a.cc:7:21: error: 'b' was not declared in this scope 7 | if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]){ | ^ a.cc:7:44: error: 'c' ...
s045257143
p03729
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); if(a.substring(a.length()-1,a.length).equals(b.substring(b.length()-1,b.length))&&b.substring(b.length()-1,b.length)...
Main.java:8: error: cannot find symbol if(a.substring(a.length()-1,a.length).equals(b.substring(b.length()-1,b.length))&&b.substring(b.length()-1,b.length).equals(c.substring(c.length()-1,c.length))){ ^ symbol: variable length location: variable a of type String Main.java:8: e...
s271121308
p03729
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define rep1(i,n) for(int i=1;i<=n;i++) typedef long long ll; int main(){ string a,b,c; cin >> a >> b >> c; if(a[a.size()-1]==b[0] && b[d.size()-1]==c[0])cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:12:31: error: 'd' was not declared in this scope 12 | if(a[a.size()-1]==b[0] && b[d.size()-1]==c[0])cout << "YES" << endl; | ^
s450823353
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin >> A >> B >> C; if(A.at(A.size()-1) == B.at(0) && B.at(B.size()-1) == C.at()){ cout << "YES"; }else{ cout << "NO"; } return 0;}
a.cc: In function 'int main()': a.cc:6:75: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()' 6 | if(A.at(A.size()-1) == B.at(0) && B.at(B.size()-1) == C.at()){ | ~~~~^~ In file included from /u...
s717010719
p03729
C++
#include<iostream> #include<string> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; if (A.at(A) == B.at(0) && B.at(B) == C.at(0)) { cout << "YES" << endl; } else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: no matching function for call to 'std::__cxx11::basic_string<char>::at(std::string&)' 7 | if (A.at(A) == B.at(0) && B.at(B) == C.at(0)) { | ~~~~^~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/...
s829158756
p03729
C++
#include<iostream> #include<string> using namespace std; int main() { string A, B, C; cin >> A >> B >> C; if (A.at[A] == B.at[0] && B.at[B] == C.at[0]) { cout << "YES" << endl; } else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: no match for 'operator[]' (operand types are '<unresolved overloaded function type>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if (A.at[A] == B.at[0] && B.at[B] == C.at[0]) { | ^ a.cc:7:28: error: invalid types '<u...
s727841904
p03729
C++
#include<iostream> #include<string> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; if (a.at[a] == b.at[0] && b.at[b] == c.at[0]) { cout << "YES" << endl; } else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:17: error: no match for 'operator[]' (operand types are '<unresolved overloaded function type>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if (a.at[a] == b.at[0] && b.at[b] == c.at[0]) { | ^ a.cc:7:28: error: invalid types '<u...
s184922320
p03729
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define double long double #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #defin...
a.cc: In function 'int main()': a.cc:318:10: error: request for member 'size' in 'a', which is of non-class type 'long long int' 318 | if(a[a.size()-1]==b[0]&&b[b.size()-1]==c[0]) | ^~~~ a.cc:318:22: error: invalid types 'long long int[int]' for array subscript 318 | if(a[a.size()-1]==b[0]&&b[b.s...
s553655889
p03729
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++) #define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++) #define MOD 1000000007 #define int long long #define ALL(a) (a).begin(),(a).end() #define vi vector<int> #define vii vector<vi> #define pii pair<int,int> #define priq...
a.cc: In function 'int main()': a.cc:20:12: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 20 | cout<<ans>>endl; | ~~~~~~~~~^~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from ...
s509459159
p03729
C++
#include <iostream> #include <string> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(b[b.size()-1]==c[0]&&a[a.size()-1]===b[0]){ cout<<"YES"<<endl; }else{cout<<"NO"<<endl;} }
a.cc: In function 'int main()': a.cc:9:42: error: expected primary-expression before '=' token 9 | if(b[b.size()-1]==c[0]&&a[a.size()-1]===b[0]){ | ^
s091348679
p03729
C++
##include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define pii pair<int,int> #define pll pair<long,long> #define vi vector<int> #define vll vector<ll> #define vii vector<pii> #define mi map<int,int> #define mii ...
a.cc:1:1: error: stray '##' in program 1 | ##include <bits/stdc++.h> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <bits/stdc++.h> | ^~~~~~~ a.cc: In function 'void solve()': a.cc:26:5: error: 'string' was not declared in this scope 26 | string s1,s2,s3;cin>>s1>>s2>>s3;...
s520166023
p03729
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String A = sc.next(); String B = sc.next(); String C = sc.next(); if((A.substring(A.length()-1,A.length)).equals(B.substring(0,1)) && (B.substring(B.length()-1,B.length)).equals(c.substring...
Main.java:11: error: ')' expected if((A.substring(A.length()-1,A.length)).equals(B.substring(0,1)) && (B.substring(B.length()-1,B.length)).equals(c.substring(0,1)){ ^ 1 error
s733756373
p03729
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String A = sc.next(); String B = sc.next(); String C = sc.next(); if((A.substring(A.lengt()-1,A.lengtj)).equals(B.substring(0,1)) && (B.substring(B.lengt()-1,B.lengtj)).equals(c.substring(0...
Main.java:11: error: ')' expected if((A.substring(A.lengt()-1,A.lengtj)).equals(B.substring(0,1)) && (B.substring(B.lengt()-1,B.lengtj)).equals(c.substring(0,1)){ ^ 1 error
s468583462
p03729
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); aLast = a.substring(a.length() - 1); bFirst = b.substring(0, 1); bLast = b.substring(b.length() -...
Main.java:10: error: cannot find symbol aLast = a.substring(a.length() - 1); ^ symbol: variable aLast location: class Main Main.java:11: error: cannot find symbol bFirst = b.substring(0, 1); ^ symbol: variable bFirst location: class Main Main.java:12: error: cannot find symbol bLast = b....
s947160572
p03729
C++
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; cout << (a[a.size()-1]==b[0] && b[b.size()-1]==c[0])?"YES":"NO" << endl; }
a.cc: In function 'int main()': a.cc:7:67: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout << (a[a.size()-1]==b[0] && b[b.size()-1]==c[0])?"YES":"NO" << endl; | ~~~~~^~~...
s604978689
p03729
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") << endl; #define CFYN(...
a.cc: In function 'int main()': a.cc:19:14: error: expected initializer before '==' token 19 | bool ans == false; | ^~ a.cc:20:57: error: 'ans' was not declared in this scope; did you mean 'abs'? 20 | if (a.back() == b.front() && b.back() == c.front()) ans = true; | ...
s202080640
p03729
C++
#include<vector> #include<string> using namespace std; int main(){ string a,b,c; //cin>>n;//読み込み //cout<<n<<endl;//System.out.println cin>>a>>b>>c; if(a[a.size()-1]==b[0]&&b[b.size()-1]==c[0]){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:13:5: error: 'cin' was not declared in this scope 13 | cin>>a>>b>>c; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | a.cc:16:3:...
s875408370
p03729
C++
S = input().split() if S[0][len(S[0])-1] != S[1][0] or S[1][len(S[1])-1] != S[2][0]: print("NO") else: print("YES")
a.cc:1:1: error: 'S' does not name a type 1 | S = input().split() | ^
s649779198
p03729
C++
#include <bits/stdc+.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; if (a[a.size()-1] == b[0] && b[b.size()-1] == c[0]) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc:1:10: fatal error: bits/stdc+.h: No such file or directory 1 | #include <bits/stdc+.h> | ^~~~~~~~~~~~~~ compilation terminated.
s808074385
p03729
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ string a, b, c; cin >> a >> b >> c; if(a.at(a.size()-1)==b.at(0)&&b.at(b.size()-1)==c.at(1))cout<<"YES"<<endl; else{cout <<"NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s900636848
p03729
C++
#include<bits/stdc++> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[a.size()-1]==b[0]&&b[b.size()-1]==c[0]) cout<<"YES"; else cout<<"NO"; }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s860676933
p03729
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; (a[a.size-1]==b[0] &&b[b.size-1]==c[0])? cout<<"YES":cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigne...
s786668089
p03729
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; (a[a.size-1]==b[0] &&b[b.size-1]==c[0])? cout<<"YES":cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: request for member 'size' in 'a', which is of non-class type 'int' 9 | (a[a.size-1]==b[0] &&b[b.size-1]==c[0])? cout<<"YES":cout<<"NO"; | ^~~~ a.cc:9:18: error: invalid types 'int[int]' for array subscript 9 | (a[a.size-1]==b[0] &&b[b.size-1]==c[...