submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s532814515 | p03719 | C | #include <stdio.h>
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: In function 'main':
main.c:5:19: error: 'a' undeclared (first use in this function)
5 | scanf("%d%d%d",&a,&B,&C);
| ^
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
|
s130051170 | p03719 | C++ | #include <iostream>
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;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | cout >> "Yes" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:55,
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/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:9:7: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | cout >> "Yes" >> endl;
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:9:15: required from here
9 | cout >> "Yes" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
a.cc:11:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]')
11 | cout >> "No" >> endl;
| ~~~~ ^~ ~~~~
| | |
| | const char [3]
| std::ostream {aka std::basic_ostream<char>}
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:11:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:11:7: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:11:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:11:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:11:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:11:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
11 | cout >> "No" >> endl;
| ^~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/in |
s703635430 | p03719 | C++ | #include <iostream>
using namespace std;
void swap(int& x, int& y)
{
int t = x;
x = y;
y = t;
}
int main()
{
int N;
long int k;
cin >> N >> K;
int a[N];
int b[N];
for (int i=0;i<N+1;i++){
cin>>a[i] >>b[i];}
for (int i=1;i<N;i++){
for (int j=i;a[j]<a[j-1] && j>0 ;j--){
swap(a[j],a[j-1]);
swap(b[j],b[j-1]);}
}
long int sum = 0;
for (long int i=0;sum< K;i++){
sum += b[i];
if (sum >= K){
cout << a[i];}
}
}
| a.cc: In function 'int main()':
a.cc:16:17: error: 'K' was not declared in this scope
16 | cin >> N >> K;
| ^
|
s765950974 | p03719 | C++ | #include <iostream>
using namespace std;
using ll;
void swap(int& x, int& y)
{
int t = x;
x = y;
y = t;
}
int main()
{
int N,K;
cin >> N >> K;
int a[N];
int b[N];
for (int i=0;i<N+1;i++){
cin>>a[i] >>b[i];}
for (int i=1;i<N;i++){
for (int j=i;a[j]<a[j-1] && j>0 ;j--){
swap(a[j],a[j-1]);
swap(b[j],b[j-1]);}
}
int sum = 0;
for (int i=0;sum< K;i++){
sum += b[i];
if (sum >= K){
cout << a[i];}
}
} | a.cc:3:7: error: expected nested-name-specifier before 'll'
3 | using ll;
| ^~
|
s052638436 | p03719 | Java | import java.io.*;
import java.util.*;
public class Main {
private static class Tuple {
public final int a;
public final int b;
public Tuple(int a, int b) {
this.a = a;
this.b = b;
}
}
public static void main(String[] args) throws Throwable {
return;
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int K = scanner.nextInt();
Tuple[] ab = new Tuple[N];
for (int i = 0; i < N; i++) {
int a = scanner.nextInt();
int b = scanner.nextInt();
ab[i] = new Tuple(a, b);
}
Arrays.sort(ab, (x, y) -> Integer.compare(x.a, y.a));
Integer lastA = null;
long k = 0;
for (int i = 0; k < K && i < N; i++) {
k += ab[i].b;
lastA = ab[i].a;
}
System.out.println(lastA);
}
} | Main.java:16: error: unreachable statement
Scanner scanner = new Scanner(System.in);
^
1 error
|
s180917271 | p03719 | Java | import java.io.*;
import java.util.*;
public class Main {
private static class Tuple {
public final int a;
public final int b;
public Tuple(int a, int b) {
this.a = a;
this.b = b;
}
}
public static void main(String[] args) throws Throwable {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int K = scanner.nextInt();
Tuple[] ab = new Tuple[N];
for (int i = 0; i < N; i++) {
int a = scanner.nextInt();
int b = scanner.nextInt();
ab[i] = new Tuple(a, b);
}
Arrays.sort(ab, (x, y) -> Integer.compare(x.a, y.a));
Integer lastA = null;
for (int i = 0, long k = 0; k < K && i < N; i++) {
k += ab[i].b;
lastA = ab[i].a;
}
System.out.println(lastA);
}
} | Main.java:28: error: <identifier> expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: '.class' expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: ')' expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: > or ',' expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: not a statement
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: > or ',' expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: not a statement
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
Main.java:28: error: ';' expected
for (int i = 0, long k = 0; k < K && i < N; i++) {
^
8 errors
|
s654028960 | p03719 | Java | import java.util.*;
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(c>=a&c<=b){
System.out.print("Yes")
}else{
System.out.print("No")
}
}
} | Main.java:11: error: ';' expected
System.out.print("Yes")
^
Main.java:13: error: ';' expected
System.out.print("No")
^
2 errors
|
s198586733 | p03719 | C++ | #include <iostream>
int main()
{
int a, b, c;
std::cin >> a >> b >> c;
if (a <= c && c <= b) {
std::out << "Yes" << std::endl;
} else {
std::out << "No" << std::endl;
}
} | a.cc: In function 'int main()':
a.cc:9:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
9 | std::out << "Yes" << std::endl;
| ^~~
| oct
a.cc:11:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
11 | std::out << "No" << std::endl;
| ^~~
| oct
|
s170438417 | p03719 | Java | import java.util.Scanner;
public class atCoder_61_A {
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:3: error: class atCoder_61_A is public, should be declared in a file named atCoder_61_A.java
public class atCoder_61_A {
^
1 error
|
s916107827 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main()
{
int a,b,c;
cin >> a>>b>>c;
string ans="No";
if((a<=c)&&((c<=b)) ans="Yes";
cout<<ans<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before 'ans'
15 | if((a<=c)&&((c<=b)) ans="Yes";
| ^~~~
| ;
a.cc:16:21: error: expected ')' before ';' token
16 | cout<<ans<<endl;
| ^
| )
a.cc:15:5: note: to match this '('
15 | if((a<=c)&&((c<=b)) ans="Yes";
| ^
|
s453190006 | p03719 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);
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: In function 'int main()':
a.cc:20:9: error: expected primary-expression before '<' token
20 | if(a =< c && c =< b){
| ^
a.cc:20:19: error: expected primary-expression before '<' token
20 | if(a =< c && c =< b){
| ^
|
s409750910 | 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:7:14: error: expected primary-expression before '>' token
7 | if(c=>a&&c<=b){
| ^
|
s861583102 | p03719 | Java | import java.util.*;
// cin=sc.nextInt();
// List<Integer> a = new ArrayList<Integer>(n);
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(c>=a && c <= b){
System.out.println("Yes");
}
else{
Sytem.out.println("No");
}
}
} | Main.java:15: error: package Sytem does not exist
Sytem.out.println("No");
^
1 error
|
s341506007 | p03719 | Java | import java.util.*;
// cin=sc.nextInt();
// List<Integer> a = new ArrayList<Integer>(n);
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(c>=a && c <= b){
System.out.println("Yes");
}
else{
System.out.println("No");
}
return 0;
}
} | Main.java:17: error: incompatible types: unexpected return value
return 0;
^
1 error
|
s409312840 | p03719 | Java | import java.util.*;
// cin=sc.nextInt();
// List<Integer> a = new ArrayList<Integer>(n);
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(c>=a && c <= b){
System.out.println("Yes");
}
else{
Sytem.out.println("No");
}
return 0;
}
} | Main.java:15: error: package Sytem does not exist
Sytem.out.println("No");
^
Main.java:17: error: incompatible types: unexpected return value
return 0;
^
2 errors
|
s501954731 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a>-100&&c<100&&a<b&&a<c&&c<b){cout<"Yes";}
else{cout"No";}
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:7:46: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>'
7 | if(a>-100&&c<100&&a<b&&a<c&&c<b){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,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:8:18: error: expected ';' before string constant
8 | else{cout"No";}
| ^~~~
| ;
|
s110897021 | p03719 | C++ | #include<bits/sdtc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<(c>=a&&c<=b?"Yes":"No");
} | a.cc:1:9: fatal error: bits/sdtc++.h: No such file or directory
1 | #include<bits/sdtc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s022914255 | p03719 | C++ | #include <iostream>
using namespace std;
int A,B,C;
int main(){
cin >> A >> B >> C;
cout << ((A<=C %% C<=B)? "Yes":"No") << endl;
}
| a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before '%' token
6 | cout << ((A<=C %% C<=B)? "Yes":"No") << endl;
| ^
|
s130075550 | 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: In function 'main':
main.c:7:20: error: expected expression before '=' token
7 | if(c >= a && c <== b){
| ^
|
s232253354 | p03719 | C++ | #include<bits/stdc++.h>
using namespace std;
{int a,b,c;
cin>>a>>b>>c;
if (c>=a && c<=b)
{
cout<<"Yes";
}
else
cout<<"No";
return 0;
}
| a.cc:4:1: error: expected unqualified-id before '{' token
4 | {int a,b,c;
| ^
|
s504063916 | p03719 | C++ | #include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
if((c>=a)&&(c<=b))
cout<<"Yes";
else
cout<<"No";
} | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s194471839 | p03719 | C++ | (let ((a (read))
(b (read))
(c (read)))
(if (and (<= a c) (>= b c))
(princ "Yes")
(princ "No"))) | a.cc:1:5: error: expected ')' before '(' token
1 | (let ((a (read))
| ~ ^~
| )
|
s097639557 | p03719 | C++ |
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:8:4: error: 'cin' was not declared in this scope
8 | 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 |
a.cc:10:5: error: 'cout' was not declared in this scope
10 | {cout<<"yes"<<endl;}
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: 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 |
a.cc:12:5: error: 'cout' was not declared in this scope
12 | {cout<<"no"<<endl;}
| ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:17: error: 'endl' was not declared in this scope
12 | {cout<<"no"<<endl;}
| ^~~~
a.cc:12:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s975553243 | p03719 | Java | import java.util.Scanner;
publiv class a
{
public static void main(String[] args)
{
Scanner ob=new Scanner(System.in);
System.out.println("Y");
int a=ob.nextInt();
int b=ob.nextInt();
int c=ob.nextInt();
if(c>=a&&c<=b)
{
System.out.println("Yes");
}
else
System.out.println("No");
}
} | Main.java:2: error: class, interface, enum, or record expected
publiv class a
^
1 error
|
s524396821 | p03719 | Java | import java.util.Scanner;
publiv class a
{
public static void main(String[] args)
{
Scanner ob=new Scanner(System.in);
int a=ob.nextInt();
int b=ob.nextInt();
int c=ob.nextInt();
if(c>=a&&c<=b)
{
System.out.println("Yes");
}
else
System.out.println("No");
}
} | Main.java:2: error: class, interface, enum, or record expected
publiv class a
^
1 error
|
s087857072 | p03719 | C++ | #include<stdio.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
5 | cin>>A>>B>>C;
| ^~~
a.cc:7:1: error: 'cout' was not declared in this scope
7 | cout<<"YES";
| ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope
9 | cout<<"NO";
| ^~~~
a.cc:10:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
10 | getch();
| ^~~~~
| getc
|
s168907209 | p03719 | C++ | #include<bits/stdc++.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A>>B>>C;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
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:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<"YES";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<"NO";
| ^~~~
| 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:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
10 | getch();
| ^~~~~
| getc
|
s867218764 | p03719 | C | #include<bits/stdc++.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
1 | #include<bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s690517130 | p03719 | C | #include<istream.h>
#include<ostream.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:9: fatal error: istream.h: No such file or directory
1 | #include<istream.h>
| ^~~~~~~~~~~
compilation terminated.
|
s671869153 | p03719 | C | #include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a, b, c;
scanf("%d%d%d",&a,&b,&c);
if(c>=a&&c<=b)
{
printf("Yes");
}
else
{
printf("No");
}
getch();
} | main.c:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s896237716 | p03719 | C | #include<fstream>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:9: fatal error: fstream: No such file or directory
1 | #include<fstream>
| ^~~~~~~~~
compilation terminated.
|
s341923339 | p03719 | C | #include<iostream>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s156221592 | p03719 | C | #include<ostream>
void main()
{
int A,B,C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:9: fatal error: ostream: No such file or directory
1 | #include<ostream>
| ^~~~~~~~~
compilation terminated.
|
s855642704 | p03719 | C | #include<istream>&#include<ostream>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
}
| main.c:1:18: warning: extra tokens at end of #include directive
1 | #include<istream>&#include<ostream>
| ^
main.c:1:9: fatal error: istream: No such file or directory
1 | #include<istream>&#include<ostream>
| ^~~~~~~~~
compilation terminated.
|
s027998957 | p03719 | C | #include<istream>
#include<ostream>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | main.c:1:9: fatal error: istream: No such file or directory
1 | #include<istream>
| ^~~~~~~~~
compilation terminated.
|
s802926138 | p03719 | C | #include<stdio.h>
#include<conio.h>
void main()
{
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if((C>=A)&&(C<=B))
printf("\nYES");
else
printf("\nNO");
getch();
} | main.c:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s102157447 | p03719 | C++ | #include <iostream>
using namespace std;
int main(){
int A ;
int B;
int C;
cout<<"enter A";
cin>>A;
cout <<"enter B";
cin>>B;
cout <<"enter C";
cin>>C;
if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
if(A<=C && B>=C ){
cout<<"yes";
}
else cout<<"no";
} else cout<<"no";
}
| a.cc: In function 'int main()':
a.cc:15:18: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
a.cc:15:39: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
a.cc:15:60: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
|
s591782822 | p03719 | C++ | #include <iostream>
using namespace std;
int main(){
int A ;
int B;
int C;
cout<<"enter A";
cin>>A;
cout <<"enter B";
cin>>B;
cout <<"enter C";
cin>>C;
if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
if(A<=C && B>=C ){
cout<<"yes";
}
else cout<<"no";
} else cout<<"no";
} | a.cc: In function 'int main()':
a.cc:15:18: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
a.cc:15:39: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
a.cc:15:60: error: expected primary-expression before '<' token
15 | if( A>=-100 && A=<100 && B>=-100 && B=<100 && C>=-100 && C=<100){
| ^
|
s426399330 | p03719 | C | #include<iostream.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | main.c:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s947237010 | p03719 | C | #include<iostream.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | main.c:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s836975185 | p03719 | C++ | #include<iostream.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s633904253 | p03719 | C++ | #include<iostream.h>
void main()
{
int A,B,C;
cin>>A>>B>>C;
if((C>=A)&&(C<=B))
cout<<"YES";
else
cout<<"NO";
getch();
} | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s967418281 | p03719 | C++ | #include <iostream>;
using namespace std;
intmain<>
{ int A B C;
cin>> A B C>> end1;
if (-100<=A,B,C<=100 , A<=C<=B)
{
cout<<yes;
}
else {
cout<<no;
}
}
return (0) | a.cc:1:20: warning: extra tokens at end of #include directive
1 | #include <iostream>;
| ^
a.cc:3:1: error: 'intmain' does not name a type
3 | intmain<>
| ^~~~~~~
a.cc:15:1: error: expected unqualified-id before 'return'
15 | return (0)
| ^~~~~~
|
s176591099 | p03719 | C++ | #include<iostream>
using namespace std;
int main()
{int A;int B;int C;
-100=<A,B,C=<100;
cin>>A>>B>>C;
if(A<=C<=B) {
cout<<"Yes"<<endl;}
else {cout<<"No"<<endl;}
return 0;} | a.cc: In function 'int main()':
a.cc:5:6: error: expected primary-expression before '<' token
5 | -100=<A,B,C=<100;
| ^
a.cc:5:13: error: expected primary-expression before '<' token
5 | -100=<A,B,C=<100;
| ^
|
s389128394 | p03719 | C++ | #include<iostream>
using namespace std;
int main()
(
int a,b,c;
congratulations>>a>>b>>c;
if(c>=a,&&c<=b)
{count<<"yes"<<endl;
}
else
{count<<"no"<<endl;
}
return0;
} | a.cc:5:7: error: 'b' has not been declared
5 | int a,b,c;
| ^
a.cc:5:9: error: 'c' has not been declared
5 | int a,b,c;
| ^
a.cc:5:10: error: expected ')' before ';' token
5 | int a,b,c;
| ^
| )
a.cc:4:1: note: to match this '('
4 | (
| ^
a.cc:3:1: error: 'main' declared as function returning a function
3 | int main()
| ^~~
a.cc:6:1: error: 'congratulations' does not name a type
6 | congratulations>>a>>b>>c;
| ^~~~~~~~~~~~~~~
a.cc:7:1: error: expected unqualified-id before 'if'
7 | if(c>=a,&&c<=b)
| ^~
a.cc:10:1: error: expected unqualified-id before 'else'
10 | else
| ^~~~
a.cc:13:1: error: 'return0' does not name a type
13 | return0;
| ^~~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s297317265 | p03719 | C | #include <iostream>
using namspace std;
int main()
{
int a,b,c;
cout<<"enter the value of a"<<endl;
cout <<"enter the value of b"<<endl;
cout <<"enter the value of c"<<endl;
cin>>a>>b>>c;
if (c>=a,&&c<=b)
{cout<<"yes"<<endl;
}
else
{ cout<<"no"<<endl;
}
return0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s065209065 | p03719 | C++ | #include <iostream>
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:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | 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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<"Yes";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<"No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s041829006 | p03719 | C++ | #include <iostream>
using namespace std;
//Compiler version g++ 6.3.0
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:9:14: error: expected primary-expression before '>' token
9 | if(c=>a&&c<=b)
| ^
a.cc: At global scope:
a.cc:14:1: error: expected unqualified-id before 'return'
14 | return 0;
| ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s490794477 | p03719 | C++ | int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(c>=a && c<=b){
cout<<"yes\n";}
else{
cout<<"no\n";} | a.cc:2:1: error: 'cin' does not name a type
2 | cin>>a;
| ^~~
a.cc:3:1: error: 'cin' does not name a type
3 | cin>>b;
| ^~~
a.cc:4:1: error: 'cin' does not name a type
4 | cin>>c;
| ^~~
a.cc:5:1: error: expected unqualified-id before 'if'
5 | if(c>=a && c<=b){
| ^~
a.cc:7:1: error: expected unqualified-id before 'else'
7 | else{
| ^~~~
|
s567273855 | p03719 | C++ | #include<iostream.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:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s904283480 | p03719 | C++ | int a,b,c;
cin>>a>>b>>c;
if(c>=a && c<=b){
cout<<"yes\n";}
else{
cout<<"no\n";} | a.cc:2:1: error: 'cin' does not name a type
2 | cin>>a>>b>>c;
| ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
3 | if(c>=a && c<=b){
| ^~
a.cc:5:1: error: expected unqualified-id before 'else'
5 | else{
| ^~~~
|
s190376624 | p03719 | C++ | #include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
if((c>=a)&&(c<=b))
{
cout<<"Yes";
}
else
{
cout<<"No";
}
} | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s002559810 | p03719 | C | #include<stdio.h>
#include<math.h>
int main(){
int a,b,c;
scanf("%d %d %d\n",&a,&b,&c);
if(c>=a && c<=b){
printf(""Yes);
}else{
printf("No");
}
return 0;
} | main.c: In function 'main':
main.c:12:10: error: expected ')' before 'Yes'
12 | printf(""Yes);
| ~ ^~~
| )
|
s918827376 | p03719 | C++ | //This code is solely the property of StarnyC
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(c<=b&&a<=c){cout<<"Yes";}
else{cout<<"No";
}
}
}
| a.cc:24:1: error: expected declaration before '}' token
24 | }
| ^
|
s339666412 | 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:10:7: warning: missing terminating " character
10 | cout<<"No;
| ^
a.cc:10:7: error: missing terminating " character
10 | cout<<"No;
| ^~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
11 | }
| ^
|
s778886039 | p03719 | Java | import java.io.*;
import java.util.*;
class probA
{
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(c>=a&&c<=b)System.out.println("Yes");
else System.out.println("No");
} | Main.java:13: error: reached end of file while parsing
}
^
1 error
|
s529722198 | p03719 | Java | import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner in=new Scanner();
int a=in.nextInt();
int b=in.nextInt();
int c=in.nextInt();
if(c>a&&c<b)
System.out.println("Yes");
else
System.out.println("No");
}
}
| Main.java:6: error: no suitable constructor found for Scanner(no arguments)
Scanner in=new Scanner();
^
constructor Scanner.Scanner(Readable,Pattern) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Readable) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(InputStream) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(InputStream,String) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(InputStream,Charset) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(File) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(File,String) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(File,Charset) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Path) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Path,String) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Path,Charset) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(String) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(ReadableByteChannel) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
(actual and formal argument lists differ in length)
1 error
|
s871216537 | 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:10:7: warning: missing terminating " character
10 | cout<<"No;
| ^
a.cc:10:7: error: missing terminating " character
10 | cout<<"No;
| ^~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
11 | }
| ^
|
s782284831 | p03719 | C++ | //This code is solely the property of StarnyC
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(c<=b&&a<=c){cout<<"YES";}
else{cout<<"NO";
}
}
}
| a.cc:24:1: error: expected declaration before '}' token
24 | }
| ^
|
s293252772 | p03719 | C++ | #include<iostream>
using namespace std;
int main()
{
cin>>a>>b>>c;
if(c>a && c<b)
cout<<"YES";
else
cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:5:6: error: 'a' was not declared in this scope
5 | cin>>a>>b>>c;
| ^
a.cc:5:9: error: 'b' was not declared in this scope
5 | cin>>a>>b>>c;
| ^
a.cc:5:12: error: 'c' was not declared in this scope
5 | cin>>a>>b>>c;
| ^
|
s670571016 | p03719 | C | #include<cstdio>
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: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s717962295 | p03719 | C++ | #inclide<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:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
1 | #inclide<iostream>
| ^~~~~~~
| 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 | #inclide<iostream>
a.cc:7:20: error: 'cout' was not declared in this scope
7 | if(C>=A && C<=B){cout<<"Yes"<<endl;}
| ^~~~
a.cc:7:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:33: error: 'endl' was not declared in this scope
7 | if(C>=A && C<=B){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 | #inclide<iostream>
a.cc:8:6: error: 'cout' was not declared in this scope
8 | else{cout<<"No"<<endl;}
| ^~~~
a.cc:8:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
8 | else{cout<<"No"<<endl;}
| ^~~~
a.cc:8:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s880216472 | p03719 | C++ | //algorithms.cpp
//Sun Jun 3 10:16:42 2018
#include <iostream>
#include <string>
#include <queue>
#include <unordered_map>
#include <vector>
#include <algorithm>
using namespace std;
//最大公倍数、最大公約数(ユークリッド互除法)
long long gcd (long long a, long long b){ //最大公約数
if (b == 0){
return a;
}
return gcd(b, a%b);
}
long long lcm (long long a, long long b){ //最小公倍数
long long temp = gcd(a,b);
return (a/temp)*b;
}
//深さ優先探索
bool visit[50];
bool graph[50][50];
void dfs(int v){
visit[v] = true;
for (int i=0;i<n;i++){
if (visit[i] == true){
continue;
}else if (graph[v][i] == false){
continue;
}
//do something here
dfs(i);
}
}
//幅優先探索 (ant37.cpp)
//次行ける場所をqueueに入れ、入れた順に処理する
queue<int> xx;
queue<int> yy;
while (xx.size()){
int x = xx.front(); xx.pop();
int y = yy.front(); yy.pop();
cout << x << " " << y << endl;
for (int i=0;i<4;i++){
if (x+dx[i] >= 0 && x+dx[i] <= n-1 && y+dy[i] >= 0 && y+dy[i] <= m-1 && a[x+dx[i]][y+dy[i]] != '#' && visited[x+dx[i]][y+dy[i]] == -1){
xx.push(x+dx[i]);
yy.push(y+dy[i]);
visited[x+dx[i]][y+dy[i]] = visited[x][y]+1;
}
}
}
//素因数分解
//N以下の全ての数の素因数を得る。
for (int i=2;i<=n;i++){
int a = 2;
int temp = i;
while (i>=a*a){ //iの素因数分解ここから
if (temp%a == 0){
num[a]++;
temp = temp/a;
if (a > maxa){
maxa = a;
}
}else {
a++;
}
}
if (temp > maxa){
maxa = temp;
}
num[temp]++; //最後の割り算の余りの処理を忘れない
}
//全組み合わせの列挙 (next_permutation)
int n = 3;
int a[n];
for (int i=0;i<n;i++){
a[i] = i;
}
do {
for (int i=0;i<n;i++){
cout << a[i] << " ";
}
printf("\n");
} while (next_permutation(a,a+n));
//0 1 2
//0 2 1
//1 0 2
//1 2 0
//2 0 1
//2 1 0
//do whileにすること。whileのみにすると、最初の組みが試せない。
//ヒープ構造(priority_queue)
//配列を小さい順、あるいは大きい順に取り出せるデータ構造。
int n;
cin >> n;
priority_queue<int> pq1; //大きい順
priority_queue<int, vector<int>, greater<int>> pq2; //小さい順
int a[n];
for (int i=0;i<n;i++){
cin >> a[i];
pq1.push(a[i]);
pq2.push(a[i]);
}
while (pq1.size()){
cout << pq1.top() << " ";
pq1.pop();
}
printf ("\n");
while (pq2.size()){
cout << pq2.top() << " ";
pq2.pop();
}
printf ("\n");
//アルファベットの数値化
char c = 'b';
int x = (int) c - 'a'; // x = 1;
int y = 4;
char z = (char) y + '0'; // z = '4'
//Union-Find木
int par[MAX_N]; //親
int treerank[MAX_N]; //木の深さ
//n要素で初期化
void init(int n){
for (int i=0;i<n;i++){
par[i] = i;
treerank[i] = 0;
}
}
//木の根(親)を見つける
int find (int x){
if (par[x] == x){
return x;
} else {
return par[x] = find(par[x]);
}
}
//xとyの属する集合の併合
void unite(int x, int y){
x = find(x);
y = find(y);
if (x == y) {
return;
}
if (treerank[x] < treerank[y]){
par[x] = y;
} else {
par[y] = x;
if (treerank[x] == treerank[y]){
treerank[x]++;
}
}
}
bool same(int x, int y){
return find(x) == find(y);
}
//ベルマン=フォード法(O(|V|x|E|), ant95_vec)
struct edge {int from, to, cost;};
edge es[100];
int d[100];
int v,e;
void shortest_path(int s){
fill(d,d+v+1,INF);
d[s] = 0;
while (true){
bool update = false;
for (int i=0;i<e;i++){
edge e = es[i];
if (d[e.from] != INF && d[e.to] > d[e.from] + e.cost){
d[e.to] = d[e.from] + e.cost;
update = true;
}else if (d[e.to] != INF && d[e.from] > d[e.to] + e.cost){
d[e.from] = d[e.to] + e.cost;
update = true;
}
}
for (int i=1;i<=v;i++){
cout << d[i] << " ";
}
printf("\n");
if (!update){
break;
}
}
}
//ダイクストラ法(ant97) (O(|E|log|V|)負の辺がある場合は使用不可。) vにノード数、eに辺数を入れて使う。
struct edge {int to, cost;};
vector<edge> G[100];
int d[100];
int v,e;
void dijkstra (int s){
priority_queue<P, vector<P>, greater<P>> pq; //小さい順
fill (d,d+v,INF);
d[s] = 0;
pq.push(P(0,s));
while(!pq.empty()){
P p = pq.top();
pq.pop();
int vtemp = p.second;
// cout << p.first << " " << p.second << " ";
if (d[vtemp] < p.first){
// cout << "pass" << endl;
continue;
}
for (int i=0;i<G[vtemp].size();i++){
edge e = G[vtemp][i];
if (d[e.to] > d[vtemp] + e.cost){
d[e.to] = d[vtemp] + e.cost;
pq.push(P(d[e.to],e.to));
}
}
// for (int i=0;i<v;i++){
// cout << d[i] << " ";
// }
// printf("\n");
}
} | a.cc: In function 'void dfs(int)':
a.cc:33:24: error: 'n' was not declared in this scope
33 | for (int i=0;i<n;i++){
| ^
a.cc: At global scope:
a.cc:49:9: error: expected unqualified-id before 'while'
49 | while (xx.size()){
| ^~~~~
a.cc:65:9: error: expected unqualified-id before 'for'
65 | for (int i=2;i<=n;i++){
| ^~~
a.cc:65:22: error: 'i' does not name a type
65 | for (int i=2;i<=n;i++){
| ^
a.cc:65:27: error: 'i' does not name a type
65 | for (int i=2;i<=n;i++){
| ^
a.cc:88:15: error: size of array 'a' is not an integral constant-expression
88 | int a[n];
| ^
a.cc:89:9: error: expected unqualified-id before 'for'
89 | for (int i=0;i<n;i++){
| ^~~
a.cc:89:22: error: 'i' does not name a type
89 | for (int i=0;i<n;i++){
| ^
a.cc:89:26: error: 'i' does not name a type
89 | for (int i=0;i<n;i++){
| ^
a.cc:93:9: error: expected unqualified-id before 'do'
93 | do {
| ^~
a.cc:98:11: error: expected unqualified-id before 'while'
98 | } while (next_permutation(a,a+n));
| ^~~~~
a.cc:110:13: error: redefinition of 'int n'
110 | int n;
| ^
a.cc:87:13: note: 'int n' previously defined here
87 | int n = 3;
| ^
a.cc:111:9: error: 'cin' does not name a type
111 | cin >> n;
| ^~~
a.cc:116:15: error: size of array 'a' is not an integral constant-expression
116 | int a[n];
| ^
a.cc:116:13: error: redefinition of 'int a [1]'
116 | int a[n];
| ^
a.cc:88:13: note: 'int a [1]' previously declared here
88 | int a[n];
| ^
a.cc:117:9: error: expected unqualified-id before 'for'
117 | for (int i=0;i<n;i++){
| ^~~
a.cc:117:22: error: 'i' does not name a type
117 | for (int i=0;i<n;i++){
| ^
a.cc:117:26: error: 'i' does not name a type
117 | for (int i=0;i<n;i++){
| ^
a.cc:123:9: error: expected unqualified-id before 'while'
123 | while (pq1.size()){
| ^~~~~
a.cc:127:16: error: expected constructor, destructor, or type conversion before '(' token
127 | printf ("\n");
| ^
a.cc:129:9: error: expected unqualified-id before 'while'
129 | while (pq2.size()){
| ^~~~~
a.cc:133:16: error: expected constructor, destructor, or type conversion before '(' token
133 | printf ("\n");
| ^
a.cc:146:9: error: 'MAX_N' was not declared in this scope
146 | int par[MAX_N]; //親
| ^~~~~
a.cc:147:14: error: 'MAX_N' was not declared in this scope
147 | int treerank[MAX_N]; //木の深さ
| ^~~~~
a.cc: In function 'void init(int)':
a.cc:152:17: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
152 | par[i] = i;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/14/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/14/algorithm:86,
from a.cc:9:
/usr/include/c++/14/pstl/execution_defs.h:43:45: note: '__pstl::execution::v1::par' declared here
43 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
a.cc:153:17: error: 'treerank' was not declared in this scope
153 | treerank[i] = 0;
| ^~~~~~~~
a.cc: In function 'int find(int)':
a.cc:159:13: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
159 | if (par[x] == x){
| ^~~
| __pstl::execution::v1::par
/usr/include/c++/14/pstl/execution_defs.h:43:45: note: '__pstl::execution::v1::par' declared here
43 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
a.cc: In function 'void unite(int, int)':
a.cc:174:13: error: 'treerank' was not declared in this scope
174 | if (treerank[x] < treerank[y]){
| ^~~~~~~~
a.cc:175:17: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
175 | par[x] = y;
| ^~~
| __pstl::execution::v1::par
/usr/include/c++/14/pstl/execution_defs.h:43:45: note: '__pstl::execution::v1::par' declared here
43 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
a.cc:177:17: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
177 | par[y] = x;
| ^~~
| __pstl::execution::v1::par
/usr/include/c++/14/pstl/execution_defs.h:43:45: note: '__pstl::execution::v1::par' declared here
43 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
a.cc: In function 'void shortest_path(int)':
a.cc:197:22: error: 'INF' was not declared in this scope
197 | fill(d,d+v+1,INF);
| ^~~
a.cc: At global scope:
a.cc:222:8: error: redefinition of 'struct edge'
222 | struct edge {int to, cost;};
| ^~~~
a.cc:190:8: note: previous definition of 'struct edge'
190 | struct edge {int from, to, cost;};
| ^~~~
a.cc:225:5: error: redefinition of 'int d [100]'
225 | int d[100];
| ^
a.cc:193:5: note: 'int d [100]' previously declared here
193 | int d[100];
| ^
a.cc:226:5: error: redefinition of 'int v'
226 | int v,e;
| ^
a.cc:194:5: note: 'int v' previously declared here
194 | int v,e;
| ^
a.cc:226:7: error: redefinition of 'int e'
226 | int v,e;
| ^
a.cc:194:7: note: 'int e' previously declared here
194 | int v,e;
| ^
a.cc: In function 'void dijkstra(int)':
a.cc:229:24: error: 'P' was not declared in this scope
229 | priority_queue<P, vector<P>, greater<P>> pq; //小さい順
| ^
a.cc:229:35: error: template argument 2 is invalid
229 | priority_queue<P, vector<P>, greater<P>> pq; //小さい順
| ^
a.cc:229:47: error: template argument 1 is invalid
229 | priority_queue<P, vector<P>, greater<P>> pq; //小さい順
| ^~
a.cc:229:47: error: template argument 2 is invalid
a.cc:229:47: error: template argument 3 is invalid
a.cc:230:21: error: 'INF' was not declared in this scope
230 | fill (d,d+v,INF);
| ^~~
a.cc:232:12: error: request for member 'push' in 'pq', which is of non-class type 'int'
232 | pq.push(P(0,s));
| ^~~~
a.cc:233:19: error: request for member 'empty' in 'pq', which is of non-class type 'int'
233 | while(!pq.empty()){
| ^~~~~
a.cc:234:18: error: expected ';' before 'p'
234 | P p = pq.top();
| ^~
| ;
a.cc:235:20: error: request for member 'pop' in 'pq', which is of non-class type 'int'
235 | pq.pop();
| ^~~
a.cc:236:29: error: 'p' was not declared in this scope; did you mean 'pq'?
236 | int vtemp = p.second;
| ^
| pq
a.cc:246:36: error: request for member 'push' in 'pq', which is of non-class type 'int'
246 | pq.push(P(d[e.to],e.to));
| ^~~~
|
s388875120 | p03719 | C++ | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if (A <=C)
{if (C <=B)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
else
{
printf("No\n");
}
system("pause");
}
} | a.cc: In function 'int main()':
a.cc:9:10: error: 'A' was not declared in this scope
9 | if (A <=C)
| ^
a.cc:9:14: error: 'C' was not declared in this scope
9 | if (A <=C)
| ^
a.cc:10:18: error: 'B' was not declared in this scope
10 | {if (C <=B)
| ^
a.cc: At global scope:
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
|
s742325424 | 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:7:16: error: expected primary-expression before '>' token
7 | if(a<=c&&b=>c)
| ^
|
s282503619 | p03719 | C++ | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
if (c >= a && c <= b){
System.out.println("YES");
return;
}
System.out.println("NO");
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.util.*;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
5 | public class Main {
| ^~~~~~
|
s419798937 | p03719 | C++ | import sys
import math
import collections
import itertools
import array
import inspect
# Set max recursion limit
sys.setrecursionlimit(1000000)
# Debug output
def chkprint(*args):
names = {
id(v): k
for k, v in inspect.currentframe().f_back.f_locals.items()
}
print(', '.join(
names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
# Binary converter
def to_bin(x):
return bin(x)[2:]
def li_input():
return [int(_) for _ in input().split()]
def gcd(n, m):
if n % m == 0:
return m
else:
return gcd(m, n % m)
def gcd_list(L):
v = L[0]
for i in range(1, len(L)):
v = gcd(v, L[i])
return v
def lcm(n, m):
return (n * m) // gcd(n, m)
def lcm_list(L):
v = L[0]
for i in range(1, len(L)):
v = lcm(v, L[i])
return v
# Width First Search (+ Distance)
def wfs_d(D, N, K):
"""
D: 隣接行列(距離付き)
N: ノード数
K: 始点ノード
"""
dfk = [-1] * (N + 1)
dfk[K] = 0
cps = [(K, 0)]
r = [False] * (N + 1)
r[K] = True
while len(cps) != 0:
n_cps = []
for cp, cd in cps:
for i, dfcp in enumerate(D[cp]):
if dfcp != -1 and not r[i]:
dfk[i] = cd + dfcp
n_cps.append((i, cd + dfcp))
r[i] = True
cps = n_cps[:]
return dfk
# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
"""
v: 現在のノード
pre: 1つ前のノード
dist: 現在の距離
以下は別途用意する
D: 隣接リスト(行列ではない)
D_dfs_d: dfs_d関数で用いる,始点ノードから見た距離リスト
"""
global D
global D_dfs_d
D_dfs_d[v] = dist
for next_v, d in D[v]:
if next_v != pre:
dfs_d(next_v, v, dist + d)
return
def sigma(N):
ans = 0
for i in range(1, N + 1):
ans += i
return ans
def comb(n, r):
if n - r < r: r = n - r
if r == 0: return 1
if r == 1: return n
numerator = [n - r + k + 1 for k in range(r)]
denominator = [k + 1 for k in range(r)]
for p in range(2, r + 1):
pivot = denominator[p - 1]
if pivot > 1:
offset = (n - r) % p
for k in range(p - 1, r, p):
numerator[k - offset] /= pivot
denominator[k] /= pivot
result = 1
for k in range(r):
if numerator[k] > 1:
result *= int(numerator[k])
return result
def bisearch(L, target):
low = 0
high = len(L) - 1
while low <= high:
mid = (low + high) // 2
guess = L[mid]
if guess == target:
return True
elif guess < target:
low = mid + 1
elif guess > target:
high = mid - 1
if guess != target:
return False
# --------------------------------------------
dp = None
def main():
A, B, C = li_input()
print("Yes") if B >= C >= A else print("No")
main()
| a.cc:8:3: error: invalid preprocessing directive #Set
8 | # Set max recursion limit
| ^~~
a.cc:12:3: error: invalid preprocessing directive #Debug
12 | # Debug output
| ^~~~~
a.cc:18:11: warning: multi-character character constant [-Wmultichar]
18 | print(', '.join(
| ^~~~
a.cc:19:30: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
a.cc:19:28: warning: multi-character character constant [-Wmultichar]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
| ^~~~~
a.cc:19:37: warning: multi-character character constant [-Wmultichar]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
| ^~~~~
a.cc:22:3: error: invalid preprocessing directive #Binary
22 | # Binary converter
| ^~~~~~
a.cc:60:3: error: invalid preprocessing directive #Width
60 | # Width First Search (+ Distance)
| ^~~~~
a.cc:62:7: warning: missing terminating " character
62 | """
| ^
a.cc:62:7: error: missing terminating " character
a.cc:66:7: warning: missing terminating " character
66 | """
| ^
a.cc:66:7: error: missing terminating " character
a.cc:88:3: error: invalid preprocessing directive #Depth
88 | # Depth First Search (+Distance)
| ^~~~~
a.cc:90:7: warning: missing terminating " character
90 | """
| ^
a.cc:90:7: error: missing terminating " character
a.cc:98:7: warning: missing terminating " character
98 | """
| ^
a.cc:98:7: error: missing terminating " character
a.cc:158:3: error: invalid preprocessing directive #--
158 | # --------------------------------------------
| ^~
a.cc:1:1: error: 'import' does not name a type
1 | import sys
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:18:10: error: expected constructor, destructor, or type conversion before '(' token
18 | print(', '.join(
| ^
|
s519417673 | 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) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '<' token
6 | if (a=<c and c<=b) cout<<"Yes"<<endl;
| ^
|
s294903573 | p03719 | Java | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a>=-100 && a<=100) && (b>=-100 && b<=100) && (c>=-100 && c<=100)){
if(c>=a && c<=b){
printf("Yes\n");
}
else{
printf("No\n");
}
}
return 0;
}
| Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:6: error: class, interface, enum, or record expected
scanf("%d%d%d",&a,&b,&c);
^
Main.java:7: error: class, interface, enum, or record expected
if((a>=-100 && a<=100) && (b>=-100 && b<=100) && (c>=-100 && c<=100)){
^
Main.java:10: error: class, interface, enum, or record expected
}
^
Main.java:13: error: class, interface, enum, or record expected
}
^
Main.java:16: error: class, interface, enum, or record expected
}
^
7 errors
|
s979334223 | p03719 | C++ | #include<iostream>
#include<set>
using namespace std;
int main(){
int N, M;
int a[110];
multiset<int> st;
for(int i = 0; i < 2*M; i += 2){
cin >> a[i];
st.insert(a[i]);
}
for(int i = 0; i < N)
cout << st.count(i+1) << endl;
}
| a.cc: In function 'int main()':
a.cc:14:23: error: expected ';' before ')' token
14 | for(int i = 0; i < N)
| ^
| ;
|
s728870645 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
ios::sync_with_stdio(false);
cin >> a >> b >> c;
if(a <= b && b<= c) cout << "Yes" << endl;
els cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'els' was not declared in this scope
9 | els cout << "No" << endl;
| ^~~
|
s869265562 | 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;
}
return 0;
} | a.cc:7:9: error: extended character “ is not valid in an identifier
7 | cout << “Yes” << endl;
| ^
a.cc:7:9: error: extended character ” is not valid in an identifier
a.cc:9:9: error: extended character “ is not valid in an identifier
9 | cout << “No” << endl;
| ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
7 | cout << “Yes” << endl;
| ^~~~~
a.cc:9:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
9 | cout << “No” << endl;
| ^~~~
|
s772480088 | 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:7:9: error: extended character “ is not valid in an identifier
7 | cout << “Yes” << endl;
| ^
a.cc:7:9: error: extended character ” is not valid in an identifier
a.cc:9:9: error: extended character “ is not valid in an identifier
9 | cout << “No” << endl;
| ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
7 | cout << “Yes” << endl;
| ^~~~~
a.cc:9:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
9 | cout << “No” << endl;
| ^~~~
|
s261099110 | 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:6:14: error: expected primary-expression before '<' token
6 | if(a<=c&&c=<b){cout<<"YES"<<endl;}
| ^
|
s541404355 | 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:6:14: error: expected primary-expression before '<' token
6 | if(a<=c&&c=<b){cout<<"YES"<<endl;}
| ^
a.cc:7:24: error: expected ';' before ':' token
7 | else{cout<<"NO"<<endl:}
| ^
| ;
|
s797731489 | p03719 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
using namespace std;
typedef long long ll;
#define rep(i,a,n) for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
ll gcd(ll a,ll b){
if(b==0)return a;
return gcd(b,a%b);
}
ll lcm(ll a,ll b){
ll g=gcd(a,b);
return a/g*b;
}
ll digitsum(ll a){
ll x=0;
while(a>0){
x+=a%10;
a/=10;
}
return x;
}
int main(){
ll a,b,c;
cin>>a>>b>>c;
if(min(a,c)==a&&max(b,c)==b)cout<<"Yes"<<endl;
else cout<<"No"<endl;
} | a.cc: In function 'int main()':
a.cc:34:24: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
34 | else 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
34 | 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
34 | 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
34 | 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
34 | else 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
34 | else 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
34 | 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
34 | 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:34:25: note: couldn't deduce template parameter '_CharT'
34 | 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
34 | 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 argument deduction/substitution failed:
a.cc:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
34 | else 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:34:25: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
34 | else 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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
34 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/vector:66,
from a.cc:3:
/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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>'
34 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/map:63,
from a.cc:5:
/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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::map<_Key, _Tp, _Compare, _Allocator>'
34 | else cout<<"No"<endl;
| ^~~~
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:34:25: note: 'std::basic_ostream<char>' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Allocator>'
34 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/set:63,
from a.cc:6:
/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,
|
s825821848 | p03719 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define FOR(i,a,b) for(int i=(a); i<=(b); ++i)
#define FORD(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) FOR(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //ATTENTION: <a> must be sorted in advance
lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n
const int MOD = 1000000007; //10^9+7
/*********** variables ************/
int A,B<C;
/**********************************/
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
cin >> A >> B >> C;
cout << (C>=A&&C<=B) ? "Yes" : "No" << endl;
}
| a.cc:19:8: error: expected initializer before '<' token
19 | int A,B<C;
| ^
a.cc: In function 'int main()':
a.cc:25:17: error: 'B' was not declared in this scope
25 | cin >> A >> B >> C;
| ^
a.cc:25:22: error: 'C' was not declared in this scope
25 | cin >> A >> B >> C;
| ^
a.cc:26:41: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
26 | cout << (C>=A&&C<=B) ? "Yes" : "No" << endl;
| ~~~~~^~~~~~~
|
s625089409 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void){
int a, b, c;
cin >> a >> b >> c;
cout << (a<=c && c<=b) ? "Yes":"No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:39: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
9 | cout << (a<=c && c<=b) ? "Yes":"No" << endl;
| ~~~~~^~~~~~~
|
s371326975 | p03719 | C++ | main :: IO ()
main = do
[a,b,c] <- fmap (map read . words) getLine :: IO [Int]
putStrLn $ if a <= c && c <= b
then "Yes"
else "No" | a.cc:1:1: error: 'main' does not name a type
1 | main :: IO ()
| ^~~~
|
s889769433 | p03719 | C++ | #include <iostream>
#include <string>
int main()
{
int a, b, c;
std::cin >> a >> b >> c;
std::string ans = "";
if( a <= c and c <= b ) {
ans = "Yes";
}
else {
ans = "No";
}
std::cout << ans << std::endl;
return 0;
}
#include <iostream>
#include <string>
int main()
{
int a, b, c;
std::cin >> a >> b >> c;
std::string ans = "";
if( a <= c and c <= b ) {
ans = "Yes";
}
else {
ans = "No";
}
std::cout << ans << std::endl;
return 0;
}
Submission | a.cc:23:5: error: redefinition of 'int main()'
23 | int main()
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main()
| ^~~~
a.cc:39:1: error: 'Submission' does not name a type
39 | Submission
| ^~~~~~~~~~
|
s047562884 | p03719 | C | #include <iostream>
#include <string>
int main()
{
int a, b, c;
std::cin >> a >> b >> c;
std::string ans = "";
if( a <= c and c <= b ) {
ans = "Yes";
}
else {
ans = "No";
}
std::cout << ans << std::endl;
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s856008561 | p03719 | C++ | #include<iostream>
int main() {
int A,B,C;
std::cin >> A >> B >> C;
if(A<=C and C6<=B) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:13: error: 'C6' was not declared in this scope; did you mean 'C'?
5 | if(A<=C and C6<=B) {
| ^~
| C
|
s192339128 | p03719 | C++ | #include <sstream>
#include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c;
}
if (b >= c && c >=a ){
cout << "Yes" << endl;
} else{
cout << "No" << endl;
}
return 0;
}
| a.cc:8:3: error: expected unqualified-id before 'if'
8 | if (b >= c && c >=a ){
| ^~
a.cc:10:5: error: expected unqualified-id before 'else'
10 | } else{
| ^~~~
a.cc:13:3: error: expected unqualified-id before 'return'
13 | return 0;
| ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s869841464 | p03719 | C++ | #include <sstream>
#include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a>> b >> c;
if (a < b){
d = a;
a = b;
b = d;
}
if (a >= c)&&( c >=b ){
cout << "Yes" << endl;
}else{
cout << "No" << endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:16: error: expected identifier before '(' token
12 | if (a >= c)&&( c >=b ){
| ^
|
s881966099 | p03719 | C++ | #include <sstream>
#include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a>> b >> c;
if (a < b){
d = a;
a = b;
b = d;
}
if (a >= c)&&(c >=b ){
cout << "Yes" << endl;
}else{
cout << "No" << endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:16: error: expected identifier before '(' token
12 | if (a >= c)&&(c >=b ){
| ^
|
s939012059 | p03719 | C++ | #include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
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:11:7: error: 'A' was not declared in this scope
11 | if(c>=A&&c<=b)
| ^
|
s541686377 | p03719 | C++ | import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
import std.range;
void main(){
auto Q=readln.split.to!(int[]),A=Q[0],B=Q[1],C=Q[2];
if(C>=A&&C<=B)writeln("Yes");
else writeln("No");
} | a.cc:1:1: error: 'import' does not name a type
1 | import std.stdio;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import std.string;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import std.conv;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
4 | import std.algorithm;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
5 | import std.array;
| ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
6 | import std.range;
| ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: '::main' must return 'int'
8 | void main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:9:16: error: 'readln' was not declared in this scope
9 | auto Q=readln.split.to!(int[]),A=Q[0],B=Q[1],C=Q[2];
| ^~~~~~
a.cc:10:12: error: 'C' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:15: error: 'A' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:21: error: 'B' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:23: error: 'writeln' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^~~~~~~
a.cc:11:14: error: 'writeln' was not declared in this scope
11 | else writeln("No");
| ^~~~~~~
|
s144534485 | p03719 | C++ | import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
import std.range;
void main(){
auto Q=readln.split.to!(int[]),A=Q[0],B=Q[1],C=Q[2];
if(C>=A&&C<=B)writeln("Yes");
else writeln("No");
}
| a.cc:1:1: error: 'import' does not name a type
1 | import std.stdio;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import std.string;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import std.conv;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
4 | import std.algorithm;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
5 | import std.array;
| ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
6 | import std.range;
| ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: '::main' must return 'int'
8 | void main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:9:16: error: 'readln' was not declared in this scope
9 | auto Q=readln.split.to!(int[]),A=Q[0],B=Q[1],C=Q[2];
| ^~~~~~
a.cc:10:12: error: 'C' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:15: error: 'A' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:21: error: 'B' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^
a.cc:10:23: error: 'writeln' was not declared in this scope
10 | if(C>=A&&C<=B)writeln("Yes");
| ^~~~~~~
a.cc:11:14: error: 'writeln' was not declared in this scope
11 | else writeln("No");
| ^~~~~~~
|
s740623441 | p03719 | C++ | コード 拡げる
Copy
Copy
#include <iostream>
using namespace std;
int main ()
{
int d;
int m;
int l;
cin >> m;
cin >> d;
cin >> l;
if(m<=d&&d<l)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
return 0;
}
| a.cc:1:1: error: '\U000030b3\U000030fc\U000030c9' does not name a type
1 | コード 拡げる
| ^~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:4:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/exception_ptr.h:38,
from /usr/include/c++/14/exception:166,
from /usr/include/c++/14/ios:41:
/usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
132 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
134 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared
140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared
142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:145:52: error: expected primary-expression before 'const'
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:147:54: error: expected primary-expression before 'const'
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:154:68: error: expected primary-expression before ')' token
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive]
155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:156:68: error: expected primary-expression before ',' token
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:156:70: error: expected primary-expression before 'const'
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:162:70: error: expected primary-expression before ')' token
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive]
163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:164:70: error: expected primary-expression before ',' token
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:164:72: error: expected primary-expression before 'const'
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared
171 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared
173 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'si |
s575116091 | p03719 | C++ | #include<iostream>
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:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | 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:5:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | if(c >= a && c <= b)cout << "Yes";else cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:5:40: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | if(c >= a && c <= b)cout << "Yes";else cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s462765455 | p03719 | C++ | #include <bits/stdc++.h>
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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | 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:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout<<"Yes"<<endl;
| ^~~~
| std::endl
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:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | 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:10:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | cout<<"No"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s299220939 | 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:19:1: error: expected class-name before '~' token
19 | ~
| ^
|
s357485806 | p03719 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
intA=sc.nextInt();
intB=sc.nextInt();
intC=sc.nextInt();
if(C>=A && C<=B)System.out.println("Yes");
else System.out.println("No");
}
} | Main.java:5: error: cannot find symbol
intA=sc.nextInt();
^
symbol: variable intA
location: class Main
Main.java:6: error: cannot find symbol
intB=sc.nextInt();
^
symbol: variable intB
location: class Main
Main.java:7: error: cannot find symbol
intC=sc.nextInt();
^
symbol: variable intC
location: class Main
Main.java:8: error: cannot find symbol
if(C>=A && C<=B)System.out.println("Yes");
^
symbol: variable C
location: class Main
Main.java:8: error: cannot find symbol
if(C>=A && C<=B)System.out.println("Yes");
^
symbol: variable A
location: class Main
Main.java:8: error: cannot find symbol
if(C>=A && C<=B)System.out.println("Yes");
^
symbol: variable C
location: class Main
Main.java:8: error: cannot find symbol
if(C>=A && C<=B)System.out.println("Yes");
^
symbol: variable B
location: class Main
7 errors
|
s355950143 | p03719 | Java | import java.util.Scanner;
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(a <= c && c <= b){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:6: error: cannot find symbol
int b = sc.nextINt();
^
symbol: method nextINt()
location: variable sc of type Scanner
1 error
|
s497531353 | p03719 | Java | import java.util.Scanner;
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(a <= c,c <= b){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:8: error: ')' expected
if(a <= c,c <= b){
^
Main.java:8: error: not a statement
if(a <= c,c <= b){
^
Main.java:8: error: ';' expected
if(a <= c,c <= b){
^
Main.java:10: error: 'else' without 'if'
}else{
^
4 errors
|
s602458937 | p03719 | C++ | using System;
public class Hello
{
public static void Main()
{
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
var c = int.Parse(line[2]);
Console.WriteLine(c >= a && c <= b ? "Yes" : "No");
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Hello
| ^~~~~~
|
s679910671 | p03719 | C | #include <stdio.h>
void nothing(void);
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;
};6 | main.c:19:3: error: expected identifier or '(' before numeric constant
19 | };6
| ^
|
s109498856 | p03719 | C++ | #include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <unordered_set>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
static const int INF = 1000010000;
static const int NIL = -1;
static const int MOD = 1000000007;
#define FOR(i, a, b) for(int i = (a); i < (b); ++i)
#define REP(i, n) for(int i = 0; i < (n); ++i)
#define SORT(v) sort(v.begin(), v.end());
#define pb push_back
#define mp make_pair
#define np next_permutation
#define pq priority_queue
int gcd(int a, int b) { int c; while (b != 0) { c = a%b; a = b; b = c; }return a; }
int lcm(int a, int b) { int c = gcd(a, b); a /= c; return a*b; }
int nCr(int a, int b) { int i, r = 1; for (i = 1; i <= b; i++) { r *= (a + 1 - i); r /= i; }return r; }
int pow(int a, int b) { int i, r = 1; for (i = 1; i <= b; i++) { r *= a; }return r; }
long long llpow(long long a, long long b) { long long i, r = 1; for (i = 1; i <= b; i++) { r *= a; }return r; }
long long llgcd(long long a, long long b) { long long c; while (b != 0) { c = a%b; a = b; b = c; }return a; }
long long lllcm(long long a, long long b) { long long c = llgcd(a, b); a /= c; return a*b; }
long long llnCr(long long a, long long b) { long long i, r = 1; for (i = 1; i <= b; i++) { r *= (a + 1 - i); r /= i; }return r; }
//int dx4[4] = {0,1,0,-1}, dy4[4] = {-1,0,1,0};
//int dx5[5] = {-1,0,0,0,1}, dy5[5] = {0,-1,0,1,0};
//int dx8[8] = {-1,0,1,1,1,0,-1,-1}, dy8[8] = {1,1,1,0,-1,-1,-1,0};
//int dx9[9] = {-1,0,1,1,1,0,-1,-1,0}, dy9[9] = {1,1,1,0,-1,-1,-1,0,0};
struct edge{
int from, to; ll cost;
};
#define MAX_E 2010
#define MAX_V 1010
edge es[MAX_E];
ll d[MAX_V];
int V, E;
bool flag = false;
bool visit[MAX_V];
void ford(int s){
REP(i, V) d[i] = 0;
REP(i, V){
REP(j, E){
edge e = es[j];
if(d[e.to] > d[e.from] + e.cost || !visit[e.to]){
visit[e.to] = true;
d[e.to] = d[e.from] + e.cost;
if(i == V - 1){
flag = true;
break;
}
}
}
}
}
int main(){
int n, m;
cin >> n >> m;
V = n; E = m;
REP(i, m){
edge e;
cin >> e.from >> e.to >> e.cost;
e.from--; e.to--; e.cost *= -1;
es[i] = e;
}
REP(i, MAX_V) visit[i] = false;
fill(d, d + MAX_V, 0);
ford(0);
if(flag){
assert(flag == -2);
cout << "inf" << endl;
}else{
cout << -1 * d[n - 1] << endl;
}
}
| a.cc: In function 'int main()':
a.cc:85:7: error: 'assert' was not declared in this scope
85 | assert(flag == -2);
| ^~~~~~
a.cc:10:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
9 | #include <unordered_set>
+++ |+#include <cassert>
10 |
|
s154494711 | 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:11:15: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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:16: 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,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s656852352 | p03719 | C++ | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
cout << (a <= c && b => c ? "Yes": "No") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:25: error: expected primary-expression before '>' token
6 | cout << (a <= c && b => c ? "Yes": "No") << endl;
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.