submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s489090060 | p03802 | C++ | #include <bits/stdc++.h>
#define RI register int
#define lc (x << 1)
#define rc (x << 1 | 1)
using namespace std;
int const MAXN = 5e7 + 5;
int MaxNode = 0, n, _2n;
struct Edges { int to, next; } e[MAXN * 2];
int head[MAXN], tot;
int Dfn[MAXN], Col[MAXN], col, Low[MAXN], cnt, stk[MAXN], top, vis[MAXN];
struct nodes {... | a.cc: In function 'void Tarjan(int)':
a.cc:57:11: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
57 | for (RI i = head[k]; i; i = e[i].next)
| ^
a.cc: In function 'bool Check(int)':
a.cc:71:11: warning: ISO C++17 does not allow 'register' storage class specifier [... |
s749741543 | p03802 | C++ | #include <bits/stdc++.h>
#define RI register int
#define lc (x << 1)
#define rc (x << 1 | 1)
using namespace std;
int const MAXN = 1e8 + 5;
int MaxNode = 0, n, _2n;
struct Edges { int to, next; } e[MAXN * 2];
int head[MAXN], tot;
int Dfn[MAXN], Col[MAXN], col, Low[MAXN], cnt, stk[MAXN], top, vis[MAXN];
struct nodes {... | a.cc: In function 'void Tarjan(int)':
a.cc:57:11: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
57 | for (RI i = head[k]; i; i = e[i].next)
| ^
a.cc: In function 'bool Check(int)':
a.cc:71:11: warning: ISO C++17 does not allow 'register' storage class specifier [... |
s490367933 | p03802 | C++ | #include <bits/stdc++.h>
#define RI register int
#define lc (x << 1)
#define rc (x << 1 | 1)
using namespace std;
int const MAXN = 1e8 + 5;
int MaxNode = 0, n, _2n;
struct Edges { int to, next; } e[MAXN * 2];
int head[MAXN], tot;
int Dfn[MAXN], Col[MAXN], col, Low[MAXN], cnt, stk[MAXN], top, vis[MAXN];
struct nodes {... | a.cc: In function 'void Tarjan(int)':
a.cc:57:11: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
57 | for (RI i = head[k]; i; i = e[i].next)
| ^
a.cc: In function 'bool Check(int)':
a.cc:71:11: warning: ISO C++17 does not allow 'register' storage class specifier [... |
s228825212 | p03802 | C++ | #include <bits/stdc++.h>
using namespace std;
// template {{{
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define lb lower_bound
#define ub upper_bound
#define f first
#define s second
#define resz resize
#define sz(x) int((x).size())
#define all(x) (x).begin(), (x).end()
... | a.cc:133:21: error: reference to 'monostate' is ambiguous
133 | template<typename W=monostate> struct wedge {
| ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:80,
from a.cc:1:
/usr/include/c++/14/variant:1237:10: note: candidates are: 'str... |
s921226099 | p03802 | C++ | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ll long long
#define pii pair <int, int>
#define X first
#define Y second
using namespace std;
const int OFF = (1 << 15);
vector <int> ve[OFF * 2];
int bio[2 * OFF], low[2 * OFF], scc[2 * OFF];
int cn... | a.cc:18:18: error: 'int index [65536]' redeclared as different kind of entity
18 | int index[2 * OFF];
| ^
In file included from /usr/include/string.h:462,
from /usr/include/c++/14/cstring:43,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
... |
s683548500 | p03802 | C++ | #include <bits/stdc++.h>
#include <windows.h>
#define il inline
#define ri register int
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
#define MAXN 100050
#define MAXM
#define MOD
#define INF (1<<25)
#define eps (1e-6)
#define mid ((l+r)>>1)
#define all_edge(u) for(vector <int> :: iterat... | a.cc:2:10: fatal error: windows.h: No such file or directory
2 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s369339638 | p03802 | C++ | #include<stack>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int n,tot,etot,ans,_clock,cnt,head[100010],to[800010],nxt[800010],scc[100010],low[100010],dfn[100010],idx[80010];
stack<int>Stack;
struct node{
int idx,val;
friend bool operator<(node a,node b){
return a.val<b.val;
}
}a[200... | a.cc: In function 'int rd()':
a.cc:18:16: error: 'isdigit' was not declared in this scope
18 | while(!isdigit(c));
| ^~~~~~~
|
s114541647 | p03802 | C++ |
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define llu unsigned long long
#define ld double
#define llu unsigned long long
#define rep(i,x,y) for(ll i=(ll)(x);i<(ll)(y);++i)
#define For(i,x,y) for(ll i=(ll)(x);i<=(ll)(y);++i)
#define FOr(i,x,y) for(ll i=(ll)(x);i>=(ll)(y);--i)
#define pi aco... | a.cc: In function 'void build(long long int, long long int, long long int&)':
a.cc:60:19: error: 'id' was not declared in this scope; did you mean 'ld'?
60 | p=id[l]; mn[p]=mx[p]=a[l];
| ^~
| ld
a.cc:60:33: error: 'mn' was not declared in this sc... |
s456028534 | p03802 | C++ | #include<bits/stdc++.h>
#define maxn 10005
using namespace std;
typedef long long LL;
int read()
{
char c;int sum=0,f=1;c=getchar();
while(c<'0' || c>'9'){if(c=='-')f=-1;c=getchar();}
while(c>='0' && c<='9'){sum=sum*10+c-'0';c=getchar();}
return sum*f;
}
int n;
struct node{
int x,id,rev;
friend bool operator <(no... | a.cc:20:18: error: 'int index' redeclared as different kind of entity
20 | int root,top,sum,index,s[maxn*2],dfn[maxn*2],low[maxn*2],bel[maxn*2];
| ^~~~~
In file included from /usr/include/string.h:462,
from /usr/include/c++/14/cstring:43,
from /usr/include/x86... |
s691610988 | p03802 | C++ | #include <cstdio>
#include <cstring>
#include <algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,a,b) for(int i=a;i>=b;i--)
#define rep(i,a) for(int i=last[a];i;i=next[i])
using namespace std;
int read() {
char ch;
for(ch=getchar();ch<'0'||ch>'9';ch=getchar());
int x=ch-'0';
for(ch=getchar();ch>='0'&... | a.cc: In function 'void add(int, int)':
a.cc:25:18: error: reference to 'next' is ambiguous
25 | t[++l]=y;next[l]=last[x];last[x]=l;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/algorithm:60,
from a.... |
s289561545 | p03802 | C++ | #include <cstdio>
#include <cstring>
#include <algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,a,b) for(int i=a;i>=b;i--)
#define rep(i,a) for(int i=last[a];i;i=next[i])
using namespace std;
int read() {
char ch;
for(ch=getchar();ch<'0'||ch>'9';ch=getchar());
int x=ch-'0';
for(ch=getchar();ch>='0'&... | a.cc: In function 'void add(int, int)':
a.cc:25:18: error: reference to 'next' is ambiguous
25 | t[++l]=y;next[l]=last[x];last[x]=l;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/algorithm:60,
from a.... |
s562462137 | p03802 | C++ | #include<cmath>
#include<cstdio>
#include<cstring>
#include<algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,b,a) for(int i=b;i>=a;i--)
#define efo(i,v,u) for(int i=last[v],u=to[last[v]];i;i=next[i],u=to[i])
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define mset(a,x) memset(a,... | a.cc: In function 'void link(int, int)':
a.cc:31:19: error: reference to 'next' is ambiguous
31 | to[++m]=v,next[m]=last[u],last[u]=m;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/bits/specfun.h:43,
... |
s782622534 | p03802 | C++ | #include<cmath>
#include<cstdio>
#include<cstring>
#include<algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,b,a) for(int i=b;i>=a;i--)
#define efo(i,v,u) for(int i=last[v],u=to[last[v]];i;i=next[i],u=to[i])
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define mset(a,x) memset(a,... | a.cc: In function 'void link(int, int)':
a.cc:31:19: error: reference to 'next' is ambiguous
31 | to[++m]=v,next[m]=last[u],last[u]=m;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/bits/specfun.h:43,
... |
s384278566 | p03802 | C++ | #include<cmath>
#include<cstdio>
#include<cstring>
#include<algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,b,a) for(int i=b;i>=a;i--)
#define efo(i,v,u) for(int i=last[v],u=to[last[v]];i;i=next[i],u=to[i])
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define mset(a,x) memset(a,... | a.cc: In function 'void link(int, int)':
a.cc:31:19: error: reference to 'next' is ambiguous
31 | to[++m]=v,next[m]=last[u],last[u]=m;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/bits/specfun.h:43,
... |
s494708757 | p03802 | C++ | #include <cstdio>
#include <cstring>
#include <algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,a,b) for(int i=a;i>=b;i--)
#define rep(i,a) for(int i=last[a];i;i=next[i])
using namespace std;
int read() {
char ch;
for(ch=getchar();ch<'0'||ch>'9';ch=getchar());
int x=ch-'0';
for(ch=getchar();ch>='0'&... | a.cc: In function 'void add(int, int)':
a.cc:25:18: error: reference to 'next' is ambiguous
25 | t[++l]=y;next[l]=last[x];last[x]=l;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/algorithm:60,
from a.... |
s972776150 | p03802 | C++ | #include<bits/stdc++.h>
#define fo(i,a,b) for(i=a;i<=b;i++)
#define fd(i,a,b) for(i=a;i>=b;i--)
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
typedef long long ll;
using namespace std;
inline int read(){
int n=0;char c;
for(c=getchar();c<'0'||c>'9';c=getchar());
for(;c>='0'&&c<='9';c=getchar())n=n*10+c-48;
... | a.cc: In function 'void add(int, int)':
a.cc:29:9: error: reference to 'next' is ambiguous
29 | next[++cnt]=k[x],k[x]=cnt,g[cnt]=y;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/algorithm:60,
from /usr/include... |
s073880772 | p03802 | C++ | #include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int n,x[N],sa[N],rank[N];
bool cmp(int a,int b){return x[a]<x[b];}
int cnt,inv[N];
vector<int> e[N];
struct segment_tree{
int id[N];
#define lc x<<1
#define rc x<<1|1
void init(int x,int l,int r,bool tp){
if (l==r) return void(id[x]=(tp?inv[l]:l));
... | a.cc: In function 'int main()':
a.cc:84:34: error: reference to 'rank' is ambiguous
84 | for (int i=1;i<=n+n;i++) rank[sa[i]]=i;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
from /usr/include/c++/14/bits/stl_algobase.h:64,
... |
s487876642 | p03802 | C++ | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define an size()
using namespace std;
const ll maxn=1e4+900;
ll x[maxn][2];
set<pair<ll,ll> > st;
char viz[maxn];
ll m;
stack<ll> tagh;
bool bfs(ll a)
{
set<pair<ll,ll> > ::iterator it,itt;
... | a.cc: In function 'bool bfs(long long int)':
a.cc:52:26: error: 'class std::stack<long long int>' has no member named 'persh'
52 | tagh.persh(er);
| ^~~~~
a.cc:53:26: error: 'class std::stack<long long int>' has no member named 'persh'
53 | st... |
s155824996 | p03802 | C++ | hamiltonian paths are np complete so this problem is impossible | a.cc:1:1: error: 'hamiltonian' does not name a type
1 | hamiltonian paths are np complete so this problem is impossible
| ^~~~~~~~~~~
|
s802491587 | p03802 | C++ | #include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <array>
#include <map>
#include <queue>
#include <limits.h>
#include <set>
#include <stack>
#include <random>
#include <complex>
#include <unordered_map>
#de... | a.cc: In function 'int main()':
a.cc:177:43: error: no matching function for call to 'max(int, __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >::difference_type)'
177 | rep(j, max(i+1,upper_bound(ALL(ff) ,MP(ff[i].first + bm,0)) - ff.begin()), n * ... |
s311277306 | p03802 | C++ | #include<bits/stdc++.h>
using namespace std;
const int MAXN=2e4+5;
const int MAXM=40000010;
const int MAX=40000000;
int n;
struct node
{
int x,y;
}sv[MAXN];
struct Edge
{
int to,next;
}edge[MAXM];
int head[MAXN],tot;
void init()
{
tot=0;
memset(head,-1,sizeof(head));
}
void addedge(int u,int v)
{
edge[tot].to=v;ed... | a.cc: In function 'bool judge(int)':
a.cc:90:33: error: return-statement with no value, in function returning 'bool' [-fpermissive]
90 | return;
| ^~~~~~
|
s456871202 | p03802 | C++ | /*************************************************************************
> File Name: test.cpp
> Author: Akira
> Mail: qaq.febr2.qaq@gmail.com
************************************************************************/
#include<bits/stdc++.h>
typedef long long LL;
typedef unsigned long long ULL;
typedef... | a.cc: In function 'int main()':
a.cc:104:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
104 | ans = mid;
| ^~~
| abs
|
s581087793 | p03802 | C++ | #include<bits/stdc++.h>
using namespace std;
const int MAXN=2e4+5;
const int MAXM=400000010;
int n;
struct node
{
int x,y;
}sv[MAXN];
struct Edge
{
int to,next;
}edge[MAXM];
int head[MAXN],tot;
void init()
{
tot=0;
memset(head,-1,sizeof(head));
}
void addedge(int u,int v)
{
edge[tot].to=v;edge[tot].next=head[u];he... | /tmp/ccVHgc1e.o: in function `init()':
a.cc:(.text+0x6): relocation truncated to fit: R_X86_64_PC32 against symbol `tot' defined in .bss section in /tmp/ccVHgc1e.o
a.cc:(.text+0x1b): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccVHgc1e.o
/tmp/ccVHgc1e.o: in function ... |
s759595772 | p03802 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <numeric>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <list>
#include <cmath>
#include <bitset>
#include <cassert>
#... | a.cc:32:11: error: 'clas' has not been declared
32 | template <clas T = int> inline T readInt();
| ^~~~
a.cc:32:20: error: expected primary-expression before 'int'
32 | template <clas T = int> inline T readInt();
| ^~~
a.cc:32:20: error: expected '>' before 'int'
a.cc:32:3... |
s574603434 | p03802 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <numeric>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <list>
#include <cmath>
#include <bitset>
#include <casert>
#i... | a.cc:17:10: fatal error: casert: No such file or directory
17 | #include <casert>
| ^~~~~~~~
compilation terminated.
|
s321320353 | p03802 | C++ | //satyaki3794
#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define MOD (1000000007LL)
#define LEFT(n) (2*(n))
#define RIGHT(n) (2*(n)+1)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> ii;
typedef pair<int, ii> iii;
ll pwr(ll base, ll p, ll mod = MOD){
ll ans = 1;wh... | a.cc: In function 'int main()':
a.cc:172:19: error: aggregate 'main()::rlimit rl' has incomplete type and cannot be defined
172 | struct rlimit rl;
| ^~
a.cc:173:28: error: 'RLIMIT_STACK' was not declared in this scope
173 | int result = getrlimit(RLIMIT_STACK, &rl);
| ... |
s723242151 | p03802 | C++ | #include <bits/stdc++.h>
#define N 30010
using namespace std;
typedef long long ll;
inline ll read()
{
ll x=0,f=1; char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-'0'; ch=getchar();}
return x*f;
}
struct edge
{
int u,v,next;
}vs[N*30*2];
int n,st[N*7],ee,l... | a.cc: In function 'bool check(ll)':
a.cc:95:54: error: unable to find numeric literal operator 'operator""\U0000ff1b'
95 | for(int i=1;i<=las;i++) vis[i]=dfn[i]=low[i]=0;
| ^~~
a.cc:96:21: error: 'i' was not declared in this scope
96 | for... |
s315872871 | p03802 | C++ | #include <bits/stdc++.h>
#define N 30010
using namespace std;
typedef long long ll;
inline ll read()
{
ll x=0,f=1; char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-'0'; ch=getchar();}
return x*f;
}
struct edge
{
int u,v,next;
}vs[N*30*2];
int n,st[N*7],ee,l... | a.cc: In function 'bool check(ll)':
a.cc:95:55: error: expected ';' before 'for'
95 | for(int i=1;i<=las;i++) vis[i]=dfn[i]=low[i]=0
| ^
| ;
96 | for(int i=1;i<=las;i++) if(!dfn[... |
s489748858 | p03802 | C++ | #include <cstdio>
#include <iostream>
#include <queue>
#include <algorithm>
#include <cstring>
#define X first
#define Y second
#define MK std::make_pair
typedef std::pair<int, int> pii;
template <typename T> inline bool chkmax(T &x, T y) {
return x<y? x=y, true : false;
}
template <typename T> inline bool chkmi... | a.cc: In function 'bool check(int)':
a.cc:146:3: error: 'assert' was not declared in this scope
146 | assert(tote < MAXM);
| ^~~~~~
a.cc:6:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
5 | #include <cstring>
+++ |+#include <cassert>
6 |... |
s364080237 | p03802 | C++ | #include<bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
int N, X[20000], Y[20000];
bitset< 20000 > graph[20000];
bool used[20000];
int cmp[20000];
int order[20000];
int ptr;
void dfs(int idx)
{
if(used[idx]++) return;
for(int i = 0; i < N * 2; i++) if(graph[idx][i]) dfs(i);
order[ptr++] = idx;
... | a.cc: In function 'void dfs(int)':
a.cc:17:14: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
17 | if(used[idx]++) return;
| ~~~~~~~~^
|
s493724399 | p03802 | C++ | #include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#define SIZE 20005
#define BT 1024*32*2
#define MX 1000005
#define INF 1000000005
using namespace std;
int sz;
vector <int> vec[MX];
vector <int> rvec[MX];
struct segtree
{
int seg[BT];
int mum;
void init(int n)
{
m... | a.cc: In function 'int main()':
a.cc:158:23: error: no matching function for call to 'min(int)'
158 | int l=-1,r=min(INF/(n-1))+1;
| ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
from a.cc:3:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note... |
s935746531 | p03802 | C++ | #include <cstdio>
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;
const int MAXN = 20001;
int dn;
vector<int> graph[MAXN];
int up[MAXN], visit[MAXN], vtime;
vector<int> stk;
int scc_idx[MAXN], scc_cnt;
void dfs(int nod) {
up[nod] = visit[nod] = ++vtime;
stk.push_back(nod);
for (int n... | a.cc: In function 'void get_scc()':
a.cc:39:9: error: 'memset' was not declared in this scope
39 | memset(visit, 0, sizeof(visit));
| ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
4 | #include <algorithm>
+++ |+#i... |
s533934273 | p03803 | C++ | #include <iostream.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int flag = 0;
if(a == 1 && b !=1){
cout<<"Alice"<<endl;
flag = 1;
}else if(b == 1 && a !=1){
cout<<"Bob"<<endl;
flag = 1;
}else if(a==1 && b==1){
cout<<"Draw"<<endl;
flag = 1;
}
if(flag == 0){
if(a > b){
cout<<"Alice"<... | a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s522279611 | p03803 | C++ | #include<iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if(a = b){
cout << "Draw";
}
else if(a != 1 && b != 1){
if(a > b){
cout << "Alice";
}
else{
cout << "Bob";
}
}
else if(a = 1||b = 1){
if(a = 1){
cout << "Alice";
}
else if(b = 1)... | a.cc: In function 'int main()':
a.cc:18:16: error: lvalue required as left operand of assignment
18 | else if(a = 1||b = 1){
| ~^~~
|
s023536725 | p03803 | 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 a,b;
cin >> a >> b;
if(a>b&&b!=!) cout << "Alice" << endl;
else if(a==b) cout << "Dra... | a.cc: In function 'int main()':
a.cc:17:15: error: expected primary-expression before ')' token
17 | if(a>b&&b!=!) cout << "Alice" << endl;
| ^
|
s093003891 | p03803 | C++ | #include<iostream>
using namespace std;
int sum(int a,int b){
if(a==b)
return "Draw";
else if(a!=1||b!=1){
if(a>b)
return "Alice";
else
return "Bob";
}
else{
if(a==1)
return "Alice";
else
return "Bob";
}
}
int main(){
int a,b;
cin>>a>>b;
cout<<sum(a,b);
return 0... | a.cc: In function 'int sum(int, int)':
a.cc:5:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
5 | return "Draw";
| ^~~~~~
| |
| const char*
a.cc:8:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
8 | re... |
s913945388 | p03803 | C++ | #include<iostream>
#include<string>
using namespace std;
int sum(int a,int b){
if(a==b)
return g;
else if(a!=1||b!=1){
if(a>b)
return h;
else
return t;
}
else{
if(a==1)
return h;
else
return t;
}
}
int main(){
int a,b;
string g='Alice',h='Bob',t='Draw';
cin>>a>... | a.cc:23:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
23 | string g='Alice',h='Bob',t='Draw';
| ^~~~~~~
a.cc:23:22: warning: multi-character character constant [-Wmultichar]
23 | string g='Alice',h='Bob',t='Draw';
| ^~~~~
a.cc:... |
s785247442 | p03803 | C++ | #include<iostream>
#include<string>
using namespace std;
int sum(int a,int b){
string g="Draw",h="Alice",t="Bob";
if(a==b)
return g;
else if(a!=1||b!=1){
if(a>b)
return h;
else
return t;
}
else{
if(a==1)
return h;
else
return t;
}
}
int main(){
int a,b;
cin>>a>>b;... | a.cc: In function 'int sum(int, int)':
a.cc:7:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in return
7 | return g;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
a.cc:10:14: error: cannot convert 'std::... |
s997472707 | p03803 | C++ | #include<iostream>
#include<string>
using namespace std;
int sum(int a,int b){
string g='Draw',h='Alice',t='Bob';
if(a==b)
return g;
else if(a!=1||b!=1){
if(a>b)
return h;
else
return t;
}
else{
if(a==1)
return h;
else
return t;
}
}
int main(){
int a,b;
cin>>a>>b;... | a.cc:5:12: warning: multi-character character constant [-Wmultichar]
5 | string g='Draw',h='Alice',t='Bob';
| ^~~~~~
a.cc:5:21: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
5 | string g='Draw',h='Alice',t='Bob';
| ^~~~~~~
a.cc:5:... |
s911585535 | p03803 | C++ | #include<iostream>
#include<string>
using namespace std;
int sum(int a,int b){
string g='Draw',h='Alice',t='Bob';
if(a==b)
return g;
else if(a!=1||b!=1){
if(a>b)
return h;
else
return t;
}
else{
if(a==1)
return 'Alice';
else
return 'Bob';
}
}
int main(){
int a,b;
... | a.cc:5:12: warning: multi-character character constant [-Wmultichar]
5 | string g='Draw',h='Alice',t='Bob';
| ^~~~~~
a.cc:5:21: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
5 | string g='Draw',h='Alice',t='Bob';
| ^~~~~~~
a.cc:5:... |
s305830942 | p03803 | C++ | #include <iostream>
#include <string>
#include <set>
#include <regex>
using namespace std;
int main () {
int n, m;
cin >> n, m;
n = (n!=1 ? n-1 : 13);
m = (m1=1 ? m-1 : 13);
cout << (n == m ? "Draw" : (n > m ? "Alice" : "Bob")) << endl;
} | a.cc: In function 'int main()':
a.cc:11:8: error: 'm1' was not declared in this scope; did you mean 'm'?
11 | m = (m1=1 ? m-1 : 13);
| ^~
| m
|
s029457866 | p03803 | C++ | #include<iostream>
using namespace std;
int sum(int a,int b){
if(a==b)
return "Draw";
else if(a!=1||b!=1){
if(a>b)
return "Alice";
else
return "Bob";
}
else{
if(a==1)
return "Alice";
else
return "Bob";
}
}
int main(){
int a,b;
cin>>a>>b;
cout<<sum(a,b);
return 0... | a.cc: In function 'int sum(int, int)':
a.cc:5:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
5 | return "Draw";
| ^~~~~~
| |
| const char*
a.cc:8:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
8 | re... |
s121891760 | p03803 | C++ | #include<iostream>
using namespace std;
int sum(int a,int b){
if(a=b)
return "Draw";
else if(a!=1||b!=1){
if(a>b)
return "Alice";
else
return "Bob";
}
else
if(a==1)
return "Alice";
else
return "Bob";
}
int main(){
int a,b;
cin>>a>>b;
cout<<sum(a,b);
return 0;
} | a.cc: In function 'int sum(int, int)':
a.cc:5:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
5 | return "Draw";
| ^~~~~~
| |
| const char*
a.cc:8:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
8 | re... |
s546317784 | p03803 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
int x=1;
if(a==b){
cout << "DRAW" << endl;
}
}else if(a==x || a>b){
cout << "Alice" << endl;
}else if(b==x || a<b){
cout << "Bob" << endl;
}
return 0;
} | a.cc:11:10: error: expected unqualified-id before 'else'
11 | }else if(a==x || a>b){
| ^~~~
a.cc:13:10: error: expected unqualified-id before 'else'
13 | }else if(b==x || a<b){
| ^~~~
a.cc:17:9: error: expected unqualified-id before 'return'
17 | return 0;
... |
s765182683 | p03803 | C++ | int main()
{
int a, b;
cin >> a >> b;
if (a==b||a==b==1)
cout << "Draw";
else if (a > b&&b!=1 ||( a == 1&& b>a))
cout << "Alice";
else if (a < b ||( b == 1&&a>b))
cout << "Bob";
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
4 | cin >> a >> b;
| ^~~
a.cc:6:17: error: 'cout' was not declared in this scope
6 | cout << "Draw";
| ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope
... |
s572758876 | p03803 | C++ | using namespace std;
int main()
{
int n,m;
cin>>n>>m;
if(n==1)
{
n=14;
}
if(m==1)
{
m=14;
}
if(n==m)
{
cout<<"Draw";
}
else if(n<m)
{
cout<<"Bob";
}
else
{
cout<<"Alice";
}
return 0; } | a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' was not declared in this scope
5 | cin>>n>>m;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:16:10: erro... |
s740436570 | p03803 | C++ | #include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
if(A>B)
{
if(B==1)
cout<<"Bob";
else
cout<<"Alice";
}
else if(B>A)
{a
if(A==1)
cout<<"Alice";
else
cout<<"Bob";
}
else
cout<<"Draw";
return 0;
} | a.cc: In function 'int main()':
a.cc:17:10: error: 'a' was not declared in this scope
17 | {a
| ^
a.cc:20:17: error: expected '}' before 'else'
20 | else
| ^~~~
a.cc:17:9: note: to match this '{'
17 | {a
| ^
a.cc: At global scop... |
s760591565 | p03803 | C++ | #include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
if(A>B)
{
if(B==1)
cout<<"Bob";
else
cout<<"Alice";
}
else if(B>A)
{a
if(A==1)
cout<<"Alice";
else
cout<<"Bob";
}
else
cout<<"Draw";
return 0;
} | a.cc: In function 'int main()':
a.cc:17:10: error: 'a' was not declared in this scope
17 | {a
| ^
a.cc:20:17: error: expected '}' before 'else'
20 | else
| ^~~~
a.cc:17:9: note: to match this '{'
17 | {a
| ^
a.cc: At global scop... |
s641745501 | p03803 | C | #include <iostream>
#include <bits/c++io.h>
#include <algorithm>
#include <iomanip>
#include <math.h>
using namespace std;
int main()
{
int x,y;
cin>>x>>y;
if(x==y)
cout<<"Draw"<<endl;
else if(x==1) cout<<"Alice"<<endl;
else if(y==1) cout<<"Bob"<<endl;
else {
if(x>y) cout<<"Alice"<<endl;
else... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s348859291 | p03803 | C++ | #include<bits/stdc++>h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==1){
a+=13;
}
if(b==1){
b+=13;
}
if(a>b){cout<<"Alice"<<endl;}
else if(a==b){cout<<"Draw"<<endl;}
else{cout<<"Bob"<<endl;}
} | a.cc:1:23: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++>h>
| ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
1 | #include<bits/stdc++>h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s343917895 | p03803 | C++ | 1 #include<bits/stdc++.h>
2 using namespace std;
3 #define ll long long
4 int main()
5 {
6 int n,m;
7 cin>>n>>m;
8 if(n==1)
9 {
10 n=14;
11 }
12 if(m==1)
13 {
14 m=14;
15 }
16 if(n==m)
17 {
18 cout<<"Draw";
19 }
20 else if(n<m)
21 {
22... | a.cc:1:4: error: stray '#' in program
1 | 1 #include<bits/stdc++.h>
| ^
a.cc:3:4: error: stray '#' in program
3 | 3 #define ll long long
| ^
a.cc:1:2: error: expected unqualified-id before numeric constant
1 | 1 #include<bits/stdc++.h>
| ^
a.cc:3:2: error: expected unqualified-id... |
s160842453 | p03803 | C++ | 1 #include<bits/stdc++.h>
2 using namespace std;
4 int main()
5 {
6 int n,m;
7 cin>>n>>m;
8 if(n==1)
9 {
10 n=14;
11 }
12 if(m==1)
13 {
14 m=14;
15 }
16 if(n==m)
17 {
18 cout<<"Draw";
19 }
20 else if(n<m)
21 {
22 cout<<"Bob";
2... | a.cc:1:4: error: stray '#' in program
1 | 1 #include<bits/stdc++.h>
| ^
a.cc:1:2: error: expected unqualified-id before numeric constant
1 | 1 #include<bits/stdc++.h>
| ^
a.cc:4:2: error: expected unqualified-id before numeric constant
4 | 4 int main()
| ^
|
s333564425 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
signed main()
{
int A,B;
cin >> A >> B;
if(A==1) A = 14;
if(B==1) B = 14;
cout << (A>B ? "Alice": (B>A ? "Bob" : "Draw")
} | a.cc: In function 'int main()':
a.cc:13:49: error: expected ')' before '}' token
13 | cout << (A>B ? "Alice": (B>A ? "Bob" : "Draw")
| ~ ^
| )
14 | }
| ~ ... |
s002767135 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pa... | a.cc: In function 'int main()':
a.cc:70:3: error: 'v' was not declared in this scope
70 | v|| a < b)
| ^
|
s759922073 | p03803 | C++ | //Bismillahir Rahmanir Rahim
#include <iostream>
#define ll long long
#define ull unsigned long long
#define pb push_back
#define fastread() (ios_base:: sync_with_stdio(false),cin.tie(NULL));
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if((a == b)) {
... | a.cc:32:5: error: redefinition of 'int main()'
32 | int main()
| ^~~~
a.cc:8:5: note: 'int main()' previously defined here
8 | int main()
| ^~~~
|
s195337140 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a , b ;
cin >> a >> b ;
if ( a ==1){
a=14;
}
if ( b ==1){
b=14;
}
cout << ( a<b ? "Bob" : ( a=b ? "Draw" : "Alice")) << endl;
}
| a.cc: In function 'int main()':
a.cc:13:33: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
13 | cout << ( a<b ? "Bob" : ( a=b ? "Draw" : "Alice")) << endl;
| ~~^~~~~~~~~~~~~~~~~~
| |
| ... |
s068672403 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a , b ;
cin >> a >> b ;
if ( a ==1){
a=14
}
if ( b ==1){
b=14
}
cout << ( a<b ? "Bob" : ( a=b ? "Draw" : "Alice")) << endl;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before '}' token
8 | a=14
| ^
| ;
9 | }
| ~
a.cc:11:9: error: expected ';' before '}' token
11 | b=14
| ^
| ;
12 | }
| ~
a.cc:13:33: error: invalid ... |
s776985683 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a,b;
cin >> a >> b;
if(a==b)cout << "Draw" <<endl;
if(a==1&&(2<=b&&b<=13))cout << "Alice" <<endl;
if(b==1&&(2<=a&&a<=13))cout << "Bob" <<endl;
if(a<b&&(a=!1&&b=!13))cout << "Bob" <<endl;
if(b<a&&(b=!1&&a=!13))cout... | a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
11 | if(a<b&&(a=!1&&b=!13))cout << "Bob" <<endl;
| ~~^~~
a.cc:12:17: error: lvalue required as left operand of assignment
12 | if(b<a&&(b=!1&&a=!13))cout << "Alcie" <<endl;
| ... |
s005417474 | p03803 | C++ | #include <bits/stdc++.h>
#define pi 3.14159
using namespace std;
typedef long long LL;
const LL MOD = 1e9 + 7;
const int N = 1e5 + 7, M = 1e7, OO = 0x3f3f3f3f;
#define AC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin.sync_with_stdio(0);
int main()
{
int x,y;
cin>>x>>y;
if(x==1){
cout<<"Alice";}
else if(y=... | a.cc:18:1: error: expected unqualified-id before 'if'
18 | if(x>y)
| ^~
a.cc:20:1: error: expected unqualified-id before 'else'
20 | else if(x<y)
| ^~~~
a.cc:22:1: error: expected unqualified-id before 'else'
22 | else
| ^~~~
a.cc:26:5: error: expected unqualified-id before 'return'
26 | ... |
s357637817 | p03803 | C++ | #include <bits/stdc++.h>
#define pi 3.14159
using namespace std;
typedef long long LL;
const LL MOD = 1e9 + 7;
const int N = 1e5 + 7, M = 1e7, OO = 0x3f3f3f3f;
#define AC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin.sync_with_stdio(0);
int main()
{
int x,y;
cin>>x>>y;
if(x==1){
cout<<"Alice";
else if(y==... | a.cc: In function 'int main()':
a.cc:14:5: error: expected '}' before 'else'
14 | else if(y==1)
| ^~~~
a.cc:12:9: note: to match this '{'
12 | if(x==1){
| ^
a.cc: At global scope:
a.cc:18:1: error: expected unqualified-id before 'if'
18 | if(x>y)
| ^~
a.cc:20:1: error: expecte... |
s011769872 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
unsigned int a, b;
cin > a >> b;
a -= 2;
b -= 2;
if (a == b) {
cout << "Draw" << endl;
} else if (a < b) {
cout << "Bob" << endl;
} else {
cout << "Alice" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:9: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'unsigned int')
6 | cin > a >> b;
| ~~~ ^ ~~~~~~
| | |
| | unsigned int
| std::istream {aka std::basic_istream<char... |
s654216382 | p03803 | C | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int gcd(int a,int b){
if(a<b){
swap(&a,&b);
}
if(b==0){
return a;
}
int r=a%b;
while(r!=0){
a = b;
b = r;
r = (a%b)... | main.c: In function 'main':
main.c:92:35: error: expected ')' before '{' token
92 | }else if((a==1) || (a!=1 && b,a){
| ~ ^
| )
main.c:96:1: error: expected expression before '}' token
96 | }
| ^
|
s312443906 | p03803 | C | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int gcd(int a,int b){
if(a<b){
swap(&a,&b);
}
if(b==0){
return a;
}
int r=a%b;
while(r!=0){
a = b;
b = r;
r = (a%b)... | main.c: In function 'main':
main.c:90:42: error: expected statement before ')' token
90 | }else if((b<=13 && a<b) || b==1 && b<a)){
| ^
main.c:92:4: error: 'else' without a previous 'if'
92 | }else ({
| ^~~~
main.c:94:4: error: expected ')' before 'retur... |
s006044978 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int A, B;
int main () {
cin >> A >> B;
if(A==1) A+=13;
if(B==1) B+=13;
if (A > B){
cout << "Alice" << endl;
}
if (A < B){
cout << "Bob" << endl;
}
if (A==B){
cout << "Draw" << endl;
} | a.cc: In function 'int main()':
a.cc:18:10: error: expected '}' at end of input
18 | }
| ^
a.cc:6:13: note: to match this '{'
6 | int main () {
| ^
|
s826948209 | p03803 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int a,b
cin >> a >> b;
if(a == b){
cout << "Draw";
return 0;
}
if(a == 1){
a = 14;
}
if(b == 1){
b = 14;
}
if(a > b){
cout << "Alice";
}else{
cout << "Bob";
}
}
| a.cc: In function 'int main()':
a.cc:8:7: error: expected initializer before 'cin'
8 | cin >> a >> b;
| ^~~
a.cc:9:25: error: 'b' was not declared in this scope
9 | if(a == b){
| ^
a.cc:16:6: error: 'b' was not declared in this scope
16 | if(b... |
s319462447 | p03803 | C++ | #include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#incl... | a.cc:42:22: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
42 | const int INF = 1e18 + 9;
| ~~~~~^~~
a.cc: In function 'int main()':
a.cc:89:30: error: expected ';' before 'return'
89 | else cout << "Draw" << endl
| ... |
s689535008 | p03803 | C | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define rep(i,n) for(i=0;i<n;i++)
#define PI 3.14159265358979323846264338327950L
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a=b) printf("Draw");
else if(a>b){
if(b==1) printf("Bob");
else printf("Alice");
}
else{
if(... | main.c: In function 'main':
main.c:18:1: error: expected declaration or statement at end of input
18 | }
| ^
|
s455640418 | p03803 | C | #include <stdio.h>
int main(void){
int A,B;
scanf("%d %d",&A, &B);
if (A == B){
printf("Draw");
} else if (A == 1 && 1 < B < 13 || A !=1 && B !=1 && A-B>0){
printf("Alice");
} else if ((B == 1 && 1 < A < 13 || B !=1 && A !=1 && B-A>0){
printf("Bob");
}else {
printf("Invalid!");
}
... | main.c: In function 'main':
main.c:10:63: error: expected ')' before '{' token
10 | } else if ((B == 1 && 1 < A < 13 || B !=1 && A !=1 && B-A>0){
| ~ ^
| )
main.c:16:14: error: expe... |
s396201592 | p03803 | C++ | #include "bits/stdc++.h"
#define MOD 1000000007
#define rep(i, n) for(ll i=0; i < (n); i++)
#define rrep(i, n) for(ll i=(n)-1; i >=0; i--)
#define ALL(v) v.begin(),v.end()
#define rALL(v) v.rbegin(),v.rend()
#define FOR(i, j, k) for(ll i=j;i<k;i++)
#define debug_print(var) cerr << #var << "=" << var <<endl;
#define DU... | a.cc: In function 'int main()':
a.cc:159:16: error: 'cour' was not declared in this scope
159 | else if(a==b)cour << "Draw";
| ^~~~
|
s117013177 | p03803 | C++ | #include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
int main() {
ina a, b;
cin >> a >> b;
if(a == b) cout << "Draw\n";
else if(a == 1) cout << "Alice\n";
else if(b == 1) cout << "Bob\n";
else if(a > b) cout << "Alice\n";
else cout << "Bob\n";
}
| a.cc: In function 'int main()':
a.cc:8:3: error: 'ina' was not declared in this scope; did you mean 'int'?
8 | ina a, b;
| ^~~
| int
a.cc:9:10: error: 'a' was not declared in this scope
9 | cin >> a >> b;
| ^
a.cc:9:15: error: 'b' was not declared in this scope
9 | cin >... |
s510751746 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void){
int A,B;
cin >> A >>B;
if(A == B){
cout << "DRAW" <<endl;
}
else{
if(A == 1){
cout << "Alice" <<endl;
break;
}
if(B == 1){
cout << "Bob" <<endl;
break... | a.cc: In function 'int main()':
a.cc:15:13: error: break statement not within loop or switch
15 | break;
| ^~~~~
a.cc:19:13: error: break statement not within loop or switch
19 | break;
| ^~~~~
|
s893491971 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
int main(int argc, char *argv[]) { ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
int a,b;cin>>a>>b;
if(a==b){
cout<<"Draw"<<endl;
}else if (a==1){
cout<<"Alice"<<endl;
} else if (b==1){
c... | a.cc:18:4: error: expected unqualified-id before 'else'
18 | }else{
| ^~~~
a.cc:22:3: error: expected unqualified-id before 'return'
22 | return 0;
| ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
23 | }
| ^
|
s163171064 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;cin>>a>>b;
if((a = 1 && b = 13) || (a = 13 && b = 1)){
if(a =1) cout<<"Alice"<<endl;
else cout<<"Bob"<<endl;
}
else{
if(a > b) cout<<"Alice"<<endl;
else if(a < b) cout<<"Bob"<<endl;
else cout<<"Draw"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:13: error: lvalue required as left operand of assignment
6 | if((a = 1 && b = 13) || (a = 13 && b = 1)){
| ~~^~~~
a.cc:6:35: error: lvalue required as left operand of assignment
6 | if((a = 1 && b = 13) || (a = 13 && b = 1)){
| ... |
s740402357 | p03803 | C++ | {
int a,b;
scanf("%d %d", &a, &b);
if (a == 1)
{
a = 14;
}
if (b == 1)
{
b = 14;
}
if (a > b)
{
printf("Alice");
}
else if (b > a)
{
printf("Bob");
}
else if (a == b)
{
printf("Draw");
}
} | a.cc:1:1: error: expected unqualified-id before '{' token
1 | {
| ^
|
s738664167 | p03803 | C++ | {
int a,b;
scanf("%d %d", &a, &b);
if (a == 1)
{
a = 14;
}
if (b == 1)
{
b = 14;
}
if (a > b)
{
printf("Alice");
}
else if (b > a)
{
printf("Bob");
}
else if (a == b)
{
printf("Draw");
}
} | a.cc:1:1: error: expected unqualified-id before '{' token
1 | {
| ^
|
s363249616 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int N,M;
cin >> N >> M;
if(N==1){
N=14;
}
if(M==1){
M=14
}
else if(N<M){
cout << "Bob" << endl;
}
else if(N==M){
cout << "Draw" << endl;
}
else{
cout << "Alice" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before '}' token
11 | M=14
| ^
| ;
12 | }
| ~
|
s818463428 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
int A, B; cin >> A >> B;
int Bob = 0, Alice = 0;
for (int i = 1; i <= 13; i++) {
if (A == i) Alice = i;
if (B == i) Bob = i;
if (i == 1 && A == 1) A += 100;
if (i == 1 && B == 1) B += 100
}
if (Alice > Bob) printf... | a.cc: In function 'int main()':
a.cc:10:39: error: expected ';' before '}' token
10 | if (i == 1 && B == 1) B += 100
| ^
| ;
11 | }
| ~
|
s259674227 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
int A, B; cin >> A >> B;
int Bob = 0, Alice = 0;
for (int i = 1; i <= 13; i++) {
if (A == i) Alice = i;
if (B == i) Bob = i;
if (i == 1 && A == 1) A += 100;
if (i == 1 && B == 1) B += 100
}
if (Alice > Bob) printf... | a.cc: In function 'int main()':
a.cc:10:39: error: expected ';' before '}' token
10 | if (i == 1 && B == 1) B += 100
| ^
| ;
11 | }
| ~
|
s732582671 | p03803 | C++ | #include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
if(a>b && !(a==13 && b==1)) cout<<"Alice";
else if(a==b) cout<<"Draw";
else cout<<"Bob";
} | a.cc: In function 'int main()':
a.cc:11:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
11 | if(a>b && !(a==13 && b==1)) cout<<"Alice";
| ~^~~~
| | |
| | int
| ... |
s040489967 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int a, b
cin >> a >> b;
if (b == 1) b = 14;
if (a > b) cout << "Alice\n";
else if (b > a) cout << "Bob\n";
else cout << "Draw\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
7 | cin >> a >> b;
| ^~~
a.cc:8:7: error: 'b' was not declared in this scope
8 | if (b == 1) b = 14;
| ^
a.cc:9:11: error: 'b' was not declared in this scope
9 | if (a > b) cout << "Alice\n";
|... |
s171586322 | p03803 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
int A, B;
cin >>A >>B;
if(A < B)
{
if(A == 1)
printf("Alice");
else
printf("Bob")
}
if(A > B)
{
if(B == 1)
printf("Bob")
else
printf("Alice")
}
if(A ... | a.cc: In function 'int main()':
a.cc:13:21: error: expected ';' before '}' token
13 | printf("Bob")
| ^
| ;
14 | }
| ~
a.cc:18:21: error: expected ';' before 'else'
18 | printf("Bob")
| ^
... |
s523764335 | p03803 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
int A,B;
cin >> A,B;
if ((A>1)>(B>1))
cout << "Alice" << endl;
else if ((A>1)<(B>1))
cout << "Bob" << endl;
else if (A==1)
cout << "Alice" << endl:
else if (B==1)
cout << "Bob" << endl;
} | a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before ':' token
12 | cout << "Alice" << endl:
| ^
| ;
|
s195629639 | p03803 | C | #include<stdio,h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a==1)a=14;
if(b==1)b=14;
if(a>b)printf("Alice\n");
else if(a<b)printf("Bob\n");
else printf("Draw\n");
return 0;
}
| main.c:1:9: fatal error: stdio,h: No such file or directory
1 | #include<stdio,h>
| ^~~~~~~~~
compilation terminated.
|
s611412247 | p03803 | C++ | #include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<string>
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
//inline int read(){int t = 0;int neg=1;char c;while((c=getchar_unlocked())!='\n'&&c!=' '&&c!=EOF)... | a.cc: In function 'int main()':
a.cc:40:28: error: expected primary-expression before '<' token
40 | else if(a>b) cout<<<"Alice";
| ^
|
s631425419 | p03803 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int[13] list = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1};
int anum, bnum;
for (int i = 0; i < 13; i++) {
if (a == list[i]) {
anum = i;
}
if (b == list[i]) {
bnum = i;... | a.cc:18:17: warning: multi-character character constant [-Wmultichar]
18 | cout << 'Bob';
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: expected identifier before numeric constant
7 | int[13] list = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1};
| ^~
a.cc:... |
s363599164 | p03803 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
string ans;
if(a==b){
ans="Draw";
break;
}
else if(a==1){
ans="Alice";
break;
}
else if(b==1){
ans="Bob";
break;
}
else if(a<b){
ans="Bob";
}
else{
ans="Alice";
}
cout<<ans<<endl;
} | a.cc: In function 'int main()':
a.cc:9:5: error: break statement not within loop or switch
9 | break;
| ^~~~~
a.cc:13:5: error: break statement not within loop or switch
13 | break;
| ^~~~~
a.cc:17:5: error: break statement not within loop or switch
17 | break;
| ^~~~... |
s632032853 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if (a == b){
cout << "draw";
} else if (a == 1) {
cout << "Alice" << endl;
} else if (b == 1) {
cout << "Bob" << endl;
} else if (a > b){
cout << "Alice" << endl;
} else {
... | a.cc: In function 'int main()':
a.cc:18:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
18 | cou << "Bob" << endl;
| ^~~
| cos
|
s162470356 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if()
if(A==B)
cout<<"Draw"<<endl;
else if((A>B && B!=1) || A==1)
cout<<"Alice"<<endl;
else
cout<<"Bob"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before ')' token
7 | if()
| ^
|
s978389821 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A>B)
cout<<"Alice"<<endl;
else if(A==B)
cout<<"Draw"<<endl;
else
cout<<Bob<<endl;
} | a.cc: In function 'int main()':
a.cc:12:11: error: 'Bob' was not declared in this scope
12 | cout<<Bob<<endl;
| ^~~
|
s458924212 | p03803 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
int A,B;cin>>A>>B;
if(A==1&&B!=1) cout << "Alice" << endl;
if(A==1&&B==1) cout << "Draw" << endl;
if(A!=1&&B==1) cout << "Bob" << endl;
if(A!=1&&B!=1){
if(A>B) cout << "Alice" <... | a.cc: In function 'int main()':
a.cc:14:29: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
14 | if(A==B) cout << "Draw" << end;
| ~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/istream:41,
... |
s493531436 | p03803 | C++ | #include <bits/stdc++.h>
#define rep(i,n); for(int i = 0;i < (n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
long double pi = acos(-1);
const int INF = 1001001001;
// 最小公倍数を求める
int euqlid (int a, int b){
int temp;
temp = a % b;
if(temp == 0)return b;
return euqlid(b,temp);
}
ll co... | a.cc: In function 'int main()':
a.cc:48:21: error: expected primary-expression before ']' token
48 | rep(i,12)strength[] = i+2;
| ^
|
s590538216 | p03803 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
#define MODSIZE 1000000007
int main(){
int a,b;
scanf("%d %d", &a, &b);
if(a == b) printf("Draw\n");
else if(a == 1) printf("Alice\n");
else if(b == 1) printf("Bob\n");
else if(a < b) printf("B... | a.cc: In function 'int main()':
a.cc:15:8: error: 'printt' was not declared in this scope; did you mean 'printf'?
15 | else printt("Alice\n");
| ^~~~~~
| printf
|
s439243336 | p03803 | C++ | /******* all required header files *******/
#include<iostream>
#include<algorithm>
#include<cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <... | a.cc:61:1: error: expected declaration before '}' token
61 | }
| ^
|
s865147621 | p03803 | C++ | nnnnnnnnnnn | a.cc:1:1: error: 'nnnnnnnnnnn' does not name a type
1 | nnnnnnnnnnn
| ^~~~~~~~~~~
|
s426266500 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> a >> b;
if (a == 1) {
a = 14;
}
if (b == 1) {
b = 14;
}
if (a > b) {
cout << "Alice\n';"
}
else if (b > a) {
cout << "Bob\n";
}
else {
cout << "Draw\n";
... | a.cc: In function 'int main()':
a.cc:22:36: error: expected ';' before '}' token
22 | cout << "Alice\n';"
| ^
| ;
23 | }
| ~
|
s612192236 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if(A!=1 &&B!=1 &&A<B){
cout << "Bob" << endl;
}
else if(A!=1 && B!=! && A>B){
cout << "Alice" << endl;
}
else if(A!=1 && B==1){
cout << "Bob" << endl;
}
else if (A==1&&B!=1){
cout << "Alice" << endl;... | a.cc: In function 'int main()':
a.cc:11:27: error: label 'A' used but not defined
11 | else if(A!=1 && B!=! && A>B){
| ^
|
s905380322 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b; cin >> a >> b;
if(a>b) cout << "Alice" << endl;
else if(a<b) cout << "Bob" endl;
else cout << "Draw" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:29: error: expected ';' before 'endl'
7 | else if(a<b) cout << "Bob" endl;
| ^~~~~
| ;
|
s773221497 | p03803 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(long long i = 0; i < (n) ; ++i)
#define orep(i,n) for(long long i = 1; i <= (n); ++i) // one rep
#define drep(i,n) for(long long i = (n)-1; i >= 0; --i) // down rep
#define srep(i,s,t) for(long long i = (s); i < (t); ++i) // set rep
#define rng(x) (x).begin(),(x)... | a.cc:30:16: error: 'P' was not declared in this scope
30 | void pv(vector<P> vec) {
| ^
a.cc:30:17: error: template argument 1 is invalid
30 | void pv(vector<P> vec) {
| ^
a.cc:30:17: error: template argument 2 is invalid
a.cc:30:6: error: template-id 'pv<>' for 'void pv... |
s519349193 | p03803 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(long long i = 0; i < (n) ; ++i)
#define orep(i,n) for(long long i = 1; i <= (n); ++i) // one rep
#define drep(i,n) for(long long i = (n)-1; i >= 0; --i) // down rep
#define srep(i,s,t) for(long long i = (s); i < (t); ++i) // set rep
#define rng(x) (x).begin(),(x)... | a.cc:30:16: error: 'P' was not declared in this scope
30 | void pv(vector<P> vec) {
| ^
a.cc:30:17: error: template argument 1 is invalid
30 | void pv(vector<P> vec) {
| ^
a.cc:30:17: error: template argument 2 is invalid
a.cc:30:6: error: template-id 'pv<>' for 'void pv... |
s739049114 | p03803 | 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:45:27: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
45 | cout << "Bob" << end;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/iostream:41,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.