submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s592950961
p03719
C++
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"); } } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s862095286
p03719
C++
#include<bits/stdc++.h> int main(){ int n,m,i,a; int x[51]; cin>>n>>m; for(i=1;i<=n;i++){ x[i]=0; } for(i=0;i<m*2;i++){ cin>>a; x[a]+=1; } for(i=1;i<=n;i++){ cout<<x[i]; } return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>n>>m; | ^~~ | 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:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 14 | cout<<x[i]; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s901101111
p03719
C
#include<stdio.h> int main() {int a,b,c,d=0,e=0; scanf("%d %d %d ",&a,&b,&c); if(a<=c) { d++;} if(b>=c) {e++;} If (d==e){ printf("YES");} else{ printf("NO");} }
main.c: In function 'main': main.c:10:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration] 10 | If (d==e){ | ^~ main.c:10:10: error: expected ';' before '{' token 10 | If (d==e){ | ^ | ;
s239430583
p03719
C
#include<stdio.h> int main() {int a,b,c,d=0,e=0; scanf("%d %d %d ",&a,&b,&c); if(a<=c) { d++;} if(b>=c) {e++;} if (d==e){ printf("YES");} else{ printf("NO");} } }
main.c:17:1: error: expected identifier or '(' before '}' token 17 | } | ^
s809550029
p03719
C
#include<stdio.h> int main() {int a,b,c,d=0,e=0; scanf("%d %d %d ",&a,&b,&c); if(a<=c) { d++;} if(b>=c) {e++;} If (d==e){ printf("YES");} else{ printf("NO");} } }
main.c: In function 'main': main.c:10:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration] 10 | If (d==e){ | ^~ main.c:10:10: error: expected ';' before '{' token 10 | If (d==e){ | ^ | ; main.c: At top level: main.c:17:1: error: expected identifier or '(' before '}' token 17 | } | ^
s807015905
p03719
C
#include<studio.h> int main(){ int A,B,C; printf ("enter values of A,B,C respectively"); scanf("A=%d",A); scanf("B=%d",B); scanf("C=%d",C); if (C>=A)&&(C<=B) { Printf("yes"); } Else { Printf("no"); } Return 0; }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s709247525
p03719
C
#include<stdio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d ",&a,&b,&c); if(a<=c) { d=1;} if(b>=c) {e=1;} If (d==e){ printf("%d",f);} } }
main.c: In function 'main': main.c:10:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration] 10 | If (d==e){ | ^~ main.c:10:10: error: expected ';' before '{' token 10 | If (d==e){ | ^ | ; main.c: At top level: main.c:15:1: error: expected identifier or '(' before '}' token 15 | } | ^
s543944579
p03719
C
#include<stdio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d ",&a,&b,&c); if(a<=c) { d=1;} if(b>=c) {e=1;} If (d=e){ printf("%d",f);} } }
main.c: In function 'main': main.c:10:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration] 10 | If (d=e){ | ^~ main.c:10:9: error: expected ';' before '{' token 10 | If (d=e){ | ^ | ; main.c: At top level: main.c:15:1: error: expected identifier or '(' before '}' token 15 | } | ^
s431172881
p03719
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a; cin>>b; cin>>c; if (b>c){ if (c>a){ cout<<"Yes";} } else{cout<<"No;} return 0; }
a.cc:15:16: warning: missing terminating " character 15 | else{cout<<"No;} | ^ a.cc:15:16: error: missing terminating " character 15 | else{cout<<"No;} | ^~~~~ a.cc: In function 'int main()': a.cc:16:5: error: expected primary-expression before 'return' 16 | return 0; | ^~~~~~ a.cc:17:2: error: expected '}' at end of input 17 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s446388188
p03719
Java
class abc { public void show(int a,int b,int c) { if((c>=a) && (c<=b)) System.out.print("Yes"); else System.out.print("No"); } public static void main(String[] args) { abc obj=new abc(); obj.show(); } }
Main.java:13: error: method show in class abc cannot be applied to given types; obj.show(); ^ required: int,int,int found: no arguments reason: actual and formal argument lists differ in length 1 error
s063103154
p03719
C++
#include<iostream> int main() { int A,B,C; cin>>A; cin>>B; cin>>C; if(C<=A||B<=C) cout<<"YES"; else { cout<<"NO";} return 0; }
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; | ^~~ | 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:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | 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:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | cout<<"NO";} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s639346074
p03719
C++
#include<iostream.h> int main() { int A,B,C; cin>>A; cin>>B; cin>>C; if(C<=A||B<=C) cout<<"YES"; else { cout<<"NO";} return 0; }
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s672077467
p03719
C++
#include<iostream> void main() { int A,B,C; cin>>A; cin>>B; cin>>C; if(C<=A||B<=C) cout<<"YES"; else cout<<"NO"; }
a.cc:2:1: error: '::main' must return 'int' 2 | void main() | ^~~~ 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; | ^~~ | 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:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | 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:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | cout<<"NO"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s329452513
p03719
C++
#include<iostream.h> void main() { int A,B,C; cin>>A; cin>>B; cin>>C; if(C<=A||B<=C) cout<<"YES"; else cout<<"NO"; }
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s711976378
p03719
C++
#include<iostream> #include<conio.h> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if (!(C<A) && !(C>B)) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s240677319
p03719
C++
#include<iostream> #include<conio.h> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if (!(C<A) && !(C>B)) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s476010265
p03719
C++
#include<iostream> int main() { 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: In function 'int main()': a.cc:7:6: error: expected ')' before '!' token 7 | if((C!<A)&&(C!>B)) | ~ ^ | ) a.cc:8:12: error: expected ')' before ';' token 8 | cout<<"Yes"; | ^ | ) a.cc:7:3: note: to match this '(' 7 | if((C!<A)&&(C!>B)) | ^
s951481860
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"; return 0; }
a.cc: In function 'int main()': a.cc:8:10: error: expected primary-expression before '>' token 8 | cin>>>A>>B>>C; | ^
s419042679
p03719
C++
#include<iostream> #include<conio.h> using namespace std; int main() { int A,B,C; cin>>>A>>B>>C; if (!(C<A) && !(C>B)) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s950432228
p03719
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, s, n) for (int i = s; i < n; ++i) #define rep(i, n) REP(i, 0, n) #define SORT(c) sort((c).begin(), (c).end()) #define IINF INT_MAX #define LLINF LLONG_MAX #define DEBUG false int main() { int a,b,c; cin>>a>>b>>c; if(a<=c && c<=b) cout<<"Yes"<<endl; else coutNN"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:10: error: 'coutNN' was not declared in this scope 16 | else coutNN"No"<<endl; | ^~~~~~
s552414774
p03719
C
#include<stdio.h> int main(void){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A<=C&&B>=C){ printf("YES\n") } else{ printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:6:26: error: expected ';' before '}' token 6 | printf("YES\n") | ^ | ; 7 | } | ~
s973432225
p03719
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> #include <fstream> #include <bitset> #include <time.h> #include <tuple> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef vector<ll> V; typedef complex<double> Point; #define PI acos(-1.0) #define EPS 1e-10 const ll INF = (1LL << 60) - 1; const ll MOD = 1e9 + 7; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define rep(i,N) for(int i=0;i<(N);i++) #define ALL(s) (s).begin(),(s).end() #define EQ(a,b) (abs((a)-(b))<EPS) #define EQV(a,b) ( EQ((a).real(), (b).real()) && EQ((a).imag(), (b).imag()) ) #define fi first #define se second #define N_SIZE (1LL << 20) #define NIL -1 #define MAX_N 100100 * 3 int a, b, c; int main() { cin >> a >> b >
a.cc: In function 'int main()': a.cc:47:24: error: expected primary-expression at end of input 47 | cin >> a >> b > | ^ a.cc:47:24: error: expected '}' at end of input a.cc:46:12: note: to match this '{' 46 | int main() { | ^
s396945011
p03719
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); short A,B,C = sc.nextShort(); if( A <= C && C <= B ){ System.out.println("Yes"); }else{ System.out.println("No"); } sc.close(); } }
Main.java:10: error: variable A might not have been initialized if( A <= C && C <= B ){ ^ Main.java:10: error: variable B might not have been initialized if( A <= C && C <= B ){ ^ 2 errors
s399015191
p03719
Java
import java.util.Scanner; public class Main01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); short A,B,C = sc.nextShort(); if( A <= C && C <= B ){ System.out.println("Yes"); }else{ System.out.println("No"); } sc.close(); } }
Main.java:3: error: class Main01 is public, should be declared in a file named Main01.java public class Main01 { ^ 1 error
s290266256
p03719
C++
#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a <= c$$c <= b)cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: 'c$$c' was not declared in this scope 8 | if (a <= c$$c <= b)cout << "Yes" << endl; | ^~~~
s635617909
p03719
C++
コード #include <bits/stdc++.h> using namespace std; #define int long long #define rep(i,x) for(int i=0;i<x;++i) struct edge{ int from, to, cost; edge(int from, int to, int cost) : from(from), to(to), cost(cost) {}; }; vector<edge> edges; const int MAX_N = 100000; int N, M; int dist[MAX_N]; void bf(int s) { rep(i, N) dist[i] = LLONG_MAX / 2; dist[s] = 0; rep(i, N) { for (edge& e : edges) { if (dist[e.to] > dist[e.from] + e.cost) { dist[e.to] = dist[e.from] + e.cost; } } } } signed main() { cin >> N >> M; rep(i, M) { int a, b, c; cin >> a >> b >> c; --a, --b; edges.emplace_back(edge(a, b, -c)); } bf(0); for (edge &e : edges) { dist[e.to] = dist[e.from] + e.cost; if (e.to == n - 1) { cout << "inf" << endl; return 0; } } cout << -dist[N - 1] << endl; }
a.cc:1:1: error: '\U000030b3\U000030fc\U000030c9' does not name a type 1 | コード | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /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/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /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/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /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/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /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/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /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) | ^~~~~~ /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__)); |
s465647915
p03719
C++
a,b,c = list(map(int, input().split())) if a <= c and c <= b: print ("Yes") else: print ("No")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = list(map(int, input().split())) | ^
s331153949
p03719
C
#include <stdio.in> int main(void){ int A, B, C; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); if(A<=C && C<=B){ printf("Yes"); }else{ printf("No"); } }
main.c:1:10: fatal error: stdio.in: No such file or directory 1 | #include <stdio.in> | ^~~~~~~~~~ compilation terminated.
s791448396
p03719
C
#include <stdio.h> int main(void){ int a,b,c; if(scanf("%d %d %d",&a,&b,&c)>0){ if(-100<=a,b,c<=100){ if(a<=c<=b){ printf("Yes\n"); }else{ printf("No\n"); } } return 0; }
main.c: In function 'main': main.c:15:1: error: expected declaration or statement at end of input 15 | } | ^
s083493624
p03719
C++
#inlclude <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (c >= a && c <= b) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include? 1 | #inlclude <iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #inlclude <iostream> a.cc:8:27: error: 'cout' was not declared in this scope 8 | if (c >= a && c <= b) cout << "Yes" << endl; | ^~~~ a.cc:8:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:8:44: error: 'endl' was not declared in this scope 8 | 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 | #inlclude <iostream> a.cc:9:10: error: 'cout' was not declared in this scope 9 | else cout << "No" << endl; | ^~~~ a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:26: error: 'endl' was not declared in this scope 9 | else cout << "No" << endl; | ^~~~ a.cc:9:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s609073523
p03719
C++
#inlclude <bits/stdc++.h> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (c >= a && c <= b) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include? 1 | #inlclude <bits/stdc++.h> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:7:1: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #inlclude <bits/stdc++.h> a.cc:8:23: error: 'cout' was not declared in this scope 8 | if (c >= a && c <= b) cout << "Yes" << endl; | ^~~~ a.cc:8:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:8:40: error: 'endl' was not declared in this scope 8 | 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 | #inlclude <bits/stdc++.h> a.cc:9:6: error: 'cout' was not declared in this scope 9 | else cout << "No" << endl; | ^~~~ a.cc:9:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:22: error: 'endl' was not declared in this scope 9 | else cout << "No" << endl; | ^~~~ a.cc:9:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s642065975
p03719
Java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int C = scan.nextInt(); scan.close(); if(A <= C && C<=B){ System.out.println("YES"); }else{ System.out.println(NO); } } }
Main.java:16: error: cannot find symbol System.out.println(NO); ^ symbol: variable NO location: class Main 1 error
s295494264
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"); }else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:4:18: error: expected expression before '%' token 4 | scanf("%d%d%d", %A,%B,%C); | ^
s099260702
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:10:1: error: stray '\343' in program 10 | <U+3000><U+3000>return 0; | ^~~~~~~~ main.c:10:3: error: stray '\343' in program 10 | <U+3000><U+3000>return 0; | ^~~~~~~~
s058514071
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"); } }
main.c:2:1: error: stray '\343' in program 2 | <U+3000>int main(){ | ^~~~~~~~ main.c: In function 'main': main.c:3:1: error: stray '\343' in program 3 | <U+3000><U+3000>int A, B, C; | ^~~~~~~~ main.c:3:3: error: stray '\343' in program 3 | <U+3000><U+3000>int A, B, C; | ^~~~~~~~ main.c:4:4: error: stray '\343' in program 4 | <U+3000> scanf("%d%d%d",&A,&B,&C); | ^~~~~~~~ main.c:5:5: error: stray '\343' in program 5 | <U+3000> if(C>=A&&C<=B){ | ^~~~~~~~ main.c:6:6: error: stray '\343' in program 6 | <U+3000>printf("YES\n"); | ^~~~~~~~ main.c:7:4: error: stray '\343' in program 7 | <U+3000><U+3000> }else{ | ^~~~~~~~ main.c:7:6: error: stray '\343' in program 7 | <U+3000><U+3000> }else{ | ^~~~~~~~ main.c:8:5: error: stray '\343' in program 8 | <U+3000><U+3000> printf("NO\n"); | ^~~~~~~~ main.c:8:7: error: stray '\343' in program 8 | <U+3000><U+3000> printf("NO\n"); | ^~~~~~~~
s806773715
p03719
C++
#include <iostream> using namespace std; long long ANUM[100001]; int main(){ int N; long long K; cin >>N >>K; for(int i=0; i < N; i++){ int a,b; cin >>a >>b; ANUM[a]+=b; } for(int i=1;i<=100000;i++){ if(K<=ANUM[i]){ cout<<i<<endl; break; } K -= ANUM[i]; } return 0;
a.cc: In function 'int main()': a.cc:21:14: error: expected '}' at end of input 21 | return 0; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s076166200
p03719
Java
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"); } } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s198875964
p03719
C
// ConsoleApplication11.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" int main() { 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:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s573604457
p03719
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> #include <climits> #include <algorithm> #include <stack> #include <map> #include <queue> #include <set> #include <vector> #include <string> using namespace std; char s[110][110]; int a,b,c; int main() { //freopen("test.in","r",stdin); //freopen("test.out","w",stdout); cin >> a >> b >> c; if (c>=a && c<=b) cout "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:25:27: error: expected ';' before string constant 25 | if (c>=a && c<=b) cout "Yes" << endl; | ^~~~~~ | ;
s457727017
p03719
C++
a,b,c = map(int,input().split()) if c >= a and c <= b: print("Yes") else: print("No")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = map(int,input().split()) | ^
s648289069
p03719
C
#include<studio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a<=c && b>=c) printf("yes¥n"); else printf("no¥n"); return 0; }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s098912211
p03719
C
#include<studio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a<=c && b>=c) printf("yes\n"); else printf("no\n"); return 0; }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s218682905
p03719
Java
class Main { public static void main(String[] args) { Scaneer 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:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class Main Main.java:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s038953654
p03719
Java
class Main { public static void main(String[] args) { Scaneer 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:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class Main Main.java:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s786864636
p03719
Java
class bba { public static void main(String[] args) { Scaneer 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:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class bba Main.java:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scanner location: class bba 2 errors
s760118956
p03719
Java
class Main { public static void main(String[] args) { Scaneer 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:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class Main Main.java:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s480165072
p03719
Java
class bba { public static void main(String[] args) { Scaneer 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:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class bba Main.java:3: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scanner location: class bba 2 errors
s689036869
p03719
Java
import java.util.Scanner; public class Road { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int city = sc.nextInt(), road = sc.nextInt(); int[] result = new int[city]; while(sc.hasNextInt()) { int i = sc.nextInt(); result[i - 1] += 1; } for (int r : result) { System.out.println(r); } } }
Main.java:2: error: class Road is public, should be declared in a file named Road.java public class Road { ^ 1 error
s047047175
p03719
Java
public class Between { public static void main(String[] args) { System.out.println(Math.max(Integer.parseInt(args[0]), Integer.parseInt(args[1]))==Math.min(Integer.parseInt(args[1]), Integer.parseInt(args[2])) ? "Yes" : "No"); } }
Main.java:1: error: class Between is public, should be declared in a file named Between.java public class Between { ^ 1 error
s121084795
p03719
Java
import java.io.*; import java.util.*; import java.lang.Math.*; public class Main { public static void main(String[] args) { Main main = new Main(); try { main.solve(args); } catch (Exception e) { e.printStackTrace(); } } public void solve(String[] args) throws Exception { MyScanner scanner = new MyScanner(); int N = scanner.nextInt(); long K = scanner.nextLong(); HashMap<Integer, Long> map = new HashMap<>(); for (int i = 0; i < N; i++) { int a = scanner.nextInt(); int b = scanner.nextInt(); Long j = map.get(a); if (j == null) { map.put(a, (long)b); } else { map.put(a, (long)b + (long)j); } } // キーでソートする Integer[] mapkey = map.keySet().toArray(); Arrays.sort(mapkey); for (Integer nKey : map.keySet()) { Long c = map.get(nKey); K = K - c; if (K <= 0) { System.out.println(nKey); return; } } } private class MyScanner { String[] s; int i; BufferedReader br; String reg = " "; MyScanner () { s = new String[0]; i = 0; br = new BufferedReader(new InputStreamReader(System.in)); } public String next() throws IOException { if (i < s.length) return s[i++]; String line = br.readLine(); while (line.equals("")) { line = br.readLine(); } s = line.split(reg, 0); i = 0; return s[i++]; } public int nextInt() { try { return Integer.parseInt(next()); } catch (Exception e) { e.printStackTrace(); } return -1; } public double nextDouble() { try { return Double.parseDouble(next()); } catch (Exception e) { e.printStackTrace(); } return -1; } public long nextLong() { try { return Long.parseLong(next()); } catch (Exception e) { e.printStackTrace(); } return -1; } } }
Main.java:34: error: incompatible types: Object[] cannot be converted to Integer[] Integer[] mapkey = map.keySet().toArray(); ^ 1 error
s313978344
p03719
C++
#include<iostream> using namespace std; int main(){ int a,b,c;
a.cc: In function 'int main()': a.cc:4:15: error: expected '}' at end of input 4 | int a,b,c; | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s565242262
p03719
C++
#include<iostream> #include<algorithm> #include<stack> #include<queue> #include<string> using namespace std; #define INFTY 1<<21 int main() { int a, b, c; cin >> a >> b >> c; if (a <= c&&c <= b) { cout << Yes << endl; } else { cout << No << endl; } }
a.cc: In function 'int main()': a.cc:13:17: error: 'Yes' was not declared in this scope 13 | cout << Yes << endl; | ^~~ a.cc:16:17: error: 'No' was not declared in this scope 16 | cout << No << endl; | ^~
s560726806
p03719
C++
#include<iostream> #include<string> using namespace std; int main(){ int a,b,c[50],d[50]; cin>>a>>b;s for(int i=0;i<b;i++){ cin>>c[i]; } for(int x=0;x<a;x++){ for(int z=0;z<b;z++){ if(c[z]==x){ d[x]++; } } } for(int y=0;y<a;y++){ cout<<d[y]<<endl; } }
a.cc: In function 'int main()': a.cc:6:19: error: 's' was not declared in this scope 6 | cin>>a>>b;s | ^ a.cc:7:21: error: 'i' was not declared in this scope 7 | for(int i=0;i<b;i++){ | ^
s063623966
p03719
C++
#include<iostream> #include<string> using namespace std; int main{ double a,b,c; cin>>a>>b>>c; if(a<=c && b>=c){ cout<<"YES"<<endl; } else cout<<"NO"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:9: error: expected primary-expression before 'double' 5 | double a,b,c; | ^~~~~~ a.cc:5:9: error: expected '}' before 'double' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:9: error: 'cin' does not name a type 6 | cin>>a>>b>>c; | ^~~ a.cc:7:9: error: expected unqualified-id before 'if' 7 | if(a<=c && b>=c){ | ^~ a.cc:10:9: error: expected unqualified-id before 'else' 10 | else | ^~~~ a.cc:14:1: error: expected declaration before '}' token 14 | } | ^
s678258139
p03719
C++
#include<iostream> #include<string> using namespace std; int main{ double a,b,c; cin>>a>>b>>c; if(a<=c && b>=c){ cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:9: error: expected primary-expression before 'double' 5 | double a,b,c; | ^~~~~~ a.cc:5:9: error: expected '}' before 'double' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:9: error: 'cin' does not name a type 6 | cin>>a>>b>>c; | ^~~ a.cc:7:9: error: expected unqualified-id before 'if' 7 | if(a<=c && b>=c){ | ^~
s581434930
p03719
C++
#include<iostream> #include<string> using namespace std; int main{ double a,b,c; cin>>a>>b>>c; if(a<=c && b>=c){ cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:9: error: expected primary-expression before 'double' 5 | double a,b,c; | ^~~~~~ a.cc:5:9: error: expected '}' before 'double' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:9: error: 'cin' does not name a type 6 | cin>>a>>b>>c; | ^~~ a.cc:7:9: error: expected unqualified-id before 'if' 7 | if(a<=c && b>=c){ | ^~
s304304367
p03719
C
#inlcude<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"); retrun 0; }
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude<stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | scanf("%d %d %d",&a,&b,&c); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #inlcude<stdio.h> main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 6 | scanf("%d %d %d",&a,&b,&c); | ^~~~~ main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:7:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 7 | if(a<=c && c <=b) printf("Yes\n"); | ^~~~~~ main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:7:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:8:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 8 | else printf("No\n"); | ^~~~~~ main.c:8:6: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:10:1: error: 'retrun' undeclared (first use in this function) 10 | retrun 0; | ^~~~~~ main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in main.c:10:7: error: expected ';' before numeric constant 10 | retrun 0; | ^~ | ;
s802379693
p03719
C++
#include<iostream> using namespace std; int main(void){ int a, b, c; cin >> a >> b >> c; if(a<=c && c<=b) { cont<<"Yes"<< endl; } else { cont<<"No"<< endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:17: error: 'cont' was not declared in this scope; did you mean 'const'? 8 | cont<<"Yes"<< endl; | ^~~~ | const a.cc:10:17: error: 'cont' was not declared in this scope; did you mean 'const'? 10 | cont<<"No"<< endl; | ^~~~ | const
s911109884
p03719
C++
#include<iostream> using namespace std; int main(void){ int a, b, c; cin >> a >> b >> c; if(a<<c && c<=b) { cont << "Yes" << endl; } else { cont << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:17: error: 'cont' was not declared in this scope; did you mean 'const'? 8 | cont << "Yes" << endl; | ^~~~ | const a.cc:10:17: error: 'cont' was not declared in this scope; did you mean 'const'? 10 | cont << "No" << endl; | ^~~~ | const
s416972228
p03719
C++
int main(void){ int a, b, c; cin >> a >> b >> c; if(a<<c && c<=b) { cont << "Yes" << endl; } else { cont << "No" << endl } return 0; }
a.cc: In function 'int main()': a.cc:3:9: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:5:17: error: 'cont' was not declared in this scope; did you mean 'const'? 5 | cont << "Yes" << endl; | ^~~~ | const a.cc:5:34: error: 'endl' was not declared in this scope 5 | cont << "Yes" << endl; | ^~~~ a.cc:7:17: error: 'cont' was not declared in this scope; did you mean 'const'? 7 | cont << "No" << endl | ^~~~ | const a.cc:7:33: error: 'endl' was not declared in this scope 7 | cont << "No" << endl | ^~~~
s143344080
p03719
C++
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if(a <= c){ if(c <= b){ System.out.println("Yes"); } }else{ System.out.println("No"); } } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: expected unqualified-id before 'public' 2 | public class Main{ | ^~~~~~
s436637441
p03719
C++
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if(a <= c){ if(c <= b){ System.out.println("Yes"); } }else{ System.out.println("No"); } } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: expected unqualified-id before 'public' 2 | public class Main{ | ^~~~~~
s927979578
p03719
C
#include<stdio.h> int main void{ int a,b,c; scanf("%d%d%d",&a,&b,&c); if((a<=c)&&(b>=c)){ printf("Yes"); }else{ printf("No"); } return 0; }
main.c:2:9: error: expected ';' before 'void' 2 | int main void{ | ^~~~~ | ; main.c:2:14: error: expected identifier or '(' before '{' token 2 | int main void{ | ^
s483383407
p03719
C++
/* @CopyRight: Script by vimer(micro.script@hotmail.com). All rights reserved. * @Version: 1.0 * @Date: * @Description: 2017-05-13 Contest 061 Between Two Integers * @Environment: Code::Blocks 16.01, GCC 4.9. */ #include<iostream> using namespace std; int main(){ int a = 0, b = 0, c = 0; cin >> a >> b >> c >>; if(c >= a && c <= b)cout << "Yes"; else cout << "No"; cout << endl; }
a.cc: In function 'int main()': a.cc:12:26: error: expected primary-expression before ';' token 12 | cin >> a >> b >> c >>; | ^
s016034716
p03719
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(c>=a && c<=b){ cout >> "Yes" >> endl; return 0; } cout >> "No" >> endl; return 0; }
a.cc: In function 'int main()': a.cc:9:10: 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:13: 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:5: 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:13: 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:13: 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:13: 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:13: 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:13: 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:13: 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:13: 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:12:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]') 12 | 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:12:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 12 | 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:12:3: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 12 | 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:12:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 12 | 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:12:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 12 | 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:12:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 12 | 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:12:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 12 | 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/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:12:11: note: 'std::ostr
s600454020
p03719
C++
a,b,c=gets.split.map(&:to_i) if a<=c && b>=c puts "Yes" else puts "No" end
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=gets.split.map(&:to_i) | ^
s913096336
p03719
C++
#問題文 #3 つの整数 A,B,C が与えられます。 #整数 C が A 以上 かつ B 以下であるかを判定してください。 #制約 #−100≦A,B,C≦100 #A,B,C は全て整数 #入力 #入力は以下の形式で標準入力から与えられる。 #A B C #出力 #条件を満たす場合はYes、そうでない場合はNoを出力せよ。 A=input() B=input() C=input() if C>=A and C<=B: print("yes") else: print("No")
a.cc:2:2: error: invalid preprocessing directive #\U0000554f\U0000984c\U00006587 2 | #問題文 | ^~~~~~ a.cc:3:4: error: "\U00003064\U0000306e\U00006574\U00006570" is not a valid filename 3 | #3 つの整数 A,B,C が与えられます。 | ^~~~~~~~ a.cc:3:19: error: extended character 。 is not valid in an identifier 3 | #3 つの整数 A,B,C が与えられます。 | ^ a.cc:4:2: error: invalid preprocessing directive #\U00006574\U00006570 4 | #整数 C が A 以上 かつ B 以下であるかを判定してください。 | ^~~~ a.cc:4:26: error: extended character 。 is not valid in an identifier 4 | #整数 C が A 以上 かつ B 以下であるかを判定してください。 | ^ a.cc:6:2: error: invalid preprocessing directive #\U00005236\U00007d04 6 | #制約 | ^~~~ a.cc:7:2: error: extended character − is not valid in an identifier 7 | #−100≦A,B,C≦100 | ^ a.cc:7:2: error: extended character ≦ is not valid in an identifier a.cc:7:2: error: invalid preprocessing directive #\U00002212100\U00002266A 7 | #−100≦A,B,C≦100 | ^~~~~~ a.cc:7:11: error: extended character ≦ is not valid in an identifier 7 | #−100≦A,B,C≦100 | ^ a.cc:8:2: error: invalid preprocessing directive #A 8 | #A,B,C は全て整数 | ^ a.cc:9:2: error: invalid preprocessing directive #\U00005165\U0000529b 9 | #入力 | ^~~~ a.cc:10:2: error: extended character 。 is not valid in an identifier 10 | #入力は以下の形式で標準入力から与えられる。 | ^ a.cc:10:2: error: invalid preprocessing directive #\U00005165\U0000529b\U0000306f\U00004ee5\U00004e0b\U0000306e\U00005f62\U00005f0f\U00003067\U00006a19\U00006e96\U00005165\U0000529b\U0000304b\U00003089\U00004e0e\U00003048\U00003089\U0000308c\U0000308b\U00003002 10 | #入力は以下の形式で標準入力から与えられる。 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:12:2: error: invalid preprocessing directive #A 12 | #A B C | ^ a.cc:13:2: error: invalid preprocessing directive #\U000051fa\U0000529b 13 | #出力 | ^~~~ a.cc:14:2: error: extended character 、 is not valid in an identifier 14 | #条件を満たす場合はYes、そうでない場合はNoを出力せよ。 | ^ a.cc:14:2: error: extended character 。 is not valid in an identifier a.cc:14:2: error: invalid preprocessing directive #\U00006761\U00004ef6\U00003092\U00006e80\U0000305f\U00003059\U00005834\U00005408\U0000306fYes\U00003001\U0000305d\U00003046\U00003067\U0000306a\U00003044\U00005834\U00005408\U0000306fNo\U00003092\U000051fa\U0000529b\U0000305b\U00003088\U00003002 14 | #条件を満たす場合はYes、そうでない場合はNoを出力せよ。 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:16:1: error: 'A' does not name a type 16 | A=input() | ^
s372998253
p03719
C++
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskA solver = new TaskA(); solver.solve(1, in, out); out.close(); } static class TaskA { public void solve(int testNumber, Scanner in, PrintWriter out) { int A = in.nextInt(); int B = in.nextInt(); int C = in.nextInt(); if (C >= A && C <= B) out.println("Yes"); else out.println("No"); } } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.OutputStream; | ^~~~~~ 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.IOException; | ^~~~~~ 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.io.InputStream; | ^~~~~~ 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 java.io.PrintWriter; | ^~~~~~ 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 java.util.Scanner; | ^~~~~~ a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:11:1: error: expected unqualified-id before 'public' 11 | public class Main { | ^~~~~~
s241655169
p03719
C++
#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b; int n[a]; for(int i=0;i<b;i++){ cin>>c>>d; n[c-1]=n[c-1]+1; n[d-1]=n[d-1]+1; } for(int i=0;i>a;m++){ cout<<n[i]<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:14:17: error: 'm' was not declared in this scope 14 | for(int i=0;i>a;m++){ | ^
s638366797
p03719
C++
#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b; int n[a]; for(int i=0;i<b;i++){ cin>>c>>d; n[c-1]+=; n[d-1]+=; } for(int i=0;i>b;i++){ cout<<n[i]<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: expected primary-expression before ';' token 11 | n[c-1]+=; | ^ a.cc:12:9: error: expected primary-expression before ';' token 12 | n[d-1]+=; | ^
s419514179
p03719
C++
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> #include <string> #include <cstring> std::string IntToString(long long a){ char x[100]; sprintf(x,"%lld",a); std::string s = x; return s; } long long StringToInt(std::string a){ char x[100]; long long res; strcpy(x,a.c_str()); sscanf(x,"%lld",&res); return res; } inline void printIntVal(long long a) { std::cout << "The Value is: "<< IntToString(a) << std::endl; } inline void printStringVal(std::string a) { std::cout << "The Value of is: "<< a << std::endl; } inline std::string GetString(){ char x[1000005]; scanf("%s",x); std::string s = x; return s; } inline std::string uppercase(std::string s){ int n = (int)s.size(); for(int i = 0; i < n; i++) if (s[i] >= 'a' && s[i] <= 'z') s[i] = s[i] - 'a' + 'A'; return s; } inline std::string lowercase(std::string s){ int n = (int)s.size();; for(int i = 0; i < n; i++) if (s[i] >= 'A' && s[i] <= 'Z') s[i] = s[i] - 'A' + 'a'; return s; } inline void OPEN (std::string s) { freopen ((s + ".in").c_str (), "r", stdin); freopen ((s + ".out").c_str (), "w", stdout); } inline long long CharToInt(char c) { return (c - '0'); } % // --------------------------------------------------------- long long a,b,c; int main() { scanf("%d %d %d",&a,&b,&c); if(c >= a && c <= b) { printf("Yes\n"); }else { printf("No\n"); } return 0; }
a.cc:49:1: error: expected unqualified-id before '%' token 49 | % | ^ a.cc: In function 'int main()': a.cc:56:21: error: 'a' was not declared in this scope 56 | scanf("%d %d %d",&a,&b,&c); | ^ a.cc:56:24: error: 'b' was not declared in this scope 56 | scanf("%d %d %d",&a,&b,&c); | ^ a.cc:56:27: error: 'c' was not declared in this scope 56 | scanf("%d %d %d",&a,&b,&c); | ^
s413930617
p03719
C++
#include<string.h> #include <iostream> using namespace std; int main(){ int a,b,c; cin >> a; cin >> b; cin >> c; if(a<=c && b>=c){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return; }
a.cc: In function 'int main()': a.cc:20:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 20 | return; | ^~~~~~
s683343167
p03719
C++
#include<string.h> #include <iostream> using namespace std; int main(){ int a,b,c; cin >> a; cin >> b; cin >> c; if(a<=c && b>=c){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return; }
a.cc: In function 'int main()': a.cc:20:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 20 | return; | ^~~~~~
s571498188
p03719
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a; cin>>b; cin>>c; if(a<=c&&c<=b){ cout<<Yes<<endl; } else{ cout<<No<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:7: error: 'Yes' was not declared in this scope 10 | cout<<Yes<<endl; | ^~~ a.cc:13:7: error: 'No' was not declared in this scope 13 | cout<<No<<endl; | ^~
s831962779
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:5:6: error: expected expression before '>' token 5 | if(C=>A&&C<=B){ | ^
s991734366
p03719
C++
#include <iostream> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; cout << (C < B && C > A ? "No" : "Yes"); return 0;}
a.cc:1:21: warning: extra tokens at end of #include directive 1 | #include <iostream> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; cout << (C < B && C > A ? "No" : "Yes"); return 0;} | ^~~~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s792013868
p03719
C++
#include <iostream> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; cout << (C < B && C > A ? "No" : "Yes") return 0;}
a.cc:1:21: warning: extra tokens at end of #include directive 1 | #include <iostream> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; cout << (C < B && C > A ? "No" : "Yes") return 0;} | ^~~~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s235164953
p03719
C++
#include<iostream> using namespace std; int main(void) { int N, M; int a[50], b[50], i; int r[50]; cin >> N >> M; for (i = 0; i <M; i++) { cin >> a[i] >> b[i]; } for (i = 0; i < N; i++) { r[i] = 0; } for (i = 0; i < M; i++) { r[a[i]] +=1 r[b[i]] +=1 } for (i = 0; i < n; i++) { cout << r[i] << endl; } }
a.cc: In function 'int main()': a.cc:18:28: error: expected ';' before 'r' 18 | r[a[i]] +=1 | ^ | ; 19 | r[b[i]] +=1 | ~ a.cc:21:25: error: 'n' was not declared in this scope 21 | for (i = 0; i < n; i++) { | ^
s609120961
p03719
C++
#include<stdio.h> int main() { int a, b, c; printf("A,B,C\n"); scanf_s("%d%d%d", &a, &b, &c); if (a >= -100 && b >= -100 && c >= -100 && a <= 100 && b <= 100 && c <= 100) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%d%d%d", &a, &b, &c); | ^~~~~~~ | scanf
s856540687
p03719
C++
// AtCoder.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" int main() { int a, b, c; printf("A,B,C\n"); scanf_s("%d%d%d", &a, &b, &c); if (a >= -100 && b >= -100 && c >= -100 && a <= 100 && b <= 100 && c <= 100) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
a.cc:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s360037137
p03719
C++
#include<iostream> using namespace std; void main() { int a, b, c, i = 0; cout << "A, B, C" << endl; cin >> a >> b >> c; if (a >= -100 && a <= 100) { i++; } if (b >= -100 && b <= 100) { i++; } if (c >= -100 && c <= 100) { i++; } if (i == 3) { if (c >= a && c <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } return ; }
a.cc:5:1: error: '::main' must return 'int' 5 | void main() { | ^~~~ a.cc: In function 'int main()': a.cc:33:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 33 | return ; | ^~~~~~
s358966692
p03719
C
include <stdio.h> int main(){ int A, B, C; scanf("%d %d %d", &A, &B, &C ); if(A<=C && C<=B)printf("Yes\n"); else printf("No\n"); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s126377510
p03719
C++
a, b, c = map(int, input().split()) print("Yes" if a <= c <= b else "No")
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, input().split()) | ^
s825739050
p03719
Java
import java.util.*; public class main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if (A <= C){ if (C <= B){ System.out.println("Yes"); } }else{ System.out.println("NO"); } } }
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s630025885
p03719
Java
import java.util.*; public class main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if (A <= C){ if (C <= B){ System.out.println("Yes"); } }else{ System.out.println("NO"); } } }
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s805306182
p03719
C
#include<stdio.h> int Main() { int A,B,C,yes,No; scanf(Yes,No); { if(B>=A) } printf("the number is %d",Yes); { else(B<=C) } printf("the number is %d",No); return 0; }
main.c: In function 'Main': main.c:5:11: error: 'Yes' undeclared (first use in this function); did you mean 'yes'? 5 | scanf(Yes,No); | ^~~ | yes main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: expected expression before '}' token 9 | } | ^ main.c:12:8: error: 'else' without a previous 'if' 12 | else(B<=C) | ^~~~ main.c:12:18: error: expected ';' before '}' token 12 | else(B<=C) | ^ | ; 13 | 14 | } | ~
s298466199
p03719
C
#include<stdio.h> int main() { int A,B,C,yes,No; scanf(Yes,No); { if(B>=A) } printf("the number is %d",Yes); { else(B<=C) } printf("the number is %d",No); return 0; }
main.c: In function 'main': main.c:5:11: error: 'Yes' undeclared (first use in this function); did you mean 'yes'? 5 | scanf(Yes,No); | ^~~ | yes main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: expected expression before '}' token 9 | } | ^ main.c:12:8: error: 'else' without a previous 'if' 12 | else(B<=C) | ^~~~ main.c:12:18: error: expected ';' before '}' token 12 | else(B<=C) | ^ | ; 13 | 14 | } | ~
s484767202
p03719
C
#include<stdio.h> int main() { int A,B,C,yes,No; scanf(Yes,No); { if(B>=A) } printf("the number is %d",Yes); { else(B<=C) } printf("the number is %d",No); return o; }
main.c: In function 'main': main.c:5:11: error: 'Yes' undeclared (first use in this function); did you mean 'yes'? 5 | scanf(Yes,No); | ^~~ | yes main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: expected expression before '}' token 9 | } | ^ main.c:12:8: error: 'else' without a previous 'if' 12 | else(B<=C) | ^~~~ main.c:12:18: error: expected ';' before '}' token 12 | else(B<=C) | ^ | ; 13 | 14 | } | ~ main.c:16:12: error: 'o' undeclared (first use in this function); did you mean 'No'? 16 | return o; | ^ | No
s734018155
p03719
C
#include<stdio.h> int main() { int A,B,C,yes,No; scanf(Yes,No); { if(B>=A) } printf("the number is %d",Yes); { else(B<=C) } printf("the number is %d",No); return o; }
main.c: In function 'main': main.c:5:11: error: 'Yes' undeclared (first use in this function); did you mean 'yes'? 5 | scanf(Yes,No); | ^~~ | yes main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: expected expression before '}' token 9 | } | ^ main.c:12:8: error: 'else' without a previous 'if' 12 | else(B<=C) | ^~~~ main.c:12:18: error: expected ';' before '}' token 12 | else(B<=C) | ^ | ; 13 | 14 | } | ~ main.c:16:12: error: 'o' undeclared (first use in this function); did you mean 'No'? 16 | return o; | ^ | No
s671324231
p03719
C
#include<stdio.h> int main() { int A,B,C,yes,No; scanf(Yes,No); { if(B>=A) } printf("the number is %d",Yes); { else(B<=C) } printf("the number is %d",No); return o; }
main.c: In function 'main': main.c:5:11: error: 'Yes' undeclared (first use in this function); did you mean 'yes'? 5 | scanf(Yes,No); | ^~~ | yes main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: expected expression before '}' token 9 | } | ^ main.c:12:8: error: 'else' without a previous 'if' 12 | else(B<=C) | ^~~~ main.c:12:18: error: expected ';' before '}' token 12 | else(B<=C) | ^ | ; 13 | 14 | } | ~ main.c:16:12: error: 'o' undeclared (first use in this function); did you mean 'No'? 16 | return o; | ^ | No
s941192383
p03719
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<math.h> #include<vector> using namespace std;   signed main() { int a, b, c; cin >> a >> b >> c; if (c >= a&&c <= b)puts("Yes"); else puts("No"); }
a.cc:7:1: error: extended character   is not valid in an identifier 7 |   | ^ a.cc:7:1: error: '\U000000a0' does not name a type 7 |   | ^
s066921832
p03719
Java
import java.util.Scanner; public class TwoInt { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a, b , c; a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if(c >= a && c <= b) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:4: error: class TwoInt is public, should be declared in a file named TwoInt.java public class TwoInt { ^ 1 error
s380660245
p03719
Java
import java.util.Scanner; public class TwoInt { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a, b , c; a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if(c >= a && c <= b) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:4: error: class TwoInt is public, should be declared in a file named TwoInt.java public class TwoInt { ^ 1 error
s263730808
p03719
Java
import java.util.Scanner; public class TwoInt { static Scanner in = new Scanner(System.in); static int a, b , c; public static void main(String[] args) { a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if(c >= a && c <= b) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:4: error: class TwoInt is public, should be declared in a file named TwoInt.java public class TwoInt { ^ 1 error
s856871774
p03719
C++
#include <stdio.h> #include <bits/stdc++.h> #define endl "\n" #define si(a) scanf("%d ",&a); #define si2(a,b) scanf("%d %d ",&a,&b); #define si3(a,b,c) scanf("%d%d%d",&a,&b,&c) #define sll(a) scanf("%lld ",&a); #define sll2(a,b) scanf("%lld%lld",&a,&b) #define sll3(a,b,c) scanf("%lld%lld%lld",&a,&b,&c) #define sf(a) scanf("%f ",&a); #define sd(a) scanf("%lf ",&a); #define sc(a) scanf("%c ",&a); #define ss(a) scanf("%s ",a); #define sf2(a,b) scanf("%f %f ",&a,&b); #define sd2(a,b) scanf("%lf %lf ",&a,&b); #define mp(a,b) make_pair(a,b) #define pb(x) push_back(x) #define all(a) a.begin(),a.end() #define forn(i,n) for(int i=0;i<n;i++) #define forq(i,q,n) for(int i=q;i<n;i++) #define form(i,n) for(int i=n;i>=0;i--) #define forp(i,q,n) for(int i=q;i>=n;i--) #define fi first #define se second #define INF 1000000010 #define MOD 1000000007 #define MAXN #define LL long long int using namespace std; int a, b, c; void init() { si3(a, b, c); if(a <= c || b >= a) { System.out.println("Yes"); } else { System.out.println("No"); } } int main() { #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); #endif init(); return 0; }
a.cc: In function 'void init()': a.cc:39:25: error: 'System' was not declared in this scope; did you mean 'system'? 39 | System.out.println("Yes"); | ^~~~~~ | system a.cc:42:25: error: 'System' was not declared in this scope; did you mean 'system'? 42 | System.out.println("No"); | ^~~~~~ | system
s189173467
p03719
Java
import java.util.Scanner; public class TwoInt { static Scanner in = new Scanner(System.in); static int a, b , c; public static void main(String[] args) { a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if(a <= c || b >= a) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:4: error: class TwoInt is public, should be declared in a file named TwoInt.java public class TwoInt { ^ 1 error
s401459632
p03719
Java
import java.util.Scanner; public class TwoInt { static Scanner in = new Scanner(System.in); static int a, b , c; public static void main(String[] args) { a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if(a <= c || b >= a) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:4: error: class TwoInt is public, should be declared in a file named TwoInt.java public class TwoInt { ^ 1 error
s154719472
p03719
Java
//package com.zhangyong.algorithm; import java.io.*; import java.util.StringTokenizer; public class Solution { FastScanner in; PrintWriter out; class FastScanner { BufferedReader br; StringTokenizer st; private FastScanner(File f) { try { br = new BufferedReader(new FileReader(f)); } catch (FileNotFoundException e) { e.printStackTrace(); } } private FastScanner(InputStream f) { br = new BufferedReader(new InputStreamReader(f)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } } private void solve() { int a, b, c; a = in.nextInt(); b = in.nextInt(); c = in.nextInt(); if ((c >= a) && (c <= b)) { out.print("Yes"); } else { out.print("No"); } } private void run() { in = new FastScanner(System.in); out = new PrintWriter(System.out); solve(); out.close(); } public static void main(String[] args) { new Solution().run(); } }
Main.java:6: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error
s242851670
p03719
C++
a,b,c=map(int,input().split()) print("Yes"if a<=c<=b else"No")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=map(int,input().split()) | ^
s470626564
p03719
Java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.Scanner; public class Main01 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] ary = new int[3]; for (int i =0; i <ary.length; i++){ ary[i] = scan.nextInt(); } if(ary[0] <= ary[2] && ary[2] <= ary[1]) { System.out.println("Yes"); }else{ System.out.println("No"); } } } class FastScanner { public static String debug = null; private final InputStream in = System.in; private int ptr = 0; private int buflen = 0; private byte[] buffer = new byte[1024]; private boolean eos = false; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { if (debug != null) { buflen = debug.length(); buffer = debug.getBytes(); debug = ""; eos = true; } else { buflen = in.read(buffer); } } catch (IOException e) { e.printStackTrace(); } if (buflen < 0) { eos = true; return false; } else if (buflen == 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } private void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } public boolean isEOS() { return this.eos; } public boolean hasNext() { skipUnprintable(); return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { return (int) nextLong(); } public long[] nextLongList(int n) { return nextLongTable(1, n)[0]; } public int[] nextIntList(int n) { return nextIntTable(1, n)[0]; } public long[][] nextLongTable(int n, int m) { long[][] ret = new long[n][m]; for (int i = 0; i < n; i ++) { for (int j = 0; j < m; j ++) { ret[i][j] = nextLong(); } } return ret; } public int[][] nextIntTable(int n, int m) { int[][] ret = new int[n][m]; for (int i = 0; i < n; i ++) { for (int j = 0; j < m; j ++) { ret[i][j] = nextInt(); } } return ret; } }
Main.java:6: error: class Main01 is public, should be declared in a file named Main01.java public class Main01 { ^ 1 error