submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s992570757
p03678
C++
#include <bits/stdc++.h> #define b 31ll #define mod 1004535809ll #define ll long long using namespace std; char s[400005]; ll l[1005],fib[1005][27],ans[27]; ll has[400005],m[400005],lo,hi; int len,t; inline ll get(int l,int r) {if (l>r) return 0; ll ret=(has[r]-has[l-1]*m[r-l+1])%mod; return (ret<0?ret+mod:ret); } inli...
a.cc: In function 'int main()': a.cc:43:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 43 | gets(s+1);len=strlen(s+1); | ^~~~ | getw
s238717995
p03678
C++
#include<bits/stdc++.h> using namespace std; char st[500010]; int go[500010][26],next[500010],w,len; long long work(long long r,int ch) { if (r<=len) return go[r][ch]; long long n1=go[len/2][ch],n2=go[w][ch],l1=len/2,l2=w; while (l1+l2<=r) { long long tmp=l1;l1+=l2;l2=tmp; tmp=n1;n1+=n2;n2=tmp; } return n1+wo...
a.cc: In function 'int main()': a.cc:24:9: error: reference to 'next' is ambiguous 24 | next[0]=-1; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:66, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/st...
s461725710
p03678
C++
#include<bits/stdc++.h> #define N 200005 #define LL long long #define ULL unsigned LL using namespace std; LL l,r,a[26],b[26],f[95][27],F[95]; int n; char A[N]; ULL H[N],S[N]; ULL hash(int l,int r){ return H[r]-H[l-1]*S[r-l+1];} void calc(LL r,int v,LL *a) { int i,j; if(n%v==0){ for(i=1;i<=n&&i<=r;i++) a[A[i]-'a']+...
a.cc: In function 'int main()': a.cc:52:20: error: reference to 'hash' is ambiguous 52 | if(hash(i+1,n)==hash(1,n-i)) | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, from /usr/...
s472251268
p03678
C++
for (int i=1;i<sz;i++) { if (z[i]+i==sz && sz%i==0) { z_func(i);g=i; for (int j=1;j<i;j++) { if (z[j]+j==i) g=0; } break; } } if (g) { cnt[s[0]-'a'][0]=1; for (int i=1;i<g;i++) { for (int j=0;j<26;j++) { if (j==s[i]-'a') cnt[j][i]=cnt[j][i-1]+1; else cnt[j][i]=cnt[j][i...
a.cc:1:1: error: expected unqualified-id before 'for' 1 | for (int i=1;i<sz;i++) | ^~~ a.cc:1:14: error: 'i' does not name a type 1 | for (int i=1;i<sz;i++) | ^ a.cc:1:19: error: 'i' does not name a type 1 | for (int i=1;i<sz;i++) | ^ a.cc:13:9: error: expect...
s893574502
p03678
C++
#include<ctime> #include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<cassert> #include<string> #include<sstream> #include<fstream> #include<deque> #include<queue> #include<vector> #include<map> #include<list> #include<stack> #include<set> #include<bitset...
a.cc: In function 'bool same(int)': a.cc:90:16: error: reference to 'hash' is ambiguous 90 | int k1=hash[pos-1],k2=hash[n-1]-hash[n-1-pos]*power[pos]; | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, ...
s567088609
p03678
C++
#include<ctime> #include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<cassert> #include<string> #include<sstream> #include<fstream> #include<deque> #include<queue> #include<vector> #include<map> #include<list> #include<stack> #include<set> #include<bitset...
a.cc: In function 'bool same(int)': a.cc:69:16: error: reference to 'hash' is ambiguous 69 | int k1=hash[pos-1],k2=hash[n-1]-hash[n-1-pos]*power[pos]; | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, ...
s356820727
p03678
C++
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; typedef long long LL; const int maxn = 200009; char s[maxn]; int Next[maxn], n, m; LL l, r, w[26]; void solve(LL k){ if (k <= n){ for (int i=0; i<k; i++) w[s[i]-'a']++; return; } LL S = 1, T = 0, _s = 0, _t = 1; while (S*n + T*m < k) ...
a.cc: In function 'int main()': a.cc:24:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 24 | gets(s); scanf("%lld%lld", &l, &r); | ^~~~ | getw
s686519780
p03678
C++
#include <cstdio> #include <cstring> #include <algorithm> #define N 200006 using namespace std; char s[N];long long f[106],g[106][26],a[26],l,r,x; int n,p,t,v[26],height[N],sa[N],rank[N],tsa[N],cntA[N],cntB[N],A[N],B[N]; inline int read() { int x=0,c=getchar(),f=1;while(c<'0'||c>'9')f=(c=='-'?-f:f),c=getchar(); while...
a.cc: In function 'void SA()': a.cc:22:9: error: reference to 'rank' is ambiguous 22 | rank[sa[1]]=1; | ^~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, ...
s351884529
p03678
C++
#include <bits/stdc++.h> #define N 200006 using namespace std; char s[N];long long f[106],g[106][26],a[26],l,r,x; int n,p,t,v[26],height[N],sa[N],rank[N],tsa[N],cntA[N],cntB[N],A[N],B[N]; inline int read() { int x=0,c=getchar(),f=1;while(c<'0'||c>'9')f=(c=='-'?-f:f),c=getchar(); while(c>='0'&&c<='9')x=(x<<1)+(x<<3)+c...
a.cc: In function 'void SA()': a.cc:20:9: error: reference to 'rank' is ambiguous 20 | rank[sa[1]]=1; | ^~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, ...
s638573192
p03678
C++
#include <bits/stdc++.h> #define N 200006 using namespace std; char s[N];long long f[106],g[106][26],a[26],l,r,x; int n,p,t,v[26],height[N],sa[N],rank[N],tsa[N],cntA[N],cntB[N],A[N],B[N]; inline int read() { int x=0,c=getchar(),f=1;while(c<'0'||c>'9')f=(c=='-'?-f:f),c=getchar(); while(c>='0'&&c<='9')x=(x<<1)+(x<<3)+c...
a.cc: In function 'void SA()': a.cc:20:9: error: reference to 'rank' is ambiguous 20 | rank[sa[1]]=1; | ^~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, ...
s925099667
p03678
C++
#include <bits/stdc++.h> using namespace std; #define times(n, i) uptil(0, n, i) #define rtimes(n, i) downto((n) - 1, 0, i) #define upto(f, t, i) for(int _##i = (t), i = (f); i <= _##i; i++) #define uptil(f, t, i) for(int _##i = (t), i = (f); i < _##i; i++) #define downto(f, t, i) for(int _##i = (t), i...
a.cc: In function 'void sa::sa_is(const int*, int, int*, int**, int**, int*, int*, int*, int*, int)': a.cc:81:32: error: cast from 'int*' to 'unsigned int' loses precision [-fpermissive] 81 | times(C, c) bucref[c+1] += (unsigned int)bucref[c] / sINT; | ^~~~~~~~~~~~~~~~~~~~~~~...
s943604047
p03678
C++
#include <bits/stdc++.h> using namespace std; #define times(n, i) uptil(0, n, i) #define rtimes(n, i) downto((n) - 1, 0, i) #define upto(f, t, i) for(int _##i = (t), i = (f); i <= _##i; i++) #define uptil(f, t, i) for(int _##i = (t), i = (f); i < _##i; i++) #define downto(f, t, i) for(int _##i = (t), i...
a.cc: In function 'void sa::sa_is(const int*, int, int*, int**, int**, int*, int*, int*, int*, int)': a.cc:81:32: error: cast from 'int*' to 'int' loses precision [-fpermissive] 81 | times(C, c) bucref[c+1] += (int)bucref[c] / sINT; | ^~~~~~~~~~~~~~
s975823782
p03679
C++
x,a,b = map(int,input().split()) if b < a: print('delicious') elif b <= x: pritn('safe') elif b > x: print('dangerous')
a.cc:4:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 4 | print('delicious') | ^~~~~~~~~~~ a.cc:6:9: warning: multi-character character constant [-Wmultichar] 6 | pritn('safe') | ^~~~~~ a.cc:8:9: warning: multi-character literal with 9 charact...
s098987024
p03679
C++
#include<bits/stdc++.h> using namespace std; #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for (ll i = m; i < (n); i++) using ll = long long; using pii = pair<int, int>; using Vi = vector<int>; int main() { int x,a,b; cin >> x>>a>>b; if(b<=a){ cout << "delicious" << endl; } else if(b<=a+x){ ...
a.cc: In function 'int main()': a.cc:21:5: error: 'coiut' was not declared in this scope 21 | coiut << "dangerous" << endl; | ^~~~~
s502110915
p03679
C++
#include <bits/stdc++.h> #include <numeric> #include <algorithm> #define REP(i, n) for(int i = 0; i < n; i++) #define REPR(i, n) for(int i = n; i >= 0; i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { int n;...
a.cc: In function 'int main()': a.cc:27:17: error: 't' was not declared in this scope 27 | t | ^
s310881591
p03679
C++
#include <bits/stdc++.h> #include <numeric> #include <algorithm> #define REP(i, n) for(int i = 0; i < n; i++) #define REPR(i, n) for(int i = n; i >= 0; i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { int n;...
a.cc: In function 'int main()': a.cc:26:17: error: 't' was not declared in this scope 26 | t | ^
s885776304
p03679
C
#include<stdio.h> int main() { int x,a,b; scanf("%d %d %d",&x,&a,&b); if (−a + b <= 0) printf(”delicious”); else if (−a + b <= x) printf(”safe”); else printf (”dangerous\n”); return 0; }
main.c: In function 'main': main.c:7:7: error: stray '\342' in program 7 | if (<U+2212>a + b <= 0) | ^~~~~~~~ main.c:8:12: error: stray '\342' in program 8 | printf(<U+201D>delicious<U+201D>); | ^~~~~~~~ main.c:8:22: error: stray '\342' in program 8 | printf(<U+201D>de...
s345510136
p03679
C
#include<stdio.h> int main() { int x,a,b; scanf(”%d %d %d”, &x,&a,&b); if (−a + b <= 0)printf(”delicious\n”); else if (−a + b <= x)printf(”safe\n”); else printf (”dangerous\n”); return 0; }
main.c: In function 'main': main.c:6:9: error: stray '\342' in program 6 | scanf(<U+201D>%d %d %d<U+201D>, &x,&a,&b); | ^~~~~~~~ main.c:6:10: error: expected expression before '%' token 6 | scanf(”%d %d %d”, &x,&a,&b); | ^ main.c:6:18: error: stray '\342' in program 6 | sc...
s651459911
p03679
C
#include<stdio.h> int main() { intx,a,b; scanf(”%d%d%d”, &x, &a, &b); if (−a + b <= 0)printf(”delicious\n”); else if (−a + b <= x)printf(”safe\n”); else printf (”dangerous\n”); }
main.c: In function 'main': main.c:4:1: error: 'intx' undeclared (first use in this function); did you mean 'int'? 4 | intx,a,b; | ^~~~ | int main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in main.c:4:6: error: 'a' undeclared (first use in this function) ...
s916021678
p03679
C
#include<stdio .h> int main() { intx,a,b; scanf(”%d%d%d”, &x, &a, &b); if (−a + b <= 0)printf(”delicious\n”); else if (−a + b <= x)printf(”safe\n”); else printf (”dangerous\n”); }
main.c:1:9: fatal error: stdio .h: No such file or directory 1 | #include<stdio .h> | ^~~~~~~~~~ compilation terminated.
s148861242
p03679
C
#include<stdio .h> int main() { intx,a,b; scanf(”%d%d%d”, &x, &a, &b); if (−a + b <= 0)printf(”delicious\n”); else if (−a + b <= x)printf(”safe\n”); else printf (”dangerous\n”); }
main.c:1:20: warning: extra tokens at end of #include directive 1 | #include<stdio .h> int main() | ^~~ main.c:1:9: fatal error: stdio .h: No such file or directory 1 | #include<stdio .h> int main() | ^~~~~~~~~~ compilation terminated.
s209607150
p03679
C++
#include <bits/stdc++.h> using namespace std;v int main(){ int X, A, B; cin >> X >>A >>B; if( B < A ){ cout << "delicious" <<endl; } else if( B < A+X ){ cout << "safe" <<endl; } else cout << "dangerous" <<endl; }
a.cc:4:21: error: 'v' does not name a type 4 | using namespace std;v | ^
s078744187
p03679
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(c<=b)cout << "delicious"; else if((a+b)=>c)cout << "safe"; else cout << "dangelous"; }
a.cc: In function 'int main()': a.cc:10:17: error: expected primary-expression before '>' token 10 | else if((a+b)=>c)cout << "safe"; | ^
s297344101
p03679
C++
#include <iostream> using napespace std; int main () { int X, A, B; cin >> X >> A >> B; if (X >= A && X >= B) { cout << "delicious"; } else if (X >= A && X < B) { cout << "safe"; } else { cout << "dangerous"; } }
a.cc:3:7: error: expected nested-name-specifier before 'napespace' 3 | using napespace std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> X >> A >> B; | ^~~ | std::cin In file included from a.c...
s649908085
p03679
C++
#include <iostream> int main() { int x, a, b; cin >> x >> a >> b; if (a > b) { cout << "delicious" << endl; } else if(x+a>b){ cout << "safe" << endl; } else { cout << "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> x >> a >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ...
s870232963
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X, A, B; cin >> X >> A >> B; if (−A + B <= 0) { cout << "delicious" << endl; } else if (−A + B <= X) { cout << "safe" << endl; } else { cout << "dangerous" << endl; } }
a.cc:8:7: error: extended character − is not valid in an identifier 8 | if (−A + B <= 0) { | ^ a.cc:11:12: error: extended character − is not valid in an identifier 11 | else if (−A + B <= X) { | ^ a.cc: In function 'int main()': a.cc:8:7: error: '\U00002212A' was not declared in...
s265288432
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X, A, B; cin >> X >> A >> B; if (−a + b <= 0) { cout << "delicious" << endl; } else if (−a + b <= x) { cout << "safe" << endl; } else { cout << "dangerous" << endl; } }
a.cc:8:7: error: extended character − is not valid in an identifier 8 | if (−a + b <= 0) { | ^ a.cc:11:12: error: extended character − is not valid in an identifier 11 | else if (−a + b <= x) { | ^ a.cc: In function 'int main()': a.cc:8:7: error: '\U00002212a' was not declared in...
s007789819
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X, A, B; cin >> X >> A >> B; if (B >= A) { cout << "delicious" << endl; } else if (B >= (X + A)) { cout << "dangerous" << endl; } else { cout << "safe" << endl; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s943407428
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X, A, B; cin >> X >> A >> B; if (B > A) { cout << "delicious" << endl; } else if (B > X + A && X < -A + B) { cout << "dangerous" << endl; } else { cout << "safe" << endl; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s548294712
p03679
C++
#include<bits/stdc++.h> using namespace std; int main(){ unsigned long long int x,a,b; cin>>x>>a>>b; if((a+b)==x){ cout<<"delicious"<<endl; } else{ if(abs(a-b)<x){ cout<<"safe"<<endl; } else if(abs(a-b)>x){ cout<<"dangerous"<<endl; } ...
a.cc: In function 'int main()': a.cc:10:15: error: call of overloaded 'abs(long long unsigned int)' is ambiguous 10 | if(abs(a-b)<x){ | ~~~^~~~~ In file included from /usr/include/c++/14/cstdlib:79, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42, ...
s898890053
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X, A, B, C; cin >> X >> A >> B; C = X + A; if(A > B) { cout << "delicious" << end; } else if(C > B) { cout << "Safe" << endl; } else { cout << "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:8:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 8 | cout << "delicious" << end; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, fro...
s079470196
p03679
C
#i n cl u d e <s t d i o . h> i n t main ( ) { i n t x , a , b ; scanf(”%d%d%d ” , &x , &a , &b ) ; i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ; e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ; e l s e p r i n t f ( ” d an ge r ou s \n ” ) ; }
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if? 1 | #i n cl u d e <s t d i o . h> | ^ | if main.c:2:1: error: unknown type name 'i' 2 | i n t main ( ) | ^ main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 't' 2 | i n t main ( ) | ...
s371230070
p03679
C
#include <stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(b-a<=0)printf("delicious\n"); else if(b-a<=x)printf("safe\n"); else printf("dangerous\n"); return 0; }
main.c: In function 'main': main.c:8:22: error: 'x' undeclared (first use in this function) 8 | else if(b-a<=x)printf("safe\n"); | ^ main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
s384807665
p03679
C++
#include <bits/stdc++.h> using namespace std; int main(){ int X,A,B; cin>>X>>A>>B; int V; V = B-A; if(V=<0){ cout<<"delicious"<<endl; }else if(V=<X){ cout<<"safe"<<endl; }else{ cout<<"dangerous"<<endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: expected primary-expression before '<' token 9 | if(V=<0){ | ^ a.cc:11:15: error: expected primary-expression before '<' token 11 | }else if(V=<X){ | ^
s321218585
p03679
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x,a,b; cin >> x >> a >> b; if(a>=b){ cout << "delicious" << endl; }else if(a+b>=c){ cout << "safe" << endl; }else{ cout << "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:8:17: error: 'c' was not declared in this scope 8 | }else if(a+b>=c){ | ^
s488293229
p03679
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a,b,c; cin>>a>>b>>c; string ans; if(b=>c)ans="delicious"; else if(b-c<=a)ans="safe"; else ans="dangerous"; cout<<ans<<endl; }
a.cc: In function 'int main()': a.cc:9:6: error: expected primary-expression before '>' token 9 | if(b=>c)ans="delicious"; | ^
s090727542
p03679
C++
#include<iostream> using namespace std; int main(){ int x,a,b; cin>>x>>a>>b; if(a>=b) cout<<"delicious"<<endl; else{ if(b-a=x) cout<<"safe"<<endl; else cout<<"dangerous"<<endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: lvalue required as left operand of assignment 7 | if(b-a=x) cout<<"safe"<<endl; | ~^~
s097183500
p03679
C++
#include<iostream> using naamespace std; int main(){ int x,a,b; cin>>x>>a>>b; if(a>=b) cout<<"delicious"<<endl; else{ if(b-a=x) cout<<"safe"<<endl; else cout<<"dangerous"<<endl; } }
a.cc:2:7: error: expected nested-name-specifier before 'naamespace' 2 | using naamespace std; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:4:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | int x,a,b; cin>>x>>a>>b; | ^~~ | std...
s363051075
p03679
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x=sc.nextInt(),a=sc.nextInt(),b-sc.nextInt(); if(b-a<=0){ System.out.println("delicious"); }else if(b-a<=x){ System.out.println("safe"); }else{ System.out.pri...
Main.java:7: error: ';' expected int x=sc.nextInt(),a=sc.nextInt(),b-sc.nextInt(); ^ 1 error
s567073780
p03679
C++
#include<bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, a, b) for (int i= (a); i < (b); ++i) typedef long long ll; typedef pair<int,int> P; const int INF = 100100100; const int MOD = (int)1e9 + 7; const double EPS = 1e-9; int main() { int X, A, B; cin >> X >> A...
a.cc: In function 'int main()': a.cc:14:20: error: expected primary-expression before '>' token 14 | }else if(A-B+X=>0){ | ^
s621665163
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin x >> a >> b; if(a>=b){ cout << "delicious" << endl; return 0; } else if (a+x>=b){ cout << "safe" << endl; return 0; } cout << "dangerous" << endl; }
a.cc: In function 'int main()': a.cc:6:6: error: expected ';' before 'x' 6 | cin x >> a >> b; | ^~ | ;
s161645827
p03679
Java
import java.util.*; public class Expired { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if(b<=a) { System.out.println("delicious"); }else if(b<=a+x) { System.out.println("safe")...
Main.java:3: error: class Expired is public, should be declared in a file named Expired.java public class Expired { ^ 1 error
s271929136
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin>>x>>a>>b; int p=b-a; if(p<=0){ cout<<"delicious"<<endl; } else if(p<=x){ cout<<"safe"<<endl; } else{ cout<<"dangerous"<<endl; } } #include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin>>x>>a>>b; int p=b-a;...
a.cc:23:5: error: redefinition of 'int main()' 23 | int main() { | ^~~~ a.cc:4:5: note: 'int main()' previously defined here 4 | int main() { | ^~~~
s543103854
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin >> x >> a >> b; int y = a-b; if (y >= 0) { cout << "delicious" << endl; } else if (b-a <= x) { cout << "safe" << endl; } else { cout << "dengerous" << endl; }
a.cc: In function 'int main()': a.cc:13:4: error: expected '}' at end of input 13 | } | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s459083384
p03679
C++
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstdio> #include <iostream> #include <vector> #include <string> #include <queue> #include <map> using ll = long long; using namespace std; int main() { int X,A,B; cin >> X >> A >> B; if(B-A <= 0){ cout << "delicious" << endl; } e...
a.cc: In function 'int main()': a.cc:19:20: error: expected primary-expression before '<' token 19 | } else if(B-A =< X){ | ^
s786094078
p03679
C++
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstdio> #include <iostream> #include <vector> #include <string> #include <queue> #include <map> using ll = long long; using namespace std; int main() { int X,A,B; cin >> X >> A >> B; if(A>=B){ cout << "delicious" << endl; } els...
a.cc: In function 'int main()': a.cc:19:20: error: expected primary-expression before '<' token 19 | } else if(B-A =< X){ | ^
s142584106
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A < B) { cout << "dangerous" << endl; } else if (A >= B && A => (B + C)) { cout << "delicious" << endl; } else if (A >= B && A < (B + C)) { cout << "safe" << endl; } }
a.cc: In function 'int main()': a.cc:10:27: error: expected primary-expression before '>' token 10 | } else if (A >= B && A => (B + C)) { | ^
s077692092
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A < B) { cout << "dangerous" << endl; } else if (A >= B && A => B + C) { cout << "delicious" << endl; } else if (A >= B && A <= B + C) { cout << "safe" << endl; } }
a.cc: In function 'int main()': a.cc:10:27: error: expected primary-expression before '>' token 10 | } else if (A >= B && A => B + C) { | ^
s467405168
p03679
C++
//#include <tourist> #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0}; const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, ...
a.cc: In function 'int main()': a.cc:56:10: error: expected primary-expression before '<' token 56 | if(b=<0)cout<<"delicious"<<"\n"; | ^
s022918900
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; int a; int b; cin >> x; cin >> a; cin >> b; int day = b - a; if (day = x){ cout << "safe" << endl; } else if (day > x){ cout << "delicious" << endl; } else if (day < x){ cout << "dangerous" << endl; } ...
a.cc: In function 'int main()': a.cc:24:4: error: expected '}' at end of input 24 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s317309907
p03679
C++
#include <bits/stdc++.h> #define rep(i,n) for (int (i) = 0; (i) < (n); i++) #define ll long long using namespace std; int main() { ll X,A,B; cin>>X>A>>B; if(B<=A){ cout<<"delicious"<<endl; } else if(B-A<=X){ cout<<"safe"<<endl; } else{ cout<<"dangerous"<<endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'long long int') 8 | cin>>X>A>>B; | ~~~~~~^~~~~ | | | | | long long int | std::basic_istream<c...
s924573322
p03679
C++
#include <bits/stdc++.h> #define rep(i,n) for (int (i) = 0; (i) < (n); i++) #define ll long long using namespace std; int main() { ll X,A,B; cin>>X,A,B; if(B<=A){ cout<<"delicious"<<endl; } else if(B-A<=X){ cout<<"safe"<<endl; } else{ cout<<"dangerous"<<endl; }
a.cc: In function 'int main()': a.cc:17:4: error: expected '}' at end of input 17 | } | ^ a.cc:6:12: note: to match this '{' 6 | int main() { | ^
s772761211
p03679
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <stack> #include <queue> #include <numeric> #include <iomanip> #include <map> #include <set> #include <deque> #include <utility> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++)...
a.cc: In function 'int main()': a.cc:36:12: error: expected primary-expression before '<' token 36 | if (c =< 0) | ^
s316959750
p03679
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,X; cin>>A>>B>>X; if(B-A>X){ cout<<"dangerous"<<endl; } else lf(B>A &&B-A<=X){ cout<<"safe"<<endl; } else { cout<<"delicious"<<endl; } }
a.cc: In function 'int main()': a.cc:10:8: error: 'lf' was not declared in this scope 10 | else lf(B>A &&B-A<=X){ | ^~ a.cc:13:3: error: 'else' without a previous 'if' 13 | else { | ^~~~
s162736488
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { cin x,a,b; cin >> x >> a >> b; if(b-a<0) { cout << "delicious" << endl; } else if(b-a>=0 && b-a < x ){ cout << "safe" << endl; } else { cout << "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:5:6: error: expected ';' before 'x' 5 | cin x,a,b; | ^~ | ; a.cc:6:10: error: 'x' was not declared in this scope 6 | cin >> x >> a >> b; | ^ a.cc:6:15: error: 'a' was not declared in this scope 6 | cin >> x >> a >> b; | ...
s237818551
p03679
C
#include<stdio.h> int main(void) { int x,a,b; scanf("%d%d%d",&x,&a,&b); if(a<=b) printf("delicious\n"); else if(b-a<=x) printf("safe\n"); else printf("dangerous\n") return 0; }
main.c: In function 'main': main.c:12:26: error: expected ';' before 'return' 12 | printf("dangerous\n") | ^ | ; 13 | return 0; | ~~~~~~
s449227276
p03679
C++
#include<bits/stdc++.h> using namespace std; int main(){ int X,A,B; cin >> X >> A >> B; if (A >= B){ cout << "delicious" << endl; } else if (B - A <= X){ cout << "safe" << endl; } else { cout < "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:14:24: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 14 | cout < "dangerous" << endl; | ~~~~~~~~~~~~^~~~~~~
s664058449
p03679
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for ( int i = 0; i < (int)(n); i++ ) int main( void ) { ll x,a,b; cin >> x >> a >> b; if ( -a + b =< 0 ) cout << "delicious" << endl; else if ( -a + b >= x ) cout << "safe" << endl; else ...
a.cc: In function 'int main()': a.cc:11:18: error: expected primary-expression before '<' token 11 | if ( -a + b =< 0 ) | ^
s699742629
p03679
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> using namespace std; int main(){ int x,a,b; cin >> x >> a >> b; if((b-a)x) cout << "safe" << endl; else if((b-a)==x) cout << "delicous" << endl; else cout << "dangerous" << endl; }
a.cc: In function 'int main()': a.cc:10:13: error: expected ')' before 'x' 10 | if((b-a)x) cout << "safe" << endl; | ~ ^ | )
s921647537
p03679
C++
#include<stdio.h> int main() { int x , a , b; scanf(”%d%d%d” , &x , &a , &b); if (−a + b <= 0) printf (”delicious\n”); else if (−a + b <= x) printf (”safe\n”); else printf (”dangerous\n”); }
a.cc:4:9: error: extended character ” is not valid in an identifier 4 | scanf(”%d%d%d” , &x , &a , &b); | ^ a.cc:4:15: error: extended character ” is not valid in an identifier 4 | scanf(”%d%d%d” , &x , &a , &b); | ^ a.cc:5:7: error: extended character − is not valid in an ...
s712786097
p03679
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n); for(int i = 0;i<n;++i) using ll = long long; using P = pair<int,int>; int main(){ ll x,a,b; cin >> x >> a >> b; int c = b-a; if(c <= 0){ puts("delicious"); else if(x >= c){ puts("safe"); } else{ puts("dangerous"); } return 0;...
a.cc: In function 'int main()': a.cc:13:3: error: expected '}' before 'else' 13 | else if(x >= c){ | ^~~~ a.cc:11:13: note: to match this '{' 11 | if(c <= 0){ | ^
s119747176
p03679
C++
#include <iostream> int main() { int x, a, b; cout << x << a << b; if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> endl; elseif (−a + b <= x ) cout >> "safe" >> endl; else cout >> "dangerous" >> endl; }
a.cc:7:13: error: extended character − is not valid in an identifier 7 | if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> endl; | ^ a.cc:8:17: error: extended character − is not valid in an identifier 8 | elseif (−a + b <= x ) cout >> "safe" >> endl; | ^ a...
s319647599
p03679
C++
#include<bits/stdc++.h> using namespace std; using ll = long long int; #define INF 20000000000000000; int main(void){ int x, a, b; cin >> x >> a >> b; if(a > b) cout << "delicious" << endl; else if(b - a = x) cout << "safe" << endl; else cout << "dangerous" << endl; }
a.cc: In function 'int main()': a.cc:12:13: error: lvalue required as left operand of assignment 12 | else if(b - a = x) cout << "safe" << endl; | ~~^~~
s985402417
p03679
C++
#include<iostream> using namespace std; int main(void) { int x,a,b; cin>>x>>a>>b; if(a>=b){puts("delicious");} else if(b-a=<x){puts("safe");} else{puts("dangerous");} return 0; }
a.cc: In function 'int main()': a.cc:10:15: error: expected primary-expression before '<' token 10 | else if(b-a=<x){puts("safe");} | ^
s476327937
p03679
C++
#include<iostream> using namespace std; int main(){ int a,b,c;cin >>a >> b>> c; if(c - b > a) cout << "dangerous" << endl; else if(c - b =< 0) cout << "delicious" << endl; else cout << "safe" << endl; }
a.cc: In function 'int main()': a.cc:6:18: error: expected primary-expression before '<' token 6 | else if(c - b =< 0) cout << "delicious" << endl; | ^
s247702785
p03679
C++
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; x = c - b; if(x > a) cout << "dangerous" << endl; else if(b >= c) cout << "delicious" << endl; else cout << "safe" << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:5: error: 'x' was not declared in this scope 10 | x = c - b; | ^
s497026148
p03679
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,c) for(int i=0;i<c;++i) int main(){ int x,y,z; cin >> x >> y >> z; if(y+z>x&&z-y<=x){ cout << "safe" << endl; }else if(y+z<=x&&z-y<x){ cout << "delicious" << endl; } if(y+z>x&&z-y>x) cout << "dangerous" << endl; } return 0; }
a.cc:15:1: error: expected unqualified-id before 'return' 15 | return 0; | ^~~~~~ a.cc:16:1: error: expected declaration before '}' token 16 | } | ^
s900835106
p03679
C++
#include <bits/stdc++.h> #define ll long long int #define MOD 1000000007 #define INF 1e18 #define PI 3.14159265358979 using namespace std; int main(void){ ll x, a, b; cin >> x >> a >> b; if (b <= a){ cout << "delicious" << endl; } else if (b - a <= x){ cout << "safe" << endl; } else cou...
a.cc: In function 'int main()': a.cc:20:13: error: 'dangerous' was not declared in this scope 20 | cout << dangerous << endl; | ^~~~~~~~~
s595108103
p03679
C++
//#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; const int INF= 1e9+5; typedef long long ll; int main(){ int x,a,b; cin<<x<<a<<b; if(x+a<b)cout<<"dangerous"<<endl; else if(b<=a)cout<<"delicious"<<endl; else cout<<"safe"<<endl; }
a.cc: In function 'int main()': a.cc:10:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 10 | cin<<x<<a<<b; | ~~~^~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:10:6: note: candidate: 'operat...
s332166058
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X,A,B; cin >> X >> A >> B; if(B-A <= 0){ cout << "delicious" << endl; } else(B-A <= X){ cout << "safe" << endl; } else{ cout << "dangerous" << endl; } }
a.cc: In function 'int main()': a.cc:10:19: error: expected ';' before '{' token 10 | else(B-A <= X){ | ^ | ; a.cc:13:5: error: 'else' without a previous 'if' 13 | else{ | ^~~~
s833576876
p03679
C++
#include<iostream> int main(){ int a, b, x; std::cin >> a >> b >> x; if(a - b <= 0) std::cout << "delicious" << std::endl; else if(a - b <= k) std::cout << "safe" << std::endl; else std::cout << "dangerous" << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: 'k' was not declared in this scope 8 | else if(a - b <= k) | ^
s281609124
p03679
C++
#include<bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll x, a, b; cin>>x>>a>>b; if(−a + b <= 0) cout<<"delicious"; else if(-a + b <= x) cout<<"safe"; else cout<<"dangerous"; return 0; }
a.cc:8:12: error: extended character − is not valid in an identifier 8 | if(−a + b <= 0) | ^ a.cc: In function 'int main()': a.cc:8:12: error: '\U00002212a' was not declared in this scope 8 | if(−a + b <= 0) | ^~
s906335007
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin >> x >>a >> b; if (x+a>=b) cout << "delicious"; else cout << "dangerous"; } }
a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s498229835
p03679
C++
#include <stdio.h> #include <iostream> #include <vector> #include<algorithm> using namespace std; int main() { int X, A, B; cin >> X >> A >> B; if (A - B >0) cout << "delicious" << endl; else if (B - A < =X) cout << "safe" << endl; else cout << "dangerous" << endl; }
a.cc: In function 'int main()': a.cc:15:26: error: expected primary-expression before '=' token 15 | else if (B - A < =X) | ^
s454034405
p03679
C++
#inlcude <bits/stdc++.h> using namespace std; int main(){ int x, a, b; cin >> x >> a >> b; if(a > b) cout << "delicious" << endl; else if(a+b > x) cout << "dangerous" << endl; else cout << "safe" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> x >> a >> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in ...
s903342390
p03679
C++
#inlcude <bit/std++.h> using namespace std; int main(){ int x, a, b; cin >> x >> a >> b; if(a > b) cout << "delicious" << endl; else if(a+b > x) cout << "dangerous" << endl; else cout << "safe" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <bit/std++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> x >> a >> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in he...
s020987444
p03679
C++
#inlcude <iostream> using namespace std; int main(){ int x, a, b; cin >> x >> a >> b; if(a > b) cout << "delicious" << endl; else if(a+b > x) cout << "dangerous" << endl; else cout << "safe" << endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> x >> a >> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in heade...
s249299268
p03679
C++
x,a,b=map(int,input().split()) if b<=a: print("delicious") elif b<=a+x: print("safe") else: print("dangerous")
a.cc:1:1: error: 'x' does not name a type 1 | x,a,b=map(int,input().split()) | ^
s195454437
p03679
C++
#include<iostream> using namespace std; int main(){ int x,a,b; cin>>x>>a>>b; if (b>x+a)cout<< "dangerous"<<endl; else if (b>a) cout<<"safe"<<endl; else cout<<"delicious"<<endl; }j
a.cc:12:2: error: 'j' does not name a type 12 | }j | ^
s471674723
p03679
Java
import java.util.Scanner; public class Problem14 { public static void main(String[] args) { int x, a, b; Scanner input = new Scanner(System.in); x = input.nextInt(); a = input.nextInt(); b = input.nextInt(); int BestByDate = a + a; int EatingDate = a + b...
Main.java:3: error: class Problem14 is public, should be declared in a file named Problem14.java public class Problem14 { ^ 1 error
s003332193
p03679
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,a,b; cin >> x >> a >> b; if(b-a=x){ cout << "safe" << endl; }else if(b-a>x){ cout << "dangerous" << endl; }else{ cout << "delicious" << endl; } }
a.cc: In function 'int main()': a.cc:6:7: error: lvalue required as left operand of assignment 6 | if(b-a=x){ | ~^~
s453535149
p03679
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,a,b; cin >> x >> a >> b; if(b-a=x){ cout << "safe" << endl; }else if(b-a>x){ cout << "dangerous" << endl; }else{ cout << "delicious" << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: lvalue required as left operand of assignment 6 | if(b-a=x){ | ~^~ a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s667184174
p03679
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); if(B-A <= X && A-B>=0){ System.out.ptintln("delicious"); } else if(B-A <= X){ System.out.ptintln("safe"); } else...
Main.java:12: error: cannot find symbol System.out.ptintln("delicious"); ^ symbol: method ptintln(String) location: variable out of type PrintStream Main.java:14: error: cannot find symbol System.out.ptintln("safe"); ^ symbol: method ptintln(String) location: variable out of ...
s681367906
p03679
C++
///....DH..../// #include <bits/stdc++.h> #define task "Built" #define fi(a) freopen(a, "r", stdin) #define fo(a) freopen(a, "w", stdout) #define pii pair<int, int> #define ft first #define sd second #define mp ...
In file included from /usr/include/c++/14/cmath:47, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114, from a.cc:2: a.cc:34:42: error: expected unqualified-id before numeric constant 34 | /** PI **/ const double M_PI = 3.14159265358979323846; | ...
s057181220
p03679
C++
/* ────────────────────────────────────── ─▄▄▄───────────▄▄▄▄▄▄▄──────────────── █▀░▀█──────▄▀▀▀░░░░░░░▀▀▄▄──────────── █░░░░█───▄▀░░░░░░░░░░░░░░░▀▄───────▄▄▄ █▄░░░▀▄▄▀░░██░░░░░░░░░░░░░░▀█────█▀▀░█ ─█░░░░█▀░░░▀░░░░░░░░██░░░░░░▀█─▄█░░░░█ ─▀█░░▄█░░░░░░░▄▄▄░░░░▀░░░░░░░███░░░░█▀ ──█▄░█░░░░░▄███████▄░░░░░░░░░█▀░░░░▄...
cc1plus: error: '::main' must return 'int'
s378565071
p03679
C++
#include <vector> #include <iostream> #include <algorithm> #include <functional> #include <string> #include <limits.h> #include <cmath> #include <queue> #include <map> #include <iomanip> #include <random> #include <fstream> #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.14159265358979323846 #define MOD 1000...
a.cc: In function 'int main()': a.cc:70:7: error: 'B' was not declared in this scope 70 | if (B<=A){cout << "delicious";} | ^ a.cc:70:10: error: 'A' was not declared in this scope 70 | if (B<=A){cout << "delicious";} | ^ a.cc:71:17: error: 'X' was not declared in this scope 71 | ...
s483144331
p03679
C++
#include<bits/stdc++.h> #define rep(i,n) for(int i = 0; i < (n); i++) #define ll long long using namespace std; int main(){ int x,a,b; cin>>x>>a>>b; if(a>b){ cout<<"deliciout"; }else if(x+a=>b){ cout<<"safe"; }else{ cout<<"dangerous"; } return 0; }
a.cc: In function 'int main()': a.cc:14:16: error: expected primary-expression before '>' token 14 | }else if(x+a=>b){ | ^
s139346501
p03679
C++
#include <bits/stdc++.h> #define rep(var,cnt) for(int (var)=0; (var)<(int)(cnt); ++(var)) #define Rep(var,init,cnt) for(int (var)=(init); (var)<(cnt); ++(var)) #define ran(var,vec) for(auto &(var):(vec)) #define all(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() #define SORT(v) sort(all(v)) #define RS...
a.cc: In function 'int main()': a.cc:88:16: error: 'x' was not declared in this scope 88 | else if(c-b<=x) cout<<"safe"<<endl; | ^
s331638233
p03679
C++
#include <stdlib.h> #include <bits/stdc++.h> #include <math.h> using namespace std; using ll=long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) inline constexpr ll gcd(ll a,ll b){if(!a||!b)return 0;while(b){ll c=b;b=a%b;a=c;}return a;} inline constexpr ll lcm(ll a,ll b){if(!a||!b)return 0;return a*b/gcd(a,...
a.cc: In function 'int main()': a.cc:17:15: error: 'x' was not declared in this scope 17 | if(b-c<0&&x>=b-c){ | ^
s916586232
p03679
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ long int x, a, b; cin >> x >> >> a >> b; if(b<=a){cout << "delicious" << endl;} else if(b<=a+x){cout << "safe" << endl;} else{cout << "dangerous" << endl;} return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: expected primary-expression before '>>' token 7 | cin >> x >> >> a >> b; | ^~
s382691391
p03679
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ long int x, a, b; cin x >> >> a >> b; if(b<=a){cout << "delicious" << endl;} else if(b<=a+x){cout << "safe" << endl;} else{cout << "dangerous" << endl;} return 0; }
a.cc: In function 'int main()': a.cc:7:6: error: expected ';' before 'x' 7 | cin x >> >> a >> b; | ^~ | ;
s060491962
p03679
C++
data = input().split(" ") for i in range(3): data[i] = int(data[i]) a = data[0] + data[1] - data[2] if data[2] <= data[1]: print("delicious") elif a >= 0: print("safe") else: print("dangerous")
a.cc:1:1: error: 'data' does not name a type 1 | data = input().split(" ") | ^~~~
s093807599
p03679
Java
import java.util.*; public class Main{ public static void main(Sting[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int date = B - A; if(date <= 0){ System.out.println("delicious"); }else if(date <= X){ System.ou...
Main.java:4: error: cannot find symbol public static void main(Sting[] args){ ^ symbol: class Sting location: class Main 1 error
s348682980
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int X,A,B; cin >> X >> A >> B; string k = "safe";//safe dangerous if(B - A <= 0) { k = "delicious"; } else if(B - A > X) { k = "dangerous" } cout << k << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:32: error: expected ';' before '}' token 14 | k = "dangerous" | ^ | ; 15 | } | ~
s547201262
p03679
C++
#include<stdio .h> int main() { intx,a,b; scanf(”%d%d%d”, &x, &a, &b); if (−a + b <= 0)printf(”delicious\n”); else if (−a + b <= x)printf(”safe\n”); else printf (”dangerous\n”); }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<stdio .h> int main() | ^~~ a.cc:1:9: fatal error: stdio .h: No such file or directory 1 | #include<stdio .h> int main() | ^~~~~~~~~~ compilation terminated.
s021138198
p03679
C++
#include<bits/stdc++.h> using namespace std; int main() { long long int n,m,p; cin>>n>>m>>p; if(m>n&&p<n||n<m&&p>n) { cout<<"safe"<<endl; } if(n>=m&&n>=p) { cout<<"delicious"<<endl; } if(n<m&&P>n) { cout<<"dangerous"<<endl; } }
a.cc: In function 'int main()': a.cc:15:12: error: 'P' was not declared in this scope 15 | if(n<m&&P>n) | ^
s313220968
p03679
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (b - a < 0) { cout << "delicious" << endl; return 0; } if (b - a <=x) cout << "safe" << endl; else cout << "dangerous" << endl; }
a.cc: In function 'int main()': a.cc:10:15: error: 'x' was not declared in this scope 10 | if (b - a <=x) | ^
s311665247
p03679
C++
#include <iostream> #include <vector> #include <algorithm> #include <string.h> #include <iomanip> #include <map> #include <cstdlib> using namespace std; int main() { int x, a, b; cin >>x >> a >> b; if (-a + b <= 0) { cout << "delicious" << endl; } else if (-a + b <= X) { cout...
a.cc: In function 'int main()': a.cc:17:24: error: 'X' was not declared in this scope 17 | else if (-a + b <= X) | ^
s391393960
p03679
C++
#include <iostream> #include <vector> #include <algorithm> #include <string.h> #include <iomanip> #include <map> #include <cstdlib> using namespace std; int main() { int x, a, b; cin << x << a << b; if (-a + b <= 0) { cout << "delicious" << endl; } else if (-a + b <= X) { cou...
a.cc: In function 'int main()': a.cc:12:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 12 | cin << x << a << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:12:9: no...
s078287223
p03679
C++
#include <iostream> #include <vector> #include <algorithm> #include <string.h> #include <iomanip> #include <map> #include <cstdlib> using namespace std; int main() { int x, a, b; cin << a << b << c; if (-a + b <= 0) { cout << "delicious" << endl; } else if (-a + b <= X) { cou...
a.cc: In function 'int main()': a.cc:12:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 12 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:12:9: no...