submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s777160707
p03803
Java
import java.io.*; import java.util.*; public class OneCardPoker { 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)...
Main.java:4: error: class OneCardPoker is public, should be declared in a file named OneCardPoker.java public class OneCardPoker { ^ 1 error
s210949441
p03803
C++
import java.io.*; import java.util.*; public class OneCardPoker { 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)...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ 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.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:1: ...
s458901530
p03803
C++
#include <bits\stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a == 1) { if (b == 1) { cout << "Draw" << endl; } else { cout << "Alice" << endl; } return 0; } if (b == 1) { cout << "Bob" << endl; return 0; } if (a > b) { cout << "Alice" <...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s118474512
p03803
C++
#include <bits\stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a == 1) { if (b == 1) { cout << "Draw" << endl; } else { cout << "Alice" << endl; } return 0; } if (b == 1) { cout << "Bob" << endl; return 0; } if (a > b) { cout << "Alice" <...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s045421795
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() { int a, b; while( cin >> a >> b ) { if(a==b) cout << "Draw" << endl; else { if{a==1} cout << "Alice" << endl; else if(b==1) cout << "Bob" << endl; ...
a.cc: In function 'int main()': a.cc:14:15: error: expected '(' before '{' token 14 | if{a==1} | ^ | ( a.cc:16:13: error: 'else' without a previous 'if' 16 | else if(b==1) | ^~~~
s128681366
p03803
C++
#include <stdio.h> #include <iostream> using namespace std; int main() { long long lnN, lnM; cin >> lnN; cin >> lnM; char nMatrixN[50][50]; memset(nMatrixN, NULL, sizeof(nMatrixN)); for (int i = 0; i < lnN; i++) { cin >> nMatrixN[i]; } char nMatrixM[50][50]; memset(nMatrixM, NULL, sizeof(nMatrixM)); for...
a.cc: In function 'int main()': a.cc:12:9: error: 'memset' was not declared in this scope 12 | memset(nMatrixN, NULL, sizeof(nMatrixN)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <iostream> +++ ...
s290555561
p03803
C++
#include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h> typedef struct edge{ int u,v; } EDGE; int search(int n,int visited[],int node[n][n],int position){ int node_local[n][n]; int visited_local[n]; memcpy(node_local,node,sizeof(int...
a.cc:13:42: error: use of parameter outside function body before ']' token 13 | int search(int n,int visited[],int node[n][n],int position){ | ^ a.cc:13:45: error: use of parameter outside function body before ']' token 13 | int search(int n,int visited[],int node[n]...
s567538734
p03803
C++
#include <iostream> using namespace std; int main(){ int N[2]; cin >> N[0] >> N[1]; __int64 map[2][64]; for (int i = 0; i < 2; i++){ for (int j = 0; j < N[i]; j++){ char in[50]; cin >> in; map[i][j] = 0; for (int k = 0; k < N[i]; k++){ if (in[k] == '#') map[i][j] = map[i][j] | (1<<k); } //...
a.cc: In function 'int main()': a.cc:8:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'? 8 | __int64 map[2][64]; | ^~~~~~~ | __int64_t a.cc:13:25: error: 'map' was not declared in this scope 13 | map[i][j] = 0; | ...
s749520017
p03803
Java
import java.util.Scanner; public class OneCardPoker { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int alice = sc.nextInt(), bob = sc.nextInt(); if(alice == 1 && bob != 1) System.out.println("Alice"); else if(bob == 1 && alice != 1) System.out.println("Bob"); els...
Main.java:5: error: class OneCardPoker is public, should be declared in a file named OneCardPoker.java public class OneCardPoker { ^ 1 error
s310459707
p03803
C++
#include<iostream> using namespace std; int maim() { unsigned int a,b; cin >> a >> b; a -= 2; b -= 2; if (a<b)cout << "Bob" << endl; else if (a == b)cout << "Draw" << endl; else cout << "Alice" << endl; return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s769977672
p03803
C++
#include <bits/stdc++.h> #define ll long long #define PRIME 1000000007 using namespace std; vector<bool> isprime(1000001, true); void sieve() { for(int i=2;i*i<=1000001;i++) { if(isprime[i]==true) { for(int j=(i+i);j<=1000001;j=j+i) { isprime[j]=false; } } } } int main() { ios_base::sync_with_std...
a.cc: In function 'int main()': a.cc:40:9: error: 'else' without a previous 'if' 40 | else | ^~~~
s649154475
p03803
C
include<stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); if(a > b) printf("Alice\n"); else if(a == b) printf("Draw\n"); else printf("Bob\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s807225047
p03803
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int M = Integer.parseInt(sc.next()); String imgA[N]; String imgB[M]; Boolean checkAB; int j; int k; String s = "No"; for(int i = 0;i<N;i++){ ...
Main.java:8: error: ']' expected String imgA[N]; ^ Main.java:8: error: ';' expected String imgA[N]; ^ Main.java:9: error: ']' expected String imgB[M]; ^ Main.java:9: error: ';' expected String imgB[M]; ^ 4 errors
s900608183
p03803
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int M = Integer.parseInt(sc.next()); String[N] imgA; String[M] imgB; Boolean checkAB; int j; int k; String s = "No"; for(int i = 0;i<N;i++){ ...
Main.java:8: error: not a statement String[N] imgA; ^ Main.java:8: error: ';' expected String[N] imgA; ^ Main.java:8: error: not a statement String[N] imgA; ^ Main.java:9: error: not a statement String[M] imgB; ^ Main.java:9: error: ';' expected String[M] imgB; ...
s432077369
p03803
Java
import java.util.*; import java.io.*; public class CardPoker{ 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.pr...
Main.java:4: error: class CardPoker is public, should be declared in a file named CardPoker.java public class CardPoker{ ^ 1 error
s586356228
p03803
Java
import java.util.*; import java.sio.*; public class CardPoker{ 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.p...
Main.java:4: error: class CardPoker is public, should be declared in a file named CardPoker.java public class CardPoker{ ^ Main.java:2: error: package java.sio does not exist import java.sio.*; ^ 2 errors
s295987803
p03803
C++
#include <iostream> #include <cstdint> using namespace std; int main() { int_least32_t 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 { cou << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:26:17: error: 'cou' was not declared in this scope 26 | cou << "Draw" << endl; | ^~~
s796643217
p03803
Java
import java.util.Scanner; public class Main { public static int[] powerCard = new int[]{2,3,4,5,6,7,8,9,10,11,12,13,1}; public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String[] card = s.split(" "); int i = Integer.parseInt(card[0]); ...
Main.java:14: error: ')' expected if ((i < 14 && j < 14) && (i > 0 && j > 0) { ^ 1 error
s290043002
p03803
Java
import java.util.Scanner; public class OneCardPoker { public static int[] powerCard = new int[]{2,3,4,5,6,7,8,9,10,11,12,13,1}; public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String[] card = s.split(" "); int i = Integer.parseInt(card[...
Main.java:14: error: ')' expected if ((i < 14 && j < 14) && (i > 0 && j > 0) { ^ 1 error
s066729883
p03803
C++
#include <iostream> #include <cstdint> using namespace std; int main() { int_least32_t 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 { cou << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:23:30: error: expected ';' before 'endl' 23 | cout << "Bob" endl; | ^~~~~ | ; a.cc:26:17: error: 'cou' was not declared in this scope 26 | cou << "Draw" << endl; | ...
s293004477
p03803
C++
#include <iostream> #include <string> #include <vector> #include <cstdint> using namespace std; int main() { int_least32_t n, m; cin >> n >> m; vector<string> a( n ), b( m ); for(auto& x : a) { cin >> x; } for(auto& x : b) { cin >> x; } int_least32_t dif{ n - m }; bool isok; for(auto i = 0; i < dif;...
a.cc: In function 'int main()': a.cc:28:38: error: no match for 'operator!=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'std::__cxx11::basic_string<char>') 28 | if(b != a[i + k].substr(j, m)) { | ~ ^~ ~~~~~~~~~~~~~~...
s500117877
p03803
C++
#include <iostream> int a, b; int main() { std::cin >> a >> b; if(a == 1) a = 15; if(b == 1) b = 15; if(a > b) { std::cout << "Alice" << std::endl; else if(a < b) { std::cout << "Bob" << std::endl; }else { std::cout << "Draw" << std::endl; } }
a.cc: In function 'int main()': a.cc:12:3: error: expected '}' before 'else' 12 | else if(a < b) { | ^~~~ a.cc:10:13: note: to match this '{' 10 | if(a > b) { | ^
s687537759
p03803
Java
mport java.io.*; public class OneCardPoker{ public static void main(String[] args){ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String str; int checkn = (int)' '; String[] s = new String[2]; int[] a = n...
Main.java:1: error: class, interface, enum, or record expected mport java.io.*; ^ 1 error
s219893801
p03803
C++
#include <iostream> #include <cstdin> using namespace std; int main() { int_least32_t 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 { cou << "Draw" << endl; } }
a.cc:2:10: fatal error: cstdin: No such file or directory 2 | #include <cstdin> | ^~~~~~~~ compilation terminated.
s879969736
p03803
Java
import java.util.Scanner; public class Test { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int input1 = scanner.nextInt(); int input2 = scanner.nextInt(); if (input1 == input2){ System.out.println("Draw"); }else if(input1 == 1 && input2 != 1){ System.out.println...
Main.java:3: error: class Test is public, should be declared in a file named Test.java public class Test { ^ 1 error
s143626656
p03803
Java
import java.util.Scanner; public class test { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int input1 = scanner.nextInt(); int input2 = scanner.nextInt(); if (input1 == input2){ System.out.println("Draw"); }else if(input1 == 1 && input2 != 1){ System.out.println...
Main.java:3: error: class test is public, should be declared in a file named test.java public class test { ^ 1 error
s562492103
p03803
Java
package accoder; import java.util.Scanner; public class test { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int input1 = scanner.nextInt(); int input2 = scanner.nextInt(); if (input1 == input2){ System.out.println("Draw"); }else if(input1 == 1 && input2 != 1){ ...
Main.java:5: error: class test is public, should be declared in a file named test.java public class test { ^ 1 error
s108227401
p03803
C++
#include<iostream> using namespace std; int main{ int a,b; std::cin >> a >>b; if(a==1&&b==1){ std::cout << "Draw" << '\n'; }else if(a==1){ std::cout << "Alice" << '\n'; }else if(b==1){ std::cout << "Bob" << '\n'; }else if(a<b){ std::cout << "Bob" << '\n'; }else if(a>b){ std::cout << "Alice" << '...
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:2: error: expected primary-expression before 'int' 6 | int a,b; | ^~~ a.cc:6:2: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc:7:7: error: '...
s662239984
p03803
C++
#include<iostream> #include <stdint.h> using namespace std; int n,m; int sub(string a[n],string b[m],int i,int j){ for(int k=0;k<m;k++){ if(a[i+k].substr(j,j+m)==b[k]){ }else{ return 0; } } cout<<"Yes"<<endl; return 1; } int main(){ cin>>n>>m; string a[n]; string b[m]; for(int i=0;i<n;i++){ cin>...
a.cc:5:18: error: size of array 'a' is not an integral constant-expression 5 | int sub(string a[n],string b[m],int i,int j){ | ^ a.cc:5:30: error: size of array 'b' is not an integral constant-expression 5 | int sub(string a[n],string b[m],int i,int j){ | ...
s010632068
p03803
C++
#include <iostream> using namspace std; int main() { int A, B; cin >> A >> B; A = A == 1 ? A : 14; B = B == 1 ? B : 14; cout << A == B ? "Draw" : A > B ? "Alice" : "Bob" << endl; return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namspace' 3 | using namspace std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> A >> B; | ^~~ | std::cin In file include...
s363144493
p03803
C++
#include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; const char en='\n'; int main(){ int a,b cin>>a>>b; a+=11; a%=13; b+=11; b%=13; if(a<b){ cout<<"Alice"<<en; }else if(a>b){ cout<<"Bob"<<en; }else{ cout<<"Even"<<en; } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: expected initializer before 'cin' 11 | cin>>a>>b; | ^~~ a.cc:14:9: error: 'b' was not declared in this scope 14 | b+=11; | ^
s720533424
p03803
C++
#include<iostream> using namespace std; int main{ int a,b; std::cin >> a >>b; if(a==1&&b==1){ std::cout << "Draw" << '\n'; }else if(a==1){ std::cout << "Alice" << '\n'; }else if(b==1){ std::cout << "Bob" << '\n'; }else if(a<b){ std::cout << "Bob" << '\n'; }else if(a>b){ std::cout << "Alice" << '...
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:2: error: expected primary-expression before 'int' 6 | int a,b; | ^~~ a.cc:6:2: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc:7:7: error: '...
s189065923
p03803
Java
import java.util.Scanner; public class A { 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"); return; } if (B > A) { Syste...
Main.java:3: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s767263192
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(); sc.close(); String ans; if(a==b){ ans="Draw"; }else if(a==1){ ans="Alice"; }else if(b==1){ ans="Bob"; }else{ ans = a>b ? "Alice":"Bob"; } ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s298585539
p03803
C++
#include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; const char en='¥n'; int main(){ int a,b cin>>a,b; a+=11; a%=13; b+=11; b%=13; if(a<b){ cout<<"Alice"<<en; }else if(a>b){ cout<<"Bob"<<en; }else{ cout<<"Even"<<en; } return 0; }
a.cc:7:15: warning: multi-character character constant [-Wmultichar] 7 | const char en='¥n'; | ^~~~ a.cc:7:15: warning: overflow in conversion from 'int' to 'char' changes value from '12756334' to '110' [-Woverflow] a.cc: In function 'int main()': a.cc:11:9: error: expected initializer before 'c...
s162119675
p03803
C++
#include <iostream> using namespace std; int main() { int a;int b; cin>>a>>b; if(b==1)b=14; if(a==1)a=14; if(a>b)cout<<"Alice"; else if(a<b)cout<<"Bob"; else cout<<"Draw"; retu
a.cc: In function 'int main()': a.cc:12:9: error: 'retu' was not declared in this scope 12 | retu | ^~~~ a.cc:12:13: error: expected '}' at end of input 12 | retu | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s386303881
p03803
Java
import java.util.*; public class main { public static void main(String[]args){ Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = stdIn.nextInt(); if(a==1){ if(b!=1){ System.out.println("Alice"); } } if(b==1){ if(a!=1){ System.out.println("Bob"); } } if((a...
Main.java:2: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s610255224
p03803
C++
#include<iostream> #include<string> #define vi vector<int> #define vvi vector<vector<int> > #define ll long long int #define vl vector<ll> #define vvl vector<vector<ll>> using namespace std; typedef pair<int, int> pii; int main(){ll a,b; cin>>a>>b; if(a==b)return puts("Draw ") *0; else if(a==1 ||b==1)a==1 ? cout<<"Alic...
a.cc: In function 'int main()': a.cc:13:47: error: expected ':' before ';' token 13 | else if(a==1 ||b==1)a==1 ? cout<<"Alice"<<endl; : cout<<"Bob"<<endl; | ^ | : a.cc:13:47: error: expected primary-expression bef...
s278382215
p03803
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int CardA = Integer.parseInt(sc.next()); int CardB = Integer.parseInt(sc.next()); String s = ""; if(CardA == 1){ CardA = 14"; } if(CardB == 1){ CardB = 14"; } if(CardA > Car...
Main.java:10: error: unclosed string literal CardA = 14"; ^ Main.java:14: error: unclosed string literal CardB = 14"; ^ 2 errors
s382970879
p03803
C++
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from fractions import gcd def readln(): _res = list(map(int,str(input()).split(' '))) return _res def strong(x,y): return (x == 1) or (x > y) a = readln() if a[0] == a[1]: print("Draw") elif strong(a[0],a[1]): print("Alice") else: print("Bob")
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/env python3 | ^ a.cc:2:3: error: invalid preprocessing directive #- 2 | # -*- coding: utf-8 -*- | ^ a.cc:4:1: error: 'from' does not name a type 4 | from fractions import gcd | ^~~~
s265919941
p03803
C++
#include "stdafx.h" int main() { int a, b; scanf("%d %d", &a, &b); if (a == 1) a += 13; if (b == 1) b += 13; if (a > b) puts("Alice"); else if (a == b) puts("Draw"); else if (a < b) puts("Bob"); return 0; }
a.cc:2:10: fatal error: stdafx.h: No such file or directory 2 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s301117200
p03803
C
#include<stdio.h> int main(void){ int Alice, Bob; scanf("%d %d", Alice, Bob); if(Alice < Bob && 1 < Alice){ printf("Bob"); } else if(Alice > Bob && 1 < Bob){ printf("Alice") } else if(Alice == Bob){ printf("Draw"); } else if(Alice < Bob && Alice == 1){ printf("Alice"); } else{ printf("Bob"); } return 0; }
main.c: In function 'main': main.c:9:16: error: expected ';' before '}' token 9 | printf("Alice") | ^ | ; 10 | } | ~
s886906848
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<B) { if(A==1) { System.out.priln("Alice"); } ...
Main.java:13: error: cannot find symbol System.out.priln("Alice"); ^ symbol: method priln(String) location: variable out of type PrintStream 1 error
s950555765
p03803
Java
mport java.util.Scanner; /** * Created by liguoxiang on 2017/02/11. */ 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)&&(a==1))|| a>b...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
s104957047
p03803
C++
#include<iostream> #include<vector> #include<math.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a == b ? "Draw" : a < b && b =! 1 ? "Alice" : "Bob") << endl; }
a.cc: In function 'int main()': a.cc:9:36: error: lvalue required as left operand of assignment 9 | cout << (a == b ? "Draw" : a < b && b =! 1 ? "Alice" : "Bob") << endl; | ~~~~~~^~~~
s152728629
p03803
Java
import java.util.*; public class a { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // get a integer int a = sc.nextInt(); // get two integers separated with half-width break int b = sc.nextInt(); if (a > 12) { a = 0; } if (b > 12) { b = 0; } if (a > b) { Syst...
Main.java:2: error: class a is public, should be declared in a file named a.java public class a { ^ 1 error
s031408260
p03803
C++
#include <iostream> using namespace std; int main() { int a;int b; cin>>a>>b; if(b==1)b=14; if(a==1)a=14; if(a<b)cout<<Alice; else if(a>b)cout<<Bob; else cout<<Draw; return 0; }
a.cc: In function 'int main()': a.cc:9:14: error: 'Alice' was not declared in this scope 9 | if(a<b)cout<<Alice; | ^~~~~ a.cc:10:19: error: 'Bob' was not declared in this scope 10 | else if(a>b)cout<<Bob; | ^~~ a.cc:11:12: error: 'Draw' was not declared in this scope ...
s595792350
p03803
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int CardA = Integer.parseInt(sc.next()); int CardB = Integer.parseInt(sc.next()); String s; if(CardA > CardB){ s="Alice"; }else if(CardB > CardA){ s="Bob"; }else if(CardB == CardA){...
Main.java:16: error: variable s might not have been initialized System.out.println(s); ^ 1 error
s299692691
p03803
C++
1. #include<iostream> 2. #include<string> 3. #include<cstdio> 4. #include<algorithm> 5. #include<stack> 6. #include<queue> 7. #include<vector> 8. #include<cmath> 9. #include<utility> 10. #include<set> 11. #include<complex> 12. #include<map> 13. #define vi vector<int> 14. #define vvi vector<vector<int> > 15. #define ll ...
a.cc:1:4: error: stray '#' in program 1 | 1. #include<iostream> | ^ a.cc:2:4: error: stray '#' in program 2 | 2. #include<string> | ^ a.cc:3:4: error: stray '#' in program 3 | 3. #include<cstdio> | ^ a.cc:4:4: error: stray '#' in program 4 | 4. #include<algorithm> | ^...
s086840489
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==1) { if(b==1)cout<<"Draw"<<endl; else cout<<cout<<"Alice"<<endl; } else if(b==1) { if(a==1)cout<<"Draw"<<endl; else cout<<"Bob"<<endl; } else { if(a>b)cout<...
a.cc: In function 'int main()': a.cc:10:18: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::ostream' {aka 'std::basic_ostream<char>'}) 10 | else cout<<cout<<"Alice"<<endl; | ~~~~^~~~~~ | | | | ...
s238699887
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b || (a==1 && b!=1)cout<<"Alice"<<endl; else if(a<b || (b==1&&a!=1))cout<<"Bob"<<endl; else cout<<"Draw"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:29: error: expected ';' before 'cout' 7 | if(a>b || (a==1 && b!=1)cout<<"Alice"<<endl; | ^~~~ | ; a.cc:8:5: error: expected primary-expression before 'else' 8 | else if(a<b || (b==1&&a!=1))cout<<"B...
s626671618
p03803
Java
import java.util.*; public class a { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // get a integer int a = sc.nextInt(); // get two integers separated with half-width break int b = sc.nextInt(); if (a > 12) { a = 0; } if (b > 12) { b = 0; } if (a > b) { Syst...
Main.java:2: error: class a is public, should be declared in a file named a.java public class a { ^ 1 error
s089168023
p03803
C++
a, b = map(int, input().split()) l = ["Alice", "Bob", "Draw"] if a > b: if a == 13 and b == 1: idx = 1 else: idx = 0 elif a < b: if a == 1 and b == 13: idx = 0 else: idx = 1 else: idx = 2 print(l[idx])
a.cc:1:1: error: 'a' does not name a type 1 | a, b = map(int, input().split()) | ^
s116034902
p03803
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int cardA = Integer.parseInt(sc.next()); int CardB = Integer.parseInt(sc.next()); String s; if(CardA > CardB){ s="Alice"; }else if(CardB > CardA){ s="Bob"; }else{ s="Draw"; } ...
Main.java:9: error: cannot find symbol if(CardA > CardB){ ^ symbol: variable CardA location: class Main Main.java:11: error: cannot find symbol }else if(CardB > CardA){ ^ symbol: variable CardA location: class Main 2 errors
s806946515
p03803
Java
import java.util.*; public class a { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // get a integer int a = sc.nextInt(); // get two integers separated with half-width break int b = sc.nextInt(); if (a > 12) { a = 0; } if (b > 12) { b = 0; } if (a > b) { Syst...
Main.java:2: error: class a is public, should be declared in a file named a.java public class a { ^ 1 error
s462188255
p03803
C++
v#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <algorithm> #include <utility> #include <functional> #include <cstring> #include <queue> #include <stack> #include <math.h> #include <iterator> #include <vector> #include <string> #include <set> #include <math.h> #include <iostream> #include<map> #include <s...
a.cc:1:2: error: stray '#' in program 1 | v#define _CRT_SECURE_NO_WARNINGS | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#define _CRT_SECURE_NO_WARNINGS | ^ In file included from /usr/include/c++/14/cstdlib:79, from /usr/include/c++/14/bits/stl_algo.h:71, from...
s896237476
p03803
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #define FOR(i,k,n) for((i)=(k);(i)<(n);(i)++) #define REP(i,n) for (int i=0;i<(n);i++) #define pb push_back #define all(a) (a).begin(),(a).end() //greater<int>() using namespace std; int main(){ int A,B; cin>>A>>B; if(A>B){ cout<<"Ali...
a.cc: In function 'int main()': a.cc:25:29: error: expected ';' before '}' token 25 | cout<<"Draw" | ^ | ; 26 | } | ~
s834744953
p03803
C
#include<stdio,h> int main() { int a, c; scanf("%d%d", &a, &c); if(a==c) printf("Draw"); else if(a==1) printf("Alice"); else if(c==1) printf("Bob"); else if(a>c) printf("Alice"); else printf("Bob"); return 0; }
main.c:1:9: fatal error: stdio,h: No such file or directory 1 | #include<stdio,h> | ^~~~~~~~~ compilation terminated.
s848743453
p03803
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a, b; a = int.Parse(str[0]...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s782140910
p03803
C++
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <queue> #include <map> #include <stack> #include <set> #include <vector> #include <algorithm> using namespace std; #define INF 9999999999; #define D(x) cout << x << endl; typedef long long ll; typedef vector<int> vi...
a.cc: In function 'int main()': a.cc:36:7: error: no match for 'operator>' (operand types are 'std::basic_ostream<char>' and 'int') 36 | D(a > b ? "Alice" : "Bob"); | ^ ~ | | | int a.cc:16:22: note: in definition of macro 'D' 16 | #define D(x) cout << x << endl; | ...
s414833044
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b;cin >>a >> b; if(a == 1 && b != 1){ cout << "Alice" << endl; } else if(a != 1 && b == 1){ cout << "Bob" << endl; } else if (a == b){ cout << "Draw" << endl; } else{ a > b ? cout << "Alice" << endl; : cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:15:48: error: expected ':' before ';' token 15 | a > b ? cout << "Alice" << endl; : cout << "Bob" << endl; | ^ | : a.cc:15:48: error: expected primary-express...
s100303446
p03803
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int i, j; int a, b; scanf("%d, %d", &a, &b); if (a==1) { a = 14; } if( b== 1){ b = 14; } if(A>B){ printf("Alice"); } else if(A == B){ printf("Draw"); } else { printf("Bob"); } retu...
main.c: In function 'main': main.c:18:6: error: 'A' undeclared (first use in this function) 18 | if(A>B){ | ^ main.c:18:6: note: each undeclared identifier is reported only once for each function it appears in main.c:18:8: error: 'B' undeclared (first use in this function) 18 | if(A>B){ | ...
s703629596
p03803
Java
import java.io.*; import java.util.*; public class A { public static void main(String[] args) throws Exception { FastScannerA fs = new FastScannerA(); PrintWriter out = new PrintWriter(System.out); int n = fs.nextInt(), m = fs.nextInt(); if(n == 1 && m == 1) { System.ou...
Main.java:4: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s265881044
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b;cin >>a >> b; if(a == 1 && b != 1){ cout << "Alice" << endl; } else if(a != 1 && b == 1){ cout << "Bob" << endl; } else if (a == b){ cout << "Draw" << endl; } else{ a > b ? cout << "Alice" << endl; cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:15:48: error: expected ':' before ';' token 15 | a > b ? cout << "Alice" << endl; cout << "Bob" << endl; | ^ | : a.cc:15:48: error: expected primary-expressio...
s169889307
p03803
C
#include<stdio,h> int main() { int a, c; scanf("%d%d", &a, &c);
main.c:1:9: fatal error: stdio,h: No such file or directory 1 | #include<stdio,h> | ^~~~~~~~~ compilation terminated.
s544290058
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N,M;cin>>N>>M; char A[N][N]; char B[M][M]; for(int i=0;i<N;i++) cin>>A[i]; for(int i=0;i<M;i++) cin>>B[i]; bool can=false; for(int i=0;i<=N-M;i++){ for(int l=0;l<=N-M;l++){ bool isyes=true; for(int j=0;j<M;j++){ for(int...
a.cc:32:1: error: expected declaration before '}' token 32 | } | ^
s205591367
p03804
C++
#include <bits/stdc++.h> using namespace std; using ll =long long; #define all(v) v.begin(),v.end() int main() { ll N,M; cin>>N>>M; vector<string> A(N); for(ll i=;i<N;i++) { cin>>A[i]; } vector<string> B(M); for(ll i=0;i<M;i++) { cin>>B[i]; } for(ll i=0;i<N-M+1;i++) { for(ll j=0;j<N-M+1;j++) { bo...
a.cc: In function 'int main()': a.cc:10:12: error: expected primary-expression before ';' token 10 | for(ll i=;i<N;i++) { | ^ a.cc:24:6: error: 'S' was not declared in this scope 24 | if(S[i+h][j+k]!=T[h][k]) { | ^ a.cc:24:19: error: 'T' was not declared in this scope 24 | if(...
s097018620
p03804
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int m = scn.nextInt(); char[][] aa = new char[n][n]; char[][] bb = new char[m][m]; for(int i=0; i<n; i++){ String a = scn.next()...
Main.java:42: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
s673476186
p03804
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int m = scn.nextInt(); char[][] aa = new char[n][n]; char[][] bb = new char[m][m]; for(int i=0;i<n;i++){ String a = scn.next(); ...
Main.java:13: error: cannot find symbol A[i][j]=a.charAt(j); ^ symbol: variable A location: class Main 1 error
s400891485
p03804
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int m = scn.nextInt(); char[][] A = new char[n][n]; char[][] B = new char[m][m]; for(int i=0;i<n;i++){ String n = scn.next(); ...
Main.java:11: error: variable n is already defined in method main(String[]) String n = scn.next(); ^ Main.java:12: error: bad operand types for binary operator '<' for(int j=0;j<n;j++){ ^ first type: int second type: String Main.java:17: error: variable m is alre...
s583694440
p03804
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int m = scn.nextInt(); char[][] A = new char[n][n]; char[][] B = new char[m][m]; for(int i=0;i<n;i++){ String n = scn.next(); ...
Main.java:31: error: ';' expected ans = ""Yes"; ^ Main.java:31: error: unclosed string literal ans = ""Yes"; ^ Main.java:39: error: reached end of file while parsing } ^ 3 errors
s580874269
p03804
C++
#include<bits/stdc++.h> using namespace std; #define oo (long long)1e18 #define ll long long #define setdp memset(dp,-1,sizeof(dp)) const ll mod = 1e9+7; void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);} #define PI 3.14159265359 int sx,sy,tx,ty; ll a[3009][3009]; ll b[200003]; ll n,m; ...
a.cc: In function 'int main()': a.cc:43:37: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'? 43 | if(v[k +...
s184226692
p03804
C++
#include<bits/stdc++.h> using namespace std; #define oo (long long)1e18 #define ll long long #define setdp memset(dp,-1,sizeof(dp)) const ll mod = 1e9+7; void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);} #define PI 3.14159265359 int sx,sy,tx,ty; ll a[3009][3009]; ll b[200003]; ll n,m; ...
a.cc: In function 'int main()': a.cc:43:37: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'? 43 | if(v[k +...
s440377147
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n , m; cin >> n >> m; if ( m > n){ cout << "No" << endl; return 0; } vector <string> a(n),b(m); for ( int i=0 ; i< n ; i++){ cin >> a.at(i); } for ( int i=0 ; i< m ; i++){ cin >> b.at(i); } for ( int i= 0 ; i <= n-m ;...
a.cc: In function 'int main()': a.cc:38:2: error: expected '}' at end of input 38 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s351348204
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n , m; cin >> n >> m; vector <string> a(n),b(m); for ( int i=0 ; i< n ; i++){ cin >> a(i); } for ( int i=0 ; i< m ; i++){ cin >> b(i); } for ( int i= 0 ; i < n-m+1 ; i++){ for ( int j=0 ; j< n-m+1 ; j++ ;){ bool ans = t...
a.cc: In function 'int main()': a.cc:9:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)' 9 | cin >> a(i); | ~^~~ a.cc:12:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)' 12 | cin >> b(i); | ...
s488040819
p03804
C++
#include<bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; using ull = unsigned long long; template<class T, class U> using P = pair<T,U>; template<class T> using Heap = priority_queue<T>; template<class T> using heaP...
a.cc: In function 'int main()': a.cc:54:12: error: 'f' was not declared in this scope 54 | cout << (f?"Yes":"No") << endl; | ^
s507324511
p03804
C++
#include <bits/stdc++.h> #define endl '\n' #define fast_in ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define mp make_pair #define pb push_back #define sz(x) (int)x.size() #define all(x) x.begin(), x.end() #define allr(x) x.rbegin(), x.rend() #define bit(x) __builtin_popcountll(x) using namespace...
a.cc: In function 'void solve()': a.cc:27:32: error: 'a' was not declared in this scope 27 | cin >> a[i][j]; | ^ a.cc:32:32: error: 'b' was not declared in this scope 32 | cin >> b[i][j]; | ^ ...
s734637608
p03804
Java
package _200; import java.util.Scanner; public class B_TempleteMatching { //public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); String[] A = new String[N]; String[] B = new String[M]; for(int i = 0; i < N; i++) { ...
Main.java:5: error: class B_TempleteMatching is public, should be declared in a file named B_TempleteMatching.java public class B_TempleteMatching { ^ 1 error
s924558918
p03804
Java
import java.util.Scanner; piblic class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); String[] A = new String[N]; String[] B = new String[M]; for(int i = 0; i < N; i++) { A[i] = sc.next(); } for(int i = 0; i < M; i++)...
Main.java:2: error: class, interface, enum, or record expected piblic class Main { ^ 1 error
s798644732
p03804
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { int n, m; cin >> n >> m; vector<string> a(n), b(m); rep(i,n) cin >> a.at(i); rep(i,m) cin >> b.at(i); for(int i = 0; i <= n-m; i++) { int pos = a.at(i).find(b...
a.cc: In function 'int main()': a.cc:19:52: error: expected ')' before ';' token 19 | pos = a.at(i).find(b.at(0), pos; | ~ ^ | )
s902475799
p03804
C++
v#include <bits/stdc++.h> using namespace std; int main() { int N, M; cin >> N >> M; char A[N][N], B[M][M]; for (int i=0; i<N; i++){ for (int j=0; j<N; j++){ cin >> A[i][j]; } } for (int i=0; i<M; i++){ for (int j=0; j<M; j++){ cin >> B[i][j]; } } for (int i=0; i<N-M+1; i+...
a.cc:1:2: error: stray '#' in program 1 | v#include <bits/stdc++.h> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin >> N >> M; | ^~~ a.cc:29:21: er...
s701312398
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N, M; cin >> N >> M; char A[N][N], B[M][M]; for (int i=0; i<N; i++){ for (int j=0; j<N; j++){ cin >> A[i][j]; } } for (int i=0; i<M; i++){ for (int j=0; j<M; j++){ cin >> B[i][j]; } } for (int i=0; i<N-M+1; i++...
a.cc: In function 'int main()': a.cc:30:13: error: 'found' was not declared in this scope; did you mean 'round'? 30 | if (found) cout << "Yes" << endl; | ^~~~~ | round
s752939112
p03804
C++
#include<bits/stdc++.h> int main(void){ int N,M; cin >> N >> M; const int nmmax=50; char A[nmmax][nmmax],B[nmmax][nmmax]; for(int y=0;y<N;++y){ for(int x=0;x<N;++x){ cin >> A[y][x]; } } for(int y=0;y<M;++y){ for(int x=0;x<M;++x){ cin >> B[y][x]; } } bool exist=false; for(int ly=0;ly<N;++ly){ for(i...
a.cc: In function 'int main()': a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> N >> M; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'st...
s378925310
p03804
C++
4 1 .... .... .... .... #
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 4 1 | ^
s159702283
p03804
C++
#define _USE_MATH_DEFINES #include <stdio.h> #include <iostream> #include <map> #include <vector> #include <string> #include <algorithm> #include <cmath> int main(void) { int N, M; cin >> N >> M; const int nmmax = 50; char A[nmmax][nmmax], B[nmmax][nmmax]; for (int y = 0; y < N; ++y) { for (int x = 0; x < ...
a.cc: In function 'int main()': a.cc:14:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 14 | cin >> N >> M; | ^~~ | std::cin In file included from a.cc:3: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ...
s235298006
p03804
C
#include<stdio.h> #include<stdlib.h> #include<math.h> int main(){ char a[50][51],b[50][51]; int n,m,i,j,k,l,o; scanf("%d%d",&n,&m); for(i=0;i<n;i++)scanf("%s",a[i]); for(i=0;i<m;i++)scanf("%s",b[i]); for(i=0;i<=n-m;i++)for(j=0;j<=n-m;j++){ o=1; for(k=0;k<m;k++)for(l=0;l<m;l++)if([i+k][j+l]!=b[k][l])...
main.c: In function 'main': main.c:12:40: error: expected expression before '[' token 12 | for(k=0;k<m;k++)for(l=0;l<m;l++)if([i+k][j+l]!=b[k][l])o=0; | ^
s513477940
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N,M; cin >> N >> M; string A[N], B[M]; for (int i = 0; i < N; i++) { cin >> A[i]; } for (int i = 0; i < M; i++) { cin >> B[i]; } for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { bool valid = true; for (int ...
a.cc: In function 'int main()': a.cc:29:15: error: expected ';' before '}' token 29 | cout << "No" | ^ | ; 30 | } | ~
s506048441
p03804
C++
#include<bits/stdc++.h> using namespace std; int main () { int N, M; cin >> N >> M; char mat[55][55]; char mbt[55][55]; for (int i = 0; i < N; i ++) { for (int j = 0; j < N; j ++) { cin << mat[i][j]; } } for (int i = 0; i < M; i ++) { for (int j = 0; j < M; j ++) { cin >> mbt[i][j]...
a.cc: In function 'int main()': a.cc:10:11: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char') 10 | cin << mat[i][j]; | ~~~ ^~ ~~~~~~~~~ | | | | | char | std::istream {aka std:...
s868190002
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin >> n >> m; vector<string>data_a(n); vector<string>data_b(m); for(int i=0;i<n;i++){ cin >> data_a.at(i); } for(int i=0;i<m;i++){ cin >> data_b.at(i); } bool exist=false; for(int li=0;li<n;li++){ for(int lj=0;lj<n;lj+...
a.cc: In function 'int main()': a.cc:28:23: error: expected ';' before '}' token 28 | exist=true | ^ | ; 29 | } | ~
s352177258
p03804
C++
#include <iostream> #include <string> #include <vector> using namespace std; int main(){ vector<string> data; string name; vector save; int a,b; cin>>a>>b; for(int i=0;i<a;i++){ cin>>name; data.push_back(name); } for(int i=0;i<b;i++){ cin>>name; if(i==0){ for(int j=0;j<data.size()...
a.cc: In function 'int main()': a.cc:9:10: error: class template argument deduction failed: 9 | vector save; | ^~~~ a.cc:9:10: error: no matching function for call to 'vector()' In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr/include/c++/14/bits/stl_vector.h:...
s082665513
p03804
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const double PI=acos(-1); const int INF = numeric_limits<int>::max(); int main(){ int n, m; cin >> n >> m; vector<s...
a.cc: In function 'int main()': a.cc:15:18: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >') 15 | rep(i,n) cin >> a[i]; | ~~~ ^~ ~~~~ | | | | |...
s444100701
p03804
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const double PI=acos(-1); const int INF = numeric_limits<int>::max(); int main(){ int n, m; cin >> n >> m; vector<s...
a.cc: In function 'int main()': a.cc:15:18: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >') 15 | rep(i,n) cin >> a[i]; | ~~~ ^~ ~~~~ | | | | |...
s033090970
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N, M; char A[N][N], B[M][M]; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { cin >> A[i][j]; } } for (int i = 0; i < M; i++) { for (int j = 0; j < M; j++) { cin >> B[i][j]; } } for (int i = 0;...
a.cc: In function 'int main()': a.cc:27:25: error: expected ';' before '}' token 27 | cond = false | ^ | ; 28 | } | ~ a.cc: At global scope: a.cc:44:1: error: expected declaration before '}' token 44...
s385959391
p03804
C++
#include <bits/stc++.h> using namespace std; int main() { int N, M; char A[N][N], B[M][M]; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { cin >> A[i][j]; } } for (int i = 0; i < M; i++) { for (int j = 0; j < M; j++) { cin >> B[i][j]; } } for (int i = 0; ...
a.cc:1:10: fatal error: bits/stc++.h: No such file or directory 1 | #include <bits/stc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s536094882
p03804
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; const string YES = "Yes"; const string NO = "No"; void solve(int N, int M, vector<string> A, vector<string> B) { bool include = false; rep(i, N - M + 1) { // find left top const int offset = A[i].find(B[0]); ...
a.cc:29:3: error: 'cout' does not name a type 29 | cout << (include ? YES : NO) << endl; | ^~~~ a.cc:30:1: error: expected declaration before '}' token 30 | } | ^
s645597064
p03804
C++
#include <iostream> #include <string> #include <vector> // TLEの場合はbit shiftに変える using namespace std; int N, M; bool is_same(vector <string>A, vector <string>B, int strow, int stcol) { if ((strow+M) > N) return false; if ((stcol+M) > N) return false; for (int Brow = 0; Brow < M; Brow++) { for (int Bcol = 0; B...
a.cc: In function 'int main()': a.cc:31:11: error: reference to 'is_same' is ambiguous 31 | if (is_same(A, B, row, col)) { | ^~~~~~~ In file included from /usr/include/c++/14/bits/move.h:37, from /usr/include/c++/14/bits/exception_ptr.h:41, from /usr/include/c+...
s150812508
p03804
C++
#include <iostream> #include <string> #include <vector> // TLEの場合はbit shiftに変える using namespace std; int N, M; bool is_same(vector <string>A, vector <string>B, int strow, int stcol) { if ((strow+M) > N) return false; if ((stcol+M) > N) return false; for (int Brow = 0; Brow < M; Brow++) { for (int Bcol = 0; B...
a.cc: In function 'int main()': a.cc:30:11: error: reference to 'is_same' is ambiguous 30 | if (is_same(A, B, row ,col)) { | ^~~~~~~ In file included from /usr/include/c++/14/bits/move.h:37, from /usr/include/c++/14/bits/exception_ptr.h:41, from /usr/include/c+...
s327142754
p03804
C++
#include<bits/stdc++.h> #define all(x) (x).begin(),(x).end() #define rep(i,n) for(ll i=0;i<(ll)(n);i++) using namespace std; typedef long long ll; ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;} ll lcm(ll a,ll b){return a*b/gcd(a,b);} int main(){ ll n,m; cin>>n>>m; vector<string> a(n),b(m); rep(i,n) cin>>...
a.cc: In function 'int main()': a.cc:29:17: error: return-statement with no value, in function returning 'int' [-fpermissive] 29 | return; | ^~~~~~
s363476098
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N,M; cin>>N>>M; vector<string> A(N); vector<string> B(M); for(int i=0;i<N;i++){ cin>>A.at(i); } for(int i=0;i<M;i++){ cin>>B.at(i); } for(int y=0;y<=N-M;y++){ for(int x=0;x<=N-M;c++){ int count=0; for(int by=0;by<M;b...
a.cc: In function 'int main()': a.cc:15:24: error: 'c' was not declared in this scope 15 | for(int x=0;x<=N-M;c++){ | ^
s906008224
p03804
C++
#include <bits/stdc++.h> #include <boost/algorithm/cxx11/all_of.hpp> #include <boost/range/adaptors.hpp> #include <boost/range/algorithm/equal.hpp> #include <boost/range/combine.hpp> #include <boost/range/irange.hpp> using namespace std; using namespace boost; using namespace boost::adaptors; using namespace boost::a...
a.cc:3:10: fatal error: boost/algorithm/cxx11/all_of.hpp: No such file or directory 3 | #include <boost/algorithm/cxx11/all_of.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.