submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s552207474
p03719
C++
int main() { int A,B,C; cin>>A,B,C; if(A<=C<=B){ cout <<"Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:3:1: error: 'cin' was not declared in this scope 3 | cin>>A,B,C; | ^~~ a.cc:5:5: error: 'cout' was not declared in this scope 5 | cout <<"Yes" << endl; | ^~~~ a.cc:5:21: error: 'endl' was not declared in this scope 5 | cout <<"Yes" << endl; | ^~~~ a.cc:7:5: error: 'cout' was not declared in this scope 7 | cout << "No" << endl; | ^~~~ a.cc:7:21: error: 'endl' was not declared in this scope 7 | cout << "No" << endl; | ^~~~
s269167761
p03719
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(-100>a>c){ System.out.println("No"); }else if(b>c>100){ System.out.println("No"); }else{ System.out.println("Yes"); } } }
Main.java:9: error: bad operand types for binary operator '>' if(-100>a>c){ ^ first type: boolean second type: int Main.java:11: error: bad operand types for binary operator '>' }else if(b>c>100){ ^ first type: boolean second type: int 2 errors
s728284605
p03719
C++
#include <iostream> #include <map> #include <set> #include <vector> #include <algorithm> #include <math.h> #include <cmath> #include <deque> using namespace std; typedef long long ll; int main(){ int A, B, C; cin >> A >> B >> C; if(a <= C && C <= B) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:16:7: error: 'a' was not declared in this scope 16 | if(a <= C && C <= B) cout << "Yes" << endl; | ^
s732142203
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if(a <= c and c <= b) puts("Yes"); else puts("No") }
a.cc: In function 'int main()': a.cc:8:18: error: expected ';' before '}' token 8 | else puts("No") | ^ | ; 9 | } | ~
s975887821
p03719
C++
#include <iostream> using namespace std; int main() { // your code goes here int a,b,c; cin>>a>>b>>c; if(c>=a&&c<=b&&)cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:24: error: expected primary-expression before ')' token 8 | if(c>=a&&c<=b&&)cout<<"Yes"<<endl; | ^
s814455793
p03719
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(c>=a && c <= b){ cout < <"Yes"; }else{ cout << "No"; } }
a.cc: In function 'int main()': a.cc:7:12: error: expected primary-expression before '<' token 7 | cout < <"Yes"; | ^
s775574671
p03719
C++
int a, b, c; int main () { cin >> a >> b >> c; if (c >= a && c <b) { cout << "Yes" << endl; } else if (a == b == c){ cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:3:1: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:5:9: error: 'cout' was not declared in this scope 5 | cout << "Yes" << endl; | ^~~~ a.cc:5:26: error: 'endl' was not declared in this scope 5 | cout << "Yes" << endl; | ^~~~ a.cc:8:9: error: 'cout' was not declared in this scope 8 | cout << "Yes" << endl; | ^~~~ a.cc:8:26: error: 'endl' was not declared in this scope 8 | cout << "Yes" << endl; | ^~~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout << "No" << endl; | ^~~~ a.cc:11:25: error: 'endl' was not declared in this scope 11 | cout << "No" << endl; | ^~~~
s549901546
p03719
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c[50],d[50]; cin>> a >>b; for(int i=0; i<b;i++){ cin >> c[i] >>d[i]; } for(int i=1; i<=a ;i++){ int e[50] = 0,f[50] =0; for(int j =1; j<=b;j++){ e[c[j]-1] += 1; f[d[j]-1] += 1; } cout << e[i]+f[i] <<endl; } }
a.cc: In function 'int main()': a.cc:13:17: error: array must be initialized with a brace-enclosed initializer 13 | int e[50] = 0,f[50] =0; | ^ a.cc:13:26: error: array must be initialized with a brace-enclosed initializer 13 | int e[50] = 0,f[50] =0; | ^
s218220300
p03719
C++
#include<iostream> using namespace std; int main (){ int a,b,c; cin >> a>> b>> c; if(a<=c&&c<=b){ cout<< "Yes"; }else{ cout<< "No"; }
a.cc: In function 'int main()': a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main (){ | ^
s166270105
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Between_Two_Intergets { class Program { static void Main(string[] args) { int A, B,C; //整数A,Bの入力 var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); C = int.Parse(word[2]); if (A <= C && C <= B) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } //入力待ちに Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:26: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:35: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:26:6: error: expected ';' after class definition 26 | } | ^ | ; a.cc: In static member function 'static void Between_Two_Intergets::Program::Main(int*)': a.cc:15:13: error: 'var' was not declared in this scope 15 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:16:17: error: expected primary-expression before 'int' 16 | A = int.Parse(word[0]); | ^~~ a.cc:17:17: error: expected primary-expression before 'int' 17 | B = int.Parse(word[1]); | ^~~ a.cc:18:17: error: expected primary-expression before 'int' 18 | C = int.Parse(word[2]); | ^~~ a.cc:20:15: error: 'Console' was not declared in this scope 20 | { Console.WriteLine("Yes"); } | ^~~~~~~ a.cc:22:15: error: 'Console' was not declared in this scope 22 | { Console.WriteLine("No"); } | ^~~~~~~ a.cc:24:13: error: 'Console' was not declared in this scope 24 | Console.ReadKey(); | ^~~~~~~
s824300389
p03719
C++
namespace ABC061A { class Program { static void Main(string[] args) { int a, b,c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if ((a <= c) && (c <= b)) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } Console.ReadKey(); } } }
a.cc:7:34: error: 'string' has not been declared 7 | static void Main(string[] args) | ^~~~~~ a.cc:7:43: error: expected ',' or '...' before 'args' 7 | static void Main(string[] args) | ^~~~ a.cc:30:10: error: expected ';' after class definition 30 | } | ^ | ; a.cc: In static member function 'static void ABC061A::Program::Main(int*)': a.cc:10:25: error: 'var' was not declared in this scope 10 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:11:29: error: expected primary-expression before 'int' 11 | a = int.Parse(word[0]); | ^~~ a.cc:12:29: error: expected primary-expression before 'int' 12 | b = int.Parse(word[1]); | ^~~ a.cc:13:29: error: expected primary-expression before 'int' 13 | c = int.Parse(word[2]); | ^~~ a.cc:17:33: error: 'Console' was not declared in this scope 17 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:21:33: error: 'Console' was not declared in this scope 21 | Console.WriteLine("No"); | ^~~~~~~ a.cc:24:25: error: 'Console' was not declared in this scope 24 | Console.ReadKey(); | ^~~~~~~
s005232974
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061A { class Program { static void Main(string[] args) { int a, b,c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if ((a <= c) && (c <= b)) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:34: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:43: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:34:10: error: expected ';' after class definition 34 | } | ^ | ; a.cc: In static member function 'static void ABC061A::Program::Main(int*)': a.cc:14:25: error: 'var' was not declared in this scope 14 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:15:29: error: expected primary-expression before 'int' 15 | a = int.Parse(word[0]); | ^~~ a.cc:16:29: error: expected primary-expression before 'int' 16 | b = int.Parse(word[1]); | ^~~ a.cc:17:29: error: expected primary-expression before 'int' 17 | c = int.Parse(word[2]); | ^~~ a.cc:21:33: error: 'Console' was not declared in this scope 21 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:25:33: error: 'Console' was not declared in this scope 25 | Console.WriteLine("No"); | ^~~~~~~ a.cc:28:25: error: 'Console' was not declared in this scope 28 | Console.ReadKey(); | ^~~~~~~
s415089605
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if (c >= a && c <= b) Console.WriteLine("Yes"); else Console.WriteLine("NO"); Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:26: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:35: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:30:6: error: expected ';' after class definition 30 | } | ^ | ; a.cc: In static member function 'static void ABC061A::Program::Main(int*)': a.cc:15:13: error: 'var' was not declared in this scope 15 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:17:17: error: expected primary-expression before 'int' 17 | a = int.Parse(word[0]); | ^~~ a.cc:18:17: error: expected primary-expression before 'int' 18 | b = int.Parse(word[1]); | ^~~ a.cc:19:17: error: expected primary-expression before 'int' 19 | c = int.Parse(word[2]); | ^~~ a.cc:23:17: error: 'Console' was not declared in this scope 23 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:25:17: error: 'Console' was not declared in this scope 25 | Console.WriteLine("NO"); | ^~~~~~~ a.cc:27:13: error: 'Console' was not declared in this scope 27 | Console.ReadKey(); | ^~~~~~~
s108933560
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061 { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if ((c >= a) && (c <= b)) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:26: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:35: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:33:10: error: expected ';' after class definition 33 | } | ^ | ; a.cc: In static member function 'static void ABC061::Program::Main(int*)': a.cc:14:13: error: 'var' was not declared in this scope 14 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:15:17: error: expected primary-expression before 'int' 15 | a = int.Parse(word[0]); | ^~~ a.cc:16:17: error: expected primary-expression before 'int' 16 | b = int.Parse(word[1]); | ^~~ a.cc:17:17: error: expected primary-expression before 'int' 17 | c = int.Parse(word[2]); | ^~~ a.cc:21:17: error: 'Console' was not declared in this scope 21 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:25:17: error: 'Console' was not declared in this scope 25 | Console.WriteLine("No"); | ^~~~~~~ a.cc:28:13: error: 'Console' was not declared in this scope 28 | Console.ReadKey(); | ^~~~~~~
s847555590
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if (a <= c && c <= b) Console.WriteLine("Yes"); else Console.WriteLine("No"); Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:26: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:35: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:26:6: error: expected ';' after class definition 26 | } | ^ | ; a.cc: In static member function 'static void ABC061A::Program::Main(int*)': a.cc:14:13: error: 'var' was not declared in this scope 14 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:15:17: error: expected primary-expression before 'int' 15 | a = int.Parse(word[0]); | ^~~ a.cc:16:17: error: expected primary-expression before 'int' 16 | b = int.Parse(word[1]); | ^~~ a.cc:17:17: error: expected primary-expression before 'int' 17 | c = int.Parse(word[2]); | ^~~ a.cc:19:17: error: 'Console' was not declared in this scope 19 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:21:17: error: 'Console' was not declared in this scope 21 | Console.WriteLine("No"); | ^~~~~~~ a.cc:23:13: error: 'Console' was not declared in this scope 23 | Console.ReadKey(); | ^~~~~~~
s048104110
p03719
C++
static void Main(string[] args) { int a; int b; int c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if (c>=a&&c<=b) Console.WriteLine("yes"); else Console.WriteLine("no"); Console.ReadKey(); } }
a.cc:1:13: error: variable or field 'Main' declared void 1 | static void Main(string[] args) | ^~~~ a.cc:1:18: error: 'string' was not declared in this scope 1 | static void Main(string[] args) | ^~~~~~ a.cc:1:25: error: expected primary-expression before ']' token 1 | static void Main(string[] args) | ^ a.cc:22:5: error: expected declaration before '}' token 22 | } | ^
s441486547
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if (a <= c && c <= b) Console.WriteLine("Yes"); else Console.WriteLine("No"); Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:26: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:35: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:27:6: error: expected ';' after class definition 27 | } | ^ | ; a.cc: In static member function 'static void ABC061A::Program::Main(int*)': a.cc:15:13: error: 'var' was not declared in this scope 15 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:16:17: error: expected primary-expression before 'int' 16 | a = int.Parse(word[0]); | ^~~ a.cc:17:17: error: expected primary-expression before 'int' 17 | b = int.Parse(word[1]); | ^~~ a.cc:18:17: error: expected primary-expression before 'int' 18 | c = int.Parse(word[2]); | ^~~ a.cc:21:17: error: 'Console' was not declared in this scope 21 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:23:17: error: 'Console' was not declared in this scope 23 | Console.WriteLine("No"); | ^~~~~~~ a.cc:25:13: error: 'Console' was not declared in this scope 25 | Console.ReadKey(); | ^~~~~~~
s119094288
p03719
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int.Parse(word[2]); if (c >= a && c <= b) Console.WriteLine("Yes"); else Console.WriteLine("No"); Console.ReadKey(); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:11:34: error: 'string' has not been declared 11 | static void Main(string[] args) | ^~~~~~ a.cc:11:43: error: expected ',' or '...' before 'args' 11 | static void Main(string[] args) | ^~~~ a.cc:28:10: error: expected ';' after class definition 28 | } | ^ | ; a.cc: In static member function 'static void ConsoleApplication1::Program::Main(int*)': a.cc:14:25: error: 'var' was not declared in this scope 14 | var word = Console.ReadLine().Split(' '); | ^~~ a.cc:16:29: error: expected primary-expression before 'int' 16 | a = int.Parse(word[0]); | ^~~ a.cc:17:29: error: expected primary-expression before 'int' 17 | b = int.Parse(word[1]); | ^~~ a.cc:18:29: error: expected primary-expression before 'int' 18 | c = int.Parse(word[2]); | ^~~ a.cc:21:33: error: 'Console' was not declared in this scope 21 | Console.WriteLine("Yes"); | ^~~~~~~ a.cc:23:33: error: 'Console' was not declared in this scope 23 | Console.WriteLine("No"); | ^~~~~~~ a.cc:25:33: error: 'Console' was not declared in this scope 25 | Console.ReadKey(); | ^~~~~~~
s851106864
p03719
C++
# include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c>=a && c<=b){ cout<"Yes"; } else { cout<<"No"; } }
a.cc: In function 'int main()': a.cc:7:9: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 7 | cout<"Yes"; | ~~~~^~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_ostream<char>} 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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cout<"Yes"; | ^~~~~ 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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | cout<"Yes"; | ^~~~~ 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:7:10: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 7 | cout<"Yes"; | ^~~~~ /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:7:10: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 7 | cout<"Yes"; | ^~~~~ 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:7:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 7 | cout<"Yes"; | ^~~~~ 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::ostream' {aka '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::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_condition&' 507 | operator<(const error_condition& __lhs, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
s020215411
p03719
C++
#include <set> #include <map> #include <list> #include <queue> #include <stack> #include <cmath> #include <ctime> #include <cstdio> #include <vector> #include <string> #include <bitset> #include <cctype> #include <cstdlib> #include <cstring> #include <utility> #include <numeric> #include <complex> #include <sstream> #include <fstream> #include <iomanip> #include <cassert> #include <iostream> #include <iterator> #include <algorithm> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int, int> pint; #define rep(i, n) REP(i, 0, n) #define all(v) v.begin(), v.end() #define REP(i, x, n) for(int i = x; i < n; i++) #define INF 2e9 signed main(){ cin.tie(0); ios::sync_with_stdio(false); int a,b,c; cin>>a>>b>>c; if(a<=c && c<=b){ cout<<"Yes"<'\n'; } else{ cout<<"No"<<'\n'; } return(0); }
a.cc: In function 'int main()': a.cc:39:16: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'char') 39 | cout<<"Yes"<'\n'; | ~~~~~~~~~~~^~~~~ | | | | | char | std::basic_ostream<char> a.cc:39:16: note: candidate: 'operator<(int, int)' (built-in) 39 | cout<<"Yes"<'\n'; | ~~~~~~~~~~~^~~~~ a.cc:39:16: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/bits/stl_tree.h:63, from /usr/include/c++/14/set:62, from a.cc:1: /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:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 39 | cout<<"Yes"<'\n'; | ^~~~ /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:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 39 | cout<<"Yes"<'\n'; | ^~~~ /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:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 39 | cout<<"Yes"<'\n'; | ^~~~ /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:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/set:63: /usr/include/c++/14/bits/stl_set.h:1025:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<(const set<_Key, _Compare, _Allocator>&, const set<_Key, _Compare, _Allocator>&)' 1025 | operator<(const set<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_set.h:1025:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::set<_Key, _Compare, _Allocator>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/set:64: /usr/include/c++/14/bits/stl_multiset.h:1011:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<(const multiset<_Key, _Compare, _Allocator>&, const multiset<_Key, _Compare, _Allocator>&)' 1011 | operator<(const multiset<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_multiset.h:1011:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::multiset<_Key, _Compare, _Allocator>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/set:80: /usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_Args1 ...>&, const tuple<_Elements ...>&)' 2600 | operator<(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_Args1 ...>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/map:63, from a.cc:2: /usr/include/c++/14/bits/stl_map.h:1550:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const map<_Key, _Tp, _Compare, _Allocator>&, const map<_Key, _Tp, _Compare, _Allocator>&)' 1550 | operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_map.h:1550:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::map<_Key, _Tp, _Compare, _Allocator>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/map:64: /usr/include/c++/14/bits/stl_multimap.h:1172:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const multimap<_Key, _Tp, _Compare, _Allocator>&, const multimap<_Key, _Tp, _Compare, _Allocator>&)' 1172 | operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_multimap.h:1172:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Allocator>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/list:65, from a.cc:3: /usr/include/c++/14/bits/stl_list.h:2188:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const __cxx11::list<_Tp, _Alloc>&, const __cxx11::list<_Tp, _Alloc>&)' 2188 | operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_list.h:2188:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::list<_Tp, _Alloc>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/deque:66, from /usr/include/c++/14/queue:62, from a.cc:4: /usr/include/c++/14/bits/stl_deque.h:2334:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)' 2334 | operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_deque.h:2334:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::deque<_Tp, _Alloc>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/vector:66, from /usr/include/c++/14/queue:63: /usr/include/c++/14/bits/stl_vector.h:2089:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2089 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:2089:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/queue:66: /usr/include/c++/14/bits/stl_queue.h:397:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<(const queue<_Tp, _Seq>&, const queue<_Tp, _Seq>&)' 397 | operator<(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_queue.h:397:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::queue<_Tp, _Seq>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/stack:63, from a.cc:5: /usr/include/c++/14/bits/stl_stack.h:373:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<(const stack<_Tp, _Seq>&, const stack<_Tp, _Seq>&)' 373 | operator<(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_stack.h:373:5: note: template argument deduction/substitution failed: a.cc:39:17: note: 'std::basic_ostream<char>' is not derived from 'const std::stack<_Tp, _Seq>' 39 | cout<<"Yes"<'\n'; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from a.cc:10: /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
s501798754
p03719
C++
#include <bits/stdc++.h> #include <stdio.h> #include <numeric> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define repone(i,n) for(int i=1;i<(int)(n);++i) #define repo(i,o,n) for(int i=o;i<(int)(n);++i) #define Rep(j,n) for(int j=0;j<(int)(n);++j) #define Repo(j,o,n) for(int j=o;j<(int)(n);++j) #define Repone(j,n) for(int j=1;j<(int)(n);++j) #define all(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() #define int long long #define pb(a) push_back(a) #define eraser(v,i) (v).erase(v.begin()+(i)) #define pbpair(a,b) push_back(make_pair(a,b)) #define MOD 1000000007 #define INF 9223372036854775807 #define pairint pair<int,int> int num[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; bool uru(int checkyear){if(checkyear%4==0){if(checkyear%100!=0||checkyear%400==0)return true;}return false;} int gcd( int x, int y ){return y ? gcd(y, x%y) : x;} signed main() { int x=0,y=0,z=0,w=0,n=0,m=0; cin>>x>>y>>z; if(z>=x&&z<=y)cout << "Yes"; else cout << "No" }
a.cc: In function 'int main()': a.cc:27:18: error: expected ';' before '}' token 27 | else cout << "No" | ^ | ; 28 | } | ~
s746685735
p03719
C++
# A - Between Two Integers A, B, C = map(int,input().split()) if A <= C <= B: print('Yes') else: print('No')
a.cc:1:3: error: invalid preprocessing directive #A 1 | # A - Between Two Integers | ^ a.cc:4:11: warning: multi-character character constant [-Wmultichar] 4 | print('Yes') | ^~~~~ a.cc:6:11: warning: multi-character character constant [-Wmultichar] 6 | print('No') | ^~~~ a.cc:2:1: error: 'A' does not name a type 2 | A, B, C = map(int,input().split()) | ^
s099881155
p03719
C
#include<stdio.H> int main(){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(C>=A && C<=B){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
main.c:1:9: fatal error: stdio.H: No such file or directory 1 | #include<stdio.H> | ^~~~~~~~~ compilation terminated.
s186609720
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (c >= a && c <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc:6:12: error: extended character   is not valid in an identifier 6 | if (c >= a && c <= b) { | ^ a.cc: In function 'int main()': a.cc:6:12: error: 'a\U00003000' was not declared in this scope 6 | if (c >= a && c <= b) { | ^~~
s305845391
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (c >= a && c <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc:6:12: error: extended character   is not valid in an identifier 6 | if (c >= a && c <= b) { | ^ a.cc: In function 'int main()': a.cc:6:12: error: 'a\U00003000' was not declared in this scope 6 | if (c >= a && c <= b) { | ^~~
s626017101
p03719
C++
#include <isotream> using namespace std; int main(){ int A, B, C; cin >> A >> B >> C; if(C >= A && B <= C) cout << "Yes"; else cout << "No"; }
a.cc:1:10: fatal error: isotream: No such file or directory 1 | #include <isotream> | ^~~~~~~~~~ compilation terminated.
s177864565
p03719
C++
#include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vb = vector<bool>; using vc = vector<char>; using vs = vector<string>; using vvi = vector<vector<int>>; using vvc = vector<vector<char>>; using pii = pair<int, int>; #define rep(i,n) for(int i=0; i<(int)(n);i++) int main(){ cin >> a >> b >> c; if(c >= a && c <= b) cout << "Yes"; else cout << "No"; }
a.cc: In function 'int main()': a.cc:13:10: error: 'a' was not declared in this scope 13 | cin >> a >> b >> c; | ^ a.cc:13:15: error: 'b' was not declared in this scope; did you mean 'vb'? 13 | cin >> a >> b >> c; | ^ | vb a.cc:13:20: error: 'c' was not declared in this scope; did you mean 'vc'? 13 | cin >> a >> b >> c; | ^ | vc
s683982082
p03719
C++
#include <iostream> using namespace std: int main(){ int a,b,c; cin >>a >> b >> c; if ( a<= b && b <= c ) cout << "Yes"; else cout << "No" ; }
a.cc:2:20: error: expected ';' before ':' token 2 | using namespace std: | ^ | ; a.cc:2:20: error: expected unqualified-id before ':' token
s879643543
p03719
C++
int main(){ int a,b,c; cin >>a >> b >> c; if ( a<= b && b <= c ) cout << "Yes"; else cout << "No" ; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin >>a >> b >> c; | ^~~ a.cc:7:26: error: 'cout' was not declared in this scope 7 | if ( a<= b && b <= c ) cout << "Yes"; | ^~~~ a.cc:8:8: error: 'cout' was not declared in this scope 8 | else cout << "No" ; | ^~~~
s002107975
p03719
Java
function Main(input) { var A = parseInt(input.split(" ")[0]); var B = parseInt(input.split(" ")[1]); var C = parseInt(input.split(" ")[2]); if(A <= C && B >= C){ console.log("Yes"); }else{ console.log("No"); } } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. function Main(input) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected function Main(input) { ^ Main.java:13: error: class, interface, enum, or record expected Main(require("fs").readFileSync("/dev/stdin", "utf8")); ^ 3 errors
s419715865
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >>A>>B>>C; string ans; if(A<=C&&C<=B) ans="YES" : ans="NO"; cout <<ans<< endl; }
a.cc: In function 'int main()': a.cc:9:27: error: expected ';' before ':' token 9 | if(A<=C&&C<=B) ans="YES" : ans="NO"; | ^~ | ;
s156003444
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >>A>>B>>C; string ans; if(A<=C&&C<=B) ans = "YES" : "NO"; cout <<ans<< endl; }
a.cc: In function 'int main()': a.cc:9:29: error: expected ';' before ':' token 9 | if(A<=C&&C<=B) ans = "YES" : "NO"; | ^~ | ;
s218110095
p03719
C++
(a, b, c) = (int(tok) for tok in input().split()) print("YES" if a <= c and c <= b else "NO")
a.cc:1:3: error: expected ')' before ',' token 1 | (a, b, c) = (int(tok) for tok in input().split()) | ~ ^ | ) a.cc:1:6: error: expected constructor, destructor, or type conversion before ',' token 1 | (a, b, c) = (int(tok) for tok in input().split()) | ^ a.cc:1:9: error: expected constructor, destructor, or type conversion before ')' token 1 | (a, b, c) = (int(tok) for tok in input().split()) | ^
s722471730
p03719
C++
#include <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(c >= a && c <= b){ cout << "Yes" << endl; }else{ cout << "No" < endl; } }
a.cc: In function 'int main()': a.cc:12:22: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 12 | 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:12:24: note: couldn't deduce template parameter '_CharT' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 12 | 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:12:24: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 12 | 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:12:24: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 12 | 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, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
s316310985
p03719
C++
#include <iostream> using namespace std; int main(){ int a, b, c; if(c >= a && c <= b){ cout << "Yes" << endl; }else{ cout << "No" < endl; } }
a.cc: In function 'int main()': a.cc:11:22: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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:24: 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, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
s661481741
p03719
C++
#include <stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a <= c && c <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0;
a.cc:1:10: fatal error: stdc++.h: No such file or directory 1 | #include <stdc++.h> | ^~~~~~~~~~ compilation terminated.
s232188741
p03719
C++
// In His Name #include <Bits/stdc++.h> #define pb push_back #define F first #define S second #define ll long long #define gcd __gcd using namespace std; typedef pair<int, int> pii; const int MAX = 100; int a, b, c; int main(){ ios_base::sync_with_stdio(0); cin >> a >> b >> c; if (c >= a && c <= b){ cout << "Yes"; return 0; } cout << "No"; }
a.cc:3:10: fatal error: Bits/stdc++.h: No such file or directory 3 | #include <Bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s433445331
p03719
C++
#include <bits/stdc++.h> #define int long long using namespace std; int main() { int a,b; cin>>a>>b; vector<pair<int,int>> vec(a); for(int i=0;i<a;i++){ int X,Y; cin >> X >> Y; vec.at(i) = make_pair(X,Y); } sort(vec.begin(),vec.end()); int count = 0; int answer = 0; for(int i = 0;i < a;i++) { if(b - count <= vec[i].second) { answer = vec[i].first; break; } count += vec[i].second; } cout << answer << endl; }
cc1plus: error: '::main' must return 'int'
s993838549
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>a>>b>>c; if(a<=c&&c<=b) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:5:4: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | cin>a>>b>>c; | ~~~^~~~~~~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:5:4: note: candidate: 'operator>(int, int)' (built-in) 5 | cin>a>>b>>c; | ~~~^~~~~~~~ a.cc:5:4: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' 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:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1236: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>&)' 1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1329: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>&)' 1329 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed: a.cc:5:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1497 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed: a.cc:5:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1673 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | cin>a>>b>>c; | ^ 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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | cin>a>>b>>c; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | cin>a>>b>>c; | ^ 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/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/string_view:710: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>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:5:11: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/basic_string.h:3915: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>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:5:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 5 | cin>a>>b>>c; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic
s999269364
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if(A <= C && B >= C) cout << ”Yes” << endl; else cout << ”No” << endl; }
a.cc:7:32: error: extended character ” is not valid in an identifier 7 | if(A <= C && B >= C) cout << ”Yes” << endl; | ^ a.cc:7:32: error: extended character ” is not valid in an identifier a.cc:8:16: error: extended character ” is not valid in an identifier 8 | else cout << ”No” << endl; | ^ a.cc:8:16: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:7:32: error: '\U0000201dYes\U0000201d' was not declared in this scope 7 | if(A <= C && B >= C) cout << ”Yes” << endl; | ^~~~~ a.cc:8:16: error: '\U0000201dNo\U0000201d' was not declared in this scope 8 | else cout << ”No” << endl; | ^~~~
s411282376
p03719
C++
#include <iostream> #include <algorithm> using namespace std; int main(void){ // Your code here! int a, b, c; cin >> a >> b >> c; cout << (a <= c && b >= c) ? "Yes" : "No" << endl; }
a.cc: In function 'int main()': a.cc:9:46: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | cout << (a <= c && b >= c) ? "Yes" : "No" << endl; | ~~~~~^~~~~~~
s502929672
p03719
C++
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; //long long using ll = long long; //出力系 #define print(x) cout << x << endl #define yes cout << "Yes" << endl #define YES cout << "YES" << endl #define no cout << "No" << endl #define NO cout << "NO" << endl // begin() end() #define all(x) (x).begin(),(x).end() //for #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) //最大公約数 unsigned gcd(unsigned a, unsigned b) { if(a < b) return gcd(b, a); unsigned r; while ((r=a%b)) { a = b; b = r; } return b; } int main(){ int A, B, C; cin >> A >> B >> C; if(A <= C && B >= C) yes; else no; } }
a.cc:39:2: error: expected declaration before '}' token 39 | } | ^
s241890174
p03719
Java
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if(A <= C && C <= B) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define FOR(i,a,b) for(int i=(a);i<(b);++i) ^ Main.java:2: error: class, interface, enum, or record expected #define FOR(i,a,b) for(int i=(a);i<(b);++i) ^ Main.java:2: error: class, interface, enum, or record expected #define FOR(i,a,b) for(int i=(a);i<(b);++i) ^ Main.java:3: error: illegal character: '#' #define REP(i,n) FOR(i,0,n) ^ Main.java:8: error: not a statement cin >> A >> B >> C; ^ Main.java:9: error: not a statement if(A <= C && C <= B) cout << "Yes" << endl; ^ Main.java:10: error: not a statement else cout << "No" << endl; ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int main() { ^ (use --enable-preview to enable unnamed classes) 10 errors
s216921299
p03719
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String line = sc.nextLine(); int[] nums = Integer.parseInt(line.split(" ")); if (nums[2] >= nums[0] && nums[2] <= nums[1]) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:7: error: incompatible types: String[] cannot be converted to String int[] nums = Integer.parseInt(line.split(" ")); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
s934468412
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(C>=A && C<=B);{ cout <<"Yes"; } else{ cout <<"No"; } }
a.cc: In function 'int main()': a.cc:10:3: error: 'else' without a previous 'if' 10 | else{ | ^~~~
s852399665
p03719
C++
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <utility> #include <tuple> #include <string> #include <cctype> #include <cstdio> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define SORT(x) sort(x.begin(),x.end()) #define REVE(x) reverse(x.begin(),x.end()) #define all(x) (x).begin(),(x).end() #define fst first #define mp make_pair #define pb push_back #define eb emplace_back #define pob pop_back #define sw swap #define UP(x) transform(x.begin(),x.end(),x.begin() ,::toupper); #define down(x) transform(x.begin(),x.end(),x.begin() ,::tolower); using LL = long long; using ULL = unsigned long long; #define FOR(i, m, n) for(int i = m;i < n;i++) template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;} template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} int main(){ int n,a,b,c; cin >> a >>b >> c; if(a<=c&&b>=c){ cout << "Yes"; }else{ cout <<"No": } }
a.cc: In function 'int main()': a.cc:35:19: error: expected ';' before ':' token 35 | cout <<"No": | ^ | ;
s613660898
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if (c>=a && c<=B){ cout <<"Yes"<<endl; } else { cout <<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:6:18: error: 'B' was not declared in this scope 6 | if (c>=a && c<=B){ | ^
s454427088
p03719
C++
#include<iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a =< c && c =< b){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: expected primary-expression before '<' token 8 | if(a =< c && c =< b){ | ^ a.cc:8:19: error: expected primary-expression before '<' token 8 | if(a =< c && c =< b){ | ^
s288985608
p03719
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); int C = scanner.nextInt(); if(A <= C && C <== B){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:11: error: illegal start of expression if(A <= C && C <== B){ ^ 1 error
s291698100
p03719
C++
#include <iostream> #include <vector> using namespace std; int main(){ int N; //都市の数,Nを定義 int M; //道路の数,Mを定義 cin >> N >> M; //N,Mの順で標準入力 vector <int> num(N); for (int i = 0; i < M; i++){ int Na; //他の都市Na int Nb; //他の都市Nb //それぞれの都市が他の都市に繋がる道路を何本もっているか保持する配列(Num)を用意する cin >> Na >> Nb; //道路の本数分入力を受け取る num [Na-1]++; num [Mb-1]++; //受け取った入力の道路に繋がっている都市の配列(Num)へカウント+1する } for (int i = 0; i < num.length(); i++){ cout << num[i] << endl; //Numの要素を書き出す } }
a.cc: In function 'int main()': a.cc:23:14: error: 'Mb' was not declared in this scope; did you mean 'Nb'? 23 | num [Mb-1]++; | ^~ | Nb a.cc:26:29: error: 'class std::vector<int>' has no member named 'length' 26 | for (int i = 0; i < num.length(); i++){ | ^~~~~~
s568925299
p03719
C++
import Control.Applicative main = do [a, b, c] <- map read . words <$> getLine putStrLn $ solve a b c solve :: Int -> Int -> Int -> String solve a b c | a < c && c < b = "Yes" | otherwise = "No"
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'
s704831572
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B , C; cin >> A >> B >> C; if (A <= C && c<= B){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:17: error: 'c' was not declared in this scope 8 | if (A <= C && c<= B){ | ^
s350179420
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B , C; cin >> A >> B >> C; if (A <= C <= B){ cout << "Yes" << endl; } else if (B< A < c){ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:11:21: error: 'c' was not declared in this scope 11 | else if (B< A < c){ | ^
s236700125
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B , C; cin >> A >> B >> C; if (A <= C && c <= B && A <=B ){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:17: error: 'c' was not declared in this scope 8 | if (A <= C && c <= B && A <=B ){ | ^
s532596787
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B , C; cin >> A >> B >> C; if (A =< C =< B){ cout << Yes << endl; } else{ cout << No << endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: expected primary-expression before '<' token 8 | if (A =< C =< B){ | ^ a.cc:8:15: error: expected primary-expression before '<' token 8 | if (A =< C =< B){ | ^ a.cc:9:13: error: 'Yes' was not declared in this scope 9 | cout << Yes << endl; | ^~~ a.cc:12:15: error: 'No' was not declared in this scope 12 | cout << No << endl; | ^~
s570005860
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(c >= a && c <= B) cout << "Yes"; else cout << "No"; return 0; }
a.cc: In function 'int main()': a.cc:7:21: error: 'B' was not declared in this scope 7 | if(c >= a && c <= B) cout << "Yes"; | ^
s959877298
p03719
C++
#include<iostream> #include<algorithm> #include<string> #include<vector> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout << (a <= c && b >= c ? "Yes" ; "No") << endl; }
a.cc: In function 'int main()': a.cc:9:38: error: expected ':' before ';' token 9 | cout << (a <= c && b >= c ? "Yes" ; "No") << endl; | ^~ | : a.cc:9:39: error: expected primary-expression before ';' token 9 | cout << (a <= c && b >= c ? "Yes" ; "No") << endl; | ^ a.cc:9:38: error: expected ')' before ';' token 9 | cout << (a <= c && b >= c ? "Yes" ; "No") << endl; | ~ ^~ | ) a.cc:9:45: error: expected ';' before ')' token 9 | cout << (a <= c && b >= c ? "Yes" ; "No") << endl; | ^ | ;
s661567877
p03719
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a<=c $$ c<=b){ cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected ')' before '$$' 6 | if(a<=c $$ c<=b){ | ~ ^~~ | )
s309436866
p03719
C++
#include<iostream> using namespace std; int main()}{ int A,B,C; cin>>A>>B>>C; if (A<=C && C<=B){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }
a.cc:3:11: error: expected initializer before '}' token 3 | int main()}{ | ^ a.cc:3:11: error: expected declaration before '}' token a.cc:3:12: error: expected unqualified-id before '{' token 3 | int main()}{ | ^
s776586819
p03719
C++
include <iostream> using namespace std; int main(void){ int A,B,C; cin >> A >> B >> C; if(A<=C&&C<=B){ cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin >> A >> B >> C; | ^~~ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:7:26: error: 'endl' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:10:9: error: 'cout' was not declared in this scope 10 | cout << "No" << endl; | ^~~~ a.cc:10:25: error: 'endl' was not declared in this scope 10 | cout << "No" << endl; | ^~~~
s274167866
p03719
C++
#incluce<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c>=a){ if(c<=b){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }else{ cout<<"No"<<endl; } return 0; }
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include? 1 | #incluce<iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #incluce<iostream> a.cc:10:7: error: 'cout' was not declared in this scope 10 | cout<<"Yes"<<endl; | ^~~~ a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:20: error: 'endl' was not declared in this scope 10 | 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 | #incluce<iostream> a.cc:12:7: error: 'cout' was not declared in this scope 12 | cout<<"No"<<endl; | ^~~~ a.cc:12:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:12:19: error: 'endl' was not declared in this scope 12 | cout<<"No"<<endl; | ^~~~ a.cc:12:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' a.cc:15:5: error: 'cout' was not declared in this scope 15 | cout<<"No"<<endl; | ^~~~ a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:15:17: error: 'endl' was not declared in this scope 15 | cout<<"No"<<endl; | ^~~~ a.cc:15:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s269355480
p03719
C++
#include<iostream> usnig namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c>=a){ if(c<=b){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }else{ cout<<"No"<<endl; } return 0; }
a.cc:2:1: error: 'usnig' does not name a type 2 | usnig namespace std; | ^~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>a>>b>>c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | cout<<"Yes"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | cout<<"Yes"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | cout<<"No"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:12:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 12 | cout<<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<"No"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:15:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 15 | cout<<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s526320307
p03719
C++
#incluce<iostream> usnig namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c>=a){ if(c<=b){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }else{ cout<<"No"<<endl; } return 0; }
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include? 1 | #incluce<iostream> | ^~~~~~~ | include a.cc:2:1: error: 'usnig' does not name a type 2 | usnig namespace std; | ^~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin>>a>>b>>c; | ^~~ a.cc:10:7: error: 'cout' was not declared in this scope 10 | cout<<"Yes"<<endl; | ^~~~ a.cc:10:20: error: 'endl' was not declared in this scope 10 | cout<<"Yes"<<endl; | ^~~~ a.cc:12:7: error: 'cout' was not declared in this scope 12 | cout<<"No"<<endl; | ^~~~ a.cc:12:19: error: 'endl' was not declared in this scope 12 | cout<<"No"<<endl; | ^~~~ a.cc:15:5: error: 'cout' was not declared in this scope 15 | cout<<"No"<<endl; | ^~~~ a.cc:15:17: error: 'endl' was not declared in this scope 15 | cout<<"No"<<endl; | ^~~~
s414459924
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int A,B,C; cin>>A>>B>>C; cout<<(C>=A&&C<=b?"Yes":"No"); }
a.cc: In function 'int main()': a.cc:7:19: error: 'b' was not declared in this scope 7 | cout<<(C>=A&&C<=b?"Yes":"No"); | ^
s516640009
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A =< C && B >= C) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:16: error: expected primary-expression before '<' token 8 | if (A =< C && B >= C) { | ^
s481518654
p03719
C++
a, b, c = map(int, raw_input().split()) if a <= c and c <= b: print "Yes" else: print "No"
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, raw_input().split()) | ^
s978360599
p03719
C++
a, b, c = map(int, raw_input().split()) if a >= c and c <= b: print "Yes" else: print "No"
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, raw_input().split()) | ^
s722011499
p03719
C++
a, b, c = map(int, raw_input().split()) if c >= a and a <= b: print "Yes" else: print "No"
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, raw_input().split()) | ^
s095774073
p03719
C++
a, b, c = map(int, raw_input().split()) if c >= a and c <= b: print "Yes" else: print "No"
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, raw_input().split()) | ^
s904422887
p03719
C++
A, B, C = map(int, input().split()) print('Yes' if A<=C<=B else 'No')
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | print('Yes' if A<=C<=B else 'No') | ^~~~~ a.cc:2:29: warning: multi-character character constant [-Wmultichar] 2 | print('Yes' if A<=C<=B else 'No') | ^~~~ a.cc:1:1: error: 'A' does not name a type 1 | A, B, C = map(int, input().split()) | ^
s516804439
p03719
C++
#include <stdio.h> int main(void){ // Your code here! scanf("%d%d%d",&a,&b,&c); if(c>=a&&c<=b){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
a.cc: In function 'int main()': a.cc:4:21: error: 'a' was not declared in this scope 4 | scanf("%d%d%d",&a,&b,&c); | ^ a.cc:4:24: error: 'b' was not declared in this scope 4 | scanf("%d%d%d",&a,&b,&c); | ^ a.cc:4:27: error: 'c' was not declared in this scope 4 | scanf("%d%d%d",&a,&b,&c); | ^
s579784905
p03719
C++
#include <iostream> using namespace std; int main () { int a,b,c; cin>>a>>b>>c; if(a <=c && c<==b){ cout<<"YES"<<endl; return 0; }else { cout<<"NO"<<endl; return 0; } }
a.cc: In function 'int main()': a.cc:6:18: error: expected primary-expression before '=' token 6 | if(a <=c && c<==b){ | ^
s015406836
p03719
C++
6 5 4
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 6 5 4 | ^
s043834031
p03719
C++
#include <bits/stdc++.h> #include <string.h> using namespace std; int main(){ int a,b,x; cin >> a >> b >> c; if(c>=a && c<=b) cout << "Yes"; else cout << "No"; //cout << y << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c; | ^
s398462389
p03719
C++
#include <bits/stdc++.h> #include <string.h> using namespace std; int main(){ int a,b,x; cin >> a >> b >> c; if(c>=a && c<=b) cout << "Yes"; else cout << "No"; //cout << y << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c; | ^
s447644802
p03719
C++
#include <bits/stdc++.h> #include <string.h> using namespace std; int main(){ int a,b,x; cin >> a >> b >> c; if(c>=a && c<=b) printf("Yes"); else printf("No"); //cout << y << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c; | ^
s063971340
p03719
C++
int main(){ int a,b,c; cin >> a >> b >> c; if(c>=a && c <= b) printf("yes\n"); else printf("No\n"); //cout << y << endl; return 0; }
a.cc: In function 'int main()': a.cc:3:9: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:5:17: error: 'printf' was not declared in this scope 5 | printf("yes\n"); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main(){ a.cc:7:17: error: 'printf' was not declared in this scope 7 | printf("No\n"); | ^~~~~~ a.cc:7:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
s002477479
p03719
C++
#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (a <= c && c <= b ? "Yes" : "No") << end; }
a.cc: In function 'int main()': a.cc:7:47: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | cout << (a <= c && c <= b ? "Yes" : "No") << end; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]' 306 | operator<<(nullptr_t) | ^~~~~~~~ /usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::n
s933908859
p03719
C++
a,b,c = map(int,input().split()) print("YNeos"[!(A<=C<=B)::2])
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = map(int,input().split()) | ^
s182200624
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a<=c && c<<b) cout<<"Yes"<<endl; else cout<<"No"<endl; }
a.cc: In function 'int main()': a.cc:6:18: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | else cout<<"No"<endl; | ~~~~~~~~~~^~~~~ 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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:6:19: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:6:19: note: couldn't deduce template parameter '_Bi_iter' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:6:19: note: couldn't deduce template parameter '_Bi_iter' 6 | else cout<<"No"<endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | else cout<<"No"<endl; | ^~~~ 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: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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 6 | else cout<<"No"<endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 6 | else 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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 6 | else 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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 6 | else 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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 6 | else cout<<"No"<endl; | ^~~~ 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/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /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:6:19: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | else 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:6:19: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | else 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:6:19: note: couldn't deduce template parameter '_CharT' 6 | else 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:6:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 6 | else 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 arg
s071776277
p03719
C++
#include<iostream> using namespace std; int main(void){ int a, b, c: cin >> a >> b >> c; if(a <= c && b >= c) cout <<"Yes" <<endl; else cout << "No" <<endl; return 0; }
a.cc: In function 'int main()': a.cc:4:14: error: found ':' in nested-name-specifier, expected '::' 4 | int a, b, c: | ^ | :: a.cc:4:13: error: 'c' has not been declared 4 | int a, b, c: | ^ a.cc:5:7: error: qualified-id in declaration before '>>' token 5 | cin >> a >> b >> c; | ^~ a.cc:6:11: error: 'c' was not declared in this scope 6 | if(a <= c && b >= c) cout <<"Yes" <<endl; | ^
s314420581
p03719
C++
#include <iostream> #include <sstream> #include <cstdio> #include <cmath> #include <vector> #include <string> #include <algorithm> #include <map> #include <set> #include <queue> #define FOR(idx, begin, end) for(int idx = (int)(begin); idx < (int)(end); ++idx) #ifdef _DEBUG #define DMP(x) cerr << #x << ": " << x << "\n" #else #define DMP(x) ((void)0) #endif using namespace std; typedef long long lint; const int MOD = 1000000007, INF = 1111111111; const double EPS = 1e-9; int main() { cin.tie(0); string A, B, C; cin >> A >> B >> C; cout << ((A <= C)&&(C <= B))? "Yes" : "No"); return 0; }
a.cc: In function 'int main()': a.cc:34:51: error: expected ';' before ')' token 34 | cout << ((A <= C)&&(C <= B))? "Yes" : "No"); | ^ | ;
s998076838
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d,e; cin>>a>>c>>d; vector<int>b(a); if(a<=c&&c<=b){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:9:16: error: no match for 'operator<=' (operand types are 'int' and 'std::vector<int>') 9 | if(a<=c&&c<=b){ | ~^~~ | | | | | std::vector<int> | int 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:1154:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1154 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1154:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1260: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>&)' 1260 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1260:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1353: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>&)' 1353 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1353:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1427:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1427 | operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1427:5: note: template argument deduction/substitution failed: a.cc:9:18: note: 'std::vector<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1521:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1521 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1521:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1599:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1599 | operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1599:5: note: template argument deduction/substitution failed: a.cc:9:18: note: 'std::vector<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/regex.h:1699:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1699 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1699:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<=c&&c<=b){ | ^ 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:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 9 | if(a<=c&&c<=b){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 469 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 513 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1704 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1767 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 9 | if(a<=c&&c<=b){ | ^ 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/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 717 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/string_view:724: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> >)' 724 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/string_view:732: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>)' 732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed: a.cc:9:18: note: 'std::vector<int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/basic_string.h:3956: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>&)' 3956 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3956:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 9 | if(a<=c&&c<=b){ | ^ /usr/include/c++/14/bits/basic_string.h:3970:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3970 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3970:5: note: template argument deduction/substitution failed: a.cc:9:18: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 9 | if(a<=c&&c<=b){ |
s825334056
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d,e; cin>>a>>c>>d; vector<int>b(a); if(a<c&&c<b){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:9:15: error: no match for 'operator<' (operand types are 'int' and 'std::vector<int>') 9 | if(a<c&&c<b){ | ~^~ | | | | | std::vector<int> | int 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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:9:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:9:16: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:9:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:9:16: note: 'std::vector<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:9:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:9:16: note: 'std::vector<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:9:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 9 | if(a<c&&c<b){ | ^ 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: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:9:16: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 9 | if(a<c&&c<b){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:9:16: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 9 | if(a<c&&c<b){ | ^ 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/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /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:9:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: 'std::vector<int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 9 | if(a<c&&c<b){ | ^ /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:9:16: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 9 | if(a<c&&c<b){ | ^ /usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class
s157753718
p03719
C++
#icnlude<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a<=c&&c<=b){ puts("Yes"); }else{ puts("No"); } }
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include? 1 | #icnlude<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #icnlude<bits/stdc++.h> a.cc:9:5: error: 'puts' was not declared in this scope 9 | puts("Yes"); | ^~~~ a.cc:11:5: error: 'puts' was not declared in this scope 11 | puts("No"); | ^~~~
s190641453
p03719
C++
#icnlude<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a<=c&&c<=b){ puts("Yes"); }else{ puts("No"); } }
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include? 1 | #icnlude<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #icnlude<bits/stdc++.h> a.cc:9:5: error: 'puts' was not declared in this scope 9 | puts("Yes"); | ^~~~ a.cc:11:5: error: 'puts' was not declared in this scope 11 | puts("No"); | ^~~~
s225769365
p03719
C++
#icnlude<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(c>=a&&c<=b){ puts("Yes"); }else{ puts("No"); } }
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include? 1 | #icnlude<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #icnlude<bits/stdc++.h> a.cc:9:5: error: 'puts' was not declared in this scope 9 | puts("Yes"); | ^~~~ a.cc:11:5: error: 'puts' was not declared in this scope 11 | puts("No"); | ^~~~
s845759946
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin>>A>>B>>C; if((A<=C)&&(C<=B)){ cout<<"Yes" }else{ cout<<"No"; } return 0; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ';' before '}' token 8 | cout<<"Yes" | ^ | ; 9 | }else{ | ~
s347281874
p03719
C
#include<stdio.h> int main() { int a, b, c; int d[3]; scanf("%d %d %d", a, b, c); d[0] = a, d[1] = b, d[2] = c; for(i = 0; i < 3; i++) { if(d[i] < -100 || d[i] > 100) { printf("wrong input"); return 0; } } if(a <= c && b >= c) printf("Yes"); else printf("No"); }
main.c: In function 'main': main.c:9:7: error: 'i' undeclared (first use in this function) 9 | for(i = 0; i < 3; i++) | ^ main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
s697696973
p03719
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long typedef struct { int a; // num int b; // count } elm; int comp(const void *p,const void *q){ return ((elm *)p)->a - ((elm *)q)->a; } int main(int argc, char const *argv[]){ TLong n,k,i,j = 0; scanf("%lld%lld",&n,&k); elm element[100007]; for(i = 0; i < n; ++i) scanf("%lld%lld", &element[i].a, &element[i].b); qsort(element,n,sizeof(elm),comp); for(i = 0; (i < n && j < k); ++i) j += elm[i].b; printf("%lld\n", element[i].a); return 0; }
main.c: In function 'main': main.c:25:46: error: expected expression before 'elm' 25 | for(i = 0; (i < n && j < k); ++i) j += elm[i].b; | ^~~
s232052379
p03719
C++
#include <iostream> using namespace std; typedef long long unsigned int ll; int main() { int a,b,c,d; cin >> a; cin >>b; cin >>c; if(a<=c&&c<=b){ cout <<"Yes" <<end; }else{ cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:22: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | cout <<"Yes" <<end; | ~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]' 306 | operator<<(nullptr_t) | ^~~~~~~~ /usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::nullptr_t' 306 | operator<<(nullptr_t)
s218384676
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; string ans == "No"; if (A <= C && C <= B) ans == "Yes"; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:9:14: error: expected initializer before '==' token 9 | string ans == "No"; | ^~ a.cc:10:25: error: 'ans' was not declared in this scope; did you mean 'abs'? 10 | if (A <= C && C <= B) ans == "Yes"; | ^~~ | abs a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'? 12 | cout << ans << endl; | ^~~ | abs
s413377229
p03719
C
#include <stdioh> int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a<=c && c<=b) printf("Yes\n"); else printf("No\n"); return 0; }
main.c:1:10: fatal error: stdioh: No such file or directory 1 | #include <stdioh> | ^~~~~~~~ compilation terminated.
s165746675
p03719
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c>a-1&&c<b+1)cout<<"Yes"<<end; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:6:30: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | if(c>a-1&&c<b+1)cout<<"Yes"<<end; | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::n
s006253369
p03719
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if(a <= c && c <= b){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }
a.cc:7:6: error: extended character   is not valid in an identifier 7 | if(a <= c && c <= b){ | ^ a.cc: In function 'int main()': a.cc:7:6: error: 'a\U00003000' was not declared in this scope 7 | if(a <= c && c <= b){ | ^~~
s432624850
p03719
C++
#include <cmath> #include <iostream> #include <stdio.h> #include <string> #include <sstream> #include <iomanip> #include <algorithm> #include <vector> #include <set> #include <limits.h> #include <map> #include <numeric> namespace test { std::string to_string (char val) { return std::string (1, val); // return std::string{val}; } //if( str.find ("r") != string::npos) } using namespace std; typedef long long int llint; int main (void) { int a, b, c; cin >> a >> b >> c; for (int i = 1; i <= b; i++) { cout << ( a <= c && c <= b ? "YES" : "NO" ) << endl; return 0; }
a.cc: In function 'int main()': a.cc:30:2: error: expected '}' at end of input 30 | } | ^ a.cc:25:17: note: to match this '{' 25 | int main (void) { | ^
s196211739
p03719
C++
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]){ int a,b,c; cin >> a >. b >> c; if(a <= c && c <= b) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main(int, const char**)': a.cc:7:19: error: expected primary-expression before '.' token 7 | cin >> a >. b >> c; | ^
s874552307
p03719
C
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a.&b,&c); if(a > c || c > b){ printf("No"); }else{ printf("Yes"); } return 0; }
main.c: In function 'main': main.c:4:23: error: expected identifier before '&' token 4 | scanf("%d %d %d",&a.&b,&c); | ^
s542619725
p03719
C
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(c>=a&&b<=){ printf("Yes"); } else{ printf("No"); } return 0; }
main.c: In function 'main': main.c:5:15: error: expected expression before ')' token 5 | if(c>=a&&b<=){ | ^
s528830405
p03719
C++
#include<iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(c >= a && c <= b){ cout << "Yes" << endl; } else { cout << "No" << enld; } }
a.cc: In function 'int main()': a.cc:11:25: error: 'enld' was not declared in this scope 11 | cout << "No" << enld; | ^~~~