submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s996750329 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
string a,b,c;
cin >> a >> b >> c;
x = strlen(a);
y = strlen(b);
if(a[x-1]==b[0] && b[y-1]==c[0]){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
8 | x = strlen(a);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
from a.cc:1:
/usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)'
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
a.cc:9:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
9 | y = strlen(b);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)'
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
|
s871104309 | p03729 | Java | 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.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.println("NO");
}
} | Main.java:1: error: cannot find symbol
import java.util.scanner;
^
symbol: class scanner
location: package java.util
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
3 errors
|
s980572657 | p03729 | C++ | #include <iostream>
#include <string>
int main(){
std::string a,b,c;
std::cin >> a >> b >> c;
if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]
std::cout << "YES" << std::endl;
else
std::cout << "NO" << std::endl;
} | a.cc: In function 'int main()':
a.cc:6:46: error: expected ';' before 'std'
6 | if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]
| ^
| ;
7 | std::cout << "YES" << std::endl;
| ~~~
a.cc:8:1: error: expected primary-expression before 'else'
8 | else
| ^~~~
a.cc:7:33: error: expected ')' before 'else'
7 | std::cout << "YES" << std::endl;
| ^
| )
8 | else
| ~~~~
a.cc:6:3: note: to match this '('
6 | if(a[a.size()-1]==b[0] && b[b.size()-1]==c[0]
| ^
|
s222914334 | p03729 | C++ | #include <iostream>
using namespace std;
int main(){
char A[10],B[10],C[10],i=0;
cin >> A >> B >> C;
while(A[i]!='\0') i++;
if(A[i-1]==B[0]){
i=0;
while(B[i]!='\0') i++;
if(B[i-1]==C[0]) cout << "YES" << endl;
else << cout << "NO" << endl;
}
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '<<' token
12 | else << cout << "NO" << endl;
| ^~
|
s120968529 | p03729 | Java | 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.next();
Char a2 = a.charAt(a.length()-1);
Char b1 = b.charAt(0);
Char b2 = b.charAt(b.length()-1);
Char c1 = c.charAt(0);
if(a2 == b1 && b2 == c1){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
} | Main.java:8: error: cannot find symbol
Char a2 = a.charAt(a.length()-1);
^
symbol: class Char
location: class Main
Main.java:9: error: cannot find symbol
Char b1 = b.charAt(0);
^
symbol: class Char
location: class Main
Main.java:10: error: cannot find symbol
Char b2 = b.charAt(b.length()-1);
^
symbol: class Char
location: class Main
Main.java:11: error: cannot find symbol
Char c1 = c.charAt(0);
^
symbol: class Char
location: class Main
4 errors
|
s391549344 | p03729 | Java | 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.next();
String a2 = a.charAt(a.length()-1);
String b1 = b.charAt(0);
String b2 = b.charAt(b.length()-1);
String c1 = c.charAt(0);
if(a2 == b1 && b2 == c1){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
} | Main.java:8: error: incompatible types: char cannot be converted to String
String a2 = a.charAt(a.length()-1);
^
Main.java:9: error: incompatible types: char cannot be converted to String
String b1 = b.charAt(0);
^
Main.java:10: error: incompatible types: char cannot be converted to String
String b2 = b.charAt(b.length()-1);
^
Main.java:11: error: incompatible types: char cannot be converted to String
String c1 = c.charAt(0);
^
4 errors
|
s818714217 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a>> b >> c ;
if(a[a.length() - 1] == a[0] && b[b.length() - 1] == b[0] && c[c.length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:7:91: error: expected ';' before 'cout'
7 | if(a[a.length() - 1] == a[0] && b[b.length() - 1] == b[0] && c[c.length() - 1] == c[0]
| ^
| ;
8 | cout << "YES" << endl;
| ~~~~
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc:8:30: error: expected ')' before '}' token
8 | cout << "YES" << endl;
| ^
| )
9 | }else{
| ~
a.cc:7:7: note: to match this '('
7 | if(a[a.length() - 1] == a[0] && b[b.length() - 1] == b[0] && c[c.length() - 1] == c[0]
| ^
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc: At global scope:
a.cc:9:9: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
|
s771667545 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a>> b >> c ;
if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:7:59: error: expected identifier before numeric constant
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^
a.cc: In lambda function:
a.cc:7:62: error: expected '{' before '&&' token
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
a.cc: In function 'int main()':
a.cc:7:55: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'main()::<lambda()>')
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::__cxx11::match_results<_BiIter, _Alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::pair<_T1, _T2>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
7 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == [0] && c[c.length() - 1] == c[0]
| ^~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:62: note: mis |
s641257832 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a>> b >> c ;
if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:7:12: error: 'length' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:59: error: expected identifier before numeric constant
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc: In lambda function:
a.cc:7:62: error: expected '{' before '&&' token
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc:8:30: error: expected ')' before '}' token
8 | cout << "YES" << endl;
| ^
| )
9 | }else{
| ~
a.cc:7:7: note: to match this '('
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc: At global scope:
a.cc:9:9: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
|
s907996691 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a>> b >> c ;
if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl;
cin >> a >> b >> c;
if()
}
| a.cc: In function 'int main()':
a.cc:7:12: error: 'length' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:59: error: expected identifier before numeric constant
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc: In lambda function:
a.cc:7:62: error: expected '{' before '&&' token
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc:8:30: error: expected ')' before '}' token
8 | cout << "YES" << endl;
| ^
| )
9 | }else{
| ~
a.cc:7:7: note: to match this '('
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc: At global scope:
a.cc:9:9: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
|
s054360898 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a>> b >> c ;
if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:7:12: error: 'a\U0000ff3ba' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:17: error: 'length' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:28: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:35: error: 'b\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:45: error: 'b\U0000ff3bb' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:61: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:68: error: '\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~
a.cc:7:77: error: 'c\U0000ff3bc' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:93: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:100: error: 'c\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:9:17: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc:8:39: error: expected ')' before '}' token
8 | cout << "YES" << endl;
| ^
| )
9 | }else{
| ~
a.cc:7:11: note: to match this '('
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc:9:17: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc: At global scope:
a.cc:9:18: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
|
s668094629 | p03729 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> b >> c >>;
if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
cout << "YES" << endl;
}else{
cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:6:21: error: expected primary-expression before ';' token
6 | cin >> b >> c >>;
| ^
a.cc:7:8: error: 'a\U0000ff3ba' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:13: error: 'length' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:24: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:31: error: 'b\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:7:41: error: 'b\U0000ff3bb' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:57: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:64: error: '\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~
a.cc:7:73: error: 'c\U0000ff3bc' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~
a.cc:7:89: error: unable to find numeric literal operator 'operator""\U0000ff3d'
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~
a.cc:7:96: error: 'c\U0000ff3b0\U0000ff3d' was not declared in this scope
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^~~~~~
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc:8:30: error: expected ')' before '}' token
8 | cout << "YES" << endl;
| ^
| )
9 | }else{
| ~
a.cc:7:7: note: to match this '('
7 | if(a[a,length() - 1] == b[0] && b[b,length() - 1] == [0] && c[c,length() - 1] == c[0]
| ^
a.cc:9:8: error: expected primary-expression before '}' token
9 | }else{
| ^
a.cc: At global scope:
a.cc:9:9: error: expected unqualified-id before 'else'
9 | }else{
| ^~~~
|
s461187214 | p03729 | C++ | #include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <bitset>
#include <unordered_set>
#include <unordered_map>
using namespace std;
#define FOR(i, a, b) for(int i = (a); i < (b); ++i)
#define REP(i, n) for(int i = 0; i < (n); ++i)
#define pb push_back
struct link{
int num;
struct link *before, *next;
};
struct link *nil;
const int MAX_N = 100010;
int main(){
string 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;
}
} | a.cc:30:54: error: extended character is not valid in an identifier
30 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]){
| ^
a.cc: In function 'int main()':
a.cc:30:54: error: expected ')' before '\U00003000'
30 | if(a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]){
| ~ ^~
| )
|
s172047415 | p03729 | C++ | #include<math.h>
#include<limits.h>
#include<iostream>
#include<string>
#include<vector>
#include<stdio.h>
#include<sstream>
#include<list>
#include<queue>
#include<algorithm>
#include<functional>
#include<map>
#include<set>
#include<utility>
#include<initializer_list>
#include<tuple>
#include<regex>
using namespace std;
#define ull unsigned long long
#define ll long long
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define all(t) t.begin(), t.end()
#define mat(type, row, col, init) vector<vector<type>>(row, vector<type>(col, init));
int main() {
string a,b,c;
cin>>a>>b>>c;
if(a.back() == b.first() && b.back() == c.first()) cout<<"YES";
else cout<<"NO";
return 0;
}
| a.cc: In function 'int main()':
a.cc:28:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'first'
28 | if(a.back() == b.first() && b.back() == c.first()) cout<<"YES";
| ^~~~~
a.cc:28:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'first'
28 | if(a.back() == b.first() && b.back() == c.first()) cout<<"YES";
| ^~~~~
|
s907645854 | p03729 | C++ | #include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main(){
string A,B,C ;
getline(cin,A);getline(cin,B);getline(cin,C);
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]){
cout << "YES" << endl;
}else{
cout << "NO" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:10:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
10 | if (A[strlen(A) - 1] == B[0] &&
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
from a.cc:3:
/usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)'
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
a.cc:11:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
11 | B[strlen(B) - 1] == C[0]){
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)'
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
|
s780908905 | p03729 | C++ | #include <iostream>
#include <string>
#include <ctsring>
using namespace std;
int main(){
string A,B,C ;
getline(cin,A);getline(cin,B);getline(cin,C);
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]){
cout << "YES" << endl;
}else{
cout << "NO" <<endl;
}
}
| a.cc:3:10: fatal error: ctsring: No such file or directory
3 | #include <ctsring>
| ^~~~~~~~~
compilation terminated.
|
s252247204 | p03729 | C++ | #include <iostream>
#include <string>
int main(){
std::string a,b,c;
std::cin >> a >> b >> c;
if(a[a.size()-1]==b[b.size()-1] && b[b.size()-1]==c[c.size()-1]
std::cout << "YES" << std::endl;
else
std::cout << "NO" << std::endl;
} | a.cc: In function 'int main()':
a.cc:6:64: error: expected ';' before 'std'
6 | if(a[a.size()-1]==b[b.size()-1] && b[b.size()-1]==c[c.size()-1]
| ^
| ;
7 | std::cout << "YES" << std::endl;
| ~~~
a.cc:8:1: error: expected primary-expression before 'else'
8 | else
| ^~~~
a.cc:7:33: error: expected ')' before 'else'
7 | std::cout << "YES" << std::endl;
| ^
| )
8 | else
| ~~~~
a.cc:6:3: note: to match this '('
6 | if(a[a.size()-1]==b[b.size()-1] && b[b.size()-1]==c[c.size()-1]
| ^
|
s136304401 | p03729 | C++ | #include <cstdio>
#include <string>
using namespace std;
int main(){
char A[10],B[10],C[10];
scanf("%s %s %s",&A,&B,&C);
if(A[strlen(A)-1]==B[0]&&B[strlen(B)-1]==C[0]){
printf("YES\n");
} else ("NO\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'strlen' was not declared in this scope
7 | if(A[strlen(A)-1]==B[0]&&B[strlen(B)-1]==C[0]){
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <string>
+++ |+#include <cstring>
3 | using namespace std;
|
s082314100 | p03729 | C++ | use std::io;
fn main() {
let mut buf = String::new();
io::stdin().read_line(&mut buf).unwrap();
let v: Vec<_> = buf.split_whitespace().collect();
for i in 0..2 {
if v[i].chars().last() != v[i+1].chars().nth(0) {
println!("NO");
return
}
}
println!("YES");
}
| a.cc:8:14: error: too many decimal points in number
8 | for i in 0..2 {
| ^~~~
a.cc:1:1: error: 'use' does not name a type
1 | use std::io;
| ^~~
a.cc:3:1: error: 'fn' does not name a type
3 | fn main() {
| ^~
|
s530288505 | 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: In function 'int main()':
a.cc:7:30: error: expected ';' before 'endl'
7 | cout << "YES" endl;
| ^~~~~
| ;
|
s724297370 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
char a[],b[],c[];
cin >> a >> b >> c;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: storage size of 'a' isn't known
5 | char a[],b[],c[];
| ^
a.cc:5:14: error: storage size of 'b' isn't known
5 | char a[],b[],c[];
| ^
a.cc:5:18: error: storage size of 'c' isn't known
5 | char a[],b[],c[];
| ^
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
|
s921646720 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
string a,b,c;
cin >> a >> b>> c;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
|
s258718549 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
string a,b,c;
cin >> a >> b>>c;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
|
s302290481 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
string a,b,c;
cin >> a >> b<<c;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:18: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin >> a >> b<<c;
| ~~~~~~~~~~~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::basic_istream<char>
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:14: note: cannot convert 'std::operator>><char, char_traits<char>, allocator<char> >((* & std::operator>><char, char_traits<char>, allocator<char> >(std::cin, a)), b)' (type 'std::basic_istream<char>') to type 'std::byte'
6 | cin >> a >> b<<c;
| ~~~~~~~~~^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>' is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = std::__cxx11::basic_string<char>]':
a.cc:6:20: required from here
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
|
s603339107 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b<<c;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:18: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | cin >> a >> b<<c;
| ~~~~~~~~~~~~~^~~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:6:18: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin >> a >> b<<c;
| ~~~~~~~~~~~~~^~~
a.cc:6:18: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:14: note: cannot convert '(& std::cin.std::basic_istream<char>::operator>>(a))->std::basic_istream<char>::operator>>(b)' (type 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin >> a >> b<<c;
| ~~~~~~~~~^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:20: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin >> a >> b<<c;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:6:20: required from here
6 | cin >> |
s510328665 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
int n,m;
cin >> n >> m;
if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
a.cc:7:24: error: 'b' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^
a.cc:7:48: error: 'c' was not declared in this scope
7 | if(a[strlen(a)-2]==b[0] && b[strlen(b)-2]==c[0]){
| ^
|
s497014247 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
int n,m;
cin >> n >> m;
if(a[strlen(a)-1]==b[0] && b[strlen(b)-1]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(a[strlen(a)-1]==b[0] && b[strlen(b)-1]==c[0]){
| ^
a.cc:7:10: error: 'strlen' was not declared in this scope
7 | if(a[strlen(a)-1]==b[0] && b[strlen(b)-1]==c[0]){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
a.cc:7:24: error: 'b' was not declared in this scope
7 | if(a[strlen(a)-1]==b[0] && b[strlen(b)-1]==c[0]){
| ^
a.cc:7:48: error: 'c' was not declared in this scope
7 | if(a[strlen(a)-1]==b[0] && b[strlen(b)-1]==c[0]){
| ^
|
s236139071 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
int n,m;
cin >> n >> m;
if(a[a.length-2]==b[0] && b[b.length-2]==c[0]){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(a[a.length-2]==b[0] && b[b.length-2]==c[0]){
| ^
a.cc:7:23: error: 'b' was not declared in this scope
7 | if(a[a.length-2]==b[0] && b[b.length-2]==c[0]){
| ^
a.cc:7:46: error: 'c' was not declared in this scope
7 | if(a[a.length-2]==b[0] && b[b.length-2]==c[0]){
| ^
|
s539772223 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
int n,m;
cin >> n >> m;
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:7:8: error: 'a' was not declared in this scope
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ^
a.cc:7:23: error: 'b' was not declared in this scope
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ^
a.cc:7:46: error: 'c' was not declared in this scope
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ^
|
s839073148 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
string 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:7:12: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ~~^~~~~~
| ()
a.cc:7:35: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ~~^~~~~~
| ()
a.cc:11:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
11 | cout<<"NO"<endl;
| ~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
11 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
11 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: couldn't deduce template parameter '_CharT'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
11 | cout<<"NO"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
11 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:11:20: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
11 | cout<<"NO"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s152279341 | p03729 | C++ | #include<iostream>
using namespace std;
int main()
{
string 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";
}
cout <<(n-1)*(m-1)<< endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ~~^~~~~~
| ()
a.cc:7:35: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
7 | if(a[a.length-1]==b[0] && b[b.length-1]==c[0]){
| ~~^~~~~~
| ()
a.cc:14:13: error: 'n' was not declared in this scope
14 | cout <<(n-1)*(m-1)<< endl;
| ^
a.cc:14:19: error: 'm' was not declared in this scope
14 | cout <<(n-1)*(m-1)<< endl;
| ^
|
s102746436 | p03729 | C | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#define int long long
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define SZ(a) (signed)((a).size())
#define EACH(i, c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define EXIST(s, e) ((s).find(e) != (s).end())
#define SORT(c) sort((c).begin(), (c).end())
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
const int MOD = 1000000007;
#define dump(x) cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
signed main(void) {
ios::sync_with_stdio(false);
cout.setf(ios::fixed, ios::floatfield);
cout.precision(10);
cin.tie(0);
VS a(3);
REP(i,3){
cin >> a[i];
}
FOR(i, 1, 3) {
if (a[i - 1][SZ(a[i-1]) - 1] != a[i][0]) {
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}
| main.c:1:10: fatal error: vector: No such file or directory
1 | #include <vector>
| ^~~~~~~~
compilation terminated.
|
s993273677 | p03729 | C++ | #include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
#include <numeric>
using namespace std;
const double PI = acos(-1.0);
const string ALP = "abcdefghijklmnopqrstuvwxyz";
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
int main(){
string a,b,c;
cin >> a >> b >> c;
puts((a.back()==b.front()&&b.back()==c.front())?"YES":"NO")
return 0;
} | a.cc: In function 'int main()':
a.cc:16:62: error: expected ';' before 'return'
16 | puts((a.back()==b.front()&&b.back()==c.front())?"YES":"NO")
| ^
| ;
17 | return 0;
| ~~~~~~
|
s758706524 | p03729 | C | #include<stdio.h>
int main(void){
int i;
char A[10],B[10],C[10],d,e;
scanf("%s %s %s",A,B,C);
for(i=0;i<10;i++){
if(a[i]=='\0'){
d=a[i-1];
break;
}
}
for(i=0;i<10;i++){
if(b[i]=='\0'){
e=b[i-1];
break;
}
}
if(d==b[0]&&e==c[0]){
printf("YES\n");
}
else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:7:16: error: 'a' undeclared (first use in this function)
7 | if(a[i]=='\0'){
| ^
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'b' undeclared (first use in this function)
13 | if(b[i]=='\0'){
| ^
main.c:18:24: error: 'c' undeclared (first use in this function)
18 | if(d==b[0]&&e==c[0]){
| ^
|
s855196690 | p03729 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
if(a.end() == b.front() && b.end() == c.front()){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:20: error: no match for 'operator==' (operand types are 'std::__cxx11::basic_string<char>::iterator' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
8 | if(a.end() == b.front() && b.end() == c.front()){
| ~~~~~~~ ^~ ~~~~~~~~~
| | |
| | __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
| std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::fpos<_StateT>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::allocator<_CharT>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::pair<_T1, _T2>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: mismatched types 'const _CharT*' and '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:8:31: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::tuple<_UTypes ...>'
8 | if(a.end() == b.front() && b.end() == c.front()){
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /u |
s422880947 | p03729 | C++ | #include <iostream>
using namespace std;
int main(){
/*int a,b;
cin>>a>>b;
cout<<b-a%b<<endl;*/
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: In function 'int main()':
a.cc:11:18: error: expected '}' at end of input
11 | return 0;
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s581719827 | p03729 | C++ | using namespace std;
int main()
{
string a; cin>>a;
string b; cin>>b;
string c; cin>>c;
int x=a.size();
int y=b.size();
if(a[x-1]==b[0])
if(b[y-1]==c[0])
cout<<"YES";
else cout<<"NO";
else cout<<"NO";
}
| a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
4 | string a; cin>>a;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:4:15: error: 'cin' was not declared in this scope
4 | string a; cin>>a;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:4:20: error: 'a' was not declared in this scope
4 | string a; cin>>a;
| ^
a.cc:5:11: error: expected ';' before 'b'
5 | string b; cin>>b;
| ^~
| ;
a.cc:5:20: error: 'b' was not declared in this scope
5 | string b; cin>>b;
| ^
a.cc:6:11: error: expected ';' before 'c'
6 | string c; cin>>c;
| ^~
| ;
a.cc:6:20: error: 'c' was not declared in this scope
6 | string c; cin>>c;
| ^
a.cc:12:13: error: 'cout' was not declared in this scope
12 | cout<<"YES";
| ^~~~
a.cc:12:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:14: error: 'cout' was not declared in this scope
13 | else cout<<"NO";
| ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:10: error: 'cout' was not declared in this scope
14 | else cout<<"NO";
| ^~~~
a.cc:14:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s671251209 | p03729 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#define loop(i,n) for(int i = 0; i < n; i++)
#define FOR(x,y,z) for(int x = y; x < z; x++)
#define INF 999999999;
#define VEC vector<int>
#define in push_back
#define ans(x) cout<<x<<endl
#define ll long long int
using namespace std;
int main()
{
string a, b, c;
cin >> a >> b >> c;
if (a.end == b.begin&&b.end == c.begin)ans("YES");
else ans("NO");
}
| a.cc: In function 'int main()':
a.cc:20:19: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator=='
20 | if (a.end == b.begin&&b.end == c.begin)ans("YES");
| ~~~~~ ^~ ~~~~~~~
| | |
| | <unresolved overloaded function type>
| <unresolved overloaded function type>
a.cc:20:37: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator=='
20 | if (a.end == b.begin&&b.end == c.begin)ans("YES");
| ~~~~~ ^~ ~~~~~~~
| | |
| | <unresolved overloaded function type>
| <unresolved overloaded function type>
|
s920124628 | p03729 | C++ | #include<iostream>
#include<string>
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\n" : "NO\n";)
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:84: error: expected ')' before ';' token
7 | cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES\n" : "NO\n";)
| ~ ^
| )
a.cc:7:85: error: expected primary-expression before ')' token
7 | cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES\n" : "NO\n";)
| ^
|
s473302975 | p03729 | C++ | #include<iostream>
#include<string>
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\n" : "NO\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:80: error: expected ')' before ';' token
7 | cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES\n" : "NO\n";
| ~ ^
| )
|
s184397986 | p03729 | C++ | #include<iostream>
#include<string>
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:16: 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 unsigned int]' (did you forget the '()' ?)
7 | if(a[a.size-1]==b[0] && b[b.size-1]==c[0]){
| ~~^~~~
| ()
a.cc:7:37: 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 unsigned int]' (did you forget the '()' ?)
7 | if(a[a.size-1]==b[0] && b[b.size-1]==c[0]){
| ~~^~~~
| ()
|
s544154767 | p03729 | C | #include <stdio.h>
#include <string.h>
void main(){
int n;
int t;
scanf("%d %d",&n &t);
int i;
int[] tn;
for(i =0; i <n; i++){
scanf("%d", &tn[i]);
}
int x;
for(i=0; i<n; i++){
x += t;
if(tn[i] < t){
x += t-tn[i];
}
}
printf("%d",x);
} | main.c: In function 'main':
main.c:7:22: error: invalid operands to binary & (have 'int *' and 'int')
7 | scanf("%d %d",&n &t);
| ~~ ^
| |
| int *
main.c:10:8: error: expected identifier or '(' before '[' token
10 | int[] tn;
| ^
main.c:12:18: error: 'tn' undeclared (first use in this function); did you mean 't'?
12 | scanf("%d", &tn[i]);
| ^~
| t
main.c:12:18: note: each undeclared identifier is reported only once for each function it appears in
|
s077348326 | p03729 | C++ | a,b,c = map(str,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 = map(str,input().split())
| ^
|
s562450921 | p03729 | C++ | #include <iosteam>
#include <string>
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:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s487403909 | p03729 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
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: In function 'int main()':
a.cc:7:35: 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 unsigned int]' (did you forget the '()' ?)
7 | if(a[a.size()-1]==b[0] && b[b.size-1]==c[0]) cout<<"YES"<<endl;
| ~~^~~~
| ()
|
s381579706 | p03729 | C++ | #include <iostream>
#include <stdio.h>
using namespace std;
int main(){
char s[10];
gets(s);
int flag1=0,flag2=0;
for(int i=0;s[i]!='\0';i++){
if(s[i]==' '&&s[i-1]==s[i+1]) {flag1=1;if(flag1==1) flag2=1;}
}
if(flag1&&flag2) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s897749925 | p03729 | C++ | #include <iostream>
#include <stdio.h>
using namespace std;
int main(){
char s[10];
gets(s);
int flag1=0,flag2=0;
for(int i=0;s[i]!='\0';i++){
if(s[i]==' '&&s[i-1]==s[i+1]) {flag1=1;if(flag1==1) flag2=1;}
}
if(flag1&&flag2) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s917552518 | p03729 | C++ | #include <iostream>
using namespace std;
typedef unsigned long long ll;
#define rep(i,a,n) for(ll i = (a);i < (n);i++)
#define lp(i,a,n) for(ll i = (a);i <= (n);i++)
#define MAX 50000000000000ull
int main(){
ll a,b,c;
cin >> a >> b >> c;
if(a == b && c != 0){
cout << "NO" << endl;
return 0;
}else if(a == i){
cout << "YES" << endl;
return 0;
}
rep(i,1,MAX){
if(a * i % b == c){
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:17: error: 'i' was not declared in this scope
14 | }else if(a == i){
| ^
|
s193648277 | p03729 | C++ | #include <iostream>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
if(a[a.sz-1] == b[0] && b[b.sz-1] == c[0])
cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sz'; did you mean 'size'?
7 | if(a[a.sz-1] == b[0] && b[b.sz-1] == c[0])
| ^~
| size
a.cc:7:31: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sz'; did you mean 'size'?
7 | if(a[a.sz-1] == b[0] && b[b.sz-1] == c[0])
| ^~
| size
|
s463114533 | p03729 | C++ | a,b,c = map(str,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 = map(str,input().split())
| ^
|
s346928059 | p03729 | C++ | mo=input()
list=mo.split()
a=str(list[0])
b=str(list[1])
c=str(list[2])
if a[-1]==b[0] and b[-1]==c[0]:
print("YES")
else:
print("NO")
| a.cc:1:1: error: 'mo' does not name a type
1 | mo=input()
| ^~
|
s223553207 | p03729 | C++ | moji=input()
list=moji.split()
a=str(list[0])
b=str(list[1])
c=str(list[2])
if a[-1]==b[0] and b[-1]==c[0]:
print("YES")
else:
print("NO") | a.cc:1:1: error: 'moji' does not name a type
1 | moji=input()
| ^~~~
|
s220383461 | p03729 | C++ | moji=input()
list=moji.split()
a=str(list[0])
b=str(list[1])
c=str(list[2])
if a[-1]==b[0] and b[-1]==c[0]:
print("yes")
else:
print("no")
| a.cc:1:1: error: 'moji' does not name a type
1 | moji=input()
| ^~~~
|
s740791625 | p03729 | Java | public class A-Shiritori{
public void checkChar(String a, String b, String c){
char[] ac = a.toCharArray();
char[] bc = b.toCharArray();
char[] cc = c.toCharArray();
if((ac[ac.length - 1] == bc[0] )&& (bc[bc.length - 1] == cc[0])){
System.out.println("true");
}else{
System.out.println("No");
}
}
} | Main.java:1: error: '{' expected
public class A-Shiritori{
^
1 error
|
s088018576 | p03729 | Java | public class A - Shiritori{
public void checkChar(String a, String b, String c){
char[] ac = a.toCharArray();
char[] bc = b.toCharArray();
char[] cc = c.toCharArray();
if((ac[ac.length - 1] == bc[0] )&& (bc[bc.length - 1] == cc[0])){
System.out.println("true");
}else{
System.out.println("No");
}
}
} | Main.java:1: error: '{' expected
public class A - Shiritori{
^
1 error
|
s124655493 | p03729 | Java | public class Shiritori{
public void checkChar(String a, String b, String c){
char[] ac = a.toCharArray();
char[] bc = b.toCharArray();
char[] cc = c.toCharArray();
if((ac[ac.length - 1] == bc[0] )&& (bc[bc.length - 1] == cc[0])){
System.out.println("true");
}else{
System.out.println("No");
}
}
} | Main.java:1: error: class Shiritori is public, should be declared in a file named Shiritori.java
public class Shiritori{
^
1 error
|
s149585809 | p03729 | Java | public void A-Shiritorir(String a, String b, String c){
char[] ac = a.toCharArray();
char[] bc = b.toCharArray();
char[] cc = c.toCharArray();
if((ac[ac.length - 1] == bc[0] )&& (bc[bc.length - 1] == cc[0])){
System.out.println("true");
}else{
System.out.println("No");
}
} | Main.java:1: error: class, interface, enum, or record expected
public void A-Shiritorir(String a, String b, String c){
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
char[] bc = b.toCharArray();
^
(use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
if((ac[ac.length - 1] == bc[0] )&& (bc[bc.length - 1] == cc[0])){
^
Main.java:8: error: class, interface, enum, or record expected
}else{
^
Main.java:10: error: class, interface, enum, or record expected
}
^
5 errors
|
s533437939 | p03729 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char a[10],b[10],c[10];
scanf_n("%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;
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'scanf_n' was not declared in this scope; did you mean 'scanf'?
6 | scanf_n("%s %s %s",a,b,c);
| ^~~~~~~
| scanf
|
s556869438 | p03729 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string X, Y;
cin >> X >> Y;
int A;
A = X.size();
char t = X[A-1];
char s = Y[0];
cout << "文字列Xの末尾の文字は" << t << endl;
cout << "文字列Yの先頭の文字は" << s << endl;
if (t == s)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:24:10: error: expected '}' at end of input
24 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s659244259 | p03729 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:19: error: expected ']' before ')' token
9 | if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES" << endl;
| ^
| ]
a.cc:9:20: error: expected primary-expression before ']' token
9 | if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES" << endl;
| ^
|
s888313187 | p03729 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void) {
string A, B, C;
if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES";
else cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:19: error: expected ']' before ')' token
8 | if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES";
| ^
| ]
a.cc:8:20: error: expected primary-expression before ']' token
8 | if (A[A.size())] == B[0] && B[B.size()] == C[C.size]()) cout << "YES";
| ^
|
s487111063 | p03729 | C | test.c 34,0-1 Bot
#include<stdio.h>
#include<string.h>
int comp(char *a,char *b);
char *looper(int a,int b);
int main()
{
char a[11],b[11],c[11];
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
int ans1 = comp(a,b);
int ans2 = comp(b,c);
char *ans3 =ans1==ans2 ? "YES":"NO";
printf("%s",ans3);
return 0;
}
int comp(char *a,char *b)
{
int d =strlen(a)-1;
return a[d]==b[0];
} | main.c:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | test.c 34,0-1 Bot
| ^
In file included from /usr/include/stdio.h:47,
from main.c:2:
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t'
28 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
+++ |+#include <stddef.h>
1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc.
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t'
37 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'?
57 | cookie_read_function_t *read; /* Read bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~
| cookie_seek_function_t
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'?
58 | cookie_write_function_t *write; /* Write bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~~
| cookie_close_function_t
/usr/include/stdio.h:314:35: error: unknown type name 'size_t'
314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
| ^~~~~~
/usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
129 | #include <bits/stdio_lim.h>
+++ |+#include <stddef.h>
130 |
/usr/include/stdio.h:320:47: error: unknown type name 'size_t'
320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW
| ^~~~~~
/usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:340:34: error: unknown type name 'size_t'
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:346:24: error: unknown type name 'size_t'
346 | size_t __size) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:385:44: error: unknown type name 'size_t'
385 | extern int snprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:389:45: error: unknown type name 'size_t'
389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:690:30: error: unknown type name 'size_t'
690 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:693:28: error: unknown type name 'size_t'
693 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:698:27: error: unknown type name 'size_t'
698 | size_t *__restrict __n,
| ^~~~~~
/usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:8: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:46: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:729:22: error: unknown type name 'size_t'
729 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:8: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:53: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:736:23: error: unknown type name 'size_t'
736 | size_t __n, FILE *__restrict __s) __nonnull((4));
| ^~~~~~
/usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:8: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:55: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:757:31: error: unknown type name 'size_t'
757 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:8: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:62: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:760:32: error: unknown type name 'size_t'
760 | size_t __n, FILE *__restrict __stream)
| ^~~~~~
/usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
In file included from main.c:3:
/usr/include/string.h:44:22: error: unknown type name 'size_t'
44 | size_t __n) __THROW __nonnull ((1, 2));
| ^~~~~~
/usr/include/string.h:34:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
33 | #include <stddef.h>
+++ |+#include <stddef.h>
34 |
/usr/include/string.h:47:56: error: unknown type name 'size_t'
47 | extern void *memmove (void *__dest, const void *__src, size_t __n)
| ^~~~~~
/usr/include/string.h:47:56: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/string.h:55:32: error: unknown type name 'size_t'
55 | int __c, size_t __n)
| ^~~~~~
/usr/include/string.h:55:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/string.h:61:42: error: unknown type name 'size_t'
61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/string.h:61:42: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/string.h:64:56: error: unknown type name 'size_t'
64 | extern int memcmp (const void *__s1, const void *__s2, size_t __n)
| ^~~~~~
/usr/include/string.h:64:56: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by |
s801977866 | p03729 | Java | import java.util.Scanner;
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)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:11: error: unexpected type
if(A.charAt(A.length() - 1) = B.charAt(0) && B.charAt(B.length() - 1) = C.charAt(0)) {
^
required: variable
found: value
Main.java:11: error: bad operand types for binary operator '&&'
if(A.charAt(A.length() - 1) = B.charAt(0) && B.charAt(B.length() - 1) = C.charAt(0)) {
^
first type: char
second type: char
2 errors
|
s725021191 | p03729 | Java | import java.util.Scanner;
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)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:11: error: unexpected type
if(A.charAt(A.length()-1) = B.charAt(0) && B.charAt(B.length()-1) = C.charAt(0)) {
^
required: variable
found: value
Main.java:11: error: bad operand types for binary operator '&&'
if(A.charAt(A.length()-1) = B.charAt(0) && B.charAt(B.length()-1) = C.charAt(0)) {
^
first type: char
second type: char
2 errors
|
s448646988 | p03729 | Java | import java.util.Scanner;
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 Ab = A.charAt(A.length()-1);
String Ba = B.charAt(0);
String Bb = B.charAt(B.length()-1);
String Ca = C.charAt(0);
if(Ab = Ba && Bb = Ca) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:11: error: incompatible types: char cannot be converted to String
String Ab = A.charAt(A.length()-1);
^
Main.java:12: error: incompatible types: char cannot be converted to String
String Ba = B.charAt(0);
^
Main.java:13: error: incompatible types: char cannot be converted to String
String Bb = B.charAt(B.length()-1);
^
Main.java:14: error: incompatible types: char cannot be converted to String
String Ca = C.charAt(0);
^
Main.java:16: error: bad operand types for binary operator '&&'
if(Ab = Ba && Bb = Ca) {
^
first type: String
second type: String
Main.java:16: error: incompatible types: String cannot be converted to boolean
if(Ab = Ba && Bb = Ca) {
^
6 errors
|
s590420883 | p03729 | Java | import java.util.Scanner;
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();
char Ab = A.charAt(A.length()-1);
char Ba = B.charAt(0);
char Bb = B.charAt(B.length()-1);
char Ca = C.charAt(0);
if(Ab = Ba && Bb = Ca) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:16: error: bad operand types for binary operator '&&'
if(Ab = Ba && Bb = Ca) {
^
first type: char
second type: char
Main.java:16: error: incompatible types: char cannot be converted to boolean
if(Ab = Ba && Bb = Ca) {
^
2 errors
|
s333335010 | p03729 | Java | import java.util.Scanner;
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();
A = A.charAt(A.length-1);
String B1 = B.charAt(0);
String B2 = B.charAt(B.length-1);
C = C.charAt(0);
if(A = B1 && B2 = C) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:11: error: cannot find symbol
A = A.charAt(A.length-1);
^
symbol: variable length
location: variable A of type String
Main.java:12: error: incompatible types: char cannot be converted to String
String B1 = B.charAt(0);
^
Main.java:13: error: cannot find symbol
String B2 = B.charAt(B.length-1);
^
symbol: variable length
location: variable B of type String
Main.java:14: error: incompatible types: char cannot be converted to String
C = C.charAt(0);
^
Main.java:16: error: bad operand types for binary operator '&&'
if(A = B1 && B2 = C) {
^
first type: String
second type: String
Main.java:16: error: incompatible types: String cannot be converted to boolean
if(A = B1 && B2 = C) {
^
6 errors
|
s548192999 | p03729 | Java | import java.util.Scanner;
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();
A = A.charAt(A.length-1);
String B1 = B.charAt(0);
String B2 = B.charAt(B.length-1);
C = C.charAt(0);
if(A = B1 && B2 = C) {
System.out.println("Yes");
} else {
System.out.println("No")
}
}
} | Main.java:19: error: ';' expected
System.out.println("No")
^
1 error
|
s833672557 | p03729 | Java | import java.util.Scanner;
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();
A = A.charAt(A.length-1);
String B1 = B.charAt(0);
String B2 = B.charAt(B.length-1);
C = C.charAt(0);
if(A = B1 && B2 = C) {
System.out.println("Yes");
} else {
System.out.println("No"); | Main.java:19: error: reached end of file while parsing
System.out.println("No");
^
1 error
|
s222362380 | p03729 | C | #include <stdio.h>
#include <string.h>
int main()
{
char A[20], B[20], C[20];
scanf("%s %s %s", A, B, C);
int la = strlen(A), lb = strlen(B);
if(A[la-1] == B[0] && B[lb-1] == C[0])
{
printf("YES\n");
}
else
{
printf("NO\n");
}
return 0;
} | main.c:3:1: error: stray '\302' in program
3 | <U+00A0>
| ^~~~~~~~
main.c: In function 'main':
main.c:7:1: error: stray '\302' in program
7 | <U+00A0>
| ^~~~~~~~
main.c:9:1: error: stray '\302' in program
9 | <U+00A0>
| ^~~~~~~~
main.c:11:1: error: stray '\302' in program
11 | <U+00A0>
| ^~~~~~~~
main.c:20:1: error: stray '\302' in program
20 | <U+00A0>
| ^~~~~~~~
|
s879624109 | p03729 | C | #include<stdio.h>
int main(void) {
char a[],b[],c[];
int wa,wb;
scanf("%s %s %s",a,b,c);
wa = sizeof(a) - 1;
wb = sizeof(b) - 1;
if(a[wa] == b[0] && b[wb] == c[0]) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:4:8: error: array size missing in 'a'
4 | char a[],b[],c[];
| ^
main.c:4:12: error: array size missing in 'b'
4 | char a[],b[],c[];
| ^
main.c:4:16: error: array size missing in 'c'
4 | char a[],b[],c[];
| ^
|
s606082425 | p03729 | C++ | #include<string>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A[A.length() - 1] == B[0]) {
if (B[B.length() - 1] == C[0]) {
cout << "YES" << endl;
}
}
else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
9 | cin >> A >> B >> C;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<string>
+++ |+#include <iostream>
2 |
a.cc:13:25: error: 'cout' was not declared in this scope
13 | cout << "YES" << endl;
| ^~~~
a.cc:13:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:42: error: 'endl' was not declared in this scope
13 | cout << "YES" << endl;
| ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
1 | #include<string>
+++ |+#include <ostream>
2 |
a.cc:17:17: error: 'cout' was not declared in this scope
17 | cout << "NO" << endl;
| ^~~~
a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:33: error: 'endl' was not declared in this scope
17 | cout << "NO" << endl;
| ^~~~
a.cc:17:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s236807599 | p03729 | C | #include <stdio.h>
#include <string.h>
int main()
{
char A[20], B[20], C[20];
scanf("%s %s %s", A, B, C);
int la = strlen(A), lb = strlen(B);
if(A[la-1] == B[0] && B[lb-1] == C[0])
{
printf("YES\n");
}
else
{
printf("NO\n");
return 0;
}
| main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
22 | }
| ^
|
s227532599 | p03729 | Java | public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
} | Main.java:1: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Sw
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Sw
3 errors
|
s879902269 | p03729 | Java | public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s343189891 | p03729 | Java | package sw;
import java.util.Scanner;
public class Sw.java {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:5: error: '{' expected
public class Sw.java {
^
1 error
|
s108876207 | p03729 | Java | package sw;
import java.util.Scanner;
class Sw.java {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:4: error: '{' expected
class Sw.java {
^
1 error
|
s730579056 | p03729 | Java | package sw;
import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:5: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s021524646 | p03729 | Java | import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
} | Main.java:3: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s386313089 | p03729 | Java | import java.util.Scanner;
public class Sw .java{
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
} | Main.java:3: error: '{' expected
public class Sw .java{
^
1 error
|
s602380226 | p03729 | Java | import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
} | Main.java:3: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s181482484 | p03729 | Java |
package sw;
import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:6: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s584705014 | p03729 | Java |
package sw;
import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:6: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s853709437 | p03729 | Java |
package sw;
import java.util.Scanner;
public class Sw {
public static void main(String[] args) {
String a, b, c;
Scanner sc = new Scanner(System.in);
a = sc.nextLine();
b = sc.nextLine();
c = sc.nextLine();
if ((a.charAt(a.length()-1) == (b.charAt(0)))&&((b.charAt(b.length()-1))==(c.charAt(0)))) {
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| Main.java:6: error: class Sw is public, should be declared in a file named Sw.java
public class Sw {
^
1 error
|
s528890090 | p03729 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string.h>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <stack>
#include <math.h>
#include <sstream>
#include <xfunctional>
using namespace std;
#define lld long long
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.size() == 0 || b.size() == 0 || c.size() == 0)
cout << "NO" << endl;
if (a[(int)a.size() - 1] == b[0] && b[(int)b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
//system("pause");
return 0;
} | a.cc:12:10: fatal error: xfunctional: No such file or directory
12 | #include <xfunctional>
| ^~~~~~~~~~~~~
compilation terminated.
|
s143243143 | p03729 | Java | import java.util.Scanner;
public class TaskA {
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)) {
System.out.println("NO");
} else if (b.charAt(b.length() - 1) != c.charAt(0)) {
System.out.println("NO");
} else {
System.out.println("YES");
}
}
} | Main.java:3: error: class TaskA is public, should be declared in a file named TaskA.java
public class TaskA {
^
1 error
|
s052633694 | p03729 | C++ | using System;
public class Hello{
public static void Main(){
string[] input = Console.ReadLine().Split(' ');
bool flag = true;
for(int x = 0;x < input.Length - 1;x++){
if(input[x].Substring(input[x].Length - 1,1) != input[x + 1].Substring(0,1)){
flag = false;
break;
}
}
if(flag == true){
Console.WriteLine("YES");
}else{
Console.WriteLine("NO");
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:1: error: expected unqualified-id before 'public'
2 | public class Hello{
| ^~~~~~
|
s493201888 | p03729 | C | #include<stdio.h>
int main(){
char strA[10],strB[10],strC[10];
scanf("%10s %10s %10s",strA,atrB,strC);
int i,j;
for (i=0;strA[i] != '\0';i++);
if(strA[i]==strB[0]){
for (i = 0;strB[i] != '\0';i++);
if(strB[i]==strC[0]){
printf("YES");
}else{
printf("NO");
}
}else{
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:4:31: error: 'atrB' undeclared (first use in this function); did you mean 'strB'?
4 | scanf("%10s %10s %10s",strA,atrB,strC);
| ^~~~
| strB
main.c:4:31: note: each undeclared identifier is reported only once for each function it appears in
|
s827311881 | p03729 | C++ | #include <iostream>
int main()
{
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
std::cin >> A;
std::cin >> B;
std::cin >> C;
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:15: error: 'strlen' was not declared in this scope
13 | if (A[strlen(A) - 1] == B[0] &&
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2 |
|
s444334142 | p03729 | C++ | #include <iostream>
using namespace std;
int main()
{
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
std::cin >> A;
std::cin >> B;
std::cin >> C;
if (A[std::strlen(A) - 1] == B[0] &&
B[std::strlen(B) - 1] == C[0]) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:20: error: 'strlen' is not a member of 'std'; did you mean 'mbrlen'?
15 | if (A[std::strlen(A) - 1] == B[0] &&
| ^~~~~~
| mbrlen
a.cc:16:24: error: 'strlen' is not a member of 'std'; did you mean 'mbrlen'?
16 | B[std::strlen(B) - 1] == C[0]) {
| ^~~~~~
| mbrlen
|
s530111746 | p03729 | C++ | #include <iostream>
using namespace std;
int main()
{
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
std::cin >> A;
std::cin >> B;
std::cin >> C;
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:15: error: 'strlen' was not declared in this scope
15 | if (A[strlen(A) - 1] == B[0] &&
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2 |
|
s809049029 | p03729 | C++ | #include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
std::cin >> A;
std::cin >> B;
std::cin >> C;
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
| a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s875520877 | p03729 | C++ | int main()
{
using namespace std;
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
cin >> A;
cin >> B;
cin >> C;
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
8 | cin >> A;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | int main()
a.cc:12:15: error: 'strlen' was not declared in this scope
12 | if (A[strlen(A) - 1] == B[0] &&
| ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
+++ |+#include <cstring>
1 | int main()
a.cc:14:17: error: 'cout' was not declared in this scope
14 | cout << "YES" << endl;
| ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:34: error: 'endl' was not declared in this scope
14 | cout << "YES" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | int main()
a.cc:17:17: error: 'cout' was not declared in this scope
17 | cout << "NO" << endl;
| ^~~~
a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:33: error: 'endl' was not declared in this scope
17 | cout << "NO" << endl;
| ^~~~
a.cc:17:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s702205004 | p03729 | C++ | #include <iostream>
using namespace std;
int main()
{
char* A = new char[11];
char* B = new char[11];;
char* C = new char[11];;
cin >> A;
cin >> B;
cin >> C;
if (A[strlen(A) - 1] == B[0] &&
B[strlen(B) - 1] == C[0]) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:15: error: 'strlen' was not declared in this scope
15 | if (A[strlen(A) - 1] == B[0] &&
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2 |
|
s311506200 | p03729 | C++ | #include<iostream>
using namespace std;
int main(){
cout << 1 << endl;
return0;
} | a.cc: In function 'int main()':
a.cc:6:2: error: 'return0' was not declared in this scope
6 | return0;
| ^~~~~~~
|
s552953070 | p03729 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
int x = c % b;
bool f = 0;
for (int i = 1; i <= 100; i++) {
if ((i * a) % b == x) {
f = 1;
break;
}
}
if (f)
cout << "YES"
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:17:14: error: expected ';' before 'else'
17 | cout << "YES"
| ^
| ;
18 | else
| ~~~~
|
s870609695 | p03729 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
int x = c % b;
bool f = false;
for (int i = 1; i <= 100; i++) {
if (i * a % b == x) {
f = true;
break;
}
}
if (f)
cout << "YES"
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:17:14: error: expected ';' before 'else'
17 | cout << "YES"
| ^
| ;
18 | else
| ~~~~
|
s933176782 | p03729 | C++ | #define forn(i,n) for(in i=0;i<(n);++i)
#define forv(i,v) forn(i,sz(v))
#define fors(i,s) for(auto i=(s).begin();i!=(s).end();++i)
#define all(v) (v).begin(),(v).end()
using namespace std;
typedef long long ll;
int N = 200005;
int a[805][805];
int main(){
string s, s1,s2;
cin >> s >> s1 >> s2;
if (s[s.size() - 1] == s1[0] && s1[s1.size() - 1] == s2[0]){
cout <<"YES\n";
} else {
cout <<"NO\n";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:3: error: 'string' was not declared in this scope
10 | string s, s1,s2;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | #define forn(i,n) for(in i=0;i<(n);++i)
a.cc:11:3: error: 'cin' was not declared in this scope
11 | cin >> s >> s1 >> s2;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #define forn(i,n) for(in i=0;i<(n);++i)
a.cc:11:10: error: 's' was not declared in this scope
11 | cin >> s >> s1 >> s2;
| ^
a.cc:11:15: error: 's1' was not declared in this scope
11 | cin >> s >> s1 >> s2;
| ^~
a.cc:11:21: error: 's2' was not declared in this scope
11 | cin >> s >> s1 >> s2;
| ^~
a.cc:13:9: error: 'cout' was not declared in this scope
13 | cout <<"YES\n";
| ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:9: error: 'cout' was not declared in this scope
15 | cout <<"NO\n";
| ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s062793581 | p03729 | C++ | import Control.Applicative
check a b= (last a == head b)
yn a b c= if(check a b && check b c) then "YES" else "NO"
main = do
[a,b,c]<- words<$>getLine
putStrLn.yn a b c | a.cc:1:1: error: 'import' does not name a type
1 | import Control.Applicative
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s508045888 | p03729 | C++ | main = do
-- (x:y:[])<- (map read).words<$>getLine ::IO [Int]
(a:b:c:[]) <- words<$>getLine:: IO [String]
if last a == head b && last b == head c then putStrLn "YES" else putStrLn "NO" | a.cc:1:1: error: 'main' does not name a type
1 | main = do
| ^~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.