submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s182551585 | p03718 | C++ | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <utility>
using std::min;
typedef long long int64;
static const int INF = 0x3fffffff;
static const int MAXN = 103;
namespace nwf {
static const int MAXN = 20004;
static const int MAXM = 3e6 + 3;
int n, m, source, sink;
int head[MAXN], dest[MAXM], cap... | a.cc: In function 'int main()':
a.cc:75:33: error: 'gets' was not declared in this scope; did you mean 'getw'?
75 | for (int i = 0; i < h; ++i) gets(s[i]);
| ^~~~
| getw
|
s699779746 | p03719 | Java | import java.util.*;
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(c>=a && a<=b){
System.out.println('Yes');
}else{
Sys... | Main.java:11: error: unclosed character literal
System.out.println('Yes');
^
Main.java:11: error: unclosed character literal
System.out.println('Yes');
^
Main.java:11: error: not a statement
System.out.println('Yes');
... |
s725916328 | p03719 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a <= c && b >= c) {
cout << "Yes";
else {
cout << "No";
}
} | a.cc: In function 'int main()':
a.cc:9:2: error: expected '}' before 'else'
9 | else {
| ^~~~
a.cc:7:24: note: to match this '{'
7 | if (a <= c && b >= c) {
| ^
|
s962501807 | p03719 | Java |
import java.util.*;
import java.io.*;
public class Main{
private static final int mod =(int)1e9+7;
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
int n=sc.nextInt();
long m=sc.nextLong();
pair []aa=new pair[m... | Main.java:13: error: incompatible types: possible lossy conversion from long to int
pair []aa=new pair[m];
^
1 error
|
s080138058 | p03719 | C++ | #includde <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 #includde; did you mean #include?
1 | #includde <iostream>
| ^~~~~~~~
| include
a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
5 | int A,B... |
s604081875 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define vi vector<int>
#define bn(n) (n).begin(), (n).end()
#define FOR(n) for(int i = 0; i < (int)n; i++)
void solve() {
int a, b, c;
cin >> a >> b >> c;
cout << (c => a && a <= b ? "YES" : "NO") << "\n";
}
int mai... | a.cc: In function 'void solve()':
a.cc:15:17: error: expected primary-expression before '>' token
15 | cout << (c => a && a <= b ? "YES" : "NO") << "\n";
| ^
|
s094314787 | 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 if(c>a && c<b)
{cout<"YES";}
else
{cout<<"NO";}
} | a.cc: In function 'int main()':
a.cc:9:14: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | {cout<"YES";}
| ~~~~^~~~~~
| | |
| | const char [4]
| std::ostream {aka st... |
s302963851 | p03719 | C++ | #include<iostream>
using namespace std;
int main((){
int a,b,c;
cin>>a>>b>>c;
if(c>a&&c<b){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;}
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main((){
| ^~~~
a.cc:3:11: error: expected primary-expression before ')' token
3 | int main((){
| ^
|
s653802074 | p03719 | C++ | # # Make IO faster
# import sys
# input = sys.stdin.readline
# # get single (or) multiple str
# X = input()
# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]
# f... | a.cc:1:3: error: invalid preprocessing directive ##
1 | # # Make IO faster
| ^
a.cc:2:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
2 | # import sys
| ^~~~~~
a.cc:2:10: error: #import expects "FILENAME" or <FILENAME>
2 | # import sys
| ^~~
a.cc:3:3: error: i... |
s388978848 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
if(A<=C&&C<=B){
cout<<"Yes"<<endl;
}
else
cout<"No"<<endl;
}
| a.cc: In function 'int main()':
a.cc:10:10: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
10 | cout<"No"<<endl;
| ~~~~^~~~~~
|
s856360792 | p03719 | C | #include <stdio.h>
int main(void)
{
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:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
5 | int a.b.c;
| ^
main.c:5:14: error: expected expression before '.' token
main.c:6:25: error: 'a' undeclared (first use in this function)
6 | scanf("%d%d%d",&a,&... |
s740411887 | p03719 | C | # include<stdio.h>
int main(){
int n,m;
scanf ( "%d %d",&n,&m );
int r[m][2];
for ( int i = 0;i < m;i++ )
scanf ( "%d %d",&r[i][0],&r[i][1] );
int c[n+1];
c[r[i][1]]++;
}
for ( int i = 1;i < n+1;i++ )
printf ( "%d\n",c[i] );
}
| main.c: In function 'main':
main.c:11:13: error: 'i' undeclared (first use in this function)
11 | c[r[i][1]]++;
| ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:13:5: error: expected identifier or '(' befor... |
s220625956 | 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:5:11: error: expected initializer before 'c'
5 | int a,b c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >> c;
|... |
s585412543 | p03719 | C++ | #include<bis/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:1:9: fatal error: bis/stdc++.h: No such file or directory
1 | #include<bis/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s400928748 | p03719 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = nextInt();
int b = nextInt();
int c = nextInt();
System.out.println(a<=c && c<=b ? "Yes" : "No");
}
} | Main.java:6: error: cannot find symbol
int a = nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:7: error: cannot find symbol
int b = nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:8: error: cannot find symbol
int c = nextInt();
... |
s289220781 | 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:9: error: expected primary-expression before '>' token
7 | if(C => A && C =< B){
| ^
a.cc:7:19: error: expected primary-expression before '<' token
7 | if(C => A && C =< B){
| ^
a.cc:8:13: error: 'Yes' was not declared in this scop... |
s412322371 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define rep(i,n) for(int i=0;i<n;i++)
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:30: error: expected ';' before string constant
13 | if(a<=c && c<=b) cout"YES"<<endl;
| ^~~~~
| ;
|
s941405874 | p03719 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main()
{
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:12:44: error: expected ';' before ')' token
12 | cout << (a <= c && b >= c) ? "Yes" : "No" ) << endl;
| ^~
| ;
|
s747197477 | p03719 | C | #include <iostream>
using namespace std;
int main(void){
int A,B,C;
cin >> A >> B >> C;
if (A-C<=0){
if (B-C>=0){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
else {
cout << "NO" << endl;
}
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s098126503 | p03719 | C | /*------------------------------------
........Bismillahir Rahmanir Rahim....
..........created by Abdul Aziz.......
------------------------------------*/
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <cstring>
#include <unordered_... | main.c:5:10: fatal error: iostream: No such file or directory
5 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s767937894 | p03719 | C | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((c>=a)&&(c<=bi)){printf("YES"); return 1;}
printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:9:17: error: 'bi' undeclared (first use in this function); did you mean 'b'?
9 | if((c>=a)&&(c<=bi)){printf("YES"); return 1;}
| ^~
| b
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
|
s288854591 | p03719 | C | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((c>=a)&&(c<=))printf("YES");
else printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:9:17: error: expected expression before ')' token
9 | if((c>=a)&&(c<=))printf("YES");
| ^
|
s177506512 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin << A << B << C;
if(C<=A&&C>=B){
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin << A << B << C;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidat... |
s145966897 | p03719 | Java | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
System.out.print("Input > ");
//String input = scanner.nextLine();
int a = Integer.parseInt(scanner.next());
int b = Integer.parseInt(scanner.next());
int c = Integer.parseIn... | Main.java:26: error: cannot find symbol
System.out.println(d);
^
symbol: variable d
location: class Main
1 error
|
s658808474 | p03719 | Java | import java.util.Scanner;
public class BetWeenTwoIntegers {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
System.out.print("Input > ");
//String input = scanner.nextLine();
int a = Integer.parseInt(scanner.next());
int b = Integer.parseInt(scanner.next());
int c = I... | Main.java:3: error: class BetWeenTwoIntegers is public, should be declared in a file named BetWeenTwoIntegers.java
public class BetWeenTwoIntegers {
^
1 error
|
s068426266 | 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:11:11: warning: missing terminating ' character
11 | return 0';
| ^
a.cc:11:11: error: missing terminating ' character
11 | return 0';
| ^~
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before '}' token
11 | return 0';
| ^
| ... |
s599993371 | p03719 | C++ | #include <stdio.h>
#include <iostream>
int main(void)
{
int A, B, C;
std::cin >> A >> B >> C;
if (A <= C && C <= B)
std::cout << "Yes" << endl;
else
std::cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | std::cout << "Yes" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41,
from a.cc:... |
s515280831 | p03719 | C++ | #include <stdio.h>
#include <iostream>
int main(void)
{
int A, B, C;
std::cin >> A >> B >> C;
if (A <= C and C <= B)
std::cout << "Yes" << endl;
else
std::cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | std::cout << "Yes" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41,
from a.cc:... |
s662286182 | p03719 | C++ | #include <stdio.h>
#include <iostream>
int main(void)
{
int A, B, C;
std::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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "Yes" << endl;
| ^~~~
| std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s945840187 | p03719 | C++ | #include <stdio.h>
int main(void)
{
int A, B, C;
std::cin >> A >> B >> C;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
6 | std::cin >> A >> B >> C;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <stdio.h>
+++ |+#include <iostream>
2 |
|
s917722979 | p03719 | C++ | #include <stdio.h>
int main(void)
{
int A, B, C;
cin >> A >> B >> C;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> A >> B >> C;
| ^~~
|
s926368344 | p03719 | C++ | #include <stdio.h>
int main(void)
{
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:7:3: error: 'cin' was not declared in this scope
7 | cin >> A >> B >> C;
| ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << "Yes" << endl;
| ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
10 | cout << "Yes"... |
s817364980 | p03719 | C++ | #include <iostream.h>
int main(void)
{
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:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s690826330 | p03719 | C++ | int main(void)
{
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:5:3: error: 'cin' was not declared in this scope
5 | cin >> A >> B >> C;
| ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << "Yes" << endl;
| ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
8 | cout << "Yes" <... |
s915296365 | p03719 | C++ | #include<iostream>
#include<stdio.h>
#include<ios>
#include<cmath>
#include<string>
#include<string.h>
#include<cstring>
#include<algorithm>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<set>
#include<assert.h>
#include<bitset>
#include<tuple>
#include<climits>
#include<deque>
#include<utility... | a.cc: In function 'int32_t main()':
a.cc:52:19: error: expected primary-expression before '<' token
52 | if(c>=a and c=<b)cout<<"Yes";
| ^
|
s377464791 | p03719 | C++ | v#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, int> p;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int A, B, C;
cin >> A >> B >> C;
if(A <= C && C <= B) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | a.cc:1:2: error: stray '#' in program
1 | v#include <bits/stdc++.h>
| ^
a.cc:1:1: error: 'v' does not name a type
1 | v#include <bits/stdc++.h>
| ^
a.cc:7:9: error: 'pair' does not name a type
7 | typedef pair<ll, int> p;
| ^~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'c... |
s456503005 | p03719 | C++ | #define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int a,b,c;
cin >> a>>b >> c;
if(c>=a && c<=b){
cout << "Yes" << endl;
}else{
cout << "No" << end;
}
} | a.cc: In function 'int main()':
a.cc:13:22: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
13 | cout << "No" << end;
| ~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/iostream:41,
from a.... |
s334226238 | p03719 | C++ | int main()
{
int Anum, Bnum, Cnum;
scanf("%d", &Anum);
scanf("%d", &Bnum);
scanf("%d", &Cnum);
if (Anum < Cnum && Bnum > Cnum)
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
4 | scanf("%d", &Anum);
| ^~~~~
a.cc:9:9: error: 'cout' was not declared in this scope
9 | cout << "yes" << endl;
| ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope
9 | ... |
s740132277 | p03719 | C++ | #include <bits/stdc++.h>
#define rep(i,n); for(int i = 0;i < (n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
long double pi = acos(-1);
const int INF = 1001001001;
// 最小公倍数を求める
int euqlid (int a, int b){
int temp;
temp = a % b;
if(temp == 0)return b;
return euqlid(b,temp);
}
ll co... | a.cc:48:13: error: redefinition of 'long double pi'
48 | long double pi = acos(-1);
| ^~
a.cc:6:13: note: 'long double pi' previously defined here
6 | long double pi = acos(-1);
| ^~
a.cc:49:11: error: redefinition of 'const int INF'
49 | const int INF = 1001001001;
|... |
s831378813 | p03719 | Java | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = nextInt();
int b = nextInt();
int c = nextInt();
if (a <= c) {
if (c <= b) {
System.out.println("Yes");
return;
}
}
System.out.print... | Main.java:6: error: cannot find symbol
int a = nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:7: error: cannot find symbol
int b = nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:8: error: cannot find symbol
int c = nextInt();
... |
s736606258 | p03719 | Java | package main
import (
"fmt"
)
func main() {
var a int
var b int
var c int
fmt.Scan(&a, &b, &c)
if c >= a && c <= b {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| Main.java:1: error: ';' expected
package main
^
Main.java:3: error: <identifier> expected
import (
^
2 errors
|
s213811677 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int X = C - A;
int Y = B - A;
if(X > 0 && Y > 0){
cout << "Yes" << endl;
}
else {
cout "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:12:9: error: expected ';' before string constant
12 | cout "No" << endl;
| ^~~~~
| ;
|
s458043854 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> a >> b >> c;
if (c >= a && c <= b) cout << Y;
else cout << N;
} | a.cc: In function 'int main()':
a.cc:11:39: error: 'Y' was not declared in this scope
11 | if (c >= a && c <= b) cout << Y;
| ^
a.cc:12:22: error: 'N' was not declared in this scope
12 | else cout << N;
| ^
|
s268104251 | p03719 | C | #include <stdio.h> int main(void){ int n , k; scanf("%d %d",&n , &k); long s[100001] = {0}; int a , b; for(int i = 0;i < n;i ++){ scanf("%d %d",&a,&b); s[a] += b; } long nagasa = 0; for(int i = 1;i <= 1000001;i ++){ nagasa += s[i]; if(nagasa >= k){ printf("%d",i); return 0; } } return 0; }
| main.c:1:20: warning: extra tokens at end of #include directive
1 | #include <stdio.h> int main(void){ int n , k; scanf("%d %d",&n , &k); long s[100001] = {0}; int a , b; for(int i = 0;i < n;i ++){ scanf("%d %d",&a,&b); s[a] += b; } long nagasa = 0; for(int i = 1;i <= 1000001;i ++){ nagasa += s[i]; if(nagasa >= k){... |
s029579781 | p03719 | C++ | int main(void) {
int A,B,B;
cin >> A >> B >> C;
if (A <= C and B <= C)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:2:11: error: redeclaration of 'int B'
2 | int A,B,B;
| ^
a.cc:2:9: note: 'int B' previously declared here
2 | int A,B,B;
| ^
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin >> A >> B >> C;
| ^~~
a.cc:3:20: error: ... |
s729622167 | p03719 | C++ | int main(void){
int A,B,B;
cin >> A >> B >> C;
if (A <= C and B <= C)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| a.cc:8:3: error: extended character is not valid in an identifier
8 | return 0;
| ^
a.cc: In function 'int main()':
a.cc:2:11: error: redeclaration of 'int B'
2 | int A,B,B;
| ^
a.cc:2:9: note: 'int B' previously declared here
2 | int A,B,B;
| ^
a.cc:3:3: error:... |
s344057150 | p03719 | C++ | int main(void){
int A,B,B;
cin >> A >> B >> C;
if (A <= C and B <= C)
cout << "Yes" << endl;
else
cout << "No" << endl;
return
}
| a.cc: In function 'int main()':
a.cc:2:11: error: redeclaration of 'int B'
2 | int A,B,B;
| ^
a.cc:2:9: note: 'int B' previously declared here
2 | int A,B,B;
| ^
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin >> A >> B >> C;
| ^~~
a.cc:3:20: error: ... |
s295799059 | 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:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s308895445 | p03719 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
if (a <= c && c <= b) cout <<"Yes";
else cout "No";
} | a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before string constant
8 | else cout "No";
| ^~~~~
| ;
|
s113374031 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
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:14:18: error: expected primary-expression before '<' token
14 | if(c>=a && c=<b)
| ^
|
s264670262 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A , B , C ;
cin >> A >> B >> C ;
if (A=<C && C=<B){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '<' token
8 | if (A=<C && C=<B){
| ^
a.cc:8:17: error: expected primary-expression before '<' token
8 | if (A=<C && C=<B){
| ^
|
s096166317 | p03719 | C++ | int main(void) {
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:3:3: error: 'cin' was not declared in this scope
3 | cin >> A >> B >> C;
| ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
5 | cout << "Yes" << endl;
| ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope
5 | cout << "Yes" <... |
s806903583 | p03719 | C++ | #include<iostream>
using namespace std;
int main {
int A, B, C;
cin >> A >> B >> C >> endl;
if(A <= C <= B && -100 < A, B, C < 100){
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 'int'
5 | int A, B, C;
| ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ... |
s056140383 | p03719 | C++ | int A, B, C;
cin >> A >> B >> C >> endl;
if(A <= C <= B && -100 < A, B, C < 100){
cout << ("Yes") << endl;
} else {
cout << ("No") << endl;
} | a.cc:2:1: error: 'cin' does not name a type
2 | cin >> A >> B >> C >> endl;
| ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
3 | if(A <= C <= B && -100 < A, B, C < 100){
| ^~
a.cc:5:3: error: expected unqualified-id before 'else'
5 | } else {
| ^~~~
|
s476830504 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
string S;
cin>>A>>B>>C;
if(A<=C&&C<=B) S="Yes"
else S="No"
cout<<S<<endl;
} | a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'else'
8 | if(A<=C&&C<=B) S="Yes"
| ^
| ;
9 | else S="No"
| ~~~~
|
s169416917 | 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 if(c<a && c>b)
{
printf("No");
}
else
{
printf("Yes");
}
}
return 0;
} | a.cc:24:1: error: expected unqualified-id before 'return'
24 | return 0;
| ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
25 | }
| ^
|
s095134799 | p03719 | C++ | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((-100<= a <=100)&& -100<= b <=100) && -100<= c <=100))
{
if(c>a && c<b)
{
printf("Yes");
}
else if(c<a && c>b)
{
printf("No");
}
else
{
printf("Yes");
}
}
else
pr... | a.cc: In function 'int main()':
a.cc:8:42: error: expected identifier before '-' token
8 | if((-100<= a <=100)&& -100<= b <=100) && -100<= c <=100))
| ^
|
s658501646 | p03719 | C++ | #include<stdio.h>
int main()
{int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((-100<= a <=100),(-100<= b <=100),(-100<= c <=100))
{
if(c>a && c<b)
{
printf("Yes\n");
printf("C=%d is not less than A=%d and not greater than B=%d, and thus the output should be Yes.",c,a,b);
}
else
{
printf("No\n");
... | a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before '}' token
24 | printf("No")
| ^
| ;
25 | }
| ~
|
s149722238 | p03719 | C++ | #include<stdio.h>
int main()
{int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((-100<= a <=100),(-100<= b <=100),(-100<= c <=100))
{
if(c>a && c<b)
{
printf("Yes\n");
printf("C=%d is not less than A=%d and not greater than B=%d, and thus the output should be Yes.",c,a,b);
}
else
{
printf("No\n");
... | a.cc: In function 'int main()':
a.cc:20:1: error: expected '}' before 'else'
20 | else
| ^~~~
a.cc:6:2: note: to match this '{'
6 | {
| ^
a.cc: At global scope:
a.cc:24:5: error: expected unqualified-id before 'return'
24 | return 0;
| ^~~~~~
a.cc:25:1: error: expected declaration ... |
s375834394 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int x,y,z;
cin >> x >> y >> z;
if(c>=a && c<=b){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:6: error: 'c' was not declared in this scope
8 | if(c>=a && c<=b){
| ^
a.cc:8:9: error: 'a' was not declared in this scope
8 | if(c>=a && c<=b){
| ^
a.cc:8:17: error: 'b' was not declared in this scope
8 | if(c>=a && c<=b){
| ... |
s659483396 | p03719 | C | #include<stdio.h>
int main()
{
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if(A,B,C>=-100 && A,B,C<=100)
{
if(C>=A && C<=B)
{
printf("Yes");
}
else
{
printf("No");
}
}
return 0;
| main.c: In function 'main':
main.c:17:5: error: expected declaration or statement at end of input
17 | return 0;
| ^~~~~~
|
s867722548 | 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:8:4: error: 'else' without a previous 'if'
8 | else
| ^~~~
|
s746656449 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before '<' token
7 | if(c>=a && c=<b)
| ^
|
s375309264 | p03719 | C++ | include <stdlib.h>
#include <iostream>
using namespace std;
int main(void){
int A,B,C;
cin >> A >> B >> C;
if(C>=A && C<=B )
printf("Yes\n");
else printf("No\n");
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <stdlib.h>
| ^~~~~~~
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,
... |
s489104051 | p03719 | C++ | #include <stdlib.h>
#include <iostream>
using namespace std;
int main(void){
int A,B,C;
cin >> A >> B >> C;
if(C>=A && C<=B ) printf("Yes\n");
else printf("No\n");
| a.cc: In function 'int main()':
a.cc:11:23: error: expected '}' at end of input
11 | else printf("No\n");
| ^
a.cc:5:15: note: to match this '{'
5 | int main(void){
| ^
|
s182842688 | p03719 | C++ | //大文字->小文字 tolower(),逆はtoupper()
//int a = stoi(c); 文字列をintへ
//途中の出力をそのまま残さない
//数値計算 個数以外はdouble
//map<キー,値> p は辞書。p[キー] = 値
//map 全探索
//auto begin = p.begin(), end = p.end();
//for (auto it = begin; it != end; it++) {}
//mapのキー:it->first mapのバリュー:it->second
//絶対値 abs()
//入力は空白で切れる
//大文字判定 isupper(文字) 小文字判定 islower(文字)... | a.cc: In function 'int main()':
a.cc:58:9: error: 'inta' was not declared in this scope; did you mean 'int'?
58 | inta, b, c; cin >> a >> b >> c;
| ^~~~
| int
a.cc:58:15: error: 'b' was not declared in this scope
58 | inta, b, c; cin >> a >> b >> c;
| ... |
s012552606 | p03719 | Java | a,b,c= map(int, input().split())
if (a <= c and b >= c):
print('Yes')
else:
print('No') | Main.java:1: error: class, interface, enum, or record expected
a,b,c= map(int, input().split())
^
Main.java:3: error: unclosed character literal
print('Yes')
^
Main.java:3: error: unclosed character literal
print('Yes')
^
Main.java:5: error: unclosed character literal
print('No')
... |
s864827247 | 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 << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '<<' token
8 | else << "No" << endl;
| ^~
|
s497539184 | p03719 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <bitset>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld... | a.cc: In function 'int main()':
a.cc:51:5: error: 'memset' was not declared in this scope
51 | memset(d, sizeof(d), 0);
| ^~~~~~
a.cc:14:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
13 | #include <numeric>
+++ |+#include <cstring>
1... |
s961061797 | p03719 | C | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c;);
if(a<=b&&b>=c)printf("Yes\n");
else printf("No\n");
return 0;
} | main.c: In function 'main':
main.c:6:28: error: expected ')' before ';' token
6 | scanf("%d %d %d",&a,&b,&c;);
| ~ ^
| )
|
s692450726 | p03719 | C | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c;);
if(a<b&&b>c)printf("Yes\n");
else printf("No\n");
return 0;
} | main.c: In function 'main':
main.c:6:28: error: expected ')' before ';' token
6 | scanf("%d %d %d",&a,&b,&c;);
| ~ ^
| )
|
s804091159 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
#define MAX_E 100000
#define MAX_V 100000
struct edge {
ll from, to, cost;
};
ll d[MAX_V];
ll V, E;
edge es[MAX_E];
void shortest_path(ll s) {
rep(i, 0, V) d[i] = INF;
d[s] = 0;
while(true) {
bool update = false;
rep(i... | a.cc: In function 'void shortest_path(ll)':
a.cc:19:13: error: 'i' was not declared in this scope
19 | rep(i, 0, V) d[i] = INF;
| ^
a.cc:19:9: error: 'rep' was not declared in this scope
19 | rep(i, 0, V) d[i] = INF;
| ^~~
a.cc: In function 'bool find_negative_loop(... |
s493704080 | 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(c>=a && c<=b){System.out.println("Yes")}
else{System.out.println("No");}
}
}
| Main.java:8: error: ';' expected
if(c>=a && c<=b){System.out.println("Yes")}
^
1 error
|
s787678485 | p03719 | C++ | //061 A - Between Two Integers 2017/05/13
#include <bits/stdc++.h>
#define rep(i ,n) for(int i=0;i<(int)(n);++i)
using namespace std;
typedef long long int int64;
typedef unsigned long long uint64;
int main(){
int a , b , c;
cin >> a >> b >> c;
cout ( (c >= a && c <= b) ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:12:11: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char*)'
12 | cout ( (c >= a && c <= b) ? "Yes" : "No") << endl;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s021281857 | p03719 | C++ | //061 A - Between Two Integers 2017/05/13
#include <bits/stdc++.h>
#define rep(i ,n) for(int i=0;i<(int)(n);++i)
using namespace std;
typedef long long int int64;
typedef unsigned long long uint64;
int main(){
int a , b , c;
cin >> a >> b >> c; : "No"
cout ( (c >= a && c <= b) ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:11:25: error: expected primary-expression before ':' token
11 | cin >> a >> b >> c; : "No"
| ^
|
s935690671 | p03719 | C++ | #include <bits/stdc++.h>
#include <string>
using namespace std;
using ll=long long;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define inf 1001001001
typedef pair<int,int> P;
#define mod 1000000007
int main(){
int a,b,c;
ci >> a >> b >>c;
if(c>=a&&c<=b) cout << "Yes" <<endl;
else cout << "No" <<endl;
... | a.cc: In function 'int main()':
a.cc:12:4: error: 'ci' was not declared in this scope; did you mean 'c'?
12 | ci >> a >> b >>c;
| ^~
| c
|
s285273243 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int deg[1000055];
int main() {
int n,m,x,y;
cin>>a>>b>>c;
for(int i=0;i<m;i++) {
cin>>x>>y;
deg[x]++;
deg[y]++;
}
for(int i=1;i<=n;i++) cout<<deg[i]<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:13: error: 'b' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin>>a>>b>>c;
| ... |
s022804131 | p03719 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
Integer a = scan.nextInt();
Integer b = scan.nextInt();
Integer c = scan.nextInt();
System.out.println(A<=C&&C<=B?"Yes":"No");
}
} | Main.java:9: error: cannot find symbol
System.out.println(A<=C&&C<=B?"Yes":"No");
^
symbol: variable A
location: class Main
Main.java:9: error: cannot find symbol
System.out.println(A<=C&&C<=B?"Yes":"No");
^
symbol: variable C
location: class Main
Mai... |
s389900844 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
printf(c>=a && c<=b?"Yes","No");
return 0;
} | a.cc: In function 'int main()':
a.cc:7:39: error: expected ':' before ')' token
7 | printf(c>=a && c<=b?"Yes","No");
| ^
| :
a.cc:7:39: error: expected primary-expression before ')' token
|
s907256515 | p03719 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC061A
{
class Program
{
static void Main(string[] args)
{
int a,b,c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s427379751 | p03719 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define FOR(i,n,m) for(int i=(int)(n); i<=(int)(m); i++)
#define RFOR(i,n,m) for(int i=(int)(n); i>=(int)(m); i--)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define RITR(x,c) for(__typeof(c.rbegin()) x=c.rbegin();x!=c.rend... | a.cc: In function 'int main()':
a.cc:38:19: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
38 | int a,b,c; cin>a>>b>>c;
| ~~~^~~~~~~~
| | |
| | int
| std:... |
s040616138 | p03719 | C++ | #include <bits/stdc++.h>
#include <stdlib.h>
using namespace std;
typedef long long ll;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(c>=a && c<=b) cout<<"Yes"<<endl;
else cout<<"No"<<nedl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:20: error: 'nedl' was not declared in this scope
10 | else cout<<"No"<<nedl;
| ^~~~
|
s224538881 | 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:9: error: expected ')' before '!' token
7 | if(c !< a && c !> b){
| ~ ^~
| )
|
s231113160 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,a,b;
cin >> x >>a >> b;
if ((x=<b)&&(b<=a))
cout <<"Yes";
else
cout << "No";
}
| a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '<' token
7 | if ((x=<b)&&(b<=a))
| ^
|
s258015834 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,a,b;
cin >> x >>a >> b;
if ((x=<b)&&(b<=a))
cout <<"Yes";
else
cout << "No;a
}
| a.cc:10:13: warning: missing terminating " character
10 | cout << "No;a
| ^
a.cc:10:13: error: missing terminating " character
10 | cout << "No;a
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '<' token
7 | if ((x=<b)&... |
s589966293 | p03719 | Java | import java.util.Scanner;
public class QA {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if(a <= c && c <= b) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:3: error: class QA is public, should be declared in a file named QA.java
public class QA {
^
1 error
|
s847729907 | p03719 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int N, M; cin >> N >> M;
const int NMMAX = 50;
int A[NMMAX], B[NMMAX];
for (int i = 0; i < M; ++i){
cin >> A[i] >> B[i];
}
int road[NMMAX];
for (int i = 0;i < N; ++i){
road[i] = 0;
}
for (inti=0;i<M;++i){
road[A[i] - 1] += 1;
... | a.cc: In function 'int main()':
a.cc:19:14: error: 'inti' was not declared in this scope; did you mean 'int'?
19 | for (inti=0;i<M;++i){
| ^~~~
| int
a.cc:19:21: error: 'i' was not declared in this scope
19 | for (inti=0;i<M;++i){
| ^... |
s859721426 | 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{
coout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:5: error: 'coout' was not declared in this scope
11 | coout<<"No"<<endl;
| ^~~~~
|
s908346394 | 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(c<=b&&a<=c){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
| Main.java:5: error: cannot find symbol
int a = sc.nextint();
^
symbol: method nextint()
location: variable sc of type Scanner
Main.java:6: error: cannot find symbol
int b = sc.nextint();
^
symbol: method nextint()
location: variable sc of type Scanner
Main.java:7: error: ... |
s751888330 | p03719 | C++ | a, b, c = map(int, input().split())
if a <= c <= b:
print('Yes')
else:
print('No')
| a.cc:3:11: warning: multi-character character constant [-Wmultichar]
3 | print('Yes')
| ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
5 | print('No')
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = map(int, input().split())
... |
s628061663 | p03719 | C | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
while(~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:28: error: 'A' undeclared (first use in this function)
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
main.c:7:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:31: error: 'B' undeclared (first use ... |
s425276740 | p03719 | C++ | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
while(~scanf("%d%d%d",&A,&B,&C))
{
if(C>=A&&C<=B)
printf("yes\n");
else
printf("no\n");
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:28: error: 'A' was not declared in this scope
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
a.cc:7:31: error: 'B' was not declared in this scope
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
a.cc:7:34: erro... |
s952054853 | 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 && B =>C){
System.out.println("YES");
} else{
System.out.println("NO");
}
}
} | Main.java:11: error: > or ',' expected
if(A=<C && B =>C){
^
Main.java:11: error: illegal start of expression
if(A=<C && B =>C){
^
2 errors
|
s801000409 | 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 && B =<C){
System.out.println("YES");
} else{
System.out.println("NO");
}
}
} | Main.java:11: error: > or ',' expected
if(A=<C && B =<C){
^
Main.java:11: error: > or ',' expected
if(A=<C && B =<C){
^
2 errors
|
s954619688 | 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:15: error: expected primary-expression before '<' token
8 | if(c>=a&&c=<b) {cout<< "Yes" ;}
| ^
|
s286905750 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int x,y,z;
cin>>x>>y>>z;
if(x<=z && y>=z)
{
cout<<"Yes"<<endl;
}
else if
{
cout<<"No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:3: error: expected '(' before '{' token
11 | {
| ^
| (
|
s315265184 | p03719 | C++ | #include<iostream>
using namespace std
int main(){
int A,B,C;
cin>>A>>B>>C;
if(A<=C && B>=C){cout<<"Yes";}
else cout<<"No";
return | a.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 | int main(){
| ~~~
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression at end of input
10 | return
| ^
a.cc:10:7: error... |
s923344788 | p03719 | C++ | #include <iostream>
using namespace std;
int main ()
{
int x;
int c;
int z;
cin >> x>>c>>z;
if (x<c&&z>x){
cout << "Yes";
}
else if (z==r&&z==c){
cout << "Yes";
}
else cout << "No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:13: error: 'r' was not declared in this scope
13 | else if (z==r&&z==c){
| ^
|
s776112556 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
if(A<C && B>C){cout<<"Yes";}
else cout<<"No";
}
return 0;
}
| a.cc:10:1: error: expected unqualified-id before 'return'
10 | return 0;
| ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
11 | }
| ^
|
s795856610 | p03719 | C++ | int main() {
int A,B,C;
cin >> A >> B >> C;
if(A<=C<=B){
cout <<"Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
3 | cin >> A >> B >> C;
| ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
5 | cout <<"Yes" << endl;
| ^~~~
a.cc:5:21: error: 'endl' was not declared in this scope
5 | cout <<"Yes" << endl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.