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[MAXM], next[MAXM];
inline void init(int _n) { n = _n, m = 0; for (int i = 0; i < n; ++i) head[i] = -1; }
inline void add_edge(int u, int v, int c) {
dest[m] = v; cap[m] = c; next[m] = head[u]; head[u] = m++;
dest[m] = u; cap[m] = 0; next[m] = head[v]; head[v] = m++;
}
int d[MAXN], cur[MAXN];
inline bool level_graph()
{
static int q[MAXN], qhead, qtail;
memset(d, -1, sizeof d);
d[source] = 0, q[0] = source; qhead = 0, qtail = 1;
while (qhead < qtail) {
int u = q[qhead++];
for (int w = head[u]; w != -1; w = next[w])
if (cap[w] > 0 && d[dest[w]] == -1) {
d[dest[w]] = d[u] + 1;
q[qtail++] = dest[w];
}
}
return (d[sink] > 0);
}
int augment(int u, int cur_cap = INF)
{
if (u == sink) return cur_cap;
int new_cap;
for (int &w = cur[u]; w != -1; w = next[w])
if (cap[w] > 0 && d[dest[w]] == d[u] + 1 && (new_cap = augment(dest[w], min(cur_cap, cap[w]))) > 0) {
cap[w] -= new_cap;
cap[w ^ 1] += new_cap;
return new_cap;
}
return 0;
}
inline int plunge(int s, int t)
{
source = s, sink = t;
int ans = 0, aug;
while (level_graph()) {
for (int i = 0; i < n; ++i) cur[i] = head[i];
while ((aug = augment(source)) > 0) ans += aug;
}
return ans;
}
}
int h, w;
char s[MAXN][MAXN];
inline bool is_lotus(char c) { return c == 'S' || c == 'T' || c == 'o'; }
int main()
{
scanf("%d%d", &h, &w); getchar();
for (int i = 0; i < h; ++i) gets(s[i]);
nwf::init(h * w * 2);
for (int i = 0; i < h; ++i)
for (int j = 0; j < w; ++j) if (is_lotus(s[i][j])) {
nwf::add_edge((i * w + j) * 2, (i * w + j) * 2 + 1, 1);
for (int ii = i - 1; ii >= 0; --ii)
if (is_lotus(s[ii][j])) { nwf::add_edge((i * w + j) * 2 + 1, (ii * w + j) * 2, INF); }
for (int ii = i + 1; ii < h; ++ii)
if (is_lotus(s[ii][j])) { nwf::add_edge((i * w + j) * 2 + 1, (ii * w + j) * 2, INF); }
for (int jj = j - 1; jj >= 0; --jj)
if (is_lotus(s[i][jj])) { nwf::add_edge((i * w + j) * 2 + 1, (i * w + jj) * 2, INF); }
for (int jj = j + 1; jj < w; ++jj)
if (is_lotus(s[i][jj])) { nwf::add_edge((i * w + j) * 2 + 1, (i * w + jj) * 2, INF); }
}
int s_id = -1, t_id = -1;
for (int i = 0; i < h; ++i)
for (int j = 0; j < w; ++j)
if (s[i][j] == 'S') s_id = (i * w + j) * 2 + 1;
else if (s[i][j] == 'T') t_id = (i * w + j) * 2;
int ans = nwf::plunge(s_id, t_id);
printf("%d\n", ans > INF / 2 ? -1 : ans);
return 0;
}
| 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{
System.out.println('No');
}
}
} | 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');
^
Main.java:13: error: unclosed character literal
System.out.println('No');
^
Main.java:13: error: unclosed character literal
System.out.println('No');
^
Main.java:13: error: not a statement
System.out.println('No');
^
6 errors
|
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];
for(int i=0;i<m;i++) {
int x=sc.nextInt()-1;
int y=sc.nextInt()-1;
long c=sc.nextLong();
c=-1l*c;
pair p=new pair(x,y,c);
aa[i]=p;
}
long dis[]=new long[n];
Arrays.fill(dis,Long.MAX_VALUE);
dis[0]=0;
for(int i=0;i<n-1;i++) {
for(int j=0;j<m;j++) {
int src=aa[j].src;
int des=aa[j].des;
long wt=aa[j].val;
if(dis[des]>dis[src]+wt) {
dis[des]=dis[src]+wt;
}
}
}
boolean negative=false;
for(int j=0;j<m;j++) {
int src=aa[j].src;
int des=aa[j].des;
long wt=aa[j].val;
if(dis[des]!=Long.MAX_VALUE&&dis[des]>dis[src]+wt) {
dis[des]=dis[src]+wt;
negative=true;
break;
}
}
System.out.println(negative==true?"inf":-dis[n-1]);
}
static long gcd(long a, long b)
{
if (a == 0)
return b;
return gcd(b % a, a);
}
static long nCr(int n,int r) {
int dp[][]=new int[2001][2001];
for(int i=0;i<2001;i++) {
dp[0][i]=0;
}
for(int i=0;i<2001;i++) {
dp[i][0]=1;
}
for(int i=1;i<2001;i++) {
for(int j=1;j<2001;j++) {
if(i==j) {
dp[i][j]=1;
}else {
dp[i][j]=dp[i-1][j-1]+dp[i][j-1];
}
}
}
return dp[n][r];
}
}
class pair {
int src;
int des;
long val;
pair(int src,int des,long val){
this.src=src;
this.des=des;
this.val=val;
}
// @Override
// public int compareTo(pair o) {
//
// return this.wt-o.wt;
// }
} | 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,C;
| ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:6:1: error: 'cin' does not name a type
6 | cin>>A>>B>>C;
| ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
7 | if(C>=A&&C<=B){
| ^~
a.cc:10:1: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
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 main () {
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1, i = 1;
//cin >> t;
while(t--) {
//cout << "Case #" << i << ": ";
solve();
//i++;
}
return 0;
}
| 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 std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | {cout<"YES";}
| ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | {cout<"YES";}
| ^~~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | {cout<"YES";}
| ^~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
9 | {cout<"YES";}
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>'
9 | {cout<"YES";}
| ^~~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
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)]
# from IPython import embed; embed(); exit();
# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
A, B, C = MAP()
if A <= C and C <= B:
print("Yes")
else:
print("No")
| 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: invalid preprocessing directive #input
3 | # input = sys.stdin.readline
| ^~~~~
a.cc:5:3: error: invalid preprocessing directive ##
5 | # # get single (or) multiple str
| ^
a.cc:6:3: error: invalid preprocessing directive #X
6 | # X = input()
| ^
a.cc:8:3: error: invalid preprocessing directive ##
8 | # # get single int
| ^
a.cc:9:3: error: invalid preprocessing directive #N
9 | # N = int(input())
| ^
a.cc:10:3: error: invalid preprocessing directive ##
10 | # # get multiple int (e.g., 2)
| ^
a.cc:11:3: error: invalid preprocessing directive #X
11 | # X, Y = map(int, input().split())
| ^
a.cc:12:3: error: invalid preprocessing directive ##
12 | # # get multiple int (e.g., 2) for N lines
| ^
a.cc:13:3: error: invalid preprocessing directive #XY
13 | # XY = [list(map(int, input().split())) for _ in range(N)]
| ^~
a.cc:15:3: error: invalid preprocessing directive #from
15 | # from IPython import embed; embed(); exit();
| ^~~~
a.cc:17:3: error: invalid preprocessing directive #\U00005168\U000090e8\U00005165\U0000308a
17 | # 全部入り
| ^~~~~~~~
a.cc:36:13: warning: multi-character character constant [-Wmultichar]
36 | INF = float('inf')
| ^~~~~
a.cc:18:1: error: 'import' does not name a type
18 | import sys, re
| ^~~~~~
a.cc:18:1: note: C++20 'import' only available with '-fmodules-ts'
|
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,&b,&c);
| ^
main.c:6:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:28: error: 'b' undeclared (first use in this function)
6 | scanf("%d%d%d",&a,&b,&c);
| ^
main.c:6:31: error: 'c' undeclared (first use in this function)
6 | scanf("%d%d%d",&a,&b,&c);
| ^
|
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 '(' before 'for'
13 | for ( int i = 1;i < n+1;i++ )
| ^~~
main.c:13:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
13 | for ( int i = 1;i < n+1;i++ )
| ^
main.c:13:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
13 | for ( int i = 1;i < n+1;i++ )
| ^~
main.c:15:1: error: expected identifier or '(' before '}' token
15 | }
| ^
|
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();
^
symbol: method nextInt()
location: class Main
3 errors
|
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 scope
8 | cout << Yes <<endl;
| ^~~
a.cc:10:13: error: 'No' was not declared in this scope
10 | cout << No <<endl;
| ^~
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
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_map>
#include <queue>
#define mod 998244353
#define int long long
#define ld long double
#define pb push_back
#define vi vector<int>
#define dbg(x) cerr << #x << " = " << x << '\n'
#define sz(x) (int)x.size()
#define ff first
#define ss second
#define pii pair<int,int>
using namespace std;
inline void solve(){
int a,b,c;
cin>>a>>b>>c;
if (c>=a and c<=b) cout << "Yes" << endl;
else cout << "No" << endl;
}
signed main()
{
int n=1; // cin>>n;
while (n--) solve();
return 0;
}
| 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: candidate: 'operator<<(int, int)' (built-in)
6 | cin << A << B << C;
| ~~~~^~~~
a.cc:6:7: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << A << B << C;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << A << B << C;
| ^
/usr/include/c++ |
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.parseInt(scanner.next());
String answer = null;
if (c >= a) {
if (c <= b) {
answer = "Yes";
} else {
answer = "No";
}
} else {
answer = "No";
}
System.out.println(d);
scanner.close();
}
}
| 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 = Integer.parseInt(scanner.next());
String answer = null;
if (c >= a) {
if (c <= b) {
answer = "Yes";
} else {
answer = "No";
}
} else {
answer = "No";
}
System.out.println(answer);
scanner.close();
}
}
| 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';
| ^
| ;
12 | }
| ~
|
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:2:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | std::cout << "No" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
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:2:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | std::cout << "No" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
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; ///< Linked to standard output
| ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "Yes" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "No" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "No" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
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" << endl;
| ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "No" << endl;
| ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
12 | cout << "No" << endl;
| ^~~~
|
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" << endl;
| ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << "No" << endl;
| ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
10 | cout << "No" << endl;
| ^~~~
|
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>
#include<unordered_map>
#include<unordered_set>
#include<iterator>
#include<sstream>
#include<iomanip>
#include<ext/pb_ds/assoc_container.hpp>
#include<chrono>
#include<bits/stdc++.h>
using namespace __gnu_pbds;
using namespace std;
#define int int64_t
#define double long double
#define nitro ios_base::sync_with_stdio(false);cin.tie(0);
#define vi vector<int64_t>
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define PI 3.1415926535897932384626433832795
#define read(a) for(auto& x : a) cin>> x
#define endl '\n'
#define gap ' '
#define min3(a,b,c) min(a, min(b, c))
#define max3(a,b,c) max(a, max(b, c))
#define MOD 1000000007
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
int32_t main()
{
nitro
int a,b,c;
cin>>a>>b>>c;
if(c>=a and c=<b)cout<<"Yes";
else cout<<"No";
return 0;
} | 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: 'cin' was not declared in this scope
10 | cin.tie(0);
| ^~~
a.cc:11:5: error: 'ios' has not been declared
11 | ios::sync_with_stdio(false);
| ^~~
a.cc:17:9: error: 'cout' was not declared in this scope
17 | cout << "Yes" << endl;
| ^~~~
a.cc:17:26: error: 'endl' was not declared in this scope
17 | cout << "Yes" << endl;
| ^~~~
a.cc:19:9: error: 'cout' was not declared in this scope
19 | cout << "No" << endl;
| ^~~~
a.cc:19:25: error: 'endl' was not declared in this scope
19 | cout << "No" << endl;
| ^~~~
|
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.cc:2:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
306 | operator<<(nullptr_t)
| ^~~~~~~~
/usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::nullptr_t'
306 | operator<<(nullptr_t)
|
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 | cout << "yes" << endl;
| ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
13 | cout << "no" << endl;
| ^~~~
a.cc:13:25: error: 'endl' was not declared in this scope
13 | cout << "no" << endl;
| ^~~~
|
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 conbination(ll a,ll b){
ll u = 1;
ll d = 1;
while(b != 0){
u *= a;
d *= b;
a--;
b--;
}
return u / d;
}
int strtoint(char s){
return (int(s-'0'));
}
int fact(int n){
if(n == 1)return 1;
return n * fact(n-1);
}
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a <= c and c <= b)cout << "Yes" << endl;
else cout << "No" << endl;
}
#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 conbination(ll a,ll b){
ll u = 1;
ll d = 1;
while(b != 0){
u *= a;
d *= b;
a--;
b--;
}
return u / d;
}
int strtoint(char s){
return (int(s-'0'));
}
int fact(int n){
if(n == 1)return 1;
return n * fact(n-1);
}
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a <= c and c <= b)cout << "Yes" << endl;
else cout << "No" << endl;
}
| 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;
| ^~~
a.cc:7:11: note: 'const int INF' previously defined here
7 | const int INF = 1001001001;
| ^~~
a.cc:53:5: error: redefinition of 'int euqlid(int, int)'
53 | int euqlid (int a, int b){
| ^~~~~~
a.cc:11:5: note: 'int euqlid(int, int)' previously defined here
11 | int euqlid (int a, int b){
| ^~~~~~
a.cc:59:4: error: redefinition of 'll conbination(ll, ll)'
59 | ll conbination(ll a,ll b){
| ^~~~~~~~~~~
a.cc:17:4: note: 'll conbination(ll, ll)' previously defined here
17 | ll conbination(ll a,ll b){
| ^~~~~~~~~~~
a.cc:70:5: error: redefinition of 'int strtoint(char)'
70 | int strtoint(char s){
| ^~~~~~~~
a.cc:28:5: note: 'int strtoint(char)' previously defined here
28 | int strtoint(char s){
| ^~~~~~~~
a.cc:73:5: error: redefinition of 'int fact(int)'
73 | int fact(int n){
| ^~~~
a.cc:31:5: note: 'int fact(int)' previously defined here
31 | int fact(int n){
| ^~~~
a.cc:79:5: error: redefinition of 'int main()'
79 | int main(){
| ^~~~
a.cc:37:5: note: 'int main()' previously defined here
37 | int main(){
| ^~~~
|
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.println("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();
^
symbol: method nextInt()
location: class Main
3 errors
|
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){ printf("%d",i); return 0; } } 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
|
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: 'C' 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" << endl;
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
|
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: 'cin' was not declared in this scope
3 | cin >> A >> B >> C;
| ^~~
a.cc:3:20: error: 'C' 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" << endl;
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:8:3: error: 'return\U000030000' was not declared in this scope
8 | return 0;
| ^~~~~~~~~
|
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: 'C' 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" << endl;
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:9:1: error: expected primary-expression before '}' token
9 | }
| ^
a.cc:8:9: error: expected ';' before '}' token
8 | return
| ^
| ;
9 | }
| ~
|
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" << endl;
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
|
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 {
| ^
a.cc:6:9: error: 'cin' does not name a type
6 | cin >> A >> B >> C >> endl;
| ^~~
a.cc:7:9: error: expected unqualified-id before 'if'
7 | if(A <= C <= B && -100 < A, B, C < 100){
| ^~
a.cc:9:11: error: expected unqualified-id before 'else'
9 | } else {
| ^~~~
a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
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
printf("No");
return 0;
} | 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");
printf("C=%d is less than A=%d, and thus the output should be No.",c,a);
}
}
else
{
printf("No")
}
return 0;
} | 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");
printf("C=%d is less than A=%d, and thus the output should be No.",c,a);
}
else
printf("No");
}
return 0;
} | 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 before '}' token
25 | }
| ^
|
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,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/exception_ptr.h:38,
from /usr/include/c++/14/exception:166,
from /usr/include/c++/14/ios:41:
/usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
132 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
134 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared
140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared
142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:145:52: error: expected primary-expression before 'const'
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:147:54: error: expected primary-expression before 'const'
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:154:68: error: expected primary-expression before ')' token
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive]
155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:156:68: error: expected primary-expression before ',' token
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:156:70: error: expected primary-expression before 'const'
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:162:70: error: expected primary-expression before ')' token
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive]
163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:164:70: error: expected primary-expression before ',' token
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:164:72: error: expected primary-expression before 'const'
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared
171 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared
173 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
179 | _GLIBCXX |
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(文字)
//do{}while(next_permutation(ALL(配列)))
//while(N)で回すとき、Nはコピーを作っておく
//小文字に対応する文字コード:S[i] - 'a'
//文字コード→小文字:(char)(数字+'a')
//グラフの距離:隣接行列で扱う
//等価なものに変換する思考
//bool型 初期値はTrue
//島渡りの問題:中間ノードに着目
//配列はvector<>を使う:意味わからないエラーがなくなる。
//背反な事象にちゃんとわける
#include <bits/stdc++.h>
#define rep(i,N) for(int i = 0; i < N;i++)
#define ALL(a) (a).begin(),(a).end()
#define ll long long int
using namespace std;
// K進数でのNの桁数
ll dig(ll N, ll K) {
ll dig = 0;
while (N) {
dig++;
N /= K;
}
return dig;
}
// a,bの最大公約数
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a%b);
}
ll lcm(ll a, ll b) {
ll g = gcd(a, b);
return a / g * b;
}
//nC2の計算
ll C(ll N) {
return N * (N - 1) / 2;
}
//円周率
const double PI = 3.14159265358979323846;
int main() {
inta, 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: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;
| ^
a.cc:58:18: error: 'c' was not declared in this scope
58 | inta, b, c; cin >> a >> b >> c;
| ^
a.cc:58:28: error: 'a' 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')
^
Main.java:5: error: unclosed character literal
print('No')
^
5 errors
|
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;
#define INF 2000000000
#define rep(i,n) for(int i=0;i<(n);i++)
typedef pair<int, int> P;
const ll MOD=1000000007;
using Graph = vector<vector<int>>;
template<class T> inline bool chmax(T& a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template<class T> inline bool chmin(T& a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
int n;
ll k;
int a[100005], b[100005];
int d[100005];
int main() {
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> a[i];
cin >> b[i];
}
memset(d, sizeof(d), 0);
for (int i = 0; i < n; i++) {
d[a[i]] += b[i];
}
/*
int i = 1;
while (true) {
k -= d[i];
if (k > 0) i++;
else break;
}
cout << i << endl;
*/
for (int ans = 1; ans < n; ans++) {
if (k <= d[ans]) {
cout << ans << endl;
return 0;
}
k -= d[ans];
}
return 0;
} | 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>
14 | using namespace std;
|
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, 0, E) {
edge e = es[i];
if(d[e.from] != INF && d[e.to] > d[e.from] + e.cost) {
d[e.to] = d[e.from] + e.cost;
update = true;
}
}
if(!update) break;
}
}
bool find_negative_loop(ll s) {
//memset(d, 0, sizeof(d));
fill(d, d + V, INF);
d[s] = 0;
rep(i, 0, V) {
rep(j, 0, E) {
edge e = es[j];
if(d[e.from] != INF && d[e.to] > d[e.from] + e.cost) {
d[e.to] = d[e.from] + e.cost;
if(i == V - 1 and e.to == V - 1) return true;
}
}
}
return false;
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
cin >> V >> E;
rep(i, 0, E) {
ll a, b, c;
cin >> a >> b >> c;
edge e = {--a, --b, -c};
es[i] = e;
}
if(find_negative_loop(0)) {
cout << "inf" << endl;
return 0;
}
if(d[V - 1] == INF) cout << "inf" << endl;
else cout << -d[V - 1] << endl;
}
| 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(ll)':
a.cc:38:13: error: 'i' was not declared in this scope
38 | rep(i, 0, V) {
| ^
a.cc:38:9: error: 'rep' was not declared in this scope
38 | rep(i, 0, V) {
| ^~~
a.cc: In function 'int main()':
a.cc:55:7: error: 'i' was not declared in this scope
55 | rep(i, 0, E) {
| ^
a.cc:55:3: error: 'rep' was not declared in this scope
55 | rep(i, 0, E) {
| ^~~
|
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;
return 0;
} | 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
Main.java:9: error: cannot find symbol
System.out.println(A<=C&&C<=B?"Yes":"No");
^
symbol: variable C
location: class Main
Main.java:9: error: cannot find symbol
System.out.println(A<=C&&C<=B?"Yes":"No");
^
symbol: variable B
location: class Main
4 errors
|
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[0]);
b = int.Parse(word[1]);
c = int.Parse(word[2]);
if( c >= a && c <= b)
Console.WriteLine("Yes");
else
Console.WriteLine("NO");
Console.ReadKey();
}
}
}
| a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.Linq;
| ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
4 | using System.Text;
| ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
5 | using System.Threading.Tasks;
| ^~~~~~
a.cc:11:26: error: 'string' has not been declared
11 | static void Main(string[] args)
| ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
11 | static void Main(string[] args)
| ^~~~
a.cc:28:6: error: expected ';' after class definition
28 | }
| ^
| ;
a.cc: In static member function 'static void ABC061A::Program::Main(int*)':
a.cc:14:13: error: 'var' was not declared in this scope
14 | var word = Console.ReadLine().Split(' ');
| ^~~
a.cc:16:17: error: expected primary-expression before 'int'
16 | a = int.Parse(word[0]);
| ^~~
a.cc:17:17: error: expected primary-expression before 'int'
17 | b = int.Parse(word[1]);
| ^~~
a.cc:18:17: error: expected primary-expression before 'int'
18 | c = int.Parse(word[2]);
| ^~~
a.cc:21:16: error: 'Console' was not declared in this scope
21 | Console.WriteLine("Yes");
| ^~~~~~~
a.cc:23:16: error: 'Console' was not declared in this scope
23 | Console.WriteLine("NO");
| ^~~~~~~
a.cc:25:13: error: 'Console' was not declared in this scope
25 | Console.ReadKey();
| ^~~~~~~
|
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();x++)
#define setp(n) fixed << setprecision(n)
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
#define ld long double
#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define pll pair<ll,ll>
#define pi pair<int,int>
#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define ins insert
using namespace std;
/* Some Libraries */
//-------------------------------------------------
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
int a,b,c; cin>a>>b>>c;
if (a<=c && c<=b){
cout<<"Yes\n";
}else{
cout<<"No\n";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc: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::istream {aka std::basic_istream<char>}
a.cc:38:19: note: candidate: 'operator>(int, int)' (built-in)
38 | int a,b,c; cin>a>>b>>c;
| ~~~^~~~~~~~
a.cc:38:19: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1236:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1329:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1329 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1497 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1673 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
38 | int a,b,c; cin>a>>b>>c;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>'
38 | int a,b,c; cin>a>>b>>c;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
462 | operator>(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
507 | operator>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1714 | operator>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1774 | operator>(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
38 | int a,b,c; cin>a>>b>>c;
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
695 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
702 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed:
a.cc:38:26: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
38 | int a,b,c; cin>a>>b>>c;
| ^
/usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT |
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)&&(b<=a))
| ^
a.cc:11:1: error: expected primary-expression before '}' token
11 | }
| ^
|
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;
road[B[i] - 1] += 1;
}
for (inti=0;i<N;++i){
cout << road[i] << endl;
}
return 0;
}
| 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){
| ^
a.cc:23:14: error: 'inti' was not declared in this scope; did you mean 'int'?
23 | for (inti=0;i<N;++i){
| ^~~~
| int
a.cc:23:21: error: 'i' was not declared in this scope
23 | for (inti=0;i<N;++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: cannot find symbol
int c = sc.nextint();
^
symbol: method nextint()
location: variable sc of type Scanner
3 errors
|
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 in this function)
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
main.c:7:34: error: 'C' undeclared (first use in this function)
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
|
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: error: 'C' was not declared in this scope
7 | while(~scanf("%d%d%d",&A,&B,&C))
| ^
|
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: expected ';' at end of input
10 | return
| ^
| ;
a.cc:10:7: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
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;
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
7 | cout << "No" << endl;
| ^~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.