submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s398052648 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
int c={13,1,2,3,4,5,6,7,8,9,10,11,12}
if (c[a-1]>c[b-1]) cout <<"Alice"<<endl;
else if (c[a-1]=c[b-1]) cout <<"Draw"<<endl;
else cout <<"Bob"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:13: error: scalar object 'c' requires one element in initializer
7 | int c={13,1,2,3,4,5,6,7,8,9,10,11,12}
| ^
a.cc:8:9: error: expected ',' or ';' before 'if'
8 | if (c[a-1]>c[b-1]) cout <<"Alice"<<endl;
| ^~
a.cc:9:9: error: 'else' without a previous 'if'
9 | else if (c[a-1]=c[b-1]) cout <<"Draw"<<endl;
| ^~~~
|
s752788921 | p03803 | Java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.List;
import java.util.StringTokenizer;
public class Main
public static void main(String[] args) throws IOException {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskX solver = new TaskX();
solver.solve(1, in, out);
out.close();
}
static int INF = 1 << 30;
static int modP = 1000000007;
static class TaskX {
public void solve(int testNumber, InputReader in, PrintWriter out) {
List<Integer> list = new ArrayList<>();
for (int i = 2; i <= 13; i++) {
list.add(i);
}
list.add(1);
int a = in.nextInt(), b = in.nextInt();
int idxA = list.indexOf((Integer)a);
int idxB = list.indexOf((Integer)b);
if (idxA < idxB) {
out.println("Bob");
} else if (idxA == idxB) {
out.println("Draw");
} else if (idxA > idxB) {
out.println("Alice");
}
}
}
static class InputReader {
BufferedReader in;
StringTokenizer tok;
public String nextString() {
while (!tok.hasMoreTokens()) {
try {
tok = new StringTokenizer(in.readLine(), " ");
} catch (IOException e) {
throw new InputMismatchException();
}
}
return tok.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextString());
}
public long nextLong() {
return Long.parseLong(nextString());
}
public double nextDouble() {
return Double.parseDouble(nextString());
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public InputReader(InputStream inputStream) {
in = new BufferedReader(new InputStreamReader(inputStream));
tok = new StringTokenizer("");
}
}
}
| Main.java:13: error: '{' expected
public class Main
^
Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws IOException {
^
(use --enable-preview to enable unnamed classes)
Main.java:103: error: class, interface, enum, or record expected
}
^
3 errors
|
s754711773 | p03803 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b;
cic >> a >> b;
if(a == 1){
a = 13;
}
if(b == 1){
b = 11;
}
if(a > b) {
cout << "Alice" << endl;
} else if(b > a){
cout << "Bob" << endl;
}else if(a == b){
cout << "Draw" << endl;
}
else {
cout << "Draw" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'cic' was not declared in this scope
9 | cic >> a >> b;
| ^~~
|
s271887296 | p03803 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b;
cic >> a >> b;
if(a == 1){
a = 13;
}
if(b == 1){
b = 11;
}
if(a > b) {
cout << "Alice" << endl;
} else if(b > a){
cout << "Bob" << endl;
} else {
cout << "Draw" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'cic' was not declared in this scope
9 | cic >> a >> b;
| ^~~
|
s614945257 | p03803 | C++ | あ | a.cc:1:1: error: '\U00003042' does not name a type
1 | あ
| ^~
|
s210164668 | p03803 | C++ | #include<iostream>
using namespace std;
int main () {
int A,B;
cin>>A>>B;
if(A==B){
cout<<"Draw"<<endl;
}else if(B==1||A!=1){
cout<<"Bob"<<endl;
}else(A>B){
cout<<"Alice"<<endl;
}else(A<B){
cout<<"Bob"<<endl;
}else(A==1||B!=1){
cout<<"Alice"<<endl;
}
return0
} | a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before '{' token
12 | }else(A>B){
| ^
| ;
a.cc:14:4: error: 'else' without a previous 'if'
14 | }else(A<B){
| ^~~~
a.cc:14:13: error: expected ';' before '{' token
14 | }else(A<B){
| ^
| ;
a.cc:16:4: error: 'else' without a previous 'if'
16 | }else(A==1||B!=1){
| ^~~~
a.cc:16:20: error: expected ';' before '{' token
16 | }else(A==1||B!=1){
| ^
| ;
a.cc:19:1: error: 'return0' was not declared in this scope
19 | return0
| ^~~~~~~
|
s099904731 | p03803 | C++ | #include<iostream>
using namespace std;
int main () {
int A,B;
cin>>A>>B;
if(A==B){
cout<<"Draw"<<endl;
}else if(B==1||A!=1){
cout<<"Bob"<<endl;
}else if(A>B){
cout<<"Alice"<<endl;
}else if(A<B){
cout<<"Bob"<<endl;
}else (A==1||B!=1){
cout<<"Alice"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before '{' token
16 | }else (A==1||B!=1){
| ^
| ;
|
s605141450 | p03803 | C++ | #include<iostream>
using namespace std;
int main () {
int A,B;
cin>>A>>B;
if(A==B){
cout<<"Draw"<<endl;
}else if(B==1||A!=1){
cout<<"Bob"<<endl;
}else if(A>B){
cout<<"Alice"<<endl;
}else if(A<B){
cout<<"Bob"<<endl;
}else (A==1||B!=1){
cout<<"Alice"<<endl;
} | a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before '{' token
16 | }else (A==1||B!=1){
| ^
| ;
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:4:13: note: to match this '{'
4 | int main () {
| ^
|
s422189386 | p03803 | C++ | #include<iostream>
using namespace std;
int main () {
int A,B;
cin>>A>>B;
if(A==1||B!=1){
cout<<"Alice"<<endl;
}else if(B==1||A!=1){
cout<<"Bob"<<endl;
}else (A>B){
cout<<"Alice"<<endl;
}else (A<B){
cout<<"Bob"<<endl;
}else (A==B){
cout<<"Draw"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before '{' token
12 | }else (A>B){
| ^
| ;
a.cc:14:4: error: 'else' without a previous 'if'
14 | }else (A<B){
| ^~~~
a.cc:14:14: error: expected ';' before '{' token
14 | }else (A<B){
| ^
| ;
a.cc:16:4: error: 'else' without a previous 'if'
16 | }else (A==B){
| ^~~~
a.cc:16:15: error: expected ';' before '{' token
16 | }else (A==B){
| ^
| ;
|
s577548284 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if(A == 1){
A = 14;
if(B == 1){
B = 14;
if( A < B ){
cout << "Alice" << endl;}
else if( A == B ){
cout << "Draw" << endl;}
else if( A > B ){
cout << "Bob" << endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
20 | }
| ^
a.cc:9:15: note: to match this '{'
9 | if(A == 1){
| ^
a.cc:20:2: error: expected '}' at end of input
20 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s572072430 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if( A < B ){
cout << "Alice" << endl;
else if( A == B ){
cout << "Draw" << endl;
else if( A > B ){
cout << "Bob" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
11 | else if( A == B ){
| ^~~~
a.cc:9:16: note: to match this '{'
9 | if( A < B ){
| ^
a.cc:13:5: error: expected '}' before 'else'
13 | else if( A > B ){
| ^~~~
a.cc:11:22: note: to match this '{'
11 | else if( A == B ){
| ^
a.cc:16:2: error: expected '}' at end of input
16 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s905113802 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int A, B;
cin >> A >> B;
if(A == B){
cout << "Draw" << endl;
}else if(A > B and B != 1){
cout << "Alice" << endl;
}else if(B > A and A != 1){
cout << "Bob" << endl;
}else if(A == 1 and B != 1){
cout << "Alice" << endl;
}else(B == 1 and A != 1)
cout << "Bob" << endl;
}
| a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before 'cout'
14 | }else(B == 1 and A != 1)
| ^
| ;
15 | cout << "Bob" << endl;
| ~~~~
|
s706765882 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int A, B;
cin >> A >> B;
if(A == B){
cout << "Draw" << endl;
}else if(A > B and B != 1){
cout << "Alice" << endl;
}else if(B > A and A != 1){
cout << "Bob" << endl;
}else if(A == 1 and B != 1){
cout << "Alice" << endl;
}else(B == 1 and A != 1){
cout << "Bob" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before '{' token
14 | }else(B == 1 and A != 1){
| ^
| ;
|
s887872389 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;
/* cpp template {{{ */
/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define X real()
#define Y imag()
/* REPmacro */
#define REPS(i, a, n) for (ll i = (a); i < (ll)(n); ++i)
#define rep(i, n) REPS(i, 0, n)
#define REP0(i,n) for (ll i = 0; i <= (ll)(n); ++i)
#define REP1(i,n) for (ll i = 1; i <= (ll)(n); ++i)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (ll i = (a); i >= (ll)(n); --i)
#define DEP(i, n) DEPS(i, n, 0)
#define EACH(i, n) for (auto&& i : n)
/* debug */
#define debug(x) cerr << x << " " << "(L:" << __LINE__ << ")" << '\n';
/* alias */
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using D = double;
using P = complex<D>;
using vs = vector<string>;
template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;
/* const */
const int INF = 1001001001;
const ll LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;
const D EPS = 1e-9;
const int dx[] = {0, 1, 0, -1, 1, -1, 1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
/* func */
inline bool inside(int y, int x, int H, int W) {return y >= 0 && x >= 0 && y < H && x < W;}
inline int in() {int x; cin >> x; return x;}
inline ll IN() {ll x; cin >> x; return x;}
inline vs split(const string& t, char c) {vs v; stringstream s(t); string b; while(getline(s, b, c)) v.eb(b); return v;}
template <typename T> inline bool chmin(T& a, const T& b) {if (a > b) a = b; return a > b;}
template <typename T> inline bool chmax(T& a, const T& b) {if (a < b) a = b; return a < b;}
template <typename T, typename S> inline void print(const pair<T, S>& p) {cout << p.first << " " << p.second << endl;}
template <typename T> inline void print(const T& x) {cout << x << '\n';}
template <typename T, typename S> inline void print(const vector<pair<T, S>>& v) {for (auto&& p : v) print(p);}
template <typename T> inline void print(const vector<T>& v, string s = " ") {rep(i, v.size()) cout << v[i] << (i != (ll)v.size() - 1 ? s : "\n");}
template<typename T>
istream& operator >> (istream& is, vector<T>& vec){
for(T& x: vec) is >> x;
//for(int i=0; i<vec.size(); i++) is >> x[i]; とかでもいいです。
return is;
}
template<typename T>
ostream& operator << (ostream& os, vector<T>& vec){
for(int i=0; i<vec.size(); i++){
os << vec[i] << ( i+1 == vec.size() ? "" : " " );
}
return os;
}
/* }}} */
vector<long long int> dijkstra(int s,int v, vector<vector<pii>> G)
{
//s: 始点, v: 頂点数, G: 隣接リスト
PQ<pair<long long int,int>> wait;
vector<long long int> result(v,INF);
result[s]=0;
wait.push(mp(0,s));
while(!wait.empty())
{
long long int nowpoint=wait.top().Se;
long long int nowcost=wait.top().Fi;
wait.pop();
if(nowcost<=result[nowpoint])
{
rep(i,G[nowpoint].size())
{
long long int nextpoint=G[nowpoint][i].Se;
long long int nextcost= G[nowpoint][i].Fi-nowcost;
if(nextcost<result[nextpoint])
{
wait.push(mp(-nextcost,nextpoint));
result[nextpoint]=nextcost;
}
}
}
}
return result;
}
vector<bool> IsPrime;
void sieve(size_t max){
if(max+1 > IsPrime.size()){ // resizeで要素数が減らないように
IsPrime.resize(max+1,true); // IsPrimeに必要な要素数を確保
}
IsPrime[0] = false; // 0は素数ではない
IsPrime[1] = false; // 1は素数ではない
for(size_t i=2; i*i<=max; ++i) // 0からsqrt(max)まで調べる
if(IsPrime[i]) // iが素数ならば
for(size_t j=2; i*j<=max; ++j) // (max以下の)iの倍数は
IsPrime[i*j] = false; // 素数ではない
}
bool f(int a, int b)
{
if(IsPrime[a]&&(b<a)) return true;
else return false;
}
signed main()
{
int a,b;
cin>>a>>b;
if(a>b) print("Alice");
else if(a<b) print("Bob");
else print("Draw");
return 0;
}
| a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:80:18: note: in expansion of macro 'int'
80 | vector<long long int> dijkstra(int s,int v, vector<vector<pii>> G)
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:80:18: note: in expansion of macro 'int'
80 | vector<long long int> dijkstra(int s,int v, vector<vector<pii>> G)
| ^~~
a.cc: In function 'std::vector<long long int> dijkstra(long long int, long long int, std::vector<std::vector<std::pair<long long int, long long int> > >)':
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:83:21: note: in expansion of macro 'int'
83 | PQ<pair<long long int,int>> wait;
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:83:21: note: in expansion of macro 'int'
83 | PQ<pair<long long int,int>> wait;
| ^~~
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:84:20: note: in expansion of macro 'int'
84 | vector<long long int> result(v,INF);
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:84:20: note: in expansion of macro 'int'
84 | vector<long long int> result(v,INF);
| ^~~
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:89:15: note: in expansion of macro 'int'
89 | long long int nowpoint=wait.top().Se;
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:89:15: note: in expansion of macro 'int'
89 | long long int nowpoint=wait.top().Se;
| ^~~
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:90:15: note: in expansion of macro 'int'
90 | long long int nowcost=wait.top().Fi;
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:90:15: note: in expansion of macro 'int'
90 | long long int nowcost=wait.top().Fi;
| ^~~
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:96:19: note: in expansion of macro 'int'
96 | long long int nextpoint=G[nowpoint][i].Se;
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:96:19: note: in expansion of macro 'int'
96 | long long int nextpoint=G[nowpoint][i].Se;
| ^~~
a.cc:5:13: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:97:19: note: in expansion of macro 'int'
97 | long long int nextcost= G[nowpoint][i].Fi-nowcost;
| ^~~
a.cc:5:18: error: 'long long long' is too long for GCC
5 | #define int long long
| ^~~~
a.cc:97:19: note: in expansion of macro 'int'
97 | long long int nextcost= G[nowpoint][i].Fi-nowcost;
| ^~~
|
s734787499 | p03803 | C |
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
if(a==b){
cout << "Draw" << endl;
}else if(a==1){
cout << "Alice" << endl;
}else if(b == 1){
cout << "Bob" << endl;
}else if(a>b){
cout << "Alice" << endl;
}else{
cout << "Bob" << endl;
}
}
| main.c:2:10: fatal error: bits/stdc++.h: No such file or directory
2 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s021443150 | p03803 | C | #include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
if(a==1&&b==1) printf("Draw\n");
else if(a==1&&b!=1) printf("Alice\n");
else if(a!=1&&b==1) printf("Bob\n");
else if(a<b) printf("Bob\n");
else if(b<a) printf("Alice\n");
return 0
}
| main.c: In function 'main':
main.c:11:11: error: expected ';' before '}' token
11 | return 0
| ^
| ;
12 | }
| ~
|
s553607880 | p03803 | C++ | #include <iostream>
using namespace std;
vector used;
vector connect;
int N,M;
int main(int now , int depth) {
if (used[now]) return 0;
if (depth == N) return 1;
used[now] = 1;
int ans = 0;
for (int i = 0; i < N ; i++){
if(connect[now][i]) ans += dfs (i, depth + 1);
}
used[now] = 0;
return ans;
}
int main(){
cin >> N >> M;
vector a(M), b(M);
for (int i = 0; i < M; i ++){
cin >> a[i] >> b[i];
a[i]--; b[i]--;
}
used = vector(N, 0);
connect = vector(N, vector(N, 0));
for(int i = 0; i < M ; i++){
connect[a[i]b[i]] = connect[b[i]a[i]] = 1;
}
cout << dfs (0,1)
} | a.cc:3:1: error: 'vector' does not name a type
3 | vector used;
| ^~~~~~
a.cc:4:1: error: 'vector' does not name a type
4 | vector connect;
| ^~~~~~
a.cc:7:5: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
7 | int main(int now , int depth) {
| ^~~~
a.cc: In function 'int main(int, int)':
a.cc:8:13: error: 'used' was not declared in this scope
8 | if (used[now]) return 0;
| ^~~~
a.cc:10:9: error: 'used' was not declared in this scope
10 | used[now] = 1;
| ^~~~
a.cc:13:20: error: 'connect' was not declared in this scope; did you mean 'const'?
13 | if(connect[now][i]) ans += dfs (i, depth + 1);
| ^~~~~~~
| const
a.cc:13:44: error: 'dfs' was not declared in this scope
13 | if(connect[now][i]) ans += dfs (i, depth + 1);
| ^~~
a.cc: At global scope:
a.cc:19:5: error: conflicting declaration of C function 'int main()'
19 | int main(){
| ^~~~
a.cc:7:5: note: previous declaration 'int main(int, int)'
7 | int main(int now , int depth) {
| ^~~~
a.cc: In function 'int main()':
a.cc:21:9: error: 'vector' was not declared in this scope
21 | vector a(M), b(M);
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
a.cc:23:24: error: 'a' was not declared in this scope
23 | cin >> a[i] >> b[i];
| ^
a.cc:23:32: error: 'b' was not declared in this scope
23 | cin >> a[i] >> b[i];
| ^
a.cc:26:9: error: 'used' was not declared in this scope
26 | used = vector(N, 0);
| ^~~~
a.cc:27:9: error: 'connect' was not declared in this scope; did you mean 'const'?
27 | connect = vector(N, vector(N, 0));
| ^~~~~~~
| const
a.cc:30:25: error: 'a' was not declared in this scope
30 | connect[a[i]b[i]] = connect[b[i]a[i]] = 1;
| ^
a.cc:30:29: error: expected ']' before 'b'
30 | connect[a[i]b[i]] = connect[b[i]a[i]] = 1;
| ^
| ]
a.cc:32:17: error: 'dfs' was not declared in this scope
32 | cout << dfs (0,1)
| ^~~
|
s803047446 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int A[2],i;
for(i=0;i<2;i++){
cin >> A[i];
if(A[i]==1) A[i]=14;
}
if(A[0]>A[1]) cout << "Alice" << endl;
if(A[0]<A[1]) cout << "Bob" << endl;
if(A[0==A[1]) cout << "Draw" << endl;
}
| a.cc: In function 'int main()':
a.cc:12:21: error: expected ']' before ')' token
12 | if(A[0==A[1]) cout << "Draw" << endl;
| ^
| ]
|
s073052450 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B;
scanf("%d", &A);
scanf("%d", &B);
if((A>B && B!=1) || (A==1 && B!=1)){
printf("Alice");
}else if((A<B && A!=1) || (B==1 && A!=1)){
printf("Bob");
}else if(A==B){
printf("Draw");
} | a.cc: In function 'int main()':
a.cc:14:4: error: expected '}' at end of input
14 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s730194162 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B;
scanf("%d", &A);
scanf("%d", &B);
if((A>B && B!=1) || (A==1 && B!=1)){
printf("Alice");
}else if(A<B && A!=1) || (B==1 && A!=1)){
printf("Bob");
}else if(A==B){
printf("Draw");
} | a.cc: In function 'int main()':
a.cc:10:25: error: expected primary-expression before '||' token
10 | }else if(A<B && A!=1) || (B==1 && A!=1)){
| ^~
a.cc:14:4: error: expected '}' at end of input
14 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s076222604 | p03803 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a == 1){
a=14;
}
if(b == 1){
b=14;
}
if(A>B){
System.out.println("Alice");
}else if(A == B){
System.out.println("Draw");
}else{
System.out.println("Bob");
}
}
} | Main.java:13: error: cannot find symbol
if(A>B){
^
symbol: variable A
location: class Main
Main.java:13: error: cannot find symbol
if(A>B){
^
symbol: variable B
location: class Main
Main.java:15: error: cannot find symbol
}else if(A == B){
^
symbol: variable A
location: class Main
Main.java:15: error: cannot find symbol
}else if(A == B){
^
symbol: variable B
location: class Main
4 errors
|
s660752604 | p03803 | C++ | include<iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if(A == 1){
A = 14;
}
if(B == 14) {
B = 14;
}
if((A - B) > 0) {
cout << "Alice" << endl;
}else if((A - B) < 0) {
cout << "Bob" << endl;
}else{
cout << "Draw" << endl;
}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
5 | cin >> A >> B;
| ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
13 | cout << "Alice" << endl;
| ^~~~
a.cc:13:22: error: 'endl' was not declared in this scope
13 | cout << "Alice" << endl;
| ^~~~
a.cc:15:3: error: 'cout' was not declared in this scope
15 | cout << "Bob" << endl;
| ^~~~
a.cc:15:20: error: 'endl' was not declared in this scope
15 | cout << "Bob" << endl;
| ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
17 | cout << "Draw" << endl;
| ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope
17 | cout << "Draw" << endl;
| ^~~~
|
s083223111 | p03803 | C++ | A, B = map(int, input().split())
A = (A-2)%13
B = (B-2)%13
if A > B:
print("Alice")
elif A < B:
print("Bob")
else:
print("Draw") | a.cc:1:1: error: 'A' does not name a type
1 | A, B = map(int, input().split())
| ^
|
s574486697 | p03803 | C++ | >#include<iostream>
>#include<string>
>#include<algorithm>
>using namespace std;
>int main(){
> int a,b;
> cin>>a>>b;
> if(a==1){
> cout<<"Alice"<<endl;
>
> }
>
> else if(b==1){
> cout<<"Bob"<<endl;
>
> }
>
>
> else if(a<b){
> cout<<"Bob"<<endl;
>
> }
>
> else if(a>b){
> cout<<"Alice"<<endl;
>
> }
>
>
> else if(a==b){
> cout<<"Draw"<<endl;
>
> }
>
>
>} | a.cc:1:2: error: stray '#' in program
1 | >#include<iostream>
| ^
a.cc:2:2: error: stray '#' in program
2 | >#include<string>
| ^
a.cc:3:2: error: stray '#' in program
3 | >#include<algorithm>
| ^
a.cc:1:1: error: expected unqualified-id before '>' token
1 | >#include<iostream>
| ^
a.cc:5:1: error: expected unqualified-id before '>' token
5 | >int main(){
| ^
|
s383147137 | p03803 | C++ | #include<iostream>
#include<string>
#include<algorithm>
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 if(a==1){
cout<<"Alice"<<endl;
}
else if(b==1){
cout<<"Bob"<<endl;
}
} | a.cc:5:5: error: cannot declare '::main' to be a global variable
5 | int main{
| ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
6 | int a,b;
| ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
5 | int main{
| ^
a.cc:7:9: error: 'cin' does not name a type
7 | cin>>a>>b;
| ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(a<=b){
| ^~
a.cc:13:9: error: expected unqualified-id before 'else'
13 | else if(a>=b){
| ^~~~
a.cc:18:9: error: expected unqualified-id before 'else'
18 | else if(a==1){
| ^~~~
a.cc:23:9: error: expected unqualified-id before 'else'
23 | else if(b==1){
| ^~~~
a.cc:29:1: error: expected declaration before '}' token
29 | }
| ^
|
s841148410 | p03803 | C++ | #include<iostream>
#include<string>
#include<algorithm>
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 if(a==1){
cout<<"Alice"<<endl;
}
else if(b==1){
cout<<"Bob"<<endl;
}
} | a.cc:5:5: error: cannot declare '::main' to be a global variable
5 | int main{
| ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
6 | int a,b;
| ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
5 | int main{
| ^
a.cc:7:9: error: 'cin' does not name a type
7 | cin>>a>>b;
| ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(a<b){
| ^~
a.cc:13:9: error: expected unqualified-id before 'else'
13 | else if(a>b){
| ^~~~
a.cc:18:9: error: expected unqualified-id before 'else'
18 | else if(a==1){
| ^~~~
a.cc:23:9: error: expected unqualified-id before 'else'
23 | else if(b==1){
| ^~~~
a.cc:29:1: error: expected declaration before '}' token
29 | }
| ^
|
s610559995 | p03803 | C++ | #include<iostream>
#include<string>
#include<algorithm>
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 if(a==1){
cout<<Alice<<endl;
}
else if(b==1){
cout<<Bob<<endl;
}
} | a.cc:5:5: error: cannot declare '::main' to be a global variable
5 | int main{
| ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
6 | int a,b;
| ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
5 | int main{
| ^
a.cc:7:9: error: 'cin' does not name a type
7 | cin>>a>>b;
| ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(a<b){
| ^~
a.cc:13:9: error: expected unqualified-id before 'else'
13 | else if(a>b){
| ^~~~
a.cc:18:9: error: expected unqualified-id before 'else'
18 | else if(a==1){
| ^~~~
a.cc:23:9: error: expected unqualified-id before 'else'
23 | else if(b==1){
| ^~~~
a.cc:29:1: error: expected declaration before '}' token
29 | }
| ^
|
s323657396 | p03803 | C++ | #include<iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
if(A!=a && B!=1)
{
if(A>B)
{
cout<<"Alice"<<endl;
}
if(A<B)
{
cout<<"Bob"<<endl;
}
if(A==B)
{
cout<<"Draw"<<endl;
}
}
if(A==1)
{
if(B==1)
{
cout<<"Draw"<<endl;
}else{
cout<<"Alice"<<endl;
}
}
if(B==1)
{
if(A==1)
{
cout<<"Draw"<<endl;
}else{
cout<<"Bob"<<endl;
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'a' was not declared in this scope
7 | if(A!=a && B!=1)
| ^
|
s800430256 | p03803 | C | include<stdio.h>
int main(){
int a,b,c,d,e,f;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
scanf("%d",&f);
if((a+5*b+10*c+d*50+e*100+f*500)>=1000){
printf("1\n");
}else{
printf("0\n");
}
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s837854208 | p03803 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==1)a=14;
if(b==1)b=14;
if(a==b) cont<<"Draw";
else if(a>b) cout<<"Alice";
else cout<<"Bob";
system("pause");
return“0”;
} | a.cc:13:1: error: extended character “ is not valid in an identifier
13 | return“0”;
| ^
a.cc:13:1: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:10: error: 'cont' was not declared in this scope; did you mean 'const'?
9 | if(a==b) cont<<"Draw";
| ^~~~
| const
a.cc:13:1: error: 'return\U0000201c0\U0000201d\U0000ff1b' was not declared in this scope
13 | return“0”;
| ^~~~~~~~~~~
|
s718392849 | p03803 | C++ | #include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
}#include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if (A>B)cout <<"Alice"<<endl;
if (B>A)cout <<"Bob"<<endl;
if (A=B)cout <<"Draw"<<endl;
system ("pause");
return 0;
} | a.cc:14:2: error: stray '#' in program
14 | }#include <iostream>
| ^
a.cc:27:2: error: stray '#' in program
27 | }#include <iostream>
| ^
a.cc:40:2: error: stray '#' in program
40 | }#include <iostream>
| ^
a.cc:53:2: error: stray '#' in program
53 | }#include <iostream>
| ^
a.cc:66:2: error: stray '#' in program
66 | }#include <iostream>
| ^
a.cc:79:2: error: stray '#' in program
79 | }#include <iostream>
| ^
a.cc:92:2: error: stray '#' in program
92 | }#include <iostream>
| ^
a.cc:105:2: error: stray '#' in program
105 | }#include <iostream>
| ^
a.cc:14:3: error: 'include' does not name a type
14 | }#include <iostream>
| ^~~~~~~
a.cc:16:5: error: redefinition of 'int main()'
16 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:27:3: error: 'include' does not name a type
27 | }#include <iostream>
| ^~~~~~~
a.cc:29:5: error: redefinition of 'int main()'
29 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:40:3: error: 'include' does not name a type
40 | }#include <iostream>
| ^~~~~~~
a.cc:42:5: error: redefinition of 'int main()'
42 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:53:3: error: 'include' does not name a type
53 | }#include <iostream>
| ^~~~~~~
a.cc:55:5: error: redefinition of 'int main()'
55 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:66:3: error: 'include' does not name a type
66 | }#include <iostream>
| ^~~~~~~
a.cc:68:5: error: redefinition of 'int main()'
68 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:79:3: error: 'include' does not name a type
79 | }#include <iostream>
| ^~~~~~~
a.cc:81:5: error: redefinition of 'int main()'
81 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:92:3: error: 'include' does not name a type
92 | }#include <iostream>
| ^~~~~~~
a.cc:94:5: error: redefinition of 'int main()'
94 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
a.cc:105:3: error: 'include' does not name a type
105 | }#include <iostream>
| ^~~~~~~
a.cc:107:5: error: redefinition of 'int main()'
107 | int main()
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
|
s849335436 | p03803 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a;
cin>>b;
if (a==1)
int a=14
if (a>b)
cout<<"Alice"
if (b==1)
int b=14
if (b>a)
cout<<"Bob";
if (b==a)
cout<<"Draw";
system ("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'if'
10 | if (a>b)
| ^~
|
s598783919 | p03803 | C++ | #include <iostream>
#include<string>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==b){
cout<<"Draw"<<endl;
return 0;
}
if(a==1)a+=13;
if(b==1)b+=13;
cout<<(a>b)?"Alice":"Bob"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:19:30: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
19 | cout<<(a>b)?"Alice":"Bob"<<endl;
| ~~~~~^~~~~~
|
s561161222 | p03803 | C++ | #include <iostream>
#include<string>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==b){
cout<<"Draw"<<endl;
return 0;
}
if(a==1)a+=13
if(b==1)b+=13
cout<<(a>b)?"Alice":"Bob"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before 'if'
16 | if(a==1)a+=13
| ^
| ;
17 | if(b==1)b+=13
| ~~
|
s176433125 | p03803 | C++ | #include <iostream>
#include <string>
#include <array>
#include <vector>
#include <math.h>
#include <algorithm>
#include <set>
#include <deque>
#include <utility>
#include <map>
#define ll long long int
#define MAX 1000000
using namespace std;
int main(void)
{
int a, b;
cin >> a >> b;
if (a == b) {
cout << "Draw" << endl;
return (0);
}
if (a == 1) {
cout << "Alice" << endl;
return 0;
}
if (b == 1) {
cout << "Bob" << endl;
return 0;
}
if (a > b) {
cout << "Alice" << endl;
return 0;
}
else {
cout << "Bob" << endl;
}
return (0);
}
#include <iostream>
#include <string>
#include <array>
#include <vector>
#include <math.h>
#include <algorithm>
#include <set>
#include <deque>
#include <utility>
#include <map>
#define ll long long int
#define MAX 1000000
using namespace std;
int main(void)
{
int a, b;
cin >> a >> b;
if (a == b) {
cout << "Draw" << endl;
return (0);
}
if (a == 1) {
cout << "Alice" << endl;
return 0;
}
if (b == 1) {
cout << "Bob" << endl;
return 0;
}
if (a > b) {
cout << "Alice" << endl;
return 0;
}
else {
cout << "Bob" << endl;
}
return (0);
}
| a.cc:65:5: error: redefinition of 'int main()'
65 | int main(void)
| ^~~~
a.cc:17:5: note: 'int main()' previously defined here
17 | int main(void)
| ^~~~
|
s303692133 | p03803 | Java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
/String line = br.readLine();
Scanner scan = new Scanner(System.in);
int a = Integer.parseInt(scan.next());
int b = Integer.parseInt(scan.next());
if(a==b)
System.out.println("Draw");
else if(a==1)
System.out.println("Alice");
else if(b==1)
System.out.println("Bob");
else if(a>b)
System.out.println("Alice");
else
System.out.println("Bob");
}
} | Main.java:10: error: illegal start of expression
/String line = br.readLine();
^
Main.java:10: error: ';' expected
/String line = br.readLine();
^
2 errors
|
s119365185 | p03803 | C++ | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
if(a > b){
if(b == 1){
System.out.println("Bob");
}else{
System.out.println("Alice");
}
}else if (a < b){
if(a == 1){
System.out.println("Alice");
}else {
System.out.println("Bob");
}
}else {
System.out.println("Draw");
}
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.io.IOException;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.Scanner;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public class Main {
| ^~~~~~
|
s597032241 | p03803 | C++ | a, b = map(int, input().split())
if a == 1 :
a = 14
if b == 1 :
b = 14
if a > b :
print ('Alice')
else :
print('Bob') | a.cc:7:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
7 | print ('Alice')
| ^~~~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
9 | print('Bob')
| ^~~~~
a.cc:1:1: error: 'a' does not name a type
1 | a, b = map(int, input().split())
| ^
|
s421709149 | p03803 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin >> A >>B;
if((A>=2 && A<=12) && (B>=2 && B<=12)){
if(A==B){
cout << "Draw" << endl;
}else if(A<B){
cout << "Bob" << endl;
}else if(A>B){
cout << "Alice" << endl;
}
}else if(A==1 && (B>=2 && B<=12)){
cout << "Alice" << endl;
}else if((A>=2 && A<=12) && B==1){
cout << "Bob" << endl;
}else if(A==1 && B==1){
cout << "Draw2" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
26 | }
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s518742135 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int A,B;
cin>>A >>B;
if (A==1){
A=14
}
if (B==2){
B=14
}
if (A==B){
cout<<"Draw"<<endl;
return 0;
}
if(A>B){
cout<<"Alice"<<endl;
}
else{
cout<<"Bob"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before '}' token
7 | A=14
| ^
| ;
8 | }
| ~
a.cc:10:16: error: expected ';' before '}' token
10 | B=14
| ^
| ;
11 | }
| ~
|
s515151822 | p03803 | Java | public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
@SuppressWarnings("resource")
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
if (A == B) {
System.out.println("DRAW");
} else if (A == 1 && B >= 2 && B <= 13) {
System.out.println("Alice");
} else if (B == 1 && A >= 2 && B <= 13) {
System.out.println("Bob");
} else if (A > B) {
System.out.println("Alice");
} else if (A < B) {
System.out.println("Bob");
}
}
}
| Main.java:7: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s767014272 | p03803 | C++ | package main
import (
"fmt"
)
func main(){
var a,b int
fmt.Scan(&a, &b)
if a == 1 {
a = 14
}
if b == 1 {
b = 14
}
if a == b {
fmt.Println("Draw")
} else if a > b {
fmt.Println("Alice")
} else {
fmt.Println("Bob")
}
} | a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
|
s413221589 | p03803 | C++ | #include<iostream>
using namespace std;
int main(void){
int A,B;
cin>>A>>B;
if(A==1) A=14;
if(B==1) B=14;
if(A>B){
cout<<"Alice"<<endl;
}
else if(A<B){
cout<<"Bob"<<endl;
}
else{
cour<<"Drow"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:15:5: error: 'cour' was not declared in this scope
15 | cour<<"Drow"<<endl;
| ^~~~
|
s780610559 | p03803 | C++ | #include<iostream>
using namespace std;
int main{
int A,B;
cin>>A,B;
if(A==1) A=14;
if(B==1) B=14;
if(A>B){
cout<<"Alice"<<endl;
}
else if(A<B){
cout<<"Bob"<<endl;
}
else{
cour<<"Drow"<<endl;
}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int A,B;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:9: error: 'cin' does not name a type
5 | cin>>A,B;
| ^~~
a.cc:6:9: error: expected unqualified-id before 'if'
6 | if(A==1) A=14;
| ^~
a.cc:7:9: error: expected unqualified-id before 'if'
7 | if(B==1) B=14;
| ^~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(A>B){
| ^~
a.cc:11:9: error: expected unqualified-id before 'else'
11 | else if(A<B){
| ^~~~
a.cc:14:5: error: expected unqualified-id before 'else'
14 | else{
| ^~~~
a.cc:18:1: error: expected unqualified-id before 'return'
18 | return 0;
| ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
19 | }
| ^
|
s408318042 | p03803 | C++ | #include<iostream>
using namespace std;
int main{
int A,B;
cin>>A,B;
if(A==1) A=14;
if(B==1) B=14;
if(A>B){
cout<<"Alice"<<endl;
}else if(A<B){
cout<<"Bob"<<endl;
}else{
cour<<"Drow"<<endl;
}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int A,B;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:9: error: 'cin' does not name a type
5 | cin>>A,B;
| ^~~
a.cc:6:9: error: expected unqualified-id before 'if'
6 | if(A==1) A=14;
| ^~
a.cc:7:9: error: expected unqualified-id before 'if'
7 | if(B==1) B=14;
| ^~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(A>B){
| ^~
a.cc:10:10: error: expected unqualified-id before 'else'
10 | }else if(A<B){
| ^~~~
a.cc:12:6: error: expected unqualified-id before 'else'
12 | }else{
| ^~~~
a.cc:16:1: error: expected unqualified-id before 'return'
16 | return 0;
| ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
17 | }
| ^
|
s992167082 | p03803 | Java | public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int A =scan.nextInt();
int B =scan.nextInt();
if(A==1){
A=14;
}else if(B==1){
B=14;
}
if(A>B){
System.out.println("Alice");
}else if(B>A){
System.out.println("Bob");
}else{
System.out.println("Draw");
}
}
} | Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s382453881 | p03803 | C++ | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int a,b;
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
if(a == b){
System.out.println("Draw");
}else if(a == 1){
System.out.println("Alice");
}else if(b == 1){
System.out.println("Bob");
}else if(a > b){
System.out.println("Alice");
}else{
System.out.println("Bob");
}
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main{
| ^~~~~~
|
s195462898 | p03803 | Java | import java.util.Scanner;
public class A_OneCardPoker {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
if(a == 1){
a=a+13;
}
if(b == 1){
b=b+13;
}
if(a == b) {
System.out.println("Draw");
}else if(a > b) {
System.out.println("Alice");
}else {
System.out.println("Bob");
}
}
} | Main.java:3: error: class A_OneCardPoker is public, should be declared in a file named A_OneCardPoker.java
public class A_OneCardPoker {
^
1 error
|
s363022797 | p03803 | Java | import java.util.Scanner;
public class Main054A {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a == 1){
a =14;
}
if(b == 1){
b =14;
}
if(a == b ){
System.out.println("Draw");
}else if(a>b){
System.out.println("Alice");
}else{
System.out.println("Bob");
}
sc.close();
}
} | Main.java:2: error: class Main054A is public, should be declared in a file named Main054A.java
public class Main054A {
^
1 error
|
s477751398 | p03803 | Java | import java.util.Scanner;
public class Main054A {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a == b ){
System.out.println("draw");
}else if(a == 1){
System.out.println("Alice");
}else if(b == 1){
System.out.println("Bob");
}else if(a>b){
System.out.println("Alice");
}else{
System.out.println("Bob");
}
sc.close();
}
} | Main.java:2: error: class Main054A is public, should be declared in a file named Main054A.java
public class Main054A {
^
1 error
|
s215090631 | p03803 | C++ | #include <iostream>
#include <cstring>
#include <stdio.h>
#include <algorithm>
#include <climits>
using namespace std;
int main(){
int a, b;
cin>>a>>b;
a>b?cout<<"Alice":a==b?"Draw":cout<<"Bob";
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:31: error: operands to '?:' have different types 'const char [5]' and 'std::basic_ostream<char>'
12 | a>b?cout<<"Alice":a==b?"Draw":cout<<"Bob";
| ~~~~^~~~~~~~~~~~~~~~~~~
|
s848216182 | p03803 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if( A == B ){
System.out.println("Draw");
}
else if((A == 1 && B != 1)||( A > B )){
System.out.println("Alice");
}
else if((A != 1 && B == 1)||( A < B )){
System.out.println("Bob");
}
}
}
| Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s152435810 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A =sc.nextInt();
int B =sc.nextInt();
if(A==1)A=14;
if(B==1)B=14;
if(A==B)System.out.println("Draw");
if(A>B)Sytem.out.println("Alice");
if(B>A)System.out.println("Bob");
}
} | Main.java:10: error: package Sytem does not exist
if(A>B)Sytem.out.println("Alice");
^
1 error
|
s205426225 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
Scanner sc = new Scanner(System.in);
int A =sc.nextInt();
int B =sc.nextInt();
if(A==1)A=14;
if(B==1)B=14;
if(A==B)System.out.println("Draw");
if(A>B)Sytem.out.println("Alice");
if(B>A)System.out.println("Bob");
}
}
| Main.java:12: error: package Sytem does not exist
if(A>B)Sytem.out.println("Alice");
^
1 error
|
s436307202 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A < B){
System.out.println(Bob);
}
else if(A > B){
System.out.println(Alice);
}
else{
System.out.println(Draw);
}
}
}
| Main.java:15: error: cannot find symbol
System.out.println(Bob);
^
symbol: variable Bob
location: class Main
Main.java:18: error: cannot find symbol
System.out.println(Alice);
^
symbol: variable Alice
location: class Main
Main.java:21: error: cannot find symbol
System.out.println(Draw);
^
symbol: variable Draw
location: class Main
3 errors
|
s182988183 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A < B){
System.out.println(Bob);
}
else if(A > B){
System.out.println(Alice);
}
else(A = B){
System.out.println(Draw);
}
}
}
| Main.java:20: error: not a statement
else(A = B){
^
Main.java:20: error: ';' expected
else(A = B){
^
2 errors
|
s031127672 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A < B){
System.out.println(Bob);
}
elseif(A > B){
System.out.println(Alice);
}
else(A = B){
System.out.println(Draw);
}
| Main.java:17: error: ';' expected
elseif(A > B){
^
Main.java:20: error: not a statement
else(A = B){
^
Main.java:20: error: ';' expected
else(A = B){
^
Main.java:20: error: 'else' without 'if'
else(A = B){
^
Main.java:22: error: reached end of file while parsing
}
^
5 errors
|
s500925211 | p03803 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if(A==1){
A==14;
}
if(B==1){
B==14;
}
if(A < B){
System.out.println(Bob);
}
elseif(A > B){
System.out.println(Alice);
}
else(A = B){
System.out.println(Draw);
}
| Main.java:9: error: not a statement
A==14;
^
Main.java:12: error: not a statement
B==14;
^
Main.java:17: error: ';' expected
elseif(A > B){
^
Main.java:20: error: not a statement
else(A = B){
^
Main.java:20: error: ';' expected
else(A = B){
^
Main.java:20: error: 'else' without 'if'
else(A = B){
^
Main.java:22: error: reached end of file while parsing
}
^
7 errors
|
s380836792 | p03803 | Java | public class ABC054_A {
public static void main(String[] args){
int A=8,B=6;
if(A>B){
System.out.println("Alice");
}
else if(A==B){
System.out.println("Draw");
}
else{
System.out.println("Bob");
}
}
} | Main.java:1: error: class ABC054_A is public, should be declared in a file named ABC054_A.java
public class ABC054_A {
^
1 error
|
s604239651 | p03803 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if(A==1)A=14;
if(B==1)B=14
if(A==B){System.out.println("Draw");
if(A>B){system.out.println("Alice");
if(B>A){system.out.println("Bob");
}
} | Main.java:8: error: ';' expected
if(B==1)B=14
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
|
s078332952 | p03803 | C++ | #include <bits/stdc++.h>
#include<stdio.h>
using namespace std;
int main(){
int a[2];
for(int i=0;i<2;i++){
a[i]=scanf();
}
if(a[1]>a[2]){
printf("Alice");
}
else if(a[1]<a[2]){
printf("Bob");
}
else{
printf("Draw");
}
}
| a.cc: In function 'int main()':
a.cc:8:15: error: too few arguments to function 'int scanf(const char*, ...)'
8 | a[i]=scanf();
| ~~~~~^~
In file included from /usr/include/features.h:523,
from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
from /usr/include/c++/14/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
from a.cc:1:
/usr/include/stdio.h:445:12: note: declared here
445 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
| ^~~~~~~~~~
|
s911905142 | p03803 | C++ | #include <bits/stdc++.h>
#include<stdio>
using namespace std;
int main(){
int a[2];
for(int i=0;i<2;i++){
a[i]=scanf();
}
if(a[1]>a[2]){
printf("Alice");
}
else if(a[1]<a[2]){
printf("Bob");
}
else{
printf("Draw");
}
} | a.cc:2:9: fatal error: stdio: No such file or directory
2 | #include<stdio>
| ^~~~~~~
compilation terminated.
|
s546365083 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a[2];
a=scanf();
if(a[1]>a[2]){
printf("Alice");
}
else if(a[1]<a[2]){
printf("Bob");
}
else{
printf("Draw");
}
}
| a.cc: In function 'int main()':
a.cc:6:10: error: too few arguments to function 'int scanf(const char*, ...)'
6 | a=scanf();
| ~~~~~^~
In file included from /usr/include/features.h:523,
from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
from /usr/include/c++/14/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
from a.cc:1:
/usr/include/stdio.h:445:12: note: declared here
445 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
| ^~~~~~~~~~
|
s559889425 | p03803 | Java | import java.util.*;
public class A_054 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A=sc.nextInt(), B=sc.nextInt();
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A>B){
System.out.println("Alice");
}
else if(B>A){
System.out.println("Bob");
}
else{
System.out.println("Draw");
}
}
} | Main.java:2: error: class A_054 is public, should be declared in a file named A_054.java
public class A_054 {
^
1 error
|
s657011054 | p03803 | C | int main(int argc, const char * argv[]) {
int A,B;
scanf("%d\n",&A);
scanf("%d\n",&B);
if(A==1&&B!=1){
printf("Alice\n");
}
else if(A!=1&&B==1){
printf("Bob\n");
}
else if(A>B){
printf("Alice\n");
}
else if(B>A){
printf("Bob\n");
}
else {
printf("Draw\n");
} | main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | scanf("%d\n",&A);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main(int argc, const char * argv[]) {
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | scanf("%d\n",&A);
| ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
7 | printf("Alice\n");
| ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
10 | printf("Bob\n");
| ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
14 | printf("Alice\n");
| ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
17 | printf("Bob\n");
| ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
20 | printf("Draw\n");
| ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:5: error: expected declaration or statement at end of input
21 | }
| ^
|
s568448234 | p03803 | C | int main(int argc, const char * argv[]) {
int A,B;
scanf("%d\n",&A);
scanf("%d\n",&B);
if(A==1&&B!=1){
printf("Alice\n");
}
else if(A!=1&&B==1){
printf("Bob\n");
}
else if(A>B){
printf("Alice\n");
}
else if(B>A){
printf("Bob\n");
}
else {
printf("Draw\n");
} | main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | scanf("%d\n",&A);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main(int argc, const char * argv[]) {
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | scanf("%d\n",&A);
| ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
7 | printf("Alice\n");
| ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
10 | printf("Bob\n");
| ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
14 | printf("Alice\n");
| ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
17 | printf("Bob\n");
| ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
20 | printf("Draw\n");
| ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:5: error: expected declaration or statement at end of input
21 | }
| ^
|
s582226731 | p03803 | C++ | int main(int argc, const char * argv[]) {
int A,B;
scanf("%d\n",&A);
scanf("%d\n",&B);
if(A==1&&B!=1){
printf("Alice\n");
}
else if(A!=1&&B==1){
printf("Bob\n");
}
else if(A>B){
printf("Alice\n");
}
else if(B>A){
printf("Bob\n");
}
else {
printf("Draw\n");
} | a.cc: In function 'int main(int, const char**)':
a.cc:3:5: error: 'scanf' was not declared in this scope
3 | scanf("%d\n",&A);
| ^~~~~
a.cc:7:9: error: 'printf' was not declared in this scope
7 | printf("Alice\n");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(int argc, const char * argv[]) {
a.cc:10:9: error: 'printf' was not declared in this scope
10 | printf("Bob\n");
| ^~~~~~
a.cc:10:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:14:9: error: 'printf' was not declared in this scope
14 | printf("Alice\n");
| ^~~~~~
a.cc:14:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:17:9: error: 'printf' was not declared in this scope
17 | printf("Bob\n");
| ^~~~~~
a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:20:9: error: 'printf' was not declared in this scope
20 | printf("Draw\n");
| ^~~~~~
a.cc:20:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:21:6: error: expected '}' at end of input
21 | }
| ^
a.cc:1:41: note: to match this '{'
1 | int main(int argc, const char * argv[]) {
| ^
|
s527385636 | p03803 | C++ | #!/usr/bin/env python3
if __name__ == '__main__':
l = list([-1,100])
for i in range(2,14):
l.append(i)
# for i in range(1,14):
# print(i, l[i])
s = str(input()).split(" ")
a = int(s[0])
b = int(s[1])
if l[a] > l[b]:
print("Alice")
elif l[a] < l[b]:
print("Bob")
else:
print("Draw")
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env python3
| ^
a.cc:2:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
2 | if __name__ == '__main__':
| ^~~~~~~~~~
a.cc:6:5: error: invalid preprocessing directive #for
6 | # for i in range(1,14):
| ^~~
a.cc:7:7: error: invalid preprocessing directive #print
7 | # print(i, l[i])
| ^~~~~
a.cc:2:1: error: expected unqualified-id before 'if'
2 | if __name__ == '__main__':
| ^~
|
s353308595 | p03803 | C++ | fwrfうぇf | a.cc:1:1: error: '\U0000ff46\U0000ff57\U0000ff52\U0000ff46\U00003046\U00003047\U0000ff46' does not name a type
1 | fwrfうぇf
| ^~~~~~~~~~~~~~
|
s445220629 | p03803 | Java | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
int a=sc.nextInt(); if(a==1) a+=13;
int b=sc.nextInt(); if(b==1) b+=13;
if(a>b) System.out.println("Alice");
else if(a<b) System.out.println("Bob");
else System.out.println("Draw");
}
}
} | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:3: error: class, interface, enum, or record expected
class Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
4 errors
|
s605180963 | p03803 | Java | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
while(sc.hasNext()){
int a=input.nextInt(); if(a==1) a+=13;
int b=input.nextInt(); if(b==1) b+=13;
if(a>b) System.out.println("Alice");
else if(a<b) System.out.println("Bob");
else System.out.println("Draw");
}
}
} | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:3: error: class, interface, enum, or record expected
class Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
4 errors
|
s462380778 | p03803 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
if(a == 1) a += 13;
if(b == 1) b += 13;
if(a > b) System.out.println("Allice");
else if(b > a) System.out.println("Bob");
else System.out.println("Draw");
input.close();
}
} | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:4: error: illegal character: '\u00a0'
?
^
Main.java:19: error: illegal character: '\u00a0'
?
^
Main.java:20: error: reached end of file while parsing
}
^
4 errors
|
s759918787 | p03803 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
if(a == 1) a += 13;
if(b == 1) b += 13;
if(a > b) System.out.println("Allice");
else if(b > a) System.out.println("Bob");
else System.out.println("Draw");
input1.close();
}
}
| Main.java:15: error: cannot find symbol
input1.close();
^
symbol: variable input1
location: class Main
1 error
|
s817608876 | p03803 | C | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a==1) a+=30;
if(b==1) b+=30;
if(a==b) printf("Draw\n");
else if(a>b) printf("Alice\n");
else printf("Bob\n");
return 0;
} | main.c:2:1: error: stray '\302' in program
2 | <U+00A0>
| ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
4 | <U+00A0>
| ^~~~~~~~
main.c:6:1: error: stray '\302' in program
6 | <U+00A0>
| ^~~~~~~~
main.c:11:1: error: stray '\302' in program
11 | <U+00A0>
| ^~~~~~~~
main.c:15:1: error: stray '\302' in program
15 | <U+00A0>
| ^~~~~~~~
main.c:17:1: error: stray '\302' in program
17 | <U+00A0>
| ^~~~~~~~
|
s886062074 | p03803 | C | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d", &a, &b);
if(a == 1) a+= 13;
if(b == 1) b+= 13;
if(a == b) printf("Drow\n);
else if(a > b) printf("Alice\n);
else printf("Bob\n);
return 0;
} | main.c: In function 'main':
main.c:10:23: warning: missing terminating " character
10 | if(a == b) printf("Drow\n);
| ^
main.c:10:23: error: missing terminating " character
10 | if(a == b) printf("Drow\n);
| ^~~~~~~~~
main.c:11:5: error: expected expression before 'else'
11 | else if(a > b) printf("Alice\n);
| ^~~~
main.c:11:27: warning: missing terminating " character
11 | else if(a > b) printf("Alice\n);
| ^
main.c:11:27: error: missing terminating " character
11 | else if(a > b) printf("Alice\n);
| ^~~~~~~~~~
main.c:12:17: warning: missing terminating " character
12 | else printf("Bob\n);
| ^
main.c:12:17: error: missing terminating " character
12 | else printf("Bob\n);
| ^~~~~~~~
main.c:15:1: error: expected declaration or statement at end of input
15 | }
| ^
|
s815430087 | p03803 | C | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a==1) a+=30;
if(b==1) b+=30;
if(a==b) printf("Draw\n");
else if(a>b) printf("Alice\n");
else printf("Bob\n");
return 0;
} | main.c:2:1: error: stray '\302' in program
2 | <U+00A0>
| ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
4 | <U+00A0>
| ^~~~~~~~
main.c:6:1: error: stray '\302' in program
6 | <U+00A0>
| ^~~~~~~~
main.c:11:1: error: stray '\302' in program
11 | <U+00A0>
| ^~~~~~~~
main.c:15:1: error: stray '\302' in program
15 | <U+00A0>
| ^~~~~~~~
main.c:17:1: error: stray '\302' in program
17 | <U+00A0>
| ^~~~~~~~
|
s045209345 | p03803 | C | #include<stdio.h>
int main(void){
int alice, bob;
do{
scanf("%d %d", alice, bob);
} while(1<= alice && alice <= 13 && 1<= bob && bob <= 13);
if(alice == 1){
if(bob == 1) printf("Drow\n");
printf("Alice\n");
}
if(alice > 1 && bob >1){
if(alice == bob) printf("Drow\n");
else if(alice > bob) printf("Alice\n");
else printf("Bob\n")
}
return 0;
} | main.c: In function 'main':
main.c:18:25: error: expected ';' before '}' token
18 | else printf("Bob\n")
| ^
| ;
19 | }
| ~
|
s215273406 | p03803 | C++ | #include<iosrteam>
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;
return 0;
} | a.cc:1:9: fatal error: iosrteam: No such file or directory
1 | #include<iosrteam>
| ^~~~~~~~~~
compilation terminated.
|
s834921053 | p03803 | C++ | #include <iostream>
using namespace std;
const int max = 8;
bool graph[max][max];
int dfs(int v, int N, bool visited[max]) {
bool all_visited = true;
for (int i = 0; i < N; ++i) {
if (visited[i] == false)
all_visited = false;
}
if (all_visited) {
return 1;
}
int ret = 0;
for (int i = 0; i < N; i++) {
if (graph[v][i] == false) continue;
if (visited[i]) continue;
visited[i] = true;
ret += dfs(i, N, visited);
visited[i] = false;
}
return ret;
}
int main(void) {
int N, M;
cin >> N >> M;
for (int i = 0; i < M; ++i) {
int A, B;
cin >> A >> B;
graph[A - 1][B - 1] = graph[B - 1][A - 1] = true;
}
bool visited[max];
for (int i = 0; i < N; ++i) {
visited[i] = false;
}
visited[0] = true;
cout << dfs(0, N, visited) << endl;
return 0;
} | a.cc:5:12: error: reference to 'max' is ambiguous
5 | bool graph[max][max];
| ^~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
a.cc:4:11: note: 'const int max'
4 | const int max = 8;
| ^~~
a.cc:5:17: error: reference to 'max' is ambiguous
5 | bool graph[max][max];
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
a.cc:4:11: note: 'const int max'
4 | const int max = 8;
| ^~~
a.cc:7:36: error: reference to 'max' is ambiguous
7 | int dfs(int v, int N, bool visited[max]) {
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
a.cc:4:11: note: 'const int max'
4 | const int max = 8;
| ^~~
a.cc: In function 'int dfs(...)':
a.cc:11:29: error: 'N' was not declared in this scope
11 | for (int i = 0; i < N; ++i) {
| ^
a.cc:12:21: error: 'visited' was not declared in this scope; did you mean 'all_visited'?
12 | if (visited[i] == false)
| ^~~~~~~
| all_visited
a.cc:22:29: error: 'N' was not declared in this scope
22 | for (int i = 0; i < N; i++) {
| ^
a.cc:23:21: error: 'graph' was not declared in this scope; did you mean 'isgraph'?
23 | if (graph[v][i] == false) continue;
| ^~~~~
| isgraph
a.cc:23:27: error: 'v' was not declared in this scope
23 | if (graph[v][i] == false) continue;
| ^
a.cc:24:21: error: 'visited' was not declared in this scope; did you mean 'all_visited'?
24 | if (visited[i]) continue;
| ^~~~~~~
| all_visited
a.cc:26:17: error: 'visited' was not declared in this scope; did you mean 'all_visited'?
26 | visited[i] = true;
| ^~~~~~~
| all_visited
a.cc: In function 'int main()':
a.cc:40:17: error: 'graph' was not declared in this scope; did you mean 'isgraph'?
40 | graph[A - 1][B - 1] = graph[B - 1][A - 1] = true;
| ^~~~~
| isgraph
a.cc:44:22: error: reference to 'max' is ambiguous
44 | bool visited[max];
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
a.cc:4:11: note: 'const int max'
4 | const int max = 8;
| ^~~
a.cc:47:17: error: 'visited' was not declared in this scope
47 | visited[i] = false;
| ^~~~~~~
a.cc:50:9: error: 'visited' was not declared in this scope
50 | visited[0] = true;
| ^~~~~~~
|
s601941342 | p03803 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
for(){}
if(a==1)a=14;
if(b==1)b=14;
if(a==b){
cout<<"Draw";
}
else if(a>b){
cout<<"Alice";
}else{
cout<<"Bob";
}
} | a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before ')' token
6 | for(){}
| ^
a.cc:7:9: error: expected primary-expression before 'if'
7 | if(a==1)a=14;
| ^~
a.cc:6:8: error: expected ';' before 'if'
6 | for(){}
| ^
| ;
7 | if(a==1)a=14;
| ~~
a.cc:7:9: error: expected primary-expression before 'if'
7 | if(a==1)a=14;
| ^~
a.cc:6:8: error: expected ')' before 'if'
6 | for(){}
| ~ ^
| )
7 | if(a==1)a=14;
| ~~
|
s339412662 | p03803 | C++ | #include <studio.h>
int main(void)
{
int a,b;
scanf("%d%d",&a,&b);
if(a==b) printf("Draw");
else if(a==2)printf("Alice");
else if(b==2)printf("Bob");
else if(a<b)printf("Bob");
else if(a>b)printf("Alice");
return 0;
}
| a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s836282140 | p03803 | C++ | #include<cstdio>
using namespace std;
int main(){
int a, b;
scanf("%d %d", &a, &b);
if(a == 1)a = 14;
if(b == 1)b = 14;
if(a < b) printf("Bob\n");
else if(a > b) printf("Alice\n");
else printf("Draw\n");
retun 0;
} | a.cc: In function 'int main()':
a.cc:18:1: error: 'retun' was not declared in this scope
18 | retun 0;
| ^~~~~
|
s550362372 | p03803 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a==b)cout << "Draw\n";
else {
if (a=1) cout << "Alice\n";
if else (b=1) cout << "Bob\n";
if else (a>b) cout << "Alice\n";
if else (b>a) cout << "Bob\n";
}
// your code goes here
return 0;
} | a.cc: In function 'int main()':
a.cc:11:20: error: expected '(' before 'else'
11 | if else (b=1) cout << "Bob\n";
| ^~~~
| (
a.cc:12:20: error: expected '(' before 'else'
12 | if else (a>b) cout << "Alice\n";
| ^~~~
| (
a.cc:13:20: error: expected '(' before 'else'
13 | if else (b>a) cout << "Bob\n";
| ^~~~
| (
|
s394462247 | p03803 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main() {
int A, B;
int a, b;
printf("A and B?\n");
scanf_s("%d %d", &A, &B);
a = (A - 1);
b = (B - 1);
if (a*b == 0) {
if ((a == 0) && (b == 0)) {
printf("Draw");
}
else if ((a == 0) && (b != 0)) {
printf("Alice");
}
else if ((a != 0) && (b == 0)) {
printf("Bob");
}
}
else {
if (A > B) {
printf("Alice");
}
else if (B > A) {
printf("Bob");
}
else if (A == B) {
printf("Draw");
}
}
return(0);
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
10 | scanf_s("%d %d", &A, &B);
| ^~~~~~~
| scanf
|
s972102234 | p03803 | C++ | #include<stdio.h>
#include<stdio.h>
#include<math.h>
#include<time.h>
#include<Windows.h>
int main() {
int A, B;
printf("A and B?");
scanf("%d %d", &A, &B);
if (A > B) {
printf("Alice");
}
else if (B > A) {
printf("Bob");
}
else if (A == B) {
printf("Draw");
}
return(0);
} | a.cc:5:9: fatal error: Windows.h: No such file or directory
5 | #include<Windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s637705491 | p03803 | C++ | 1 #include <iostream>
2
3 using namespace std;
4
5 int main (){
6 int A,B;
7 cin >> A >> B;
8 A-=1;
9 B-=1;
0 if(A==0){
1 A=13;
2 }
3 if(B==0){
4 B=13;
5 }
6 //cout << A << " " << B <<e
7 if(A==B){
8 cout <<"Draw" <<endl;
9 }else if(A<B){
0 cout << "Bob"<<endl;
1 }else{
2 cout <<"Alice"<<endl;
3 }
4 return 0;
5 }
| a.cc:1:3: error: stray '#' in program
1 | 1 #include <iostream>
| ^
a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1 #include <iostream>
| ^
a.cc:4:1: error: expected unqualified-id before numeric constant
4 | 4
| ^
|
s874549847 | p03803 | C++ | #include<string>
#include<iostream>
#include<algorithm>
#include<set>
#include<map>
#include<stack>
#include<unordered_set>
#include<math.h>
#include<vector>
#include<sstream>
#include<queue>
#include<functional>
#include<bitset>
#include<cstdio>
#include<iomanip>
#include <cstring>
#include <climits>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == 1) a = 14;
if (b == 1) b = 14;
if (a > b) { cout << "Alice" << endl; }
else if (a < b) { cout << "Bob" << end; }
else cout << "Draw" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:25:41: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
25 | else if (a < b) { cout << "Bob" << end; }
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/iostream:41,
from a.cc:2:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
306 | operator<<(nullptr_t)
| ^~~~~~~~
/usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::nullptr_t' |
s086969617 | p03803 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<array>
#include<algorithm>
#include<list>
#include<cmath>
#include<iomanip>
#include<queue>
#include<functional>
#include<climits>
#include<iterator>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<set>
#include<typeinfo>
#include<chrono>
#include<initializer_list>
using namespace std;
const double pi=4*atan(1.0);
constexpr long long mod=static_cast<long long>(1e9+7);
int main() {
cin >> A >> B ;
string C ;
if(A>B){C = 'Alice';
if(A<B) C = 'Bob';
else C = 'Draw';
}
cout<<C<<endl;
return 0;
} | a.cc:34:21: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
34 | if(A>B){C = 'Alice';
| ^~~~~~~
a.cc:35:29: warning: multi-character character constant [-Wmultichar]
35 | if(A<B) C = 'Bob';
| ^~~~~
a.cc:37:26: warning: multi-character character constant [-Wmultichar]
37 | else C = 'Draw';
| ^~~~~~
a.cc: In function 'int main()':
a.cc:30:16: error: 'A' was not declared in this scope
30 | cin >> A >> B ;
| ^
a.cc:30:21: error: 'B' was not declared in this scope
30 | cin >> A >> B ;
| ^
a.cc:34:21: warning: overflow in conversion from 'int' to 'char' changes value from '1818846053' to '101' [-Woverflow]
34 | if(A>B){C = 'Alice';
| ^~~~~~~
a.cc:35:29: warning: overflow in conversion from 'int' to 'char' changes value from '4353890' to '98' [-Woverflow]
35 | if(A<B) C = 'Bob';
| ^~~~~
a.cc:37:26: warning: overflow in conversion from 'int' to 'char' changes value from '1148346743' to '119' [-Woverflow]
37 | else C = 'Draw';
| ^~~~~~
|
s970392259 | p03803 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<array>
#include<algorithm>
#include<list>
#include<cmath>
#include<iomanip>
#include<queue>
#include<functional>
#include<climits>
#include<iterator>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<set>
#include<typeinfo>
#include<chrono>
#include<initializer_list>
using namespace std;
const double pi=4*atan(1.0);
constexpr long long mod=static_cast<long long>(1e9+7);
int main() {
cin >> A >> B ;
string C;
if(A>B){
cout<<C<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:30:16: error: 'A' was not declared in this scope
30 | cin >> A >> B ;
| ^
a.cc:30:21: error: 'B' was not declared in this scope
30 | cin >> A >> B ;
| ^
a.cc:44:6: error: expected '}' at end of input
44 | }
| ^
a.cc:27:16: note: to match this '{'
27 | int main() {
| ^
|
s717019011 | p03803 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if (A>B) cout << "Alice" << endl;
else if (A==B) out << "Draw" << endl;
else cout << "Bob" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:20: error: 'out' was not declared in this scope
8 | else if (A==B) out << "Draw" << endl;
| ^~~
|
s592872346 | p03803 | C++ | #include<iostream>
using namespace std;
int main(void)
{
int A, B;
cin >> A >> B;
if(A==1)A=14;
if(B==1)B=14;
if(A>B){
cout << "Alice"<<endl;
}else if(B>A){
cout << "Bob"<<endl;
}else{
cout << "Draw"<<endl;
}
return 0;
}
~ | a.cc:22:2: error: expected class-name at end of input
22 | ~
| ^
|
s106617768 | p03803 | C++ | #include<iostream>
int main(){
int a, b;
cin >> a >> b;
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:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin >> 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; ///< Linked to standard input
| ^~~
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout << "Alice" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout << "Alice" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "Bob" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "Bob" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << "Draw" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << "Draw" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s916680030 | p03803 | C++ | #include<iostream>
using namespace std;
int A, B;
int main(){
scanf("%d %d", &A, &B);
// scanf("%d\n", B);
if (A == 1){
if (B == 1){
printf("%s\n", "Draw");
}else{
printf("%s\n", "Alice");
}
}
if (B == 1 && A !== 1){
printf("%s\n", "Bob");
}
if (A !== 1 && B !== 1){
if (A < B){
printf("%s\n", "Bob");
}else if (A > B){
printf("%s\n", "Alice");
}else if (A = B){
printf("%s\n", "Draw");
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:16:21: error: expected primary-expression before '=' token
16 | if (B == 1 && A !== 1){
| ^
a.cc:19:11: error: expected primary-expression before '=' token
19 | if (A !== 1 && B !== 1){
| ^
a.cc:19:22: error: expected primary-expression before '=' token
19 | if (A !== 1 && B !== 1){
| ^
|
s336942977 | p03803 | C++ | if(A > B):
print("Alice")
elif(B > A):
print("Bob")
else:
print("Draw") | a.cc:1:1: error: expected unqualified-id before 'if'
1 | if(A > B):
| ^~
|
s908548167 | p03803 | C | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a==0 || b==0){
printf("UnderRange");
}else if(a>13 || b >13){
printf("OverRange")
}else if(a==b){
printf("Draw");
}else if(a<b){
printf("Alice");
}else{
printf("Bob")
}
return 0;
} | main.c: In function 'main':
main.c:11:36: error: expected ';' before '}' token
11 | printf("OverRange")
| ^
| ;
12 | }else if(a==b){
| ~
main.c:17:30: error: expected ';' before '}' token
17 | printf("Bob")
| ^
| ;
18 | }
| ~
|
s887447348 | p03803 | Java | import java.io.*;
import java.util.*;
public class Testy {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int Alice = in.nextInt();
int Bob = in.nextInt();
System.out.println(Alice == Bob ? "Draw" : Alice == 1 ? "Alice" : Bob == 1 ? "Bob" : Alice > Bob ? "Alice" : "Bob");
}
}
| Main.java:3: error: class Testy is public, should be declared in a file named Testy.java
public class Testy {
^
1 error
|
s293822944 | p03803 | Java | public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a == b) {
System.out.println("Draw");
} else if ((a > b && b != 1) || a == 1) {
System.out.println("Alice");
} else {
System.out.println("Bob");
}
}
} | Main.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s585789685 | p03803 | C++ | #include <iostream>
using namespace std;
int n,m,c;
string a[55],b[55];
int main() {
int i,j,k,l;
cin>>n>>m;
for(i=0; i<n; i++) cin>>a[i];
for(i=0; i<m; i++) cin>>b[i];
for(i=0; i=<n-m; i++)
for(j=0; j<=n-m; j++) {
c = 0;
for(k=0; k<m; k++) for(l=0; l<m; l++)
if(a[i+k][j+l] == b[k][l]) c++;
if(c == m*m) {cout<<"Yes"; return 0;}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before '<' token
10 | for(i=0; i=<n-m; i++)
| ^
|
s772332200 | p03803 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i, b, e) for(int i = (int)(b); i < (int)(e); i++)
#define rep(i, n) REP(i, 0, n)
#define fi first
#define se second
#define pb push_back
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
int main(){
int a, b;
cin>>a>>b;
a -= 1;
b -= 1;
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: In function 'int main()':
a.cc:24:32: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
24 | if(a > b) cout<<"Alice"<endl;
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1317 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: couldn't deduce template parameter '_Bi_iter'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1485 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: couldn't deduce template parameter '_Bi_iter'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1660 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: couldn't deduce template parameter '_CharT'
24 | if(a > b) cout<<"Alice"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:24:33: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_Cha |
s560883364 | p03803 | Java | import java.io.*;
import java.util.*;
public class OneCardPoker extends Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int A = s.nextInt();
int B = s.nextInt();
if (A == B) {
System.out.println("Draw");
}
else if (A == 1) {
System.out.println("Alice");
}
else if (B == 1) {
System.out.println("Bob");
}
else if (A > B) {
System.out.println("Alice");
}
else {
System.out.println("Bob");
}
}
} | Main.java:4: error: class OneCardPoker is public, should be declared in a file named OneCardPoker.java
public class OneCardPoker extends Main{
^
Main.java:4: error: cannot access Main
public class OneCardPoker extends Main{
^
bad source file: ./Main.java
file does not contain class Main
Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2 errors
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.