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++/1...
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.printl...
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 Sca...
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; | ~~~ ...
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...
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()...
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); S...
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 can...
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] | ^ | ...
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 '{' bef...
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] && ...
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] && ...
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] == ...
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] ...
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...
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...
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 st...
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::ba...
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...
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"...
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> +++ |+#i...
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[]; ...
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> ...
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> ...
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::_...
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 | ...
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: not...
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: not...
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: err...
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: err...
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 unsi...
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 unsi...
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 <cst...
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<(...
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];...
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) ...
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()){ | ~~~~~~~ ^...
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...
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 nam...
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"); | ~~~~~ ^~ ~~~~~~~ | | |...
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";) | ~ ^ | ...
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 unsign...
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("%...
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; |...
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 unsign...
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 ...
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_str...
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:...
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())] =...
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] &...
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";...
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:...
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(...
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.cha...
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()-...
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....
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.cha...
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: in...
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(...
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); ...
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...
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); ...
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); ...
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> ...
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 ...
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)))) { ...
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 Scann...
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...
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.cha...
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.l...
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...
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))...
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(...
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))...
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(...
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(...
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(...
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; ...
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) ...
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; ...
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"...
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...
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> +++ |+#...
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...
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 | ...
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::...
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> +++ |+#...
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::c...
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: 'st...
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> +++ |+#...
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]...
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)...
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 | ^~~~